/* =========================================================
   岐黄声训 · Design System
   ========================================================= */
:root {
  --ink: #17352b;
  --ink-2: #345046;
  --muted: #748079;
  --muted-2: #9ba49e;
  --green-950: #06261e;
  --green-900: #0b3b2e;
  --green-800: #10503d;
  --green-700: #186751;
  --green-600: #2f7d64;
  --green-500: #4a9a7d;
  --green-100: #e6f1eb;
  --gold: #c49a4a;
  --gold-deep: #a67c2e;
  --gold-soft: #f4e8cf;
  --cream: #f6f1e7;
  --cream-2: #fbf8f1;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #e7dfd0;
  --line-soft: #efe9dd;
  --red: #b04a3a;
  --red-soft: #f8e9e4;
  --blue: #3b6e9a;
  --blue-soft: #eaf1f7;
  --purple: #6b5b95;
  --purple-soft: #f0edf7;
  --amber: #b5853f;
  --amber-soft: #f7f0e4;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Georgia", serif;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 26px 70px rgba(15, 47, 37, 0.14);
  --shadow-md: 0 12px 34px rgba(15, 47, 37, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 47, 37, 0.05);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(196, 154, 74, 0.28); }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.muted-small { color: var(--muted); font-size: 12px; }
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-600);
}
.eyebrow.light { color: rgba(246, 241, 231, 0.6); }
.text-link {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--green-700); font-size: 12px; font-weight: 600;
}
.text-link .icon { width: 14px; height: 14px; }
.text-link:hover { color: var(--green-900); }
.text-risk { color: var(--red) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green-800); color: var(--cream);
  box-shadow: 0 10px 24px rgba(11, 59, 46, 0.2);
}
.btn-primary:hover { background: var(--green-900); box-shadow: 0 14px 28px rgba(11, 59, 46, 0.26); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 10px 24px rgba(196, 154, 74, 0.24); }
.btn-gold:hover { background: #d3aa5d; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 253, 248, 0.7); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-800); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background 0.18s ease, color 0.18s ease;
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:hover { background: rgba(23, 53, 43, 0.06); }
.icon-btn.soft { background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.icon-btn.light { color: var(--cream); background: rgba(255, 255, 255, 0.08); }
.icon-btn.light:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn.active { color: var(--gold); }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
  background: rgba(23, 53, 43, 0.06); color: var(--ink-2);
}
.chip .icon { width: 11px; height: 11px; }
.chip-green { background: var(--green-100); color: var(--green-700); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-muted { background: rgba(23, 53, 43, 0.055); color: var(--muted); }
.chip-gold { background: var(--gold-soft); color: var(--gold-deep); }

.score-badge {
  display: inline-flex; align-items: baseline; gap: 1px;
  min-width: 44px; justify-content: center;
  padding: 5px 6px; border-radius: 9px;
  background: var(--green-100); color: var(--green-700);
}
.score-badge strong { font-family: var(--serif); font-size: 19px; line-height: 1; }
.score-badge small { font-size: 9px; }
.score-badge.gold { background: var(--gold-soft); color: var(--gold-deep); }
.score-badge.blue { background: var(--blue-soft); color: var(--blue); }
.score-badge.amber { background: var(--amber-soft); color: var(--amber); }
.score-badge.red { background: var(--red-soft); color: var(--red); }

/* ---------- Avatars ---------- */
.avatar {
  --size: 36px;
  width: var(--size); height: var(--size); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 45%),
    var(--avatar-color, var(--green-700));
  color: #fff; font-family: var(--serif); font-size: calc(var(--size) * 0.32);
  font-weight: 600; letter-spacing: 0.02em; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.avatar-xs { --size: 26px; }
.avatar-sm { --size: 34px; }
.avatar-md { --size: 44px; }
.avatar-lg { --size: 58px; }
.avatar-xl { --size: 76px; border: 2px solid rgba(196, 154, 74, 0.7); }

/* ---------- Sections & panels ---------- */
.screen { padding: 20px 20px 36px; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 8px 2px 20px;
}
.page-head h1 {
  margin-top: 5px; font-family: var(--serif); font-size: clamp(30px, 7.6vw, 38px);
  line-height: 1.22; font-weight: 600; letter-spacing: -0.03em;
}
.page-head-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-deep);
  background: var(--gold-soft); flex: none; margin-top: 4px;
}
.page-head-icon .icon { width: 21px; height: 21px; }
.panel {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 12px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3, .section-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.panel-kicker { display: block; margin-bottom: 2px; font-size: 8px; font-weight: 800; letter-spacing: 0.17em; color: var(--muted-2); }
.progress-label { font-size: 11px; color: var(--muted); }
.section-block { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h3 { font-size: 19px; }
.muted-block { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; background: rgba(23, 53, 43, 0.03); border-radius: 12px; }
.screen-footnote {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 24px; color: var(--muted-2); font-size: 10px; line-height: 1.6;
}
.screen-footnote .icon { width: 12px; height: 12px; margin-top: 2px; flex: none; }

/* ---------- Boot / loading ---------- */
.boot-screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 40%, #164f3f, var(--green-950) 70%);
  color: var(--cream);
}
.boot-seal {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid rgba(196, 154, 74, 0.6);
  display: grid; place-items: center; margin-bottom: 8px;
  font-family: var(--serif); font-size: 34px; color: var(--gold);
  position: relative;
}
.boot-seal::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(196, 154, 74, 0.25); border-radius: 50%; }
.boot-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.16em; }
.boot-sub { font-size: 11px; color: rgba(246, 241, 231, 0.55); letter-spacing: 0.06em; }
.boot-line { width: 120px; height: 2px; margin-top: 14px; background: rgba(255, 255, 255, 0.12); overflow: hidden; border-radius: 2px; }
.boot-line i { display: block; width: 40%; height: 100%; background: var(--gold); animation: boot-slide 1.2s ease-in-out infinite; }
@keyframes boot-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

.route-loading { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loading-mark { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 23px; color: var(--gold-deep); animation: soft-pulse 1.8s ease-in-out infinite; }
.route-loading p { font-size: 12px; letter-spacing: 0.08em; }
.loading-line { width: 130px; height: 2px; background: var(--line); overflow: hidden; }
.loading-line i { display: block; width: 45%; height: 100%; background: var(--green-600); animation: boot-slide 1.2s ease-in-out infinite; }

.in-page-error { min-height: 60vh; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.in-page-error > .icon { width: 42px; height: 42px; color: var(--red); margin-bottom: 4px; }
.in-page-error h3 { font-family: var(--serif); font-size: 24px; }
.in-page-error p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 320px; }
.error-actions { display: flex; gap: 8px; margin-top: 12px; }

/* =========================================================
   Login
   ========================================================= */
.login-body {
  background: var(--green-950);
  color: var(--cream);
  min-height: 100dvh;
}
.login-page {
  position: relative; min-height: 100dvh; overflow: hidden;
  padding: 26px clamp(22px, 5vw, 64px) 22px;
  background:
    radial-gradient(circle at 8% 8%, rgba(74, 154, 125, 0.18), transparent 36%),
    radial-gradient(circle at 84% 80%, rgba(196, 154, 74, 0.12), transparent 34%),
    linear-gradient(135deg, #0b3b2e 0%, #07291f 52%, #051f18 100%);
  display: flex; flex-direction: column;
}
.login-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image: linear-gradient(rgba(246, 241, 231, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 231, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 60% 45%, #000, transparent 78%);
}
.login-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.login-glow.one { width: 380px; height: 380px; border: 1px solid rgba(196, 154, 74, 0.15); right: -100px; top: -120px; }
.login-glow.two { width: 620px; height: 620px; border: 1px solid rgba(246, 241, 231, 0.05); right: -180px; bottom: -300px; }
.login-header, .login-main, .login-footer { position: relative; z-index: 2; }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(196, 154, 74, 0.7);
  display: grid; place-items: center; flex: none;
  font-family: var(--serif); font-size: 21px; color: var(--gold);
  background: rgba(255, 255, 255, 0.02);
}
.brand-seal.small { width: 38px; height: 38px; font-size: 18px; }
.login-brand strong, .stage-brand strong { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: 0.13em; font-weight: 600; }
.login-brand small, .stage-brand small { display: block; margin-top: 2px; font-size: 7px; letter-spacing: 0.2em; color: rgba(246, 241, 231, 0.5); }
.login-env {
  padding: 6px 12px; border: 1px solid rgba(246, 241, 231, 0.16); border-radius: 999px;
  font-size: 10px; letter-spacing: 0.08em; color: rgba(246, 241, 231, 0.62);
}
.login-main {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center; gap: clamp(30px, 5vw, 80px); padding: 40px 0 24px;
}
.login-copy { max-width: 610px; }
.login-copy h1 {
  margin: 14px 0 18px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5.2vw, 66px); line-height: 1.16; letter-spacing: -0.04em;
}
.login-copy h1 em { font-style: normal; color: var(--gold); white-space: nowrap; }
.login-lead { max-width: 500px; color: rgba(246, 241, 231, 0.64); font-size: 15px; line-height: 1.9; }
.login-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.role-card {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 16px 14px; border-radius: 16px;
  border: 1px solid rgba(246, 241, 231, 0.13);
  background: rgba(255, 255, 255, 0.045);
  color: var(--cream); transition: all 0.22s ease; overflow: hidden;
}
.role-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(120deg, rgba(196, 154, 74, 0.15), transparent 55%);
  transition: opacity 0.22s ease;
}
.role-card:hover { border-color: rgba(196, 154, 74, 0.55); transform: translateY(-2px); background: rgba(255, 255, 255, 0.07); }
.role-card:hover::after { opacity: 1; }
.role-card.admin { background: rgba(196, 154, 74, 0.09); }
.role-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(196, 154, 74, 0.15); color: var(--gold); flex: none;
}
.role-icon .icon { width: 18px; height: 18px; }
.role-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.role-body strong { font-size: 14px; letter-spacing: 0.02em; }
.role-body small { font-size: 10px; color: rgba(246, 241, 231, 0.56); }
.role-body i { font-style: normal; margin-top: 3px; font-size: 9px; color: var(--gold); opacity: 0.8; }
.role-arrow { margin-left: auto; color: rgba(246, 241, 231, 0.36); }
.role-arrow .icon { width: 16px; height: 16px; }
.role-card.loading { opacity: 0.7; pointer-events: none; }
.ops-login { margin-top: 18px; padding: 10px 11px; border-radius: 11px; border: 1px solid rgba(246, 241, 231, 0.1); background: rgba(255, 255, 255, 0.025); }
.ops-login-label { display: block; margin-bottom: 6px; font-size: 8px; letter-spacing: 0.12em; color: rgba(246, 241, 231, 0.35); }
.ops-login-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ops-login-chips button { display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: rgba(246, 241, 231, 0.66); font-size: 8px; }
.ops-login-chips button:hover { background: rgba(196, 154, 74, 0.15); color: var(--gold); }
.ops-login-chips .icon { width: 10px; height: 10px; }
.login-features { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; }
.login-features span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(246, 241, 231, 0.55); }
.login-features .icon { width: 13px; height: 13px; color: var(--gold); opacity: 0.8; }
.login-note {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 26px;
  font-size: 9px; line-height: 1.7; color: rgba(246, 241, 231, 0.36);
}
.login-note .icon { width: 12px; height: 12px; margin-top: 2px; }

