/* ============================================================
   小米考勤 · Account pages
   我的 / 设置 / 消息 / 排班 / 考勤规则 / 关于
   ============================================================ */

/* ---------- Profile ---------- */
.profile-hero {
  position: relative; overflow: hidden;
  margin: 6px 0 0;
  border-radius: 22px;
  padding: 18px 18px 14px;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 20px 40px -22px rgba(22, 119, 255, .7);
}
.profile-hero::before {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 66%);
}
.profile-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 85% 10%, #000, transparent 65%);
}
.profile-top { position: relative; display: flex; align-items: center; gap: 13px; z-index: 1; }
.profile-avatar { --av: 62px; box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .85), 0 8px 20px rgba(0, 20, 70, .25); }
.profile-name { font-size: 21px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 7px; }
.profile-name .tag { background: rgba(255, 255, 255, .2); color: #fff; height: 18px; font-size: 9.5px; border: 1px solid rgba(255, 255, 255, .18); }
.profile-role { font-size: 11.5px; opacity: .8; margin-top: 3px; }
.profile-dept { font-size: 10.5px; opacity: .65; margin-top: 2px; display: flex; align-items: center; gap: 4px; font-family: var(--font-num); }
.profile-edit {
  position: relative; z-index: 1; margin-left: auto; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .14);
  display: grid; place-items: center; color: #fff;
}
.profile-edit .icon { width: 16px; height: 16px; }
.profile-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 16px; padding: 11px 2px 3px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.profile-stat { text-align: center; position: relative; }
.profile-stat + .profile-stat::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: rgba(255, 255, 255, .16);
}
.profile-stat b { display: block; font-family: var(--font-num); font-size: 20px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.profile-stat b small { font-size: 10px; font-weight: 600; opacity: .7; margin-left: 1px; }
.profile-stat span { font-size: 10px; opacity: .68; }

.profile-body { padding-top: 6px; }
.menu-group { margin-top: 14px; }
.menu-group-title { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 4px 8px; display: flex; align-items: center; justify-content: space-between; }
.menu-group-title span { font-weight: 500; color: var(--text-4); font-size: 11px; }
.menu-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.menu-card .cell { min-height: 54px; }
.menu-card .cell + .cell::before { left: 16px; }
.menu-card .cell-desc { font-size: 11px; }
.profile-logout {
  margin-top: 20px; width: 100%; height: 48px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--danger); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-1);
}
.profile-logout:active { background: var(--danger-soft); }
.version-foot { text-align: center; font-size: 10px; color: var(--text-4); padding: 18px 0 4px; line-height: 1.8; }

/* ---------- Settings ---------- */
.settings-group { margin-top: 14px; }
.settings-group-title { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 4px 8px; }
.setting-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 11px 16px;
  width: 100%; text-align: left; position: relative;
}
.setting-row + .setting-row::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line-2);
}
.setting-row:active { background: var(--card-2); }
.setting-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setting-title { font-size: 14.5px; font-weight: 500; }
.setting-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.setting-row .switch { margin-left: auto; }
.setting-row .cell-val { margin-left: auto; }
.settings-note { padding: 14px 6px 0; font-size: 10.5px; color: var(--text-4); line-height: 1.7; text-align: center; }
.settings-danger { color: var(--danger); }
.settings-version { text-align: center; padding: 18px 0 6px; font-size: 10.5px; color: var(--text-4); line-height: 1.8; }

/* ---------- Messages ---------- */
.msg-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 10px; }
.msg-toolbar .seg { width: 190px; }
.msg-toolbar .link { font-size: 12px; }
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: var(--shadow-1);
  position: relative; text-align: left; width: 100%;
  transition: background var(--dur-1);
}
.msg-item:active { background: var(--card-2); }
.msg-item.is-unread { border-color: var(--brand-200); background: linear-gradient(180deg, var(--brand-50), var(--card) 60%); }
.msg-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-600);
}
.msg-ico .icon { width: 19px; height: 19px; }
.msg-ico.is-orange { background: var(--warning-soft); color: var(--warning-deep); }
.msg-ico.is-green { background: var(--success-soft); color: var(--success-deep); }
.msg-ico.is-purple { background: var(--purple-soft); color: var(--purple); }
.msg-ico.is-red { background: var(--danger-soft); color: var(--danger-deep); }
.msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-head { display: flex; align-items: center; gap: 6px; }
.msg-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.msg-unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.msg-desc { font-size: 12px; color: var(--text-3); line-height: 1.55; margin-top: 3px; }
.msg-time { font-size: 10px; color: var(--text-4); margin-top: 5px; font-family: var(--font-num); }
.msg-date-sep { text-align: center; font-size: 10px; color: var(--text-4); padding: 6px 0 2px; }