.login-visual { position: relative; height: 530px; min-width: 0; }
.visual-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(196, 154, 74, 0.14); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit-a { width: 390px; height: 390px; }
.orbit-b { width: 520px; height: 520px; border-color: rgba(246, 241, 231, 0.06); }
.orbit-c { width: 260px; height: 260px; border-color: rgba(196, 154, 74, 0.08); }
.visual-card {
  position: absolute; border-radius: 18px; border: 1px solid rgba(246, 241, 231, 0.12);
  background: rgba(255, 255, 255, 0.055); backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.call-card { width: 272px; left: 50%; top: 50%; transform: translate(-58%, -54%); padding: 16px; z-index: 3; animation: float 7s ease-in-out infinite; }
.call-card-top { display: flex; align-items: center; gap: 7px; font-size: 9px; color: rgba(246, 241, 231, 0.6); }
.call-card-top .call-time { margin-left: auto; font-family: var(--serif); font-size: 11px; color: var(--gold); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fc4a8; box-shadow: 0 0 0 4px rgba(127, 196, 168, 0.12); animation: soft-pulse 2s ease-in-out infinite; display: inline-block; flex: none; }
.visual-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 18px auto 12px;
  display: grid; place-items: center; font-family: var(--serif); font-size: 28px;
  background: radial-gradient(circle at 35% 25%, #d08f70, #98523b);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.04);
}
.visual-wave { display: flex; align-items: center; justify-content: center; gap: 2px; height: 34px; margin: 0 auto 12px; }
.visual-wave i { width: 2px; height: var(--h); border-radius: 2px; background: rgba(196, 154, 74, 0.7); animation: wave 1.4s ease-in-out infinite; animation-delay: var(--d); }
.call-bubble { padding: 8px 11px; border-radius: 10px 10px 10px 3px; background: rgba(246, 241, 231, 0.08); font-size: 10px; color: rgba(246, 241, 231, 0.78); line-height: 1.6; }
.score-card { width: 210px; right: -12px; top: 6px; padding: 15px; z-index: 4; animation: float 8s ease-in-out 0.8s infinite; }
.score-mini-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: rgba(246, 241, 231, 0.55); }
.score-mini-top .chip { min-height: 18px; font-size: 8px; }
.score-mini-main { display: flex; align-items: baseline; margin: 12px 0 10px; gap: 3px; }
.score-mini-main strong { font-family: var(--serif); font-size: 42px; line-height: 1; color: var(--gold); font-weight: 500; }
.score-mini-main span { font-size: 10px; color: rgba(246, 241, 231, 0.5); }
.score-mini-main em { margin-left: auto; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 14px; border: 1px solid rgba(196, 154, 74, 0.4); color: var(--gold); }
.score-mini-bars { display: grid; gap: 6px; }
.score-mini-bars div { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 6px; font-size: 8px; color: rgba(246, 241, 231, 0.42); }
.score-mini-bars i { height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(196, 154, 74, 0.4), var(--gold)); }
.coach-card-mini { width: 230px; left: -26px; bottom: 26px; padding: 13px; z-index: 4; display: flex; gap: 9px; animation: float 9s ease-in-out 0.3s infinite; }
.coach-card-mini > span { color: var(--gold); flex: none; }
.coach-card-mini .icon { width: 16px; height: 16px; }
.coach-card-mini p { font-size: 9px; line-height: 1.7; color: rgba(246, 241, 231, 0.58); }
.coach-card-mini strong { display: block; margin-bottom: 2px; color: var(--cream); font-size: 10px; }
.visual-date { position: absolute; right: 8px; bottom: 12px; font-family: var(--serif); font-size: 9px; letter-spacing: 0.18em; color: rgba(246, 241, 231, 0.28); }
.login-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(246, 241, 231, 0.07);
  font-size: 8px; letter-spacing: 0.08em; color: rgba(246, 241, 231, 0.26);
}
@keyframes float { 0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); } 50% { transform: translateY(-10px) translateX(var(--tx, 0)); } }
.call-card { --tx: -58%; }
.score-card, .coach-card-mini { --tx: 0; }

/* =========================================================
   Employee frame
   ========================================================= */
.employee-body {
  background:
    radial-gradient(circle at 12% 12%, rgba(74, 154, 125, 0.12), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(196, 154, 74, 0.12), transparent 30%),
    #e9eee8;
  min-height: 100dvh;
}
.employee-stage {
  min-height: 100dvh; max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 58px;
  padding: 28px 36px;
}
.stage-aside { width: 420px; flex: none; color: var(--ink); }
.stage-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 52px; }
.stage-brand .brand-seal { color: var(--green-800); border-color: rgba(11, 59, 46, 0.22); }
.stage-brand strong { font-size: 18px; letter-spacing: 0.14em; }
.stage-brand small { color: var(--muted-2); }
.stage-copy .eyebrow { color: var(--green-600); }
.stage-copy h1 {
  margin: 16px 0 18px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 4.2vw, 58px); line-height: 1.14; letter-spacing: -0.045em;
}
.stage-copy h1 em { font-style: normal; color: var(--gold-deep); }
.stage-desc { max-width: 340px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.stage-points { display: grid; gap: 17px; margin-top: 38px; }
.stage-points > div { display: flex; gap: 14px; }
.stage-points > div > span { font-family: var(--serif); font-size: 11px; color: var(--gold-deep); padding-top: 2px; }
.stage-points p { display: flex; flex-direction: column; gap: 2px; }
.stage-points strong { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }
.stage-points small { font-size: 10px; line-height: 1.6; color: var(--muted-2); }
.stage-quote { margin-top: 44px; padding-left: 16px; border-left: 1px solid rgba(196, 154, 74, 0.45); }
.quote-mark { display: block; height: 18px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold); }
.stage-quote p { margin: 2px 0 8px; font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink-2); letter-spacing: 0.02em; }
.stage-quote small { font-size: 9px; letter-spacing: 0.08em; color: var(--muted-2); }
.stage-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 14px; border-top: 1px solid rgba(23, 53, 43, 0.09); font-size: 8px; letter-spacing: 0.08em; color: var(--muted-2); }
.stage-foot span { display: inline-flex; align-items: center; gap: 4px; }
.stage-foot .icon { width: 12px; height: 12px; }

.phone-shell {
  position: relative; width: 460px; height: min(900px, calc(100dvh - 52px));
  min-height: 620px; flex: none; display: flex; flex-direction: column;
  background: var(--cream-2); border-radius: 44px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 40px 90px rgba(15, 47, 37, 0.2), 0 0 0 7px rgba(255, 255, 255, 0.24);
}
.phone-status {
  height: 32px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; font-size: 10px; font-weight: 700; color: var(--ink-2);
  background: var(--cream-2); position: relative; z-index: 20;
}
.phone-island { width: 84px; height: 19px; border-radius: 999px; background: var(--green-950); position: absolute; left: 50%; top: 6px; transform: translateX(-50%); }
.status-icons .icon { width: 14px; height: 14px; }
.app-view { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 84px; scrollbar-width: none; }
.app-view::-webkit-scrollbar { display: none; }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(8px + var(--safe-bottom));
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(231, 223, 208, 0.8);
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px; border-radius: 10px; color: var(--muted-2);
  font-size: 9px; font-weight: 600; transition: color 0.18s ease;
}
.tab-icon { width: 34px; height: 28px; border-radius: 9px; display: grid; place-items: center; transition: background 0.18s ease, color 0.18s ease; }
.tab-icon .icon { width: 19px; height: 19px; }
.tab-item.active { color: var(--green-800); }
.tab-item.active .tab-icon { background: var(--green-100); color: var(--green-800); }
.tab-item:hover { color: var(--green-700); }

/* =========================================================
   Home
   ========================================================= */
.home-screen { padding-top: 12px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 2px 16px; }
.home-date { font-size: 9px; letter-spacing: 0.11em; color: var(--muted-2); margin-bottom: 4px; }
.home-head h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions .icon-btn { position: relative; }
.notif-dot { position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); border: 1px solid var(--paper); }
.head-avatar { display: block; border-radius: 50%; }

.practice-hero {
  position: relative; overflow: hidden; border-radius: 26px;
  padding: 20px 20px 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(196, 154, 74, 0.19), transparent 36%),
    radial-gradient(circle at 8% 100%, rgba(74, 154, 125, 0.23), transparent 46%),
    linear-gradient(145deg, #0e4637, #072a21 70%);
  color: var(--cream); box-shadow: 0 20px 44px rgba(9, 48, 38, 0.22);
}
.hero-orb { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(196, 154, 74, 0.16); right: -64px; top: -72px; }
.hero-orb::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(246, 241, 231, 0.06); border-radius: 50%; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image: linear-gradient(rgba(246, 241, 231, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 231, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: rgba(246, 241, 231, 0.7); text-transform: uppercase; }
.hero-duration { font-size: 9px; color: rgba(246, 241, 231, 0.42); }
.practice-hero h2 { position: relative; margin: 16px 0 8px; font-family: var(--serif); font-size: 32px; line-height: 1.28; font-weight: 500; letter-spacing: -0.03em; }
.hero-sub { position: relative; font-size: 11px; line-height: 1.7; color: rgba(246, 241, 231, 0.55); }
.hero-wave { display: flex; align-items: center; gap: 2px; height: 30px; margin: 12px 0 16px; opacity: 0.7; }
.hero-wave i { width: 2px; height: var(--h); background: rgba(196, 154, 74, 0.8); border-radius: 2px; animation: wave 1.6s ease-in-out infinite; animation-delay: var(--d); }
.hero-bottom { position: relative; display: flex; align-items: center; gap: 14px; }
.hero-bottom .btn { min-height: 42px; padding: 0 18px; font-size: 12px; }
.hero-meta { display: flex; flex-direction: column; gap: 1px; padding-left: 2px; }
.hero-meta strong { font-family: var(--serif); font-size: 18px; color: var(--gold); line-height: 1; font-weight: 500; }
.hero-meta span { font-size: 8px; color: rgba(246, 241, 231, 0.42); }
.hero-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(246, 241, 231, 0.1); }
.hero-tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; color: rgba(246, 241, 231, 0.47); }
.hero-tags .icon { width: 11px; height: 11px; color: var(--gold); opacity: 0.8; }

.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.quick-stat {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 15px;
  padding: 11px 11px 10px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow-sm);
}
.quick-stat > span { font-size: 8px; color: var(--muted); letter-spacing: 0.02em; }
.quick-stat strong { font-family: var(--serif); font-size: 25px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.quick-stat strong small { margin-left: 1px; font-family: var(--sans); font-size: 8px; color: var(--muted); font-weight: 500; }
.quick-stat em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 8px; color: var(--muted-2); }
.quick-stat em .icon { width: 10px; height: 10px; }
.quick-stat em.up { color: var(--green-600); }
.quick-stat em.muted { opacity: 0.7; }

.tongue-entry { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: linear-gradient(110deg, #f5ede7, #fcf8f2); border: 1px solid rgba(138, 90, 68, 0.16); }
.tongue-entry-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(138, 90, 68, 0.12); color: #8a5a44; display: grid; place-items: center; flex: none; }
.tongue-entry-icon .icon { width: 16px; height: 16px; }
.tongue-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tongue-entry-body small { font-size: 7px; font-weight: 700; letter-spacing: 0.05em; color: #8a5a44; }
.tongue-entry-body strong { font-size: 9px; line-height: 1.5; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tongue-entry-arrow { display: inline-flex; align-items: center; gap: 2px; font-size: 8px; font-weight: 700; color: #8a5a44; flex: none; }
.tongue-entry-arrow .icon { width: 10px; height: 10px; }
.fulfill-entry { margin-top: 7px; background: linear-gradient(110deg, #edf5f0, #f7faf7); border-color: rgba(47, 125, 100, 0.16); }
.fulfill-entry .tongue-entry-icon { background: rgba(47, 125, 100, 0.11); color: var(--green-700); }
.fulfill-entry .tongue-entry-body small, .fulfill-entry .tongue-entry-arrow { color: var(--green-700); }
.today-panel, .ability-panel, .learning-panel { margin-top: 12px; }
.today-list { display: grid; gap: 2px; }
.today-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid rgba(231, 223, 208, 0.55); position: relative;
}
.today-item:last-child { border-bottom: 0; }
.today-check { width: 30px; height: 30px; border-radius: 50%; background: rgba(23, 53, 43, 0.045); color: var(--muted); display: grid; place-items: center; flex: none; }
.today-check .icon { width: 14px; height: 14px; }
.today-item.done .today-check { background: var(--green-100); color: var(--green-700); }
.today-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.today-body strong { font-size: 11px; font-weight: 600; }
.today-body small { font-size: 9px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-progress { width: 42px; height: 3px; border-radius: 3px; background: rgba(23, 53, 43, 0.07); overflow: hidden; flex: none; }
.today-progress i { display: block; height: 100%; border-radius: 3px; background: var(--green-600); }
.today-item.done .today-progress i { background: var(--gold); }
.today-item .row-chevron { color: var(--muted-2); width: 14px; height: 14px; }

.exam-callout {
  display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 13px 15px;
  border-radius: 16px; background: linear-gradient(120deg, #f5ead3, #fbf5e8);
  border: 1px solid rgba(196, 154, 74, 0.24);
}
.exam-callout-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(196, 154, 74, 0.18); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.exam-callout > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.exam-callout small { font-size: 8px; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.04em; }
.exam-callout strong { font-size: 11px; font-weight: 700; }
.exam-callout em { font-style: normal; font-size: 8px; color: var(--muted); }
.exam-callout-arrow { color: var(--gold-deep); }
.exam-callout-arrow .icon { width: 15px; height: 15px; }

.delta-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; color: var(--green-600); background: var(--green-100); border-radius: 999px; padding: 4px 7px; }
.delta-chip .icon { width: 11px; height: 11px; }
.ability-chart { margin: -8px -6px 0; }
.ability-chart svg { width: 100%; height: auto; max-height: 245px; }
.radar-name { font-family: var(--sans); font-size: 9px; fill: var(--muted); }
.radar-score { font-family: var(--serif); font-size: 12px; font-weight: 700; fill: var(--ink); }
.weak-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.weak-row > span { font-size: 8px; color: var(--muted-2); letter-spacing: 0.06em; }
.weak-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 9px; font-weight: 600; }
.weak-tag strong { font-family: var(--serif); font-size: 11px; }
.weak-row .text-link { margin-left: auto; }

.scenario-scroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
.scenario-scroll::-webkit-scrollbar { display: none; }
.scenario-card {
  position: relative; min-width: 238px; max-width: 238px; padding: 14px;
  border-radius: 18px; border: 1px solid rgba(231, 223, 208, 0.6);
  background: linear-gradient(160deg, var(--sc-soft), var(--paper) 66%);
  color: var(--ink); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.scenario-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.scenario-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scenario-cat { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; color: var(--sc); }
.scenario-level { font-size: 8px; color: var(--muted-2); }
.scenario-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.66); color: var(--sc); display: grid; place-items: center; margin: 10px 0 9px; }
.scenario-icon .icon { width: 15px; height: 15px; }
.scenario-card h3 { font-family: var(--serif); font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
.scenario-card p { margin-top: 4px; font-size: 9px; line-height: 1.6; color: var(--muted); min-height: 28px; }
.scenario-persona { display: flex; align-items: center; gap: 5px; margin: 9px 0; font-size: 8px; color: var(--muted); }
.mini-avatar { width: 19px; height: 19px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 8px; }
.scenario-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(23, 53, 43, 0.08); font-size: 8px; color: var(--muted-2); }
.scenario-foot span { display: inline-flex; align-items: center; gap: 3px; }
.scenario-foot .icon { width: 10px; height: 10px; }
.scenario-foot .best { color: var(--gold-deep); font-weight: 700; }
.scenario-foot .start-link { color: var(--sc); font-weight: 700; }

.learning-count { font-family: var(--serif); font-size: 14px; color: var(--gold-deep); }
.learning-row { display: flex; align-items: center; gap: 11px; padding: 11px 0 12px; }
.learning-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.learning-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.learning-body strong { font-size: 11px; }
.learning-body small { font-size: 9px; color: var(--muted-2); }
.line-progress { width: 100%; height: 3px; border-radius: 3px; background: rgba(23, 53, 43, 0.07); margin-top: 2px; overflow: hidden; }
.line-progress i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
.learning-arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--green-700); }
.learning-arrow .icon { width: 12px; height: 12px; }
.tip-line { display: flex; gap: 7px; align-items: flex-start; padding: 10px 11px; border-radius: 10px; background: rgba(196, 154, 74, 0.08); }
.tip-line .icon { width: 13px; height: 13px; color: var(--gold-deep); margin-top: 2px; flex: none; }
.tip-line p { font-size: 9px; line-height: 1.7; color: var(--ink-2); }

.session-list { display: grid; gap: 6px; }
.session-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.session-row:hover { border-color: rgba(47, 125, 100, 0.3); transform: translateY(-1px); }
.session-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.session-icon .icon { width: 15px; height: 15px; }
.session-icon.risk { background: var(--red-soft); color: var(--red); }
.session-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.session-body strong { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-body small { font-size: 8px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-row .row-chevron { width: 13px; height: 13px; color: var(--muted-2); }

/* =========================================================
   Practice list
   ========================================================= */
.practice-intro {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 12px;
  padding: 20px; border-radius: 20px; color: var(--cream);
  background: linear-gradient(135deg, #10503d, #072a21);
}
.practice-intro h2 { margin: 12px 0 6px; font-family: var(--serif); font-size: 25px; line-height: 1.3; font-weight: 500; letter-spacing: -0.03em; }
.practice-intro p { font-size: 10px; line-height: 1.7; color: rgba(246, 241, 231, 0.55); }
.intro-wave { display: flex; align-items: center; gap: 2px; width: 72px; flex: none; opacity: 0.5; }
.intro-wave i { width: 2px; height: var(--h); background: var(--gold); border-radius: 2px; animation: wave 1.8s ease-in-out infinite; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; margin: 16px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; min-height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  font-size: 10px; font-weight: 600; transition: all 0.18s ease;
}
.filter-chip.active { background: var(--green-800); border-color: var(--green-800); color: var(--cream); }
.list-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 13px 2px 9px; font-size: 9px; color: var(--muted-2); }
.list-caption span { display: inline-flex; align-items: center; gap: 3px; }
.list-caption .icon { width: 10px; height: 10px; }
.scenario-grid { display: grid; gap: 10px; }
.practice-card {
  position: relative; display: block; padding: 17px; border-radius: 20px;
  border: 1px solid var(--line-soft); overflow: hidden;
  background: linear-gradient(140deg, var(--sc-soft), var(--paper) 62%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.practice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.practice-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.level-dot { font-size: 9px; color: var(--green-600); }
.level-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: 1px; }
.level-dot.mid { color: var(--amber); }
.level-dot.hard { color: var(--red); }
.practice-card-icon { position: absolute; right: 16px; top: 42px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); color: var(--sc); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.75); }
.practice-card-icon .icon { width: 20px; height: 20px; }
.practice-card h3 { margin: 14px 58px 5px 0; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.practice-card > p { max-width: calc(100% - 50px); font-size: 10px; line-height: 1.7; color: var(--muted); }
.practice-card-persona { display: flex; align-items: center; gap: 6px; margin: 12px 0; font-size: 9px; color: var(--muted); }
.practice-card-foot { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(23, 53, 43, 0.07); font-size: 8px; color: var(--muted-2); }
.practice-card-foot span { display: inline-flex; align-items: center; gap: 3px; }
.practice-card-foot .icon { width: 10px; height: 10px; }
.practice-start { margin-left: auto; color: var(--sc); font-weight: 700; }
.practice-note { display: flex; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 12px; background: rgba(23, 53, 43, 0.035); }
.practice-note .icon { width: 13px; height: 13px; color: var(--green-600); flex: none; margin-top: 1px; }
.practice-note p { font-size: 9px; line-height: 1.7; color: var(--muted); }

/* =========================================================
   Knowledge
   ========================================================= */
.search-box {
  display: flex; align-items: center; gap: 9px; padding: 0 14px; height: 44px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.search-box > .icon { width: 17px; height: 17px; color: var(--muted-2); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: var(--muted-2); }
.search-box kbd { font-family: var(--sans); font-size: 8px; color: var(--muted-2); background: rgba(23, 53, 43, 0.045); padding: 3px 6px; border-radius: 6px; }
.knowledge-progress {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 12px; padding: 16px; border-radius: 18px;
  background: linear-gradient(130deg, #f2e6cd, #fbf7ef);
  border: 1px solid rgba(196, 154, 74, 0.22);
}
.kp-copy { flex: 1; min-width: 0; }
.kp-copy h3 { margin: 3px 0 5px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.kp-copy p { font-size: 9px; line-height: 1.7; color: var(--muted); }
.kp-copy p strong { color: var(--gold-deep); font-size: 12px; }
.progress-track { height: 4px; border-radius: 4px; background: rgba(23, 53, 43, 0.08); overflow: hidden; margin-top: 9px; }
.progress-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), #d8b66d); }
.ring-score { position: relative; flex: none; }
.ring-score svg { position: absolute; inset: 0; }
.ring-progress { animation: ring-draw 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes ring-draw { from { stroke-dashoffset: var(--circumference); } to { stroke-dashoffset: var(--target); } }
.ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.ring-inner strong { font-family: var(--serif); font-size: 39px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.ring-inner span { font-size: 8px; color: var(--muted); letter-spacing: 0.04em; }
.ring-score.compact .ring-inner strong { font-size: 25px; }
.ring-score.compact .ring-inner span { font-size: 7px; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.category-tile {
  position: relative; text-align: left; padding: 13px; border-radius: 14px;
  background: var(--s); border: 1px solid transparent; transition: all 0.18s ease;
}
.category-tile:hover, .category-tile.active { border-color: var(--c); transform: translateY(-1px); }
.cat-icon { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.6); color: var(--c); margin-bottom: 7px; }
.cat-icon .icon { width: 14px; height: 14px; }
.category-tile strong { display: block; font-size: 11px; font-weight: 600; }
.category-tile small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); }
.cat-progress { display: block; width: 100%; height: 2px; background: rgba(23, 53, 43, 0.08); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.cat-progress b { display: block; height: 100%; background: var(--c); border-radius: 2px; }
.article-list { display: grid; gap: 6px; }
.article-row {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--line-soft); background: var(--paper); border-radius: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.article-row:hover { border-color: rgba(47, 125, 100, 0.3); transform: translateY(-1px); }
.article-cat-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--s); color: var(--c); display: grid; place-items: center; flex: none; }
.article-cat-icon .icon { width: 17px; height: 17px; }
.article-cat-icon.large { width: 46px; height: 46px; border-radius: 14px; }
.article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.article-meta { display: flex; align-items: center; gap: 6px; font-size: 8px; color: var(--muted-2); }
.article-meta em { font-style: normal; color: var(--green-600); font-weight: 600; }
.article-meta i { font-style: normal; }
.read-badge { display: inline-flex; align-items: center; gap: 2px; font-size: 7px; font-weight: 600; color: var(--green-600); }
.read-badge .icon { width: 8px; height: 8px; }
.article-body strong { font-size: 11px; font-weight: 600; line-height: 1.4; }
.article-body small { font-size: 8px; line-height: 1.5; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.article-row .row-chevron { width: 13px; height: 13px; color: var(--muted-2); }

/* ---------- Article detail ---------- */
.article-screen { padding-top: 10px; }
.subpage-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 16px; }
.subpage-title { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.subpage-right { width: 38px; text-align: right; font-size: 9px; color: var(--muted-2); }
.article-head { padding: 4px 2px 0; }
.article-head .article-cat-icon { margin-bottom: 12px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.article-tags span { padding: 3px 7px; border-radius: 5px; background: var(--green-100); color: var(--green-700); font-size: 8px; }
.article-head h1 { font-family: var(--serif); font-size: 29px; line-height: 1.35; font-weight: 600; letter-spacing: -0.03em; }
.article-summary { margin-top: 10px; font-size: 10px; line-height: 1.8; color: var(--muted); }
.article-meta-line { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); font-size: 8px; color: var(--muted-2); }
.article-meta-line span { display: inline-flex; align-items: center; gap: 3px; }
.article-meta-line .icon { width: 10px; height: 10px; }
.key-points { margin: 16px 0; padding: 15px; border-radius: 14px; background: linear-gradient(130deg, #f4e8cf, #fcf8ef); border-left: 3px solid var(--gold); }
.key-title { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; font-size: 10px; font-weight: 700; color: var(--gold-deep); }
.key-title .icon { width: 13px; height: 13px; }
.key-points li { position: relative; padding-left: 13px; font-size: 10px; line-height: 1.8; color: var(--ink-2); }
.key-points li::before { content: "·"; position: absolute; left: 2px; color: var(--gold); font-weight: 900; }
.article-figure { margin: 16px 0 4px; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line-soft); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { display: flex; align-items: flex-start; gap: 4px; padding: 8px 10px; font-size: 8px; line-height: 1.6; color: var(--muted-2); }
.article-figure figcaption .icon { width: 11px; height: 11px; flex: none; margin-top: 1px; color: var(--gold-deep); }
.content-section { margin: 24px 0; }
.content-section h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.content-section h2 span { font-family: var(--sans); font-size: 8px; font-weight: 800; color: var(--gold-deep); letter-spacing: 0.08em; }
.content-section p { font-size: 11px; line-height: 1.95; color: var(--ink-2); }
.content-list { margin-top: 10px; display: grid; gap: 6px; }
.content-list li { position: relative; padding: 6px 8px 6px 20px; border-radius: 7px; background: rgba(23, 53, 43, 0.035); font-size: 10px; line-height: 1.65; color: var(--ink-2); }
.content-list li::before { content: ""; position: absolute; left: 9px; top: 13px; width: 4px; height: 4px; border-radius: 50%; background: var(--green-600); }
.script-section { margin-top: 26px; }
.script-card { padding: 13px; border-radius: 12px; background: var(--green-100); border: 1px solid rgba(47, 125, 100, 0.13); margin-bottom: 8px; }
.script-card.bad { background: var(--red-soft); border-color: rgba(176, 74, 58, 0.12); }
.script-label { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; color: var(--green-700); }
.script-card.bad .script-label { color: var(--red); }
.script-label .icon { width: 11px; height: 11px; }
.script-card p { margin-top: 6px; font-size: 10px; line-height: 1.8; color: var(--ink-2); }
.related-practice {
  display: flex; align-items: center; gap: 11px; margin: 22px 0;
  padding: 14px; border-radius: 16px; background: linear-gradient(130deg, var(--sc-soft), var(--paper));
  border: 1px solid rgba(231, 223, 208, 0.7);
}
.rp-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.65); color: var(--sc); display: grid; place-items: center; flex: none; }
.rp-icon .icon { width: 16px; height: 16px; }
.related-practice > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.related-practice small { font-size: 8px; color: var(--muted-2); }
.related-practice strong { font-size: 11px; }
.related-practice em { font-style: normal; font-size: 8px; color: var(--muted); }
.rp-arrow { color: var(--sc); }
.rp-arrow .icon { width: 15px; height: 15px; }
.related-reading { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.related-reading a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(231, 223, 208, 0.5); font-size: 10px; }
.related-reading a:last-child { border-bottom: 0; }
.related-reading small { display: inline-flex; align-items: center; gap: 2px; color: var(--muted-2); font-size: 8px; }
.related-reading .icon { width: 10px; height: 10px; }
.article-disclaimer { margin-top: 24px; padding: 11px; border-radius: 10px; background: rgba(23, 53, 43, 0.035); font-size: 8px; line-height: 1.7; color: var(--muted-2); display: flex; gap: 6px; }
.article-disclaimer .icon { width: 11px; height: 11px; flex: none; margin-top: 1px; }

/* =========================================================
   Customer reception
   ========================================================= */
.reception-screen { padding-top: 10px; }
.profile-permission { margin: 0 4px 12px; }
.permission-banner { padding: 13px; border-radius: 14px; background: linear-gradient(120deg, #eef4f0, #f8f6ef); border: 1px solid rgba(47, 125, 100, 0.14); }
.permission-title { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--green-700); }
.permission-title .icon { width: 13px; height: 13px; }
.permission-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.perm-yes, .perm-no { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 5px; font-size: 7px; font-weight: 600; }
.perm-yes { background: var(--green-100); color: var(--green-700); }
.perm-no { background: rgba(176, 74, 58, 0.08); color: var(--red); }
.perm-yes .icon, .perm-no .icon { width: 8px; height: 8px; }
.permission-banner p { font-size: 8px; line-height: 1.7; color: var(--muted); }
.reception-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0; }
.reception-stats div { padding: 10px 8px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reception-stats strong { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1; }
.reception-stats span { font-size: 7px; color: var(--muted-2); }
.reception-form-panel { padding: 16px; }
.form-grid { display: grid; gap: 8px; margin-bottom: 8px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.reception-form-panel label, .photo-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 8px; color: var(--muted); }
.reception-form-panel input, .reception-form-panel select, .reception-form-panel textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  padding: 8px 9px; font-size: 10px; line-height: 1.5; outline: none; color: var(--ink);
}
.reception-form-panel input:focus, .reception-form-panel select:focus, .reception-form-panel textarea:focus { border-color: var(--green-600); }
.reception-form-panel textarea { resize: vertical; }
.photo-field { border: 0; padding: 0; }
.photo-field legend { font-size: 8px; color: var(--muted); margin-bottom: 4px; }
.photo-field .check-line { flex-direction: row; align-items: center; gap: 5px; margin: 0 8px 0 0; display: inline-flex; font-size: 9px; color: var(--ink-2); }
.photo-field .check-line input { width: auto; }
.photo-field > span { font-size: 7px; color: var(--muted-2); }
.locked-clinical { margin: 8px 0 10px; padding: 9px 10px; border-radius: 8px; background: rgba(23, 53, 43, 0.035); border: 1px dashed var(--line); }
.locked-clinical span { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; color: var(--muted); }
.locked-clinical .icon { width: 11px; height: 11px; }
.locked-clinical p { margin-top: 2px; font-size: 8px; color: var(--muted-2); }
.reception-form-panel .btn { width: 100%; min-height: 42px; font-size: 10px; }
.reception-record { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px; margin-bottom: 7px; }
.rr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rr-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rr-name > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rr-name strong { font-size: 11px; }
.rr-name small { font-size: 7px; color: var(--muted-2); }
.rr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.rr-fields > div { min-width: 0; }
.rr-fields span { display: block; font-size: 7px; color: var(--muted-2); }
.rr-fields p { margin-top: 1px; font-size: 9px; line-height: 1.5; color: var(--ink-2); word-break: break-word; }
.rr-notes { display: flex; gap: 4px; margin-top: 8px; padding: 7px; border-radius: 6px; background: rgba(196, 154, 74, 0.08); font-size: 8px; line-height: 1.6; color: var(--ink-2); }
.rr-notes .icon { width: 10px; height: 10px; flex: none; margin-top: 1px; color: var(--gold-deep); }
.rr-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-soft); }
.rr-submit-row > span { display: flex; align-items: center; gap: 3px; font-size: 7px; color: var(--muted-2); }
.rr-submit-row .btn { min-height: 30px; width: auto; padding: 0 9px; font-size: 8px; }
.rr-submit-row .icon { width: 9px; height: 9px; }
.rr-submitted { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding: 7px 8px; border-radius: 6px; background: var(--green-100); font-size: 8px; color: var(--green-700); }
.rr-submitted .icon { width: 10px; height: 10px; }
.rr-not-eligible { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; padding: 7px 8px; border-radius: 6px; background: rgba(176, 74, 58, 0.055); font-size: 7px; line-height: 1.6; color: var(--red); }
.rr-not-eligible .icon { width: 10px; height: 10px; flex: none; margin-top: 1px; }
.rr-foot { display: flex; align-items: center; gap: 3px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-soft); font-size: 7px; color: var(--muted-2); }
.rr-foot .icon { width: 9px; height: 9px; }
@media (max-width: 390px) { .form-grid.two { grid-template-columns: 1fr; } }

/* =========================================================
   Fulfillment orders (employee)
   ========================================================= */
.orders-screen { padding-top: 10px; }
.orders-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 12px; }
.orders-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line-soft); }
.orders-stats strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.orders-stats span { font-size: 7px; color: var(--muted-2); }
.orders-list { display: grid; gap: 9px; }
.order-card { padding: 13px; border-radius: 15px; background: var(--paper); border: 1px solid var(--line-soft); }
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.order-id { font-family: var(--sans); font-size: 7px; letter-spacing: 0.06em; color: var(--muted-2); }
.order-card-head h3 { margin-top: 2px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.order-card-head h3 small { font-family: var(--sans); font-size: 8px; font-weight: 400; color: var(--muted-2); margin-left: 3px; }
.order-desc { margin-top: 5px; font-size: 8px; line-height: 1.6; color: var(--muted); }
.order-progress { display: flex; align-items: flex-start; gap: 2px; margin: 11px 0 9px; padding: 9px 4px; border-radius: 8px; background: rgba(23, 53, 43, 0.025); }
.order-progress > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.order-progress span { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 53, 43, 0.07); color: var(--muted-2); font-size: 7px; }
.order-progress span .icon { width: 9px; height: 9px; }
.order-progress em { font-style: normal; font-size: 6px; color: var(--muted-2); white-space: nowrap; transform: scale(0.92); }
.order-progress .done span { background: var(--green-600); color: #fff; }
.order-progress .done em { color: var(--green-700); }
.order-progress .current span { background: var(--gold); color: var(--green-950); box-shadow: 0 0 0 3px rgba(196, 154, 74, 0.12); }
.order-progress .current em { color: var(--gold-deep); font-weight: 700; }
.shipping-box { padding: 8px 9px; border-radius: 8px; background: var(--green-100); border: 1px solid rgba(47, 125, 100, 0.12); }
.shipping-box > div:first-child { display: flex; align-items: baseline; gap: 5px; }
.shipping-box span { font-size: 7px; color: var(--muted); }
.shipping-box strong { font-size: 9px; }
.shipping-box em { font-style: normal; font-family: var(--serif); font-size: 11px; color: var(--green-700); }
.copy-btn { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; font-size: 7px; color: var(--green-700); }
.copy-btn .icon { width: 9px; height: 9px; }
.shipping-photos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.shipping-photos span { display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); font-size: 6px; color: var(--muted); }
.shipping-photos .icon { width: 8px; height: 8px; }
.shipping-thumbs { display: flex; gap: 4px; margin-top: 5px; }
.shipping-thumbs img { width: 42px; height: 42px; object-fit: cover; border-radius: 5px; border: 1px solid rgba(47, 125, 100, 0.2); }
.order-action { width: 100%; margin-top: 9px; min-height: 37px; font-size: 9px; }
.handover-box { margin-top: 9px; padding: 9px; border-radius: 8px; background: var(--gold-soft); }
.handover-box > div { display: flex; gap: 5px; align-items: flex-start; margin-bottom: 7px; }
.handover-box > div > .icon { width: 13px; height: 13px; color: var(--gold-deep); flex: none; margin-top: 1px; }
.handover-box p { display: flex; flex-direction: column; gap: 1px; }
.handover-box strong { font-size: 9px; }
.handover-box small { font-size: 7px; line-height: 1.5; color: var(--muted); }
.handover-done { display: flex; gap: 6px; margin-top: 9px; padding: 9px; border-radius: 8px; background: var(--green-100); }
.handover-done > .icon { width: 15px; height: 15px; color: var(--green-700); flex: none; margin-top: 1px; }
.handover-done strong { font-size: 9px; }
.handover-done p { margin-top: 2px; font-size: 7px; line-height: 1.6; color: var(--muted); }
.handover-done span { display: inline-block; margin-top: 3px; font-size: 7px; color: var(--green-700); }
.notify-preview { margin-top: 10px; padding: 10px; border-radius: 7px; background: var(--green-100); border: 1px solid rgba(47, 125, 100, 0.15); font-size: 9px; line-height: 1.75; color: var(--ink-2); }
.notify-note { display: flex; gap: 3px; margin-top: 3px; font-size: 7px; line-height: 1.55; color: var(--muted); }
.notify-note .icon { width: 9px; height: 9px; flex: none; margin-top: 1px; }
.order-details { margin-top: 9px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.order-details summary { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--muted); cursor: pointer; list-style: none; }
.order-details summary::-webkit-details-marker { display: none; }
.order-details summary span { margin-left: auto; font-size: 7px; color: var(--muted-2); }
.order-details summary .icon { width: 10px; height: 10px; }
.order-timeline { margin-top: 7px; display: grid; gap: 6px; }
.ot-row { display: flex; gap: 6px; }
.ot-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-600); flex: none; margin-top: 4px; }
.ot-row > div { display: flex; flex-direction: column; gap: 1px; }
.ot-row strong { font-size: 8px; }
.ot-row small { font-size: 7px; color: var(--muted-2); }
.ot-row p { font-size: 7px; line-height: 1.5; color: var(--muted); }