/* ---------- Schedule ---------- */
.schedule-week {
  display: flex; gap: 6px; margin-top: 8px;
  padding: 8px; background: var(--card);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.day-pill {
  flex: 1; height: 58px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-2); transition: all var(--dur-2);
}
.day-pill span { font-size: 9.5px; color: var(--text-3); }
.day-pill b { font-family: var(--font-num); font-size: 15px; font-weight: 650; }
.day-pill i { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.day-pill.is-active { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(22, 119, 255, .8); }
.day-pill.is-active span { color: rgba(255, 255, 255, .75); }
.day-pill.is-active i { background: #fff; }
.day-pill.is-today:not(.is-active) { box-shadow: inset 0 0 0 1.2px var(--brand-300); }
.shift-card { margin-top: 12px; padding: 16px; }
.shift-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shift-name { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.shift-range { font-family: var(--font-num); font-size: 26px; font-weight: 750; letter-spacing: -.03em; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.shift-range span { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.shift-bar { margin-top: 12px; height: 30px; border-radius: 8px; background: var(--bg-2); position: relative; overflow: hidden; }
.shift-bar-fill {
  position: absolute; top: 0; bottom: 0; left: 8%; width: 70%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand-200), var(--brand-400));
  opacity: .55;
}
.shift-bar-mark { position: absolute; top: 5px; bottom: 5px; width: 2px; background: var(--brand); border-radius: 2px; }
.shift-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 6px; font-family: var(--font-num); }
.shift-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-2); }
.shift-facts div { text-align: center; position: relative; }
.shift-facts div + div::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--line-2); }
.shift-facts b { display: block; font-family: var(--font-num); font-size: 15px; font-weight: 700; }
.shift-facts span { font-size: 10px; color: var(--text-3); }
.schedule-list { margin-top: 14px; }
.schedule-day {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 13px; margin-bottom: 8px;
  box-shadow: var(--shadow-1);
}
.schedule-day.is-rest { opacity: .68; }
.schedule-date { width: 42px; flex: none; text-align: center; }
.schedule-date b { display: block; font-family: var(--font-num); font-size: 18px; font-weight: 700; line-height: 1.15; }
.schedule-date span { font-size: 9px; color: var(--text-3); }
.schedule-info { flex: 1; min-width: 0; }
.schedule-info b { font-size: 13px; font-weight: 600; display: block; }
.schedule-info span { font-size: 10.5px; color: var(--text-3); font-family: var(--font-num); }
.schedule-day .tag { margin-left: auto; }

/* ---------- Rules (accordion) ---------- */
.rules-intro { padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.rules-intro .cell-ico { width: 40px; height: 40px; border-radius: 12px; }
.rules-intro-title { font-size: 14.5px; font-weight: 650; }
.rules-intro-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-top: 3px; }
.rule-item { margin-top: 9px; background: var(--card); border: 1px solid var(--line-2); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-1); }
.rule-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; width: 100%; text-align: left; }
.rule-num {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--brand-100); color: var(--brand-600);
  display: grid; place-items: center;
  font-family: var(--font-num); font-size: 11px; font-weight: 700;
}
.rule-title { font-size: 13.5px; font-weight: 600; flex: 1; }
.rule-head .icon { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--dur-2); }
.rule-item.is-open .rule-head .icon { transform: rotate(180deg); }
.rule-body { display: none; padding: 0 14px 14px 46px; font-size: 12px; color: var(--text-2); line-height: 1.75; }
.rule-item.is-open .rule-body { display: block; animation: fadeUp .25s var(--ease-out); }
.rule-body ul { display: flex; flex-direction: column; gap: 4px; }
.rule-body li { position: relative; padding-left: 11px; }
.rule-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-300); }

/* ---------- About ---------- */
.about-hero { display: flex; flex-direction: column; align-items: center; padding: 30px 0 24px; }
.about-logo {
  width: 84px; height: 84px; border-radius: 26px;
  background: var(--mi-orange); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-num); font-size: 34px; font-weight: 800; letter-spacing: -.06em;
  box-shadow: 0 18px 36px -16px rgba(255, 105, 0, .7);
  position: relative;
}
.about-logo::after {
  content: ""; position: absolute; inset: -10px; border-radius: 32px;
  border: 1px solid var(--line); opacity: .7;
}
.about-name { font-size: 20px; font-weight: 750; margin-top: 20px; letter-spacing: -.01em; }
.about-ver { font-size: 11px; color: var(--text-3); margin-top: 4px; font-family: var(--font-num); }
.about-desc { font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.75; max-width: 270px; margin-top: 14px; }
.about-links { margin-top: 8px; }
.about-foot { text-align: center; font-size: 10px; color: var(--text-4); line-height: 1.9; padding: 24px 0 6px; }
.about-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; padding: 5px 10px; border-radius: 8px;
  background: var(--brand-100); color: var(--brand-600);
  font-size: 10.5px; font-weight: 600;
}
.about-badge .icon { width: 13px; height: 13px; }