/* =========================================================
   Provider workbench
   ========================================================= */
.work-body { background: #eef1ec; }
.work-body .app-view { padding-bottom: 0; overflow-y: auto; }
.work-screen { max-width: 980px; margin: 0 auto; padding: 20px 22px 42px; }
.work-head { border-radius: 20px; padding: 18px 20px; color: var(--cream); background: linear-gradient(145deg, #0f4a39, #072a21); position: relative; overflow: hidden; }
.work-head::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(196, 154, 74, 0.15); border-radius: 50%; right: -50px; top: -70px; }
.work-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.work-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 13px; letter-spacing: 0.05em; }
.work-brand .brand-seal { width: 28px; height: 28px; font-size: 13px; }
.work-role-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 4px 7px; border-radius: 999px; background: rgba(196, 154, 74, 0.16); color: var(--gold); font-size: 8px; position: relative; z-index: 1; }
.work-role-chip .icon { width: 10px; height: 10px; }
.work-head h1 { margin-top: 5px; font-family: var(--serif); font-size: clamp(27px, 4vw, 38px); font-weight: 500; position: relative; z-index: 1; }
.work-head p { margin-top: 3px; font-size: 10px; color: rgba(246, 241, 231, 0.55); position: relative; z-index: 1; }
.work-user { margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(246, 241, 231, 0.1); font-size: 8px; color: rgba(246, 241, 231, 0.42); position: relative; z-index: 1; }
.work-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 16px; }
.work-stats div { padding: 11px 13px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.work-stats strong { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1; }
.work-stats span { font-size: 8px; color: var(--muted-2); }
.work-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.work-toolbar h3 { font-family: var(--serif); font-size: 18px; }
.work-list { display: grid; gap: 8px; }
.work-order { padding: 14px; border-radius: 13px; background: var(--paper); border: 1px solid var(--line-soft); }
.wo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wo-head h3 { margin-top: 2px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.wo-head h3 small { margin-left: 3px; font-family: var(--sans); font-size: 8px; font-weight: 400; color: var(--muted-2); }
.wo-plan { margin-top: 4px; font-size: 9px; color: var(--muted); }
.wo-rx { display: flex; gap: 7px; margin-top: 7px; padding: 7px 8px; border-radius: 7px; background: rgba(23, 53, 43, 0.03); }
.wo-rx > .icon { width: 13px; height: 13px; color: var(--green-700); flex: none; margin-top: 1px; }
.wo-rx > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wo-rx strong { font-size: 9px; }
.wo-rx span { font-size: 8px; line-height: 1.5; color: var(--muted); }
.wo-rx small { font-size: 7px; color: var(--muted-2); }
.wo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-soft); }
.wo-foot .table-link { font-size: 8px; }
.wo-links { display: flex; gap: 10px; }
.intake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.intake-grid > div { padding: 8px; border-radius: 7px; background: rgba(23, 53, 43, 0.035); }
.intake-grid .wide { grid-column: 1 / -1; }
.intake-grid span { display: block; font-size: 7px; color: var(--muted-2); }
.intake-grid p { margin-top: 2px; font-size: 9px; line-height: 1.55; color: var(--ink-2); }
.ship-upload { display: flex; flex-direction: column; gap: 5px; margin-top: 9px; font-size: 8px; color: var(--muted); }
.ship-upload input { border: 1px dashed var(--line); border-radius: 7px; padding: 7px; font-size: 8px; background: var(--paper); }
.ship-preview { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.ship-preview img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 600px) {
  .work-screen { padding: 14px 14px 30px; }
  .work-head h1 { font-size: 29px; }
  .work-stats { gap: 6px; }
  .work-stats strong { font-size: 22px; }
  .work-order { padding: 12px; }
}

/* =========================================================
   Profile
   ========================================================= */
.profile-screen { padding-top: 0; }
.profile-hero {
  margin: 0 -20px; padding: 26px 22px 36px;
  background:
    radial-gradient(circle at 88% 12%, rgba(196, 154, 74, 0.18), transparent 34%),
    linear-gradient(145deg, #10503d, #072a21);
  color: var(--cream); border-radius: 0 0 30px 30px;
  position: relative; overflow: hidden;
}
.profile-hero::before { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(196, 154, 74, 0.15); border-radius: 50%; right: -90px; top: -80px; }
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-identity { display: flex; align-items: center; gap: 14px; margin-top: 20px; position: relative; }
.profile-identity h1 { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: 0.02em; }
.profile-identity p { margin-top: 3px; font-size: 10px; color: rgba(246, 241, 231, 0.55); }
.profile-level { display: inline-block; margin-top: 5px; padding: 3px 7px; border-radius: 999px; background: rgba(196, 154, 74, 0.16); color: var(--gold); font-size: 8px; }
.level-track { height: 3px; border-radius: 3px; background: rgba(246, 241, 231, 0.13); margin-top: 18px; overflow: hidden; }
.level-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #e1c384); }
.profile-quote { margin-top: 15px; font-family: var(--serif); font-size: 12px; line-height: 1.7; color: rgba(246, 241, 231, 0.58); }
.profile-rank { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(246, 241, 231, 0.09); font-size: 8px; color: rgba(246, 241, 231, 0.42); }
.profile-rank span { display: inline-flex; align-items: center; gap: 4px; }
.profile-rank .icon { width: 12px; height: 12px; color: var(--gold); }
.profile-rank strong { color: var(--gold); font-family: var(--serif); font-size: 14px; }
.profile-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: -22px 4px 14px; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden;
}
.profile-stats div { padding: 14px 8px; text-align: center; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.profile-stats div:last-child { border-right: 0; }
.profile-stats strong { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; }
.profile-stats span { font-size: 8px; color: var(--muted-2); }
.badges-panel { margin-top: 0; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 9px 4px; border-radius: 10px; background: rgba(23, 53, 43, 0.025); }
.badge-item .badge-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 2px; }
.badge-item .badge-icon .icon { width: 16px; height: 16px; }
.badge-item strong { font-size: 8px; }
.badge-item small { font-size: 7px; line-height: 1.4; color: var(--muted-2); }
.badge-item.locked { opacity: 0.4; filter: grayscale(0.5); }
.badge-item.locked .badge-icon { background: rgba(23, 53, 43, 0.06); color: var(--muted); }
.exam-mini-list { display: grid; gap: 4px; }
.exam-mini { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(231, 223, 208, 0.5); }
.exam-mini:last-child { border-bottom: 0; }
.exam-mini-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); flex: none; }
.exam-mini-icon.fail { background: var(--red-soft); color: var(--red); }
.exam-mini-icon .icon { width: 14px; height: 14px; }
.exam-mini > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exam-mini strong { font-size: 10px; font-weight: 600; }
.exam-mini small { font-size: 8px; color: var(--muted-2); }
.exam-mini-score { font-family: var(--serif); font-size: 19px; color: var(--green-700); }
.exam-mini-score.fail { color: var(--red); }
.exam-mini-score small { font-family: var(--sans); font-size: 7px; }
.menu-panel { padding: 4px 16px; }
.menu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(231, 223, 208, 0.5); text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-icon { width: 31px; height: 31px; border-radius: 9px; background: rgba(23, 53, 43, 0.04); color: var(--green-700); display: grid; place-items: center; flex: none; }
.menu-icon .icon { width: 14px; height: 14px; }
.menu-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.menu-row strong { font-size: 10px; font-weight: 600; }
.menu-row small { font-size: 8px; color: var(--muted-2); }
.menu-row em { font-style: normal; font-family: var(--serif); font-size: 15px; color: var(--gold-deep); }
.perm-badge { padding: 3px 6px; border-radius: 4px; background: var(--green-100); color: var(--green-700); font-size: 7px; font-weight: 600; }
.menu-row > .icon { width: 13px; height: 13px; color: var(--muted-2); }
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; }
.logout-btn .icon { width: 13px; height: 13px; }

/* =========================================================
   Wrong book
   ========================================================= */
.wrong-hero {
  margin: 0 -20px; padding: 24px 22px 22px; color: var(--cream);
  background:
    radial-gradient(circle at 86% 20%, rgba(196, 154, 74, 0.2), transparent 38%),
    linear-gradient(145deg, #154d3c, #072a21);
}
.wrong-hero h1 { margin: 9px 0 6px; font-family: var(--serif); font-size: 29px; line-height: 1.3; font-weight: 500; }
.wrong-hero p { font-size: 10px; color: rgba(246, 241, 231, 0.5); }
.wrong-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; }
.wrong-stats div { padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.wrong-stats strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--gold); font-weight: 500; }
.wrong-stats span { font-size: 7px; color: rgba(246, 241, 231, 0.45); }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(23, 53, 43, 0.05); margin: 14px 0; }
.segmented button { flex: 1; min-height: 32px; border-radius: 8px; font-size: 10px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.segmented button.active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(23, 53, 43, 0.07); }
.segmented button i { font-style: normal; font-size: 8px; color: var(--muted-2); }
.wrong-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; margin-bottom: 7px; overflow: hidden; }
.wrong-card summary { display: flex; align-items: center; gap: 7px; padding: 11px; cursor: pointer; list-style: none; }
.wrong-card summary::-webkit-details-marker { display: none; }
.wrong-tag { font-size: 8px; color: var(--gold-deep); background: var(--gold-soft); padding: 3px 6px; border-radius: 4px; flex: none; }
.wrong-stem { flex: 1; font-size: 10px; line-height: 1.5; }
.wrong-meta { font-size: 8px; color: var(--muted-2); white-space: nowrap; }
.wrong-card summary > .icon { width: 12px; height: 12px; color: var(--muted-2); transition: transform 0.2s ease; }
.wrong-card[open] summary > .icon { transform: rotate(180deg); }
.wrong-detail { padding: 0 11px 12px; border-top: 1px solid var(--line-soft); }
.wrong-options { display: grid; gap: 5px; margin-top: 10px; }
.wrong-option { display: flex; align-items: flex-start; gap: 7px; padding: 7px 8px; border-radius: 7px; background: rgba(23, 53, 43, 0.025); font-size: 9px; line-height: 1.5; }
.wrong-option > span { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 53, 43, 0.06); font-size: 8px; flex: none; }
.wrong-option.correct { background: var(--green-100); color: var(--green-700); }
.wrong-option.correct > span { background: var(--green-600); color: #fff; }
.wrong-option .icon { width: 11px; height: 11px; margin-left: auto; margin-top: 2px; }
.answer-explain { margin-top: 9px; padding: 9px; border-radius: 8px; background: var(--gold-soft); }
.answer-explain strong { font-size: 9px; color: var(--gold-deep); }
.answer-explain p { margin-top: 4px; font-size: 9px; line-height: 1.7; color: var(--ink-2); }
.wrong-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 8px; color: var(--muted-2); }
.practice-mistake { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px; margin-bottom: 8px; }
.pm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 8px; color: var(--muted-2); }
.pm-type { padding: 3px 7px; border-radius: 4px; background: var(--red-soft); color: var(--red); font-weight: 700; }
.pm-example { padding: 8px 0; border-top: 1px solid rgba(231, 223, 208, 0.55); }
.pm-quote { font-size: 9px; line-height: 1.6; color: var(--muted); }
.pm-issue { margin-top: 4px; font-size: 9px; line-height: 1.6; }
.pm-better { display: flex; gap: 4px; margin-top: 6px; font-size: 9px; line-height: 1.6; color: var(--green-700); }
.pm-better .icon { width: 11px; height: 11px; flex: none; margin-top: 2px; }
.wrong-tip { display: flex; gap: 7px; margin-top: 14px; padding: 10px; border-radius: 10px; background: var(--gold-soft); }
.wrong-tip .icon { width: 12px; height: 12px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.wrong-tip p { font-size: 8px; line-height: 1.7; color: var(--ink-2); }

/* =========================================================
   Call room
   ========================================================= */
.call-mode .tabbar { display: none; }
.call-mode .app-view { padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.call-mode .phone-status { background: var(--green-950); color: rgba(246, 241, 231, 0.6); }
.call-mode .phone-island { background: #041a14; }
.call-room {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: var(--cream-2); overflow: hidden;
}
.call-head {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 9px;
  background: var(--green-950); color: var(--cream);
}
.call-head-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: rgba(246, 241, 231, 0.8); display: grid; place-items: center; flex: none; }
.call-head-btn .icon { width: 16px; height: 16px; }
.call-head-title { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; }
.call-head-title > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.call-head-title strong { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-head-title small { font-size: 7px; color: rgba(246, 241, 231, 0.42); letter-spacing: 0.04em; }
.stage-track {
  flex: none; display: flex; gap: 3px; overflow-x: auto; padding: 8px 12px;
  background: var(--green-950); color: rgba(246, 241, 231, 0.38);
  scrollbar-width: none;
}
.stage-track::-webkit-scrollbar { display: none; }
.stage-step { display: flex; align-items: center; gap: 4px; flex: none; opacity: 0.5; }
.stage-step i { width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(246, 241, 231, 0.25); display: grid; place-items: center; font-style: normal; font-size: 7px; }
.stage-step i .icon { width: 9px; height: 9px; }
.stage-step em { font-style: normal; font-size: 7px; white-space: nowrap; }
.stage-step.done { opacity: 0.8; color: var(--gold); }
.stage-step.done i { border-color: rgba(196, 154, 74, 0.5); background: rgba(196, 154, 74, 0.15); }
.stage-step.current { opacity: 1; color: var(--cream); }
.stage-step.current i { border-color: var(--gold); background: var(--gold); color: var(--green-950); }
.call-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.customer-stage {
  flex: none; position: relative; padding: 14px 16px 10px;
  background:
    radial-gradient(circle at 80% 0%, rgba(196, 154, 74, 0.16), transparent 38%),
    linear-gradient(140deg, #0f4a39, #082c22);
  color: var(--cream); overflow: hidden;
}
.customer-stage::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(246, 241, 231, 0.1) 1px, transparent 1px); background-size: 18px 18px; opacity: 0.18; pointer-events: none; }
.customer-line { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; }
.customer-avatar-wrap { position: relative; width: 54px; height: 54px; flex: none; }
.customer-avatar { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 21px; background: radial-gradient(circle at 35% 25%, #ce8e70, #94513a); border: 1px solid rgba(255, 255, 255, 0.22); }
.speaking-ring, .listening-ring { position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(196, 154, 74, 0.5); opacity: 0; pointer-events: none; }
.call-room[data-voice="speaking"] .speaking-ring { opacity: 1; animation: ring-pulse 1.5s ease-out infinite; }
.call-room[data-voice="listening"] .listening-ring { opacity: 1; border-color: rgba(127, 196, 168, 0.6); animation: ring-pulse 1.5s ease-out infinite; }
@keyframes ring-pulse { 0% { transform: scale(0.96); opacity: 0.7; } 100% { transform: scale(1.48); opacity: 0; } }
.customer-id { flex: 1; min-width: 0; }
.emotion-chip { display: inline-block; padding: 2px 5px; border-radius: 4px; background: rgba(196, 154, 74, 0.16); color: var(--gold); font-size: 7px; margin-bottom: 2px; }
.customer-id h2 { font-family: var(--serif); font-size: 19px; font-weight: 500; display: flex; align-items: baseline; gap: 5px; }
.customer-id h2 small { font-family: var(--sans); font-size: 7px; color: rgba(246, 241, 231, 0.4); font-weight: 400; }
.customer-id p { font-size: 8px; color: rgba(246, 241, 231, 0.42); margin-top: 1px; }
.live-score { flex: none; text-align: right; display: flex; align-items: baseline; gap: 1px; }
.live-score small { position: absolute; right: 16px; top: 11px; font-size: 7px; color: rgba(246, 241, 231, 0.38); }
.live-score strong { font-family: var(--serif); font-size: 27px; color: var(--gold); line-height: 1; font-weight: 500; }
.live-score em { font-style: normal; font-size: 8px; color: rgba(246, 241, 231, 0.4); }
.voice-visual { position: relative; z-index: 2; margin-top: 8px; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 22px; opacity: 0.55; }
.voice-wave i { width: 2px; height: var(--h); background: rgba(196, 154, 74, 0.7); border-radius: 2px; animation: wave 1.5s ease-in-out infinite; animation-delay: var(--d); }
.call-room[data-voice="idle"] .voice-wave i { animation-play-state: paused; height: 3px; opacity: 0.4; transition: height 0.4s ease; }
.call-room[data-voice="speaking"] .voice-wave i { animation-duration: 0.9s; background: var(--gold); }
.call-room[data-voice="listening"] .voice-wave i { background: #7fc4a8; animation-duration: 0.7s; }
.voice-status { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 8px; color: rgba(246, 241, 231, 0.45); }
.voice-status em { font-style: normal; font-family: var(--serif); font-size: 10px; color: rgba(246, 241, 231, 0.65); letter-spacing: 0.04em; }
.transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 8px; scroll-behavior: smooth; background: var(--cream-2); }
.transcript::-webkit-scrollbar { width: 3px; }
.transcript::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.bubble-row { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 9px; }
.bubble-row.me { justify-content: flex-end; }
.bubble-avatar { width: 24px; height: 24px; border-radius: 50%; background: #b56a4c; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 9px; flex: none; margin-top: 1px; }
.bubble-wrap { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.bubble-row.me .bubble-wrap { align-items: flex-end; }
.bubble { padding: 8px 10px; border-radius: 3px 10px 10px 10px; font-size: 10px; line-height: 1.65; }
.bubble-ai { background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink-2); }
.bubble-me { background: var(--green-800); color: var(--cream); border-radius: 10px 3px 10px 10px; }
.bubble-time { font-size: 7px; color: var(--muted-2); padding: 0 2px; }
.call-system { text-align: center; font-size: 7px; letter-spacing: 0.04em; color: var(--muted-2); padding: 4px 0 10px; }
.call-complete-banner { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 8px auto; padding: 6px 10px; width: fit-content; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 8px; }
.call-complete-banner .icon { width: 11px; height: 11px; }
.tongue-guide-inline { display: flex; gap: 8px; margin: 10px 0 4px; padding: 8px; border-radius: 12px; background: linear-gradient(130deg, #f5ede7, #fdfaf5); border: 1px solid rgba(138, 90, 68, 0.16); }
.tongue-guide-inline img { width: 42px; height: 58px; border-radius: 7px; object-fit: cover; object-position: top; flex: none; }
.tongue-guide-inline > div { min-width: 0; }
.tongue-guide-inline strong { display: flex; align-items: center; gap: 3px; font-size: 8px; color: #8a5a44; }
.tongue-guide-inline strong .icon { width: 10px; height: 10px; }
.tongue-guide-inline p { margin-top: 2px; font-size: 8px; line-height: 1.5; color: var(--muted); }
.tongue-guide-inline button { margin-top: 3px; font-size: 8px; font-weight: 700; color: var(--green-700); border-bottom: 1px dashed rgba(47, 125, 100, 0.35); }
.tongue-guide-modal .admin-kicker { color: #8a5a44; }
.tongue-guide-modal h2 { margin: 3px 0 3px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.tg-lead { font-size: 9px; color: var(--muted); }
.tg-figure { margin: 12px 0; border-radius: 11px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--paper); }
.tg-figure img { width: 100%; max-height: 360px; object-fit: cover; object-position: top; }
.tg-figure figcaption { padding: 7px 9px; font-size: 8px; color: var(--muted); }
.tg-steps { display: grid; gap: 5px; }
.tg-steps > div { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(23, 53, 43, 0.03); }
.tg-steps > div > span { width: 18px; height: 18px; border-radius: 50%; background: #8a5a44; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 9px; flex: none; }
.tg-steps p { display: flex; flex-direction: column; gap: 1px; }
.tg-steps strong { font-size: 9px; }
.tg-steps small { font-size: 8px; color: var(--muted-2); }
.tg-warning { display: flex; gap: 5px; margin-top: 10px; padding: 8px; border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: 8px; line-height: 1.6; }
.tg-warning .icon { width: 11px; height: 11px; flex: none; margin-top: 1px; }
.typing-row { align-items: flex-end; }
.typing-bubble { display: flex; gap: 3px; padding: 9px 11px; border-radius: 3px 10px 10px 10px; background: var(--paper); border: 1px solid var(--line-soft); }
.typing-bubble i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); animation: typing 1.1s ease-in-out infinite; }
.typing-bubble i:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-3px); opacity: 1; } }
.coach-strip { flex: none; padding: 9px 13px 10px; background: linear-gradient(120deg, #f7edd9, #fbf8f0); border-top: 1px solid rgba(196, 154, 74, 0.2); }
.coach-head { display: flex; align-items: center; gap: 5px; font-size: 8px; }
.coach-orb { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: rgba(196, 154, 74, 0.17); color: var(--gold-deep); }
.coach-orb .icon { width: 10px; height: 10px; }
.coach-head strong { font-size: 9px; color: var(--gold-deep); }
.coach-stage { font-size: 7px; color: var(--muted-2); }
.coach-toggle { margin-left: auto; font-size: 8px; color: var(--gold-deep); border-bottom: 1px dashed rgba(166, 124, 46, 0.4); }
.coach-tip { margin-top: 4px; font-size: 9px; line-height: 1.6; color: var(--ink-2); }
.coach-warning { display: flex; gap: 4px; margin-top: 5px; padding: 5px 6px; border-radius: 5px; background: rgba(176, 74, 58, 0.1); color: var(--red); font-size: 8px; line-height: 1.5; }
.coach-warning .icon { width: 10px; height: 10px; flex: none; margin-top: 1px; }
.coach-extra { margin-top: 6px; max-height: 148px; overflow-y: auto; }
.coach-example { font-size: 8px; line-height: 1.65; color: var(--muted); padding: 6px 7px; background: rgba(255, 255, 255, 0.55); border-radius: 6px; }
.coach-example span { display: inline-block; margin-right: 5px; padding: 1px 4px; border-radius: 3px; background: rgba(196, 154, 74, 0.17); color: var(--gold-deep); font-size: 7px; font-weight: 700; }
.coach-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.coach-tags span { display: inline-flex; align-items: center; gap: 2px; padding: 3px 5px; border-radius: 4px; font-size: 7px; line-height: 1.4; }
.coach-tags .icon { width: 8px; height: 8px; }
.coach-tags.good span { background: rgba(47, 125, 100, 0.1); color: var(--green-700); }
.coach-tags.improve span { background: rgba(181, 133, 63, 0.1); color: var(--amber); }
.call-dock { flex: none; position: relative; z-index: 10; padding: 8px 14px calc(8px + var(--safe-bottom)); background: rgba(255, 253, 248, 0.97); border-top: 1px solid var(--line-soft); backdrop-filter: blur(16px); }
.dock-buttons { display: flex; align-items: center; justify-content: space-around; gap: 10px; }
.dock-side { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; color: var(--muted); font-size: 7px; }
.dock-side .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(23, 53, 43, 0.045); box-sizing: content-box; }
.dock-side.active { color: var(--green-700); }
.mic-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mic-btn {
  width: 58px; height: 58px; border-radius: 50%; background: var(--green-800); color: var(--cream);
  display: grid; place-items: center; position: relative; box-shadow: 0 8px 22px rgba(11, 59, 46, 0.27);
  transition: transform 0.18s ease, background 0.18s ease;
}
.mic-btn .icon { width: 24px; height: 24px; }
.mic-btn::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(47, 125, 100, 0.2); }
.mic-btn.listening { background: var(--gold); color: var(--green-950); animation: mic-pulse 1.6s ease-in-out infinite; }
.mic-col > span { font-size: 7px; color: var(--muted-2); }
.composer { display: flex; align-items: center; gap: 7px; margin: 6px 0; }
.composer input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 0 14px; font-size: 11px; outline: none; }
.composer input:focus { border-color: var(--green-600); }
.send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--green-800); color: var(--cream); display: grid; place-items: center; flex: none; }
.send-btn .icon { width: 18px; height: 18px; }
.call-subactions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(231, 223, 208, 0.5); }
.call-subactions button { display: inline-flex; align-items: center; gap: 3px; font-size: 7px; color: var(--muted-2); }
.call-subactions .icon { width: 10px; height: 10px; }
.call-subactions .end-link { color: var(--red); }
.voice-support { font-size: 7px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 3px; }
.voice-support .icon { width: 9px; height: 9px; }
.call-overlay { position: absolute; inset: 0; z-index: 50; background: rgba(6, 38, 30, 0.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.call-overlay-card { text-align: center; color: var(--cream); max-width: 280px; }
.call-overlay-card h3 { margin: 16px 0 5px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.call-overlay-card p { font-size: 9px; line-height: 1.7; color: rgba(246, 241, 231, 0.5); }
.overlay-pulse { display: flex; justify-content: center; gap: 5px; height: 30px; align-items: center; }
.overlay-pulse span { width: 4px; height: 12px; background: var(--gold); border-radius: 3px; animation: wave 1s ease-in-out infinite; }
.overlay-pulse span:nth-child(2) { animation-delay: 0.15s; }
.overlay-pulse span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(196, 154, 74, 0.25), 0 0 0 0 rgba(196, 154, 74, 0.22); } 50% { box-shadow: 0 8px 22px rgba(196, 154, 74, 0.25), 0 0 0 12px rgba(196, 154, 74, 0); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes soft-pulse { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

/* =========================================================
   Report
   ========================================================= */
.report-screen { padding-top: 10px; }
.report-hero { position: relative; overflow: hidden; padding: 18px; border-radius: 22px; color: var(--cream); background: linear-gradient(145deg, #0f4a39, #072a21); }
.report-hero.tone-gold { background: linear-gradient(145deg, #5b4419, #2a1f0b); }
.report-hero.tone-red { background: linear-gradient(145deg, #5c241d, #2c120f); }
.report-hero.tone-blue { background: linear-gradient(145deg, #22485f, #0f2633); }
.report-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-kicker { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; letter-spacing: 0.08em; color: rgba(246, 241, 231, 0.55); text-transform: uppercase; }
.report-kicker .icon { width: 11px; height: 11px; color: var(--gold); }
.report-pass { display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 600; }
.report-pass .icon { width: 9px; height: 9px; }
.report-pass.pass { background: rgba(127, 196, 168, 0.15); color: #a9dfc9; }
.report-pass.fail { background: rgba(255, 169, 150, 0.13); color: #f0b1a4; }
.report-score-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; }
.report-hero .ring-inner strong { color: var(--cream); }
.report-hero .ring-inner span { color: rgba(246, 241, 231, 0.45); }
.report-grade { display: flex; flex-direction: column; gap: 2px; }
.grade-letter { font-family: var(--serif); font-size: 40px; line-height: 0.9; color: var(--gold); font-weight: 500; }
.report-grade strong { font-size: 13px; letter-spacing: 0.08em; }
.report-grade span { font-size: 8px; color: rgba(246, 241, 231, 0.45); }
.percentile-track { height: 3px; border-radius: 3px; background: rgba(246, 241, 231, 0.12); margin: 4px 0 12px; overflow: hidden; }
.percentile-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #e2c68c); }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; border-top: 1px solid rgba(246, 241, 231, 0.1); font-size: 7px; color: rgba(246, 241, 231, 0.45); }
.report-meta span { display: inline-flex; align-items: center; gap: 3px; }
.report-meta .icon { width: 9px; height: 9px; }
.report-summary { display: flex; gap: 9px; margin-top: 12px; padding: 13px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-soft); }
.summary-mark { width: 27px; height: 27px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.summary-mark .icon { width: 13px; height: 13px; }
.report-summary p { font-size: 10px; line-height: 1.8; color: var(--ink-2); }
.dimension-panel { margin-top: 12px; }
.dimension-list { display: grid; gap: 12px; }
.dimension-top { display: flex; align-items: baseline; gap: 7px; }
.dimension-name { font-size: 10px; font-weight: 600; flex: 1; }
.dimension-weight { font-size: 7px; color: var(--muted-2); }
.dimension-top strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.dimension-bar { height: 4px; border-radius: 4px; background: rgba(23, 53, 43, 0.07); margin: 4px 0 3px; overflow: hidden; }
.dimension-bar i { display: block; height: 100%; border-radius: 4px; }
.dimension-row p { font-size: 8px; line-height: 1.6; color: var(--muted-2); }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.feedback-card { padding: 12px; border-radius: 13px; }
.feedback-card.good { background: var(--green-100); border: 1px solid rgba(47, 125, 100, 0.11); }
.feedback-card.improve { background: var(--gold-soft); border: 1px solid rgba(196, 154, 74, 0.18); }
.feedback-head { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; font-size: 9px; font-weight: 700; }
.feedback-card.good .feedback-head { color: var(--green-700); }
.feedback-card.improve .feedback-head { color: var(--gold-deep); }
.feedback-head .icon { width: 12px; height: 12px; }
.feedback-card li { position: relative; padding-left: 9px; font-size: 8px; line-height: 1.7; color: var(--ink-2); margin-bottom: 3px; }
.feedback-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.mistakes-panel { margin-top: 12px; }
.mistake-card { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.mistake-card:first-of-type { border-top: 0; padding-top: 2px; }
.mistake-head { margin-bottom: 5px; }
.mistake-type { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--red-soft); color: var(--red); font-size: 7px; font-weight: 700; }
.mistake-quote { font-size: 9px; line-height: 1.6; color: var(--muted); padding-left: 8px; border-left: 2px solid var(--line); }
.mistake-issue { margin-top: 5px; font-size: 9px; line-height: 1.6; }
.mistake-better { margin-top: 7px; padding: 8px; border-radius: 7px; background: var(--green-100); }
.mistake-better strong { display: flex; align-items: center; gap: 3px; font-size: 8px; color: var(--green-700); }
.mistake-better .icon { width: 10px; height: 10px; }
.mistake-better p { margin-top: 3px; font-size: 8px; line-height: 1.7; color: var(--ink-2); }
.compliance-card { margin-top: 12px; padding: 13px; border-radius: 14px; border: 1px solid rgba(47, 125, 100, 0.15); background: var(--green-100); }
.compliance-card.risk { border-color: rgba(176, 74, 58, 0.18); background: var(--red-soft); }
.compliance-head { display: flex; align-items: center; gap: 8px; }
.compliance-icon { width: 31px; height: 31px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); color: var(--green-700); display: grid; place-items: center; flex: none; }
.compliance-card.risk .compliance-icon { color: var(--red); }
.compliance-icon .icon { width: 15px; height: 15px; }
.compliance-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.compliance-head strong { font-size: 10px; }
.compliance-head small { font-size: 8px; line-height: 1.5; color: var(--muted); }
.compliance-score { font-family: var(--serif); font-size: 21px; color: var(--green-700); }
.compliance-card.risk .compliance-score { color: var(--red); }
.compliance-score small { font-size: 7px; }
.violation-list { margin-top: 9px; display: grid; gap: 6px; }
.violation-item { padding: 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.45); }
.violation-item span { font-size: 8px; font-weight: 700; color: var(--red); }
.violation-item p { margin-top: 2px; font-size: 8px; line-height: 1.5; }
.violation-item small { display: block; margin-top: 3px; font-size: 7px; line-height: 1.5; color: var(--muted); }
.compliance-note { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 8px; color: var(--green-700); }
.compliance-note .icon { width: 10px; height: 10px; }
.report-stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; padding: 11px 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; }
.report-stats-strip div { text-align: center; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.report-stats-strip div:last-child { border-right: 0; }
.report-stats-strip strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.report-stats-strip span { font-size: 7px; color: var(--muted-2); }
.recommend-list { display: grid; gap: 6px; }
.recommend-row { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-soft); }
.recommend-icon { width: 31px; height: 31px; border-radius: 9px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.recommend-icon .icon { width: 14px; height: 14px; }
.recommend-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recommend-row strong { font-size: 10px; }
.recommend-row small { font-size: 8px; color: var(--muted-2); }
.recommend-row > .icon { width: 13px; height: 13px; color: var(--muted-2); }
.transcript-details { margin-top: 14px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden; }
.transcript-details > summary { display: flex; align-items: center; gap: 6px; padding: 12px; font-size: 9px; font-weight: 600; cursor: pointer; list-style: none; }
.transcript-details > summary::-webkit-details-marker { display: none; }
.transcript-details > summary .icon:first-child { width: 14px; height: 14px; color: var(--green-600); }
.transcript-details > summary span { margin-left: auto; font-weight: 400; font-size: 8px; color: var(--muted-2); }
.transcript-details > summary .icon:last-child { width: 12px; height: 12px; color: var(--muted-2); }
.transcript.full { max-height: 360px; padding: 12px; border-top: 1px solid var(--line-soft); background: var(--cream-2); }
.ai-disclaimer { display: flex; gap: 5px; margin-top: 12px; font-size: 7px; line-height: 1.7; color: var(--muted-2); }
.ai-disclaimer .icon { width: 10px; height: 10px; flex: none; margin-top: 2px; }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.report-actions .btn { min-height: 44px; font-size: 11px; }

/* =========================================================
   Exam
   ========================================================= */
.exam-hero { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; color: var(--cream); background: linear-gradient(145deg, #164a3a, #082b22); }
.exam-hero h2 { margin: 10px 0 5px; font-family: var(--serif); font-size: 27px; line-height: 1.3; font-weight: 500; letter-spacing: -0.03em; }
.exam-hero p { font-size: 9px; line-height: 1.7; color: rgba(246, 241, 231, 0.5); }
.exam-hero-stats { display: flex; gap: 20px; margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(246, 241, 231, 0.1); }
.exam-hero-stats div { display: flex; flex-direction: column; gap: 1px; }
.exam-hero-stats strong { font-family: var(--serif); font-size: 20px; color: var(--gold); font-weight: 500; }
.exam-hero-stats span { font-size: 7px; color: rgba(246, 241, 231, 0.42); }
.exam-hero-pattern { position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border: 1px solid rgba(196, 154, 74, 0.16); border-radius: 50%; }
.exam-hero-pattern::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(246, 241, 231, 0.06); border-radius: 50%; }
.exam-list { display: grid; gap: 9px; }
.exam-card { position: relative; display: block; text-align: left; width: 100%; padding: 15px; border-radius: 17px; border: 1px solid var(--line-soft); background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.exam-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.exam-card.locked { opacity: 0.6; cursor: not-allowed; }
.exam-card-top { display: flex; align-items: center; gap: 5px; }
.lock-mark { margin-left: auto; color: var(--muted-2); }
.lock-mark .icon { width: 14px; height: 14px; }
.exam-card h3 { margin: 11px 0 4px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.exam-card-sub { font-size: 8px; line-height: 1.6; color: var(--muted-2); }
.exam-metrics { display: flex; gap: 11px; margin: 10px 0; font-size: 8px; color: var(--muted); }
.exam-metrics span { display: inline-flex; align-items: center; gap: 2px; }
.exam-metrics .icon { width: 10px; height: 10px; }
.exam-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.exam-latest { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: var(--muted-2); }
.exam-latest .icon { width: 9px; height: 9px; }
.exam-latest.pass { color: var(--green-600); }
.exam-latest.fail { color: var(--red); }
.exam-cta { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; font-weight: 700; color: var(--exam-tone); }
.exam-cta .icon { width: 11px; height: 11px; }
.review-ribbon { position: absolute; top: 0; right: 0; padding: 3px 8px; border-radius: 0 0 0 8px; background: var(--amber-soft); color: var(--amber); font-size: 7px; }
.exam-rules { margin-top: 18px; padding: 14px; border-radius: 14px; background: rgba(23, 53, 43, 0.035); }
.exam-rules ul { display: grid; gap: 7px; }
.exam-rules li { display: flex; align-items: flex-start; gap: 5px; font-size: 8px; line-height: 1.6; color: var(--muted); }
.exam-rules li .icon { width: 10px; height: 10px; color: var(--green-600); flex: none; margin-top: 1px; }

.exam-mode .tabbar { display: none; }
.exam-mode .app-view { padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.exam-run { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--cream-2); }
.exam-run-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.exam-run-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.exam-run-title strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-run-title span { font-size: 8px; color: var(--muted-2); }
.exam-timer { font-family: var(--serif); font-size: 17px; color: var(--green-700); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 7px; background: var(--green-100); }
.exam-timer.warning { color: var(--red); background: var(--red-soft); animation: soft-pulse 1.2s infinite; }
.exam-progress { flex: none; height: 3px; background: rgba(23, 53, 43, 0.06); }
.exam-progress i { display: block; height: 100%; background: var(--gold); transition: width 0.25s ease; }
.exam-question { flex: 1; overflow-y: auto; padding: 18px 18px 24px; }
.question-meta { display: flex; align-items: center; gap: 7px; font-size: 8px; color: var(--muted-2); }
.question-type { padding: 3px 7px; border-radius: 4px; background: var(--green-100); color: var(--green-700); font-weight: 700; }
.question-points { margin-left: auto; }
.question-stem { margin: 11px 0 6px; font-family: var(--serif); font-size: 19px; line-height: 1.65; font-weight: 600; letter-spacing: -0.01em; }
.question-hint { display: flex; align-items: center; gap: 3px; font-size: 8px; color: var(--amber); }
.question-hint .icon { width: 10px; height: 10px; }
.option-list { display: grid; gap: 7px; margin-top: 16px; }
.option-btn { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 11px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: all 0.16s ease; }
.option-btn:hover { border-color: rgba(47, 125, 100, 0.4); }
.option-btn.selected { border-color: var(--green-600); background: var(--green-100); box-shadow: 0 0 0 1px var(--green-600) inset; }
.option-letter { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 53, 43, 0.05); font-family: var(--serif); font-size: 11px; color: var(--muted); flex: none; }
.option-btn.selected .option-letter { background: var(--green-700); color: var(--cream); }
.option-text { flex: 1; font-size: 10px; line-height: 1.6; }
.option-check { color: var(--green-700); opacity: 0; }
.option-check .icon { width: 15px; height: 15px; }
.option-btn.selected .option-check { opacity: 1; }
.question-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.answered-count { font-size: 8px; color: var(--muted-2); }
.exam-dock { flex: none; display: flex; gap: 8px; padding: 10px 14px calc(10px + var(--safe-bottom)); background: var(--paper); border-top: 1px solid var(--line-soft); }
.exam-dock .btn { flex: 1; min-height: 43px; font-size: 11px; }
.exam-overlay { position: absolute; inset: 0; z-index: 40; background: rgba(6, 38, 30, 0.9); display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet-head h3 { font-family: var(--serif); font-size: 20px; }
.sheet-head p { margin-top: 2px; font-size: 10px; color: var(--muted); }
.answer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 16px 0; }
.answer-dot { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-family: var(--serif); font-size: 14px; color: var(--muted); }
.answer-dot.answered { background: var(--green-100); border-color: rgba(47, 125, 100, 0.3); color: var(--green-700); }
.answer-dot.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.answer-legend { display: flex; gap: 12px; font-size: 8px; color: var(--muted-2); }
.answer-legend span { display: inline-flex; align-items: center; gap: 4px; }
.answer-legend i { width: 8px; height: 8px; border-radius: 3px; border: 1px solid var(--line); }
.answer-legend i.answered { background: var(--green-100); border-color: var(--green-600); }
.answer-legend i.current { border-color: var(--gold); }

/* ---------- Result ---------- */
.result-hero { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; color: var(--cream); background: linear-gradient(145deg, #0f4a39, #072a21); text-align: center; }
.result-hero.fail { background: linear-gradient(145deg, #4f241d, #24100d); }
.result-status-icon { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 9px; display: grid; place-items: center; background: rgba(196, 154, 74, 0.15); color: var(--gold); }
.result-status-icon .icon { width: 24px; height: 24px; }
.result-kicker { font-size: 8px; letter-spacing: 0.12em; color: rgba(246, 241, 231, 0.48); text-transform: uppercase; }
.result-hero h1 { margin: 5px 0 3px; font-family: var(--serif); font-size: 27px; line-height: 1.3; font-weight: 500; }
.result-hero > p { font-size: 9px; color: rgba(246, 241, 231, 0.5); }
.result-score-wrap { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 4px; }
.result-hero .ring-inner strong { color: var(--cream); }
.result-hero .ring-inner span { color: rgba(246, 241, 231, 0.45); }
.result-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; text-align: left; }
.result-facts div { display: flex; flex-direction: column; }
.result-facts strong { font-family: var(--serif); font-size: 18px; color: var(--gold); font-weight: 500; }
.result-facts strong small { font-size: 9px; }
.result-facts span { font-size: 7px; color: rgba(246, 241, 231, 0.4); }
.pending-banner { display: flex; gap: 4px; align-items: flex-start; margin: 8px 0; padding: 7px 9px; border-radius: 7px; background: rgba(196, 154, 74, 0.13); color: #e5c88f; font-size: 7px; line-height: 1.6; text-align: left; }
.pending-banner .icon { width: 10px; height: 10px; flex: none; margin-top: 1px; }
.result-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 10px; border-top: 1px solid rgba(246, 241, 231, 0.1); font-size: 7px; color: rgba(246, 241, 231, 0.4); }
.category-result { margin-top: 12px; }
.cat-result-list { display: grid; gap: 8px; }
.cat-result-row { display: flex; align-items: center; gap: 9px; font-size: 9px; }
.cat-result-row > span { width: 50px; color: var(--muted); flex: none; }
.cat-result-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(23, 53, 43, 0.07); overflow: hidden; }
.cat-result-track i { display: block; height: 100%; border-radius: 4px; }
.cat-result-row strong { width: 32px; text-align: right; font-family: var(--serif); font-size: 11px; font-weight: 500; }
.result-wrong-list { display: grid; gap: 7px; }
.result-wrong { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.result-wrong > summary { display: flex; align-items: center; gap: 8px; padding: 11px; cursor: pointer; list-style: none; font-size: 9px; line-height: 1.5; }
.result-wrong > summary::-webkit-details-marker { display: none; }
.wrong-index { width: 19px; height: 19px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 8px; flex: none; }
.result-wrong > summary > span:nth-child(2) { flex: 1; }
.result-wrong > summary > .icon { width: 12px; height: 12px; color: var(--muted-2); }
.result-wrong-body { padding: 0 11px 12px; border-top: 1px solid var(--line-soft); }
.result-options { display: grid; gap: 5px; margin-top: 9px; }
.result-option { display: flex; align-items: flex-start; gap: 6px; padding: 7px 8px; border-radius: 6px; background: rgba(23, 53, 43, 0.025); font-size: 8px; line-height: 1.5; }
.result-option > span { width: 15px; height: 15px; border-radius: 50%; background: rgba(23, 53, 43, 0.06); display: grid; place-items: center; font-size: 7px; flex: none; }
.result-option p { flex: 1; }
.result-option em { font-style: normal; font-size: 7px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.result-option em .icon { width: 9px; height: 9px; }
.result-option.correct { background: var(--green-100); color: var(--green-700); }
.result-option.correct > span { background: var(--green-600); color: #fff; }
.result-option.wrong { background: var(--red-soft); color: var(--red); }
.result-option.wrong > span { background: var(--red); color: #fff; }
.result-explain { margin-top: 8px; padding: 8px; border-radius: 7px; background: var(--gold-soft); }
.result-explain strong { display: flex; align-items: center; gap: 3px; font-size: 8px; color: var(--gold-deep); }
.result-explain .icon { width: 10px; height: 10px; }
.result-explain p { margin-top: 3px; font-size: 8px; line-height: 1.7; color: var(--ink-2); }
.result-explain .text-link { margin-top: 5px; font-size: 8px; }
.perfect-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--gold-soft); }
.perfect-card > .icon { width: 34px; height: 34px; color: var(--gold-deep); flex: none; }
.perfect-card h3 { font-family: var(--serif); font-size: 17px; }
.perfect-card p { margin-top: 2px; font-size: 8px; line-height: 1.6; color: var(--muted); }
.all-answers { margin-top: 12px; padding: 0 14px; }
.all-answers summary { display: flex; align-items: center; gap: 5px; padding: 12px 0; font-size: 9px; font-weight: 600; cursor: pointer; list-style: none; }
.all-answers summary::-webkit-details-marker { display: none; }
.all-answers summary > .icon:first-child { width: 13px; height: 13px; color: var(--green-600); }
.all-answers summary span { margin-left: auto; font-size: 8px; font-weight: 400; color: var(--muted-2); }
.all-answers summary > .icon:last-child { width: 12px; height: 12px; color: var(--muted-2); }
.all-answer-list { border-top: 1px solid var(--line-soft); padding-bottom: 10px; }
.all-answer-row { display: flex; gap: 7px; padding: 8px 0; border-bottom: 1px solid rgba(231, 223, 208, 0.5); }
.all-answer-row:last-child { border-bottom: 0; }
.all-answer-index { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); font-size: 7px; flex: none; }
.all-answer-row.wrong .all-answer-index { background: var(--red-soft); color: var(--red); }
.all-answer-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.all-answer-row strong { font-size: 8px; line-height: 1.5; font-weight: 600; }
.all-answer-row small { font-size: 7px; color: var(--muted-2); }
.all-answer-icon .icon { width: 12px; height: 12px; color: var(--green-600); }
.all-answer-row.wrong .all-answer-icon .icon { color: var(--red); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.result-actions .btn { min-height: 43px; font-size: 10px; }

/* =========================================================
   Toast / modal
   ========================================================= */
.toast-stack { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 7px; pointer-events: none; width: min(90vw, 420px); }
.toast {
  display: flex; align-items: flex-start; gap: 7px; padding: 10px 13px; border-radius: 11px;
  background: rgba(11, 59, 46, 0.96); color: var(--cream); font-size: 10px; line-height: 1.5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); opacity: 0; transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--gold); }
.toast-success .icon { color: #8dd4b5; }
.toast-error .icon, .toast-warning .icon { color: #f0b1a4; }
.modal-root, #modal-root { position: relative; z-index: 2000; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6, 30, 24, 0.58);
  backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto; animation: fade-in 0.2s ease;
}
.modal-card {
  position: relative; width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto;
  background: var(--paper); border-radius: 24px; padding: 26px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28); animation: modal-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-sm { max-width: 420px; }
.modal-md { max-width: 720px; }
.modal-wide { max-width: 1000px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(23, 53, 43, 0.045); z-index: 2; }
.modal-close .icon { width: 15px; height: 15px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modal-actions .btn { min-height: 40px; }
.confirm-body { text-align: center; padding: 6px 4px 0; }
.confirm-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 12px; }
.confirm-icon.danger { background: var(--red-soft); color: var(--red); }
.confirm-icon .icon { width: 23px; height: 23px; }
.confirm-body h3 { font-family: var(--serif); font-size: 21px; }
.confirm-body p { margin-top: 6px; font-size: 11px; line-height: 1.75; color: var(--muted); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
  .employee-stage { gap: 0; padding: 24px; }
  .stage-aside { display: none; }
  .phone-shell { width: 470px; }
}
@media (max-width: 960px) {
  .login-main { grid-template-columns: 1fr; max-width: 620px; }
  .login-visual { display: none; }
  .login-copy { max-width: none; }
  .login-main { padding-top: 48px; }
}
@media (max-width: 760px) {
  .employee-stage { padding: 0; min-height: 100dvh; }
  .phone-shell {
    width: 100%; height: 100dvh; min-height: 100dvh; border-radius: 0;
    border: 0; box-shadow: none;
  }
  .phone-status { display: none; }
  .app-view { padding-bottom: 76px; }
  .tabbar { padding-bottom: calc(7px + var(--safe-bottom)); }
  .screen { padding: 16px 18px 30px; }
  .home-screen { padding-top: 10px; }
  .profile-hero, .wrong-hero { margin-left: -18px; margin-right: -18px; }
  .scenario-scroll { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .filter-chips { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .practice-hero h2 { font-size: 30px; }
  .article-head h1 { font-size: 25px; }
  .practice-hero { border-radius: 22px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 24px 20px calc(22px + var(--safe-bottom)); max-width: 100%; }
  .modal-close { top: 12px; right: 12px; }
  .toast-stack { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .login-page { padding: 20px 20px 18px; }
  .login-copy h1 { font-size: clamp(35px, 9.6vw, 48px); }
  .login-roles { grid-template-columns: 1fr; }
  .login-env { display: none; }
  .login-footer { justify-content: center; text-align: center; }
  .login-main { padding-top: 40px; }
  .call-mode .app-view { height: 100dvh; }
  .two-cards { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .quick-stat strong { font-size: 22px; }
  .practice-hero h2 { font-size: 27px; }
  .home-head h1 { font-size: 23px; }
  .page-head h1 { font-size: 29px; }
  .profile-identity h1 { font-size: 24px; }
  .badge-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .badge-item small { display: none; }
  .call-body .customer-stage { padding-top: 10px; }
  .coach-extra { max-height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
