/* =========================================================
   财会小栈 · AI 智能财会实训平台
   Visual system: Quiet Blue / Silver Mist / Champagne Gold
   ========================================================= */

:root {
  --navy-950: #081a2d;
  --navy-900: #0c223a;
  --navy-850: #102a45;
  --navy-800: #153553;
  --blue-700: #1d4e89;
  --blue-600: #28619f;
  --blue-500: #3c78b5;
  --blue-100: #e8f0f9;
  --blue-50: #f2f7fc;
  --gold-600: #a77f3f;
  --gold-500: #c6a15b;
  --gold-400: #d8ba7e;
  --gold-100: #f7efdf;
  --ink: #15283d;
  --ink-soft: #3f5268;
  --muted: #718196;
  --muted-light: #97a5b7;
  --line: #e3e9f1;
  --line-strong: #d4dde8;
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --canvas-deep: #eef2f7;
  --green: #2f8f6b;
  --green-bg: #eaf6f1;
  --amber: #b8862f;
  --amber-bg: #fbf4e5;
  --red: #c25454;
  --red-bg: #fbefef;
  --teal: #317f84;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 2px rgba(21, 40, 61, .025), 0 8px 24px rgba(21, 40, 61, .045);
  --shadow-lift: 0 4px 10px rgba(21, 40, 61, .05), 0 20px 44px rgba(21, 40, 61, .10);
  --shadow-blue: 0 10px 26px rgba(29, 78, 137, .20);
  --font-sans: "Manrope", "Inter", "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sidebar-w: 260px;
  --topbar-h: 72px;
  --ease: cubic-bezier(.22, .68, .27, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 1180px;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(198, 161, 91, .06), transparent 60%),
    radial-gradient(1100px 700px at 15% 20%, rgba(29, 78, 137, .035), transparent 60%),
    var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: inline-block; }
::selection { background: rgba(29, 78, 137, .15); color: var(--navy-900); }

/* scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccd7e4; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b3c2d3; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .35s var(--ease);
}
body.sidebar-collapsed { --sidebar-w: 86px; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 30%),
    linear-gradient(165deg, #0d243d 0%, #0a1c30 50%, #0d263f 100%);
  color: #e8eef5;
  overflow: hidden;
  z-index: 60;
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  left: -140px; top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 120, 181, .24), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.sidebar-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 22px 0 24px;
  flex: none;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  position: relative;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(216, 186, 126, .45);
  background: linear-gradient(145deg, rgba(216,186,126,.16), rgba(255,255,255,.03));
  box-shadow: inset 0 0 20px rgba(198,161,91,.08);
  display: grid;
  place-content: center;
  gap: 4px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold-400);
  right: 7px; top: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(216,186,126,.7);
}
.brand-mark-line { display: block; height: 2px; border-radius: 3px; background: var(--gold-400); }
.brand-mark-line:nth-child(1) { width: 18px; }
.brand-mark-line:nth-child(2) { width: 13px; opacity: .78; }
.brand-mark-line:nth-child(3) { width: 8px; opacity: .55; }
.brand-word { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-word strong { font-size: 18px; letter-spacing: .08em; font-weight: 700; color: #f6f8fb; }
.brand-word small { margin-top: 5px; font-size: 8px; letter-spacing: .18em; color: rgba(216,186,126,.76); font-weight: 600; }
.sidebar-collapse {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  color: #9eb0c2;
  display: grid; place-items: center;
  transition: .2s;
}
.sidebar-collapse .icon { width: 13px; height: 13px; }
.sidebar-collapse:hover { background: rgba(255,255,255,.1); color: #fff; }

.sidebar-scroll { position: relative; z-index: 1; overflow-y: auto; overflow-x: hidden; flex: 1; padding: 6px 14px 18px; }
.main-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  margin: 19px 10px 8px;
  font-size: 9px;
  letter-spacing: .19em;
  font-weight: 700;
  color: rgba(192, 207, 222, .42);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-label:first-child { margin-top: 4px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(218, 229, 240, .68);
  text-align: left;
  transition: color .2s, background .2s, transform .2s var(--ease);
}
.nav-item .icon { width: 18px; height: 18px; opacity: .82; transition: .2s; }
.nav-text { flex: 1; font-size: 13px; font-weight: 500; letter-spacing: .015em; white-space: nowrap; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-item:hover .icon { opacity: 1; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(198,161,91,.15), rgba(255,255,255,.045));
  box-shadow: inset 0 0 0 1px rgba(216,186,126,.1);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px; top: 13px;
  width: 3px; height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--gold-400);
  box-shadow: 0 0 12px rgba(216,186,126,.5);
}
.nav-item.active .icon { color: var(--gold-400); opacity: 1; }
.nav-pill, .nav-badge {
  font-size: 8px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--gold-400);
  border: 1px solid rgba(198,161,91,.34);
  background: rgba(198,161,91,.1);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.5;
}
.nav-badge { font-size: 9px; letter-spacing: .02em; padding: 0 5px; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 7px rgba(216,186,126,.6); }
.nav-count {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 6px;
  background: rgba(194, 84, 84, .2);
  color: #f2b6b6;
  font-size: 9px; font-weight: 700;
  display: grid; place-items: center;
}

.sidebar-foot { position: relative; z-index: 1; flex: none; padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.055); }
.sprint-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
  margin-bottom: 12px;
}
.sprint-head { display: flex; justify-content: space-between; font-size: 10px; color: rgba(218,229,240,.58); }
.sprint-head span:last-child { color: var(--gold-400); font-weight: 700; }
.progress-track { height: 4px; border-radius: 10px; background: rgba(255,255,255,.09); overflow: hidden; }
.sprint-card .progress-track { margin: 9px 0 7px; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .8s var(--ease); }
.sprint-card p { font-size: 10px; color: rgba(218,229,240,.46); }
.sprint-card p strong { color: rgba(255,255,255,.8); }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #d8ba7e, #b58b49);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-xl { width: 72px; height: 72px; font-size: 28px; border-radius: 20px; }
.avatar.square { border-radius: 11px; width: 42px; height: 42px; font-size: 16px; }
.sidebar-profile > div { flex: 1; min-width: 0; }
.sidebar-profile strong { display: block; font-size: 11.5px; color: rgba(255,255,255,.86); white-space: nowrap; }
.sidebar-profile small { display: block; font-size: 9.5px; color: rgba(218,229,240,.42); margin-top: 2px; white-space: nowrap; }
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-grid; place-items: center;
  transition: .2s var(--ease);
}
.icon-button:hover { border-color: var(--line-strong); background: var(--blue-50); color: var(--blue-700); transform: translateY(-1px); }
.icon-button.small { width: 30px; height: 30px; border-radius: 8px; }
.icon-button.small .icon { width: 15px; height: 15px; }
.icon-button-dark { color: rgba(255,255,255,.55); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); width: 30px; height: 30px; border-radius: 8px; }
.icon-button-dark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.1); }
.icon-button.light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.icon-button.light:hover { background: rgba(255,255,255,.2); color: #fff; }

/* collapsed sidebar */
body.sidebar-collapsed .brand-word,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-pill,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .nav-dot,
body.sidebar-collapsed .nav-count,
body.sidebar-collapsed .sprint-card,
body.sidebar-collapsed .sidebar-profile > div,
body.sidebar-collapsed .sidebar-profile .icon-button { display: none; }
body.sidebar-collapsed .sidebar-top { padding: 0; justify-content: center; height: 88px; }
body.sidebar-collapsed .brand { justify-content: center; }
body.sidebar-collapsed .sidebar-collapse { position: absolute; right: 6px; bottom: 5px; width: 20px; height: 20px; transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-scroll { padding: 4px 12px; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 0; height: 48px; }
body.sidebar-collapsed .nav-item.active::before { left: -12px; }
body.sidebar-collapsed .sidebar-profile { justify-content: center; }
body.sidebar-collapsed .sidebar-foot { padding: 14px 0; }

/* =========================================================
   TOP BAR + MAIN
   ========================================================= */
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  height: var(--topbar-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(250, 251, 253, .86);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid rgba(214, 223, 234, .78);
}
.topbar-left, .topbar-right { display: flex; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.breadcrumb .icon { width: 12px; height: 12px; color: #b2bdcb; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.mobile-menu { display: none; margin-right: 12px; }
.command-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 284px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  transition: .2s;
}
.command-trigger:hover { border-color: #b9c8d9; box-shadow: 0 3px 12px rgba(21,40,61,.05); }
.command-trigger .icon { width: 15px; height: 15px; }
.command-trigger span { flex: 1; text-align: left; font-size: 11.5px; }
kbd {
  font-family: var(--font-sans);
  font-size: 9px;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 4px;
  border: 1px solid #e1e7ef;
  background: #f8fafc;
  color: #8b99aa;
  box-shadow: 0 1px 0 #e9eef4;
}
.engine-status { display: flex; align-items: center; gap: 7px; margin-left: 20px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4aa784; box-shadow: 0 0 0 3px rgba(74,167,132,.12); animation: statusPulse 3s infinite; }
@keyframes statusPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(74,167,132,.12); } 50% { box-shadow: 0 0 0 5px rgba(74,167,132,.04); } }
.topbar-date { margin-left: 24px; padding-left: 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.25; min-width: 74px; }
.topbar-date strong { font-size: 14px; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.topbar-date span { font-size: 9px; color: var(--muted-light); margin-top: 2px; }
.notification-button { position: relative; margin-left: 16px; border-color: transparent; background: transparent; }
.notification-button:hover { background: #fff; border-color: var(--line); }
.notify-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 2px #fff; }
.profile-chip {
  display: flex; align-items: center; gap: 9px;
  margin-left: 12px;
  border: 0; background: transparent;
  padding: 3px 4px 3px 3px;
  border-radius: 10px;
  transition: .2s;
}
.profile-chip:hover { background: #fff; box-shadow: 0 4px 14px rgba(21,40,61,.06); }
.profile-chip-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.profile-chip-copy strong { font-size: 11px; font-weight: 600; }
.profile-chip-copy small { font-size: 9px; color: var(--muted); }
.profile-chip > .icon { width: 12px; height: 12px; color: var(--muted-light); margin: 0 4px; }

.main-content { padding: 32px 34px 38px; max-width: 1560px; width: 100%; margin: 0 auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn .48s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: revealUp .62s var(--ease) both; animation-delay: calc(var(--d, 0) * 55ms); }
@keyframes revealUp { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; min-height: 74px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 8px; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: rgba(167,127,63,.42); }
.page-heading h1 { font-size: 29px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.heading-dot { color: var(--gold-500); margin-left: 1px; }
.page-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex: none; padding-bottom: 2px; }
.page-foot {
  display: flex; justify-content: space-between;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(214,223,234,.7);
  color: var(--muted-light); font-size: 9.5px; letter-spacing: .01em;
}
.page-foot span { color: #a8b3c1; }

/* =========================================================
   BUTTONS / BADGES / FIELDS
   ========================================================= */
.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
  overflow: hidden;
}
.button .icon { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .42; pointer-events: none; box-shadow: none; }
.field input:disabled, .field select:disabled { background: #f4f6f9; color: #8796a8; cursor: not-allowed; }
.button-primary { background: linear-gradient(135deg, var(--blue-700), #2d69a6); color: #fff; box-shadow: 0 7px 18px rgba(29,78,137,.17); }
.button-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.16) 45%, transparent 70%); transform: translateX(-120%); transition: transform .65s; }
.button-primary:hover::after { transform: translateX(120%); }
.button-primary:hover { box-shadow: 0 10px 24px rgba(29,78,137,.26); }
.button-ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.button-ghost:hover { border-color: #bccbdb; background: #fcfdff; box-shadow: 0 4px 12px rgba(21,40,61,.045); }
.button-dark { background: var(--navy-900); color: #fff; box-shadow: 0 7px 18px rgba(8,26,45,.16); }
.button-dark:hover { background: var(--navy-800); }
.button-gold { background: linear-gradient(135deg, #d2af70, #b9904d); color: #fff; box-shadow: 0 8px 20px rgba(167,127,63,.21); }
.button-gold:hover { box-shadow: 0 10px 26px rgba(167,127,63,.3); }
.button-block { width: 100%; }
.button-lg { height: 48px; border-radius: 12px; font-size: 13px; }
.button-sm { height: 34px; padding: 0 13px; font-size: 11px; border-radius: 8px; }
.button-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 5px; padding: 0 4px; background: var(--blue-100); color: var(--blue-700); font-size: 9px; font-weight: 700; }
.button-shortcut { margin-left: auto; font-size: 11px; opacity: .45; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--blue-700); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: .2s; }
.text-button:hover { color: var(--blue-500); gap: 8px; }
.text-button .icon { width: 14px; height: 14px; }
.text-button.small { font-size: 10.5px; }
.link-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--blue-700); font-size: 10.5px; font-weight: 600; transition: .2s; }
.link-button:hover { gap: 7px; color: var(--blue-500); }
.link-button .icon { width: 13px; height: 13px; }
.standard-badge { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #dbe4ee; background: rgba(255,255,255,.7); color: var(--ink-soft); font-size: 10px; font-weight: 600; white-space: nowrap; }
.standard-badge .icon { width: 14px; height: 14px; color: var(--blue-600); }
.standard-badge.gold { border-color: #eadfc9; background: #fcf8ef; color: #8d6b35; }
.standard-badge.gold .icon { color: var(--gold-600); }
.soft-note { font-size: 9.5px; color: var(--muted-light); }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #c2ccd8; margin: 0 9px; vertical-align: 3px; }
.positive { color: var(--green) !important; }
.warning-text { color: var(--amber) !important; }
.gold-text { color: var(--gold-600) !important; }
.count-badge { min-width: 21px; height: 21px; padding: 0 7px; border-radius: 7px; background: var(--blue-50); color: var(--blue-700); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.head-actions { display: flex; align-items: center; gap: 9px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted-light); font-size: 9px; margin-left: auto; }
.field input, .field select, .field textarea, .inventory-row input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfdff;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718196' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c5d1df; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(60,120,181,.09); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #a9b5c4; }
.field textarea { height: auto; min-height: 108px; resize: vertical; line-height: 1.75; padding: 12px 14px; }
.field-textarea { position: relative; }
.textarea-count { position: absolute; right: 13px; bottom: 8px; font-size: 8.5px; color: var(--muted-light); }
.field-grid { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row:last-child { margin-bottom: 0; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix i { position: absolute; left: 12px; font-style: normal; color: var(--muted-light); font-size: 11px; }
.input-affix input { padding-left: 27px; }
.input-affix > span { position: absolute; right: 11px; font-size: 9px; color: var(--muted-light); letter-spacing: .04em; }
.input-affix:has(> span) input { padding-right: 48px; }
.inline-notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--blue-50); border: 1px solid #e2edf8; font-size: 10px; color: #62778f; line-height: 1.6; margin-bottom: 15px; }
.inline-notice .icon { width: 14px; height: 14px; margin-top: 1px; color: var(--blue-500); }
.form-hint-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 15px; }
.form-hint-row p { display: flex; gap: 5px; align-items: center; color: var(--muted-light); font-size: 9.5px; }
.form-hint-row p .icon { width: 13px; height: 13px; }
.form-action-row { display: flex; gap: 10px; margin-top: 18px; }
.form-section-title { margin: 19px 0 11px; padding-top: 16px; border-top: 1px dashed #e3e9f0; font-size: 10px; font-weight: 700; letter-spacing: .07em; color: var(--gold-600); text-transform: uppercase; }
.form-section-title:first-of-type { margin-top: 12px; }
.formula-box { background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 9px; padding: 11px 13px; font-size: 10px; color: #64778c; line-height: 1.7; margin-top: 14px; font-variant-numeric: tabular-nums; }
.formula-box strong { color: var(--ink); }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted-light); font-size: 8.5px; }
.privacy-note .icon { width: 11px; height: 11px; }

.segmented { display: inline-flex; padding: 3px; border-radius: 9px; background: #f1f4f8; border: 1px solid #e9eef4; }
.segmented button { border: 0; background: transparent; padding: 0 13px; height: 31px; border-radius: 7px; color: var(--muted); font-size: 10.5px; font-weight: 500; transition: .2s; white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: #fff; color: var(--blue-700); font-weight: 600; box-shadow: 0 2px 7px rgba(21,40,61,.08); }
.segmented.small button { height: 27px; padding: 0 10px; font-size: 9.5px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; margin: 14px 0 0; border-top: 1px dashed #e8edf3; }
.switch-row strong { display: block; font-size: 11px; font-weight: 600; }
.switch-row p { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; width: 38px; height: 21px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d9e1ea; border-radius: 20px; transition: .25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.17); transition: .25s var(--ease); }
.switch input:checked + span { background: var(--blue-700); }
.switch input:checked + span::after { transform: translateX(17px); }

/* =========================================================
   CARDS / COMMON
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { border-color: #d8e1eb; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-head .card-sub { font-size: 10px; color: var(--muted); margin-top: 3px; }
.card-kicker { display: block; font-size: 8px; letter-spacing: .18em; font-weight: 700; color: #a3906c; margin-bottom: 5px; }
.legend-row { display: flex; align-items: center; gap: 13px; font-size: 9px; color: var(--muted); }
.legend-row span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend-dot.blue { background: var(--blue-600); }
.legend-dot.gold { background: var(--gold-500); }
.legend-dot.silver { background: #bcc8d5; }
.chart-wrap { width: 100%; height: 238px; position: relative; }
.chart-wrap.mini { height: 145px; margin-top: 8px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.data-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 9px; letter-spacing: .03em; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid #eef2f6; color: var(--ink-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfcfe; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .strong { color: var(--ink); font-weight: 600; }
.data-table .total-row td { background: #f8fafc; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.compact-table { margin-top: 12px; max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.compact-table .data-table { font-size: 9.5px; }
.compact-table .data-table th, .compact-table .data-table td { padding: 7px 9px; }

/* =========================================================
   OVERVIEW
   ========================================================= */
.overview-hero-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(300px, .85fr); gap: 18px; margin-bottom: 18px; }
.hero-card {
  position: relative;
  min-height: 328px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(820px 380px at 78% 20%, rgba(65,126,184,.30), transparent 55%),
    radial-gradient(500px 300px at 0% 100%, rgba(198,161,91,.10), transparent 60%),
    linear-gradient(130deg, #0b2036 0%, #0e2a47 55%, #113a5c 100%);
  color: #fff;
  display: flex;
  box-shadow: 0 18px 40px rgba(9, 27, 45, .17);
}
.hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,24,41,.12), transparent 55%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 72% 50%, black, transparent 72%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 3; padding: 32px 0 27px 34px; width: 61%; display: flex; flex-direction: column; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 20px; border: 1px solid rgba(216,186,126,.26); background: rgba(216,186,126,.08); color: #e8d2a9; font-size: 8.5px; letter-spacing: .04em; }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: #e3c894; box-shadow: 0 0 0 3px rgba(227,200,148,.1); animation: pulseDot 2.4s infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 6px rgba(227,200,148,.02); } }
.hero-copy h2 { font-size: 30px; line-height: 1.35; margin-top: 17px; font-weight: 500; letter-spacing: -.035em; color: #f7f9fc; }
.hero-copy h2 em { font-family: var(--font-serif); font-style: normal; font-weight: 600; color: #e4c994; }
.hero-copy > p { font-size: 11px; color: rgba(225,234,245,.61); max-width: 410px; line-height: 1.75; margin-top: 11px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.hero-actions .button-gold { height: 38px; font-size: 11px; }
.hero-actions .text-button { color: rgba(242,246,251,.75); }
.hero-actions .text-button:hover { color: #fff; }
.hero-proof { display: flex; gap: 27px; margin-top: auto; padding-top: 22px; }
.hero-proof div { display: flex; align-items: baseline; gap: 6px; }
.hero-proof strong { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: #e0c58f; }
.hero-proof span { font-size: 8.5px; color: rgba(220,231,243,.45); letter-spacing: .03em; }
.hero-visual { position: relative; z-index: 2; flex: 1; min-width: 320px; }
.orbit { position: absolute; border: 1px solid rgba(216,186,126,.13); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--gold-400); opacity: .65; }
.orbit-outer { width: 315px; height: 315px; right: -32px; top: 7px; animation: orbitRotate 38s linear infinite; }
.orbit-outer::before { width: 4px; height: 4px; left: 26px; top: 73px; box-shadow: 0 0 9px rgba(216,186,126,.8); }
.orbit-outer::after { width: 3px; height: 3px; right: 45px; bottom: 52px; }
.orbit-inner { width: 216px; height: 216px; right: 17px; top: 57px; border-style: dashed; border-color: rgba(255,255,255,.10); animation: orbitRotate 26s linear infinite reverse; }
@keyframes orbitRotate { to { transform: rotate(360deg); } }
.ai-core {
  position: absolute; right: 93px; top: 133px;
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.19), rgba(54,114,168,.22) 45%, rgba(9,28,46,.25));
  border: 1px solid rgba(216,186,126,.34);
  box-shadow: 0 0 45px rgba(69,130,184,.22), inset 0 0 30px rgba(216,186,126,.06);
  backdrop-filter: blur(8px);
}
.ai-core::after { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(216,186,126,.10); border-radius: 50%; }
.ai-core-label { font-family: var(--font-serif); font-size: 28px; line-height: 1; color: #ebd5a9; font-weight: 600; letter-spacing: .04em; }
.ai-core-sub { font-size: 6.5px; letter-spacing: .3em; color: rgba(235,213,169,.58); margin-top: 6px; }
.floating-ledger {
  position: absolute;
  width: 146px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251,253,255,.96);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(3,15,27,.24);
  border: 1px solid rgba(255,255,255,.6);
  animation: floatY 5.5s ease-in-out infinite;
  z-index: 4;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.floating-ledger::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--blue-500); }
.ledger-a { right: 186px; top: 48px; animation-delay: -1.4s; }
.ledger-b { right: 1px; top: 194px; animation-delay: -3s; }
.ledger-b::before { background: var(--gold-500); }
.mini-label { display: block; font-size: 6.5px; letter-spacing: .1em; color: var(--muted); }
.floating-ledger strong { display: block; font-size: 9.5px; margin-top: 3px; font-weight: 600; }
.floating-ledger em { display: block; font-style: normal; font-family: var(--font-serif); font-size: 13px; color: var(--blue-700); margin-top: 1px; font-variant-numeric: tabular-nums; }
.ledger-b em { color: var(--gold-600); }
.floating-check {
  position: absolute; left: 69px; bottom: 27px; z-index: 5;
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 20px;
  background: rgba(24,63,57,.76);
  border: 1px solid rgba(126,181,162,.25);
  color: #b8e0d1;
  font-size: 8px;
  backdrop-filter: blur(8px);
  animation: floatY 6s ease-in-out infinite -2.2s;
}
.floating-check .icon { width: 12px; height: 12px; }
.orbit-tag { position: absolute; font-size: 7.5px; color: rgba(224,233,243,.4); letter-spacing: .06em; writing-mode: vertical-rl; }
.tag-a { right: 304px; top: 193px; }
.tag-b { right: 31px; top: 76px; }

.plan-card { padding: 22px 21px 17px; display: flex; flex-direction: column; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.date-chip { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--canvas); border: 1px solid var(--line); color: var(--muted); font-size: 9px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.plan-progress-row { display: flex; align-items: center; gap: 13px; padding: 12px 0 14px; border-bottom: 1px dashed #e9eef4; }
.ring-progress { --value: 33; width: 46px; height: 46px; flex: none; border-radius: 50%; background: conic-gradient(var(--blue-600) calc(var(--value) * 1%), #eaf0f6 0); display: grid; place-items: center; position: relative; }
.ring-progress::after { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.ring-progress span { position: relative; z-index: 1; font-size: 9px; font-weight: 700; color: var(--blue-700); }
.plan-progress-row strong { display: block; font-size: 11.5px; }
.plan-progress-row p { font-size: 9px; color: var(--muted); margin-top: 2px; }
.plan-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.plan-item { display: flex; align-items: center; gap: 9px; padding: 9px 4px; border: 0; background: transparent; text-align: left; border-radius: 8px; transition: .2s; }
.plan-item:hover { background: #f8fafc; padding-left: 7px; }
.plan-check { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1.5px solid #d5dfe9; display: grid; place-items: center; color: #fff; transition: .2s; }
.plan-check .icon { width: 10px; height: 10px; opacity: 0; }
.plan-item.done .plan-check { background: var(--green); border-color: var(--green); }
.plan-item.done .plan-check .icon { opacity: 1; }
.plan-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plan-copy strong { font-size: 10px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-copy small { font-size: 8px; color: var(--muted-light); margin-top: 1px; }
.plan-item.done .plan-copy strong { color: var(--muted); text-decoration: line-through; text-decoration-color: #c7d1dc; }
.plan-time { font-size: 8px; color: #9caabb; white-space: nowrap; }
.plan-item.done .plan-time { color: var(--green); }
.plan-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed #e9eef4; font-size: 8.5px; color: var(--muted); }
.plan-foot > span { display: flex; align-items: center; gap: 4px; }
.plan-foot .icon { width: 11px; height: 11px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  position: relative; display: flex; align-items: flex-start; gap: 13px;
  padding: 17px 17px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 9px rgba(21,40,61,.025);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d6e1ec; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.stat-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.stat-icon.slate { background: #f1f4f8; color: #5b7188; }
.stat-icon.rose { background: #fbf0ed; color: #b36d5a; }
.stat-main { flex: 1; min-width: 0; }
.stat-main > span { display: block; font-size: 9.5px; color: var(--muted); margin-bottom: 2px; }
.stat-main strong { display: block; font-family: var(--font-serif); font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-main small { display: block; margin-top: 4px; font-size: 8.5px; color: var(--muted-light); }
.sparkline { position: absolute; right: 10px; bottom: 9px; width: 65px; height: 28px; opacity: .8; }
.sparkline svg { width: 100%; height: 100%; overflow: visible; }
.mini-gauge { position: absolute; left: 68px; right: 17px; bottom: 12px; height: 3px; background: #edf1f6; border-radius: 2px; overflow: hidden; }
.mini-gauge span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.streak-dots { position: absolute; right: 14px; bottom: 15px; display: flex; gap: 3px; }
.streak-dots i { width: 5px; height: 5px; border-radius: 50%; background: #dfe6ef; }
.streak-dots i:nth-child(-n+6) { background: #d8b574; }
.streak-dots i.today { background: #b58b49; box-shadow: 0 0 0 3px rgba(181,139,73,.12); }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid > .card { padding: 21px 22px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.chart-card:hover, .radar-card:hover, .quick-card:hover, .activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.chart-summary { display: flex; gap: 35px; margin: 2px 0 8px; }
.chart-summary div { display: flex; flex-direction: column; }
.chart-summary span { font-size: 8.5px; color: var(--muted); }
.chart-summary strong { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.4; margin-top: 1px; font-variant-numeric: tabular-nums; }
.chart-summary strong small { font-family: var(--font-sans); font-size: 8px; color: var(--muted-light); font-weight: 400; }
.radar-wrap { height: 196px; margin: 0 auto; max-width: 310px; }
.radar-wrap svg { width: 100%; height: 100%; overflow: visible; }
.radar-legend { display: flex; justify-content: center; gap: 15px; font-size: 8.5px; color: var(--muted); margin-top: 5px; }
.radar-legend span { display: flex; align-items: center; gap: 5px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-tile {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 13px;
  min-height: 68px;
  border: 1px solid #e9eef5;
  border-radius: 11px;
  background: #fbfcfe;
  text-align: left;
  transition: .25s var(--ease);
  overflow: hidden;
}
.quick-tile:hover { background: #fff; border-color: #cfdcea; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21,40,61,.06); }
.quick-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.quick-icon .icon { width: 16px; height: 16px; }
.quick-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.quick-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.quick-icon.slate { background: #f1f4f8; color: #5b7188; }
.quick-icon.teal { background: #eaf5f4; color: var(--teal); }
.quick-tile strong { display: block; font-size: 10.5px; font-weight: 600; }
.quick-tile small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.quick-go { margin-left: auto; color: #b9c6d4; opacity: 0; transform: translateX(-3px); transition: .2s; }
.quick-go .icon { width: 14px; height: 14px; }
.quick-tile:hover .quick-go { opacity: 1; transform: translateX(0); color: var(--blue-600); }
.recent-list { display: flex; flex-direction: column; gap: 2px; }
.recent-item { display: flex; align-items: center; gap: 9px; padding: 8px 3px; border-bottom: 1px dashed #eef2f6; }
.recent-item:last-child { border-bottom: 0; }
.recent-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 9px; font-weight: 700; }
.recent-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.recent-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.recent-icon.green { background: var(--green-bg); color: var(--green); }
.recent-copy { flex: 1; min-width: 0; }
.recent-copy strong { display: block; font-size: 9.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-copy small { display: block; font-size: 8px; color: var(--muted-light); }
.recent-time { font-size: 8px; color: #a5b1c0; }
.exam-tip { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, #fbf7ee, #f8f5ee); border: 1px solid #efe3cc; }
.tip-icon { width: 25px; height: 25px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); }
.tip-icon .icon { width: 13px; height: 13px; }
.tip-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.exam-tip strong { font-size: 9px; color: #8b6a34; }
.exam-tip p { font-size: 8.5px; color: #8d7d63; line-height: 1.55; margin: 2px 0 4px; }

/* =========================================================
   JOURNAL
   ========================================================= */
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(380px, .84fr); gap: 17px; align-items: start; }
.workspace-card { padding: 24px 25px; }
.mode-tabs { position: relative; display: flex; gap: 3px; padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.mode-tabs button { position: relative; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); padding: 7px 11px; font-size: 11px; font-weight: 500; border-radius: 7px; transition: .2s; z-index: 1; }
.mode-tabs button .icon { width: 15px; height: 15px; }
.mode-tabs button:hover { color: var(--ink); background: #f8fafc; }
.mode-tabs button.active { color: var(--blue-700); font-weight: 600; background: var(--blue-50); }
.mode-tab-line { display: none; }
.mode-panel { display: none; }
.mode-panel.active { display: block; animation: fadeSlide .34s var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.smart-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 6px; }
.smart-suggest button { border: 1px solid #e6edf4; background: #fbfcfe; border-radius: 20px; padding: 4px 9px; font-size: 8.5px; color: var(--muted); transition: .2s; }
.smart-suggest button:hover { border-color: #c8d7e6; color: var(--blue-700); background: var(--blue-50); }
.grading-question { padding: 12px 14px; border-radius: 10px; background: #f8fafc; border-left: 2px solid var(--gold-500); margin-bottom: 14px; font-size: 10.5px; line-height: 1.7; color: var(--ink-soft); }
.grading-question strong { display: block; font-size: 8px; letter-spacing: .1em; color: var(--gold-600); margin-bottom: 4px; }
.result-column { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.result-card { padding: 21px 22px; min-height: 300px; }
.result-head-actions { display: flex; gap: 6px; }
.result-head-actions .icon-button { width: 30px; height: 30px; border-radius: 8px; }
.result-head-actions .icon-button .icon { width: 14px; height: 14px; }
.journal-result { min-height: 220px; }
.result-placeholder { height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.result-placeholder .placeholder-orbit { width: 70px; height: 70px; border-radius: 50%; border: 1px dashed #cedae7; display: grid; place-items: center; margin-bottom: 14px; color: var(--blue-500); background: var(--blue-50); }
.result-placeholder h4 { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.result-placeholder p { font-size: 10px; margin-top: 5px; line-height: 1.7; max-width: 250px; }
.result-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; background: #f4f7fa; color: #6f8195; font-size: 8px; }
.meta-chip.gold { background: var(--gold-100); color: #8d6c35; }
.meta-chip.green { background: var(--green-bg); color: var(--green); }
.meta-chip .icon { width: 10px; height: 10px; }
.journal-entries { border: 1px solid #e6edf4; border-radius: 10px; overflow: hidden; margin-bottom: 13px; }
.journal-section-label { padding: 8px 12px; background: #f7f9fc; border-bottom: 1px solid #e9eef5; font-size: 8px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.journal-entry-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) 96px; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #eef2f7; font-size: 10.5px; transition: background .2s; }
.journal-entry-row:last-child { border-bottom: 0; }
.journal-entry-row:hover { background: #fcfdff; }
.entry-side { font-size: 8.5px; font-weight: 700; letter-spacing: .02em; color: var(--blue-700); }
.journal-entry-row.credit .entry-side { color: var(--gold-600); }
.entry-account { color: var(--ink-soft); }
.entry-account small { display: block; font-size: 8px; color: var(--muted-light); margin-top: 1px; }
.entry-amount { text-align: right; font-family: var(--font-serif); font-size: 12px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.journal-balance-line { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #fbfcfe; border-top: 1px solid #e9eef5; font-size: 8.5px; color: var(--muted); }
.journal-balance-line strong { color: var(--green); font-size: 9px; display: flex; align-items: center; gap: 4px; }
.journal-balance-line .icon { width: 11px; height: 11px; }
.ai-analysis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.analysis-block { padding: 10px 11px; border-radius: 9px; background: #f8fafc; border: 1px solid #edf1f6; }
.analysis-block.full { grid-column: span 2; }
.analysis-block strong { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--ink-soft); margin-bottom: 4px; }
.analysis-block strong .icon { width: 11px; height: 11px; color: var(--gold-600); }
.analysis-block p { font-size: 8.6px; line-height: 1.65; color: var(--muted); }
.analysis-block.pitfall { background: #fdf9f2; border-color: #f0e5d3; }
.analysis-block.pitfall p { color: #8d7757; }
.result-actions-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.favorite-card { padding: 18px 20px; }
.favorite-card .card-head { margin-bottom: 8px; }
.favorite-list { display: flex; flex-direction: column; }
.favorite-empty { padding: 15px 4px; text-align: center; color: var(--muted-light); font-size: 9px; }
.favorite-item { display: flex; align-items: center; gap: 9px; padding: 9px 1px; border-bottom: 1px dashed #eef2f6; }
.favorite-item:last-child { border-bottom: 0; }
.favorite-item .fav-mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); flex: none; }
.favorite-item .fav-mark .icon { width: 12px; height: 12px; }
.favorite-copy { flex: 1; min-width: 0; }
.favorite-copy strong { display: block; font-size: 9.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorite-copy small { display: block; font-size: 8px; color: var(--muted-light); }
.favorite-item button { border: 0; background: none; color: #b4bfcc; padding: 3px; }
.favorite-item button:hover { color: var(--red); }

/* grading result */
.grade-score-row { display: flex; align-items: center; gap: 16px; padding: 13px 14px; border-radius: 11px; background: linear-gradient(135deg, #f7fafc, #f2f7fb); border: 1px solid #e6eef6; margin-bottom: 14px; }
.score-ring { --score: 0; position: relative; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--blue-600) calc(var(--score) * 1%), #e7eef5 0); display: grid; place-items: center; flex: none; }
.score-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.score-ring > span { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 25px; font-weight: 600; line-height: 1; color: var(--blue-700); }
.score-ring > small { position: absolute; bottom: 17px; z-index: 1; font-size: 7px; color: var(--muted-light); }
.score-ring.large { width: 100px; height: 100px; }
.score-ring.large::after { inset: 7px; }
.score-ring.large > span { font-size: 30px; }
.score-ring.large > small { bottom: 23px; font-size: 8px; }
.grade-copy { flex: 1; }
.grade-copy h4 { font-size: 14px; font-weight: 600; }
.grade-copy p { font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.grade-grade { display: inline-flex; margin-top: 5px; padding: 2px 8px; border-radius: 4px; background: var(--green-bg); color: var(--green); font-size: 8px; font-weight: 700; }
.graded-lines { display: flex; flex-direction: column; gap: 5px; }
.graded-line { display: flex; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 9.5px; align-items: flex-start; border: 1px solid transparent; }
.graded-line.correct { background: #f3faf7; border-color: #dcefe7; color: #38775f; }
.graded-line.warn { background: #fdf9f0; border-color: #f0e5cc; color: #8d6e36; }
.graded-line.error { background: #fcf4f4; border-color: #f1dbdb; color: #9a5151; }
.graded-line .line-status { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.graded-line .line-status .icon { width: 9px; height: 9px; }
.graded-line.correct .line-status { background: #d8eee4; }
.graded-line.warn .line-status { background: #f4e8cf; }
.graded-line.error .line-status { background: #f2dddd; }
.graded-line .line-body { flex: 1; min-width: 0; }
.graded-line strong { font-weight: 600; }
.graded-line p { font-size: 8.5px; opacity: .78; margin-top: 1px; line-height: 1.5; }
.grade-feedback { margin-top: 12px; padding: 11px 12px; border-radius: 9px; background: #f8fafc; border-left: 2px solid var(--blue-500); font-size: 9px; color: var(--muted); line-height: 1.7; }

.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.section-block { margin-top: 31px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 17px; gap: 20px; }
.section-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.section-head p { font-size: 9.5px; color: var(--muted); }
.section-head.compact { margin-bottom: 14px; }
.section-head.compact h2 { font-size: 17px; }
.template-card {
  position: relative;
  padding: 15px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  transition: .28s var(--ease);
  overflow: hidden;
}
.template-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: .2s; }
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d4e0eb; }
.template-card:hover::after { background: var(--gold-500); }
.template-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.template-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.template-icon .icon { width: 15px; height: 15px; }
.template-card:nth-child(2n) .template-icon { background: var(--gold-100); color: var(--gold-600); }
.template-card:nth-child(3n) .template-icon { background: #eef4f4; color: var(--teal); }
.template-arrow { color: #b6c3d1; opacity: 0; transform: translate(-2px, 2px); transition: .2s; }
.template-card:hover .template-arrow { opacity: 1; transform: none; color: var(--blue-600); }
.template-card h3 { font-size: 11px; font-weight: 600; }
.template-card p { font-size: 8.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; min-height: 27px; }
.template-tag { display: inline-block; margin-top: 9px; font-size: 7.5px; padding: 2px 6px; border-radius: 4px; background: #f5f7fa; color: #8796a8; }

/* =========================================================
   TAX
   ========================================================= */
.tax-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tax-tab {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: .28s var(--ease);
}
.tax-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,40,61,.055); }
.tax-tab.active { background: linear-gradient(135deg, #0f2b47, #173e62); border-color: #173e62; color: #fff; box-shadow: 0 10px 24px rgba(15,43,71,.15); }
.tab-index { font-family: var(--font-serif); font-size: 11px; color: #b8c5d3; }
.tax-tab.active .tab-index { color: var(--gold-400); }
.tax-tab > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.tax-tab strong { font-size: 10.5px; font-weight: 600; }
.tax-tab small { font-size: 8px; color: var(--muted); margin-top: 1px; }
.tax-tab.active small { color: rgba(220,232,245,.47); }
.tax-tab > .icon { width: 14px; height: 14px; color: #b4c2d0; opacity: .6; }
.tax-tab.active > .icon { color: var(--gold-400); opacity: 1; }
.tax-panel { display: none; }
.tax-panel.active { display: block; animation: pageIn .4s var(--ease); }
.tax-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .8fr); gap: 16px; align-items: stretch; }
.tax-form-card { padding: 23px 25px; }
.tax-form-card .card-head { margin-bottom: 15px; }
.result-panel {
  position: relative;
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0d2945, #123756 58%, #0d2c48);
  color: #fff;
  padding: 23px 23px 21px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(9,29,48,.15);
  display: flex; flex-direction: column;
}
.result-panel::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(198,161,91,.16), transparent 62%); right: -95px; top: -85px; pointer-events: none; }
.result-panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(180deg, black, transparent 80%); pointer-events: none; }
.result-panel > * { position: relative; z-index: 1; }
.result-panel-top { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.09); position: relative; }
.result-panel-top > span:first-child { font-size: 10px; letter-spacing: .03em; color: rgba(220,232,245,.55); }
.big-amount { font-family: var(--font-serif); font-size: 35px; line-height: 1.3; font-weight: 600; letter-spacing: -.035em; margin: 7px 0 3px; font-variant-numeric: tabular-nums; color: #f8fbff; transition: color .3s; }
.result-subline { font-size: 8.5px; color: rgba(220,232,245,.42); }
.stamp { position: absolute; right: 0; top: 4px; display: inline-block; padding: 4px 8px; border: 1px solid rgba(216,186,126,.38); border-radius: 4px; color: #dcc18c; font-size: 7px; letter-spacing: .12em; transform: rotate(-4deg); opacity: .8; }
.result-breakdown { display: flex; flex-direction: column; gap: 1px; padding: 8px 0 4px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.075); font-size: 9.5px; color: rgba(224,235,246,.62); }
.result-row:last-child { border-bottom: 0; }
.result-row strong { color: rgba(248,251,255,.92); font-weight: 500; font-variant-numeric: tabular-nums; }
.result-row.highlight { margin-top: 4px; padding: 10px 0; border-top: 1px solid rgba(216,186,126,.25); border-bottom: 0; color: #e5ce9f; }
.result-row.highlight strong { color: #efd9aa; font-size: 11px; }
.result-row .negative-value { color: #9bc0e1; }
.tax-tip { display: flex; gap: 8px; padding: 11px; border-radius: 8px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); margin-top: auto; }
.tax-tip .icon { width: 13px; height: 13px; color: var(--gold-400); flex: none; margin-top: 1px; }
.tax-tip strong { display: block; font-size: 8.5px; color: #e6d1a7; margin-bottom: 2px; }
.tax-tip p { font-size: 8px; line-height: 1.6; color: rgba(220,232,245,.46); }
.result-panel .button-dark { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); box-shadow: none; margin-top: 12px; height: 38px; font-size: 10px; }
.result-panel .button-dark:hover { background: rgba(255,255,255,.16); }
.mini-bars { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.mini-bar-row { display: flex; align-items: center; gap: 8px; font-size: 8px; color: rgba(220,232,245,.52); }
.mini-bar-row span:first-child { width: 56px; flex: none; }
.mini-bar-row span:last-child { width: 50px; text-align: right; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.mini-bar-track { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.mini-bar-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #466f96, #82a9cb); }
.mini-bar-row:nth-child(2) .mini-bar-track i { background: linear-gradient(90deg, #9b7c49, #d8ba7e); }
.mini-bar-row:nth-child(3) .mini-bar-track i { background: linear-gradient(90deg, #4f8c82, #86b8ae); }
.calc-note-block { padding: 12px; background: #f8fafc; border-radius: 9px; margin-top: 14px; }
.calc-note-block span { display: block; font-size: 8px; font-weight: 700; color: var(--gold-600); letter-spacing: .08em; margin-bottom: 4px; }
.calc-note-block p { font-size: 9px; color: var(--muted); line-height: 1.65; }
.tax-bracket { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.tax-bracket-title { font-size: 8px; color: rgba(220,232,245,.42); margin-bottom: 5px; letter-spacing: .06em; }
.tax-bracket-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 8px; color: rgba(220,232,245,.45); }
.tax-bracket-row.active { color: #e4cc9b; }
.declaration-empty { padding: 60px 20px; text-align: center; min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-illustration { position: relative; width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 18px; color: var(--blue-500); }
.empty-illustration .icon { width: 29px; height: 29px; position: relative; z-index: 1; }
.empty-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed #cfdbe7; background: var(--blue-50); animation: slowSpin 24s linear infinite; }
.empty-ring::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); top: 4px; left: 36px; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.empty-illustration.small { width: 55px; height: 55px; }
.empty-illustration.small .icon { width: 21px; height: 21px; }
.declaration-empty h2 { font-size: 19px; font-weight: 600; }
.declaration-empty > p { max-width: 400px; font-size: 10.5px; color: var(--muted); margin-top: 7px; line-height: 1.75; }
.empty-actions { display: flex; gap: 9px; margin-top: 19px; }
.knowledge-strip { margin-top: 25px; }
.tax-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.tax-note-card { display: flex; gap: 11px; align-items: flex-start; padding: 15px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: .25s var(--ease); }
.tax-note-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,40,61,.05); border-color: #d6e1ec; }
.note-num { font-family: var(--font-serif); font-size: 15px; color: var(--gold-500); line-height: 1.2; }
.tax-note-card > div { flex: 1; }
.tax-note-card h3 { font-size: 10px; font-weight: 600; margin-bottom: 3px; }
.tax-note-card p { font-size: 8.5px; color: var(--muted); line-height: 1.65; }
.tax-note-card .icon-button { width: 24px; height: 24px; border: 0; background: #f7f9fc; flex: none; }
.declaration-preview { padding: 26px; }
.declaration-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.declaration-head h2 { font-size: 19px; font-weight: 600; }
.declaration-head p { font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.declaration-head .form-actions { display: flex; gap: 8px; }
.doc-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; border-radius: 8px; overflow: hidden; }
.doc-meta-grid div { background: #fbfcfe; padding: 9px 12px; }
.doc-meta-grid span { display: block; font-size: 8px; color: var(--muted-light); }
.doc-meta-grid strong { display: block; font-size: 10px; margin-top: 2px; font-weight: 500; }
.declaration-table th { background: #f6f8fb; }
.declaration-note { margin-top: 17px; padding: 12px 14px; border: 1px dashed #dce5ee; border-radius: 8px; font-size: 8.5px; color: var(--muted); line-height: 1.7; }
.declaration-sign { display: flex; justify-content: flex-end; gap: 30px; margin-top: 22px; font-size: 9px; color: var(--muted); }

/* =========================================================
   QUIZ
   ========================================================= */
.sub-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.sub-tabs button { position: relative; border: 0; background: transparent; padding: 9px 18px 12px; color: var(--muted); font-size: 11.5px; font-weight: 500; transition: .2s; }
.sub-tabs button::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: .2s; }
.sub-tabs button.active { color: var(--blue-700); font-weight: 600; }
.sub-tabs button.active::after { background: var(--blue-700); }
.sub-tabs button span { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 5px; border-radius: 5px; background: #f5e9e9; color: #ad6262; font-size: 8px; font-weight: 700; }
.quiz-panel { display: none; }
.quiz-panel.active { display: block; animation: pageIn .4s var(--ease); }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .7fr); gap: 17px; align-items: start; }
.quiz-config { padding: 24px 25px; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.chapter-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 14px;
  border-radius: 11px;
  border: 1px solid #e7edf4;
  background: #fbfcfe;
  text-align: left;
  transition: .22s var(--ease);
}
.chapter-card:hover { border-color: #cddae7; transform: translateY(-2px); box-shadow: 0 7px 17px rgba(21,40,61,.05); }
.chapter-card.selected { border-color: #a9c1da; background: #f5f9fd; box-shadow: inset 0 0 0 1px rgba(29,78,137,.05); }
.chapter-card .chapter-check { position: absolute; right: 10px; top: 10px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d5dfe9; display: grid; place-items: center; color: #fff; transition: .2s; }
.chapter-card .chapter-check .icon { width: 9px; height: 9px; opacity: 0; }
.chapter-card.selected .chapter-check { background: var(--blue-700); border-color: var(--blue-700); }
.chapter-card.selected .chapter-check .icon { opacity: 1; }
.chapter-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 9px; }
.chapter-icon .icon { width: 15px; height: 15px; }
.chapter-card:nth-child(2n) .chapter-icon { background: var(--gold-100); color: var(--gold-600); }
.chapter-card:nth-child(3n) .chapter-icon { background: #eef4f4; color: var(--teal); }
.chapter-card strong { font-size: 10.5px; font-weight: 600; }
.chapter-card small { font-size: 8px; color: var(--muted-light); margin-top: 2px; }
.chapter-card em { font-style: normal; margin-top: 8px; font-size: 8px; color: var(--blue-600); font-weight: 600; }
.config-divider { height: 1px; background: var(--line); margin: 18px 0; }
.config-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 0; }
.config-row h4 { font-size: 10.5px; font-weight: 600; }
.config-row p { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.check-pills { display: flex; gap: 6px; }
.check-pills label { cursor: pointer; }
.check-pills input { position: absolute; opacity: 0; }
.check-pills span { display: inline-block; border: 1px solid #e1e8f0; border-radius: 6px; padding: 5px 9px; color: var(--muted); font-size: 9px; transition: .2s; }
.check-pills input:checked + span { background: var(--blue-50); border-color: #b9cde0; color: var(--blue-700); font-weight: 600; }
.quiz-config > .button { margin-top: 17px; }
.quiz-side { display: flex; flex-direction: column; gap: 13px; }
.diagnosis-brief { padding: 20px; }
.diagnosis-score { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.diagnosis-copy strong { font-size: 11.5px; display: block; }
.diagnosis-copy p { font-size: 8.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.weak-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 15px; }
.weak-item { display: flex; flex-direction: column; gap: 4px; }
.weak-item-head { display: flex; justify-content: space-between; font-size: 8.5px; }
.weak-item-head span { color: var(--muted); }
.weak-item-head strong { font-weight: 600; color: var(--ink-soft); }
.weak-track { height: 4px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.weak-track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #d3b47b, #bd9552); }
.quiz-tip-card { display: flex; gap: 10px; padding: 16px; background: linear-gradient(135deg, #fbf8f1, #fff); border-color: #eee3d1; }
.quiz-tip-card strong { display: block; font-size: 9.5px; color: #846935; }
.quiz-tip-card p { font-size: 8.5px; color: #8e7c5e; line-height: 1.65; margin-top: 3px; }
.quiz-taking-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .6fr); gap: 17px; align-items: start; }
.quiz-question-card { padding: 24px 26px; min-height: 540px; display: flex; flex-direction: column; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-progress-info { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--muted); }
.type-chip { display: inline-flex; align-items: center; height: 21px; border-radius: 5px; padding: 0 7px; background: var(--blue-50); color: var(--blue-700); font-size: 8px; font-weight: 600; }
.type-chip.multi { background: var(--gold-100); color: var(--gold-600); }
.type-chip.practical { background: #eaf5f4; color: var(--teal); }
.quiz-timer { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfe; color: var(--ink-soft); }
.quiz-timer .icon { width: 13px; height: 13px; color: var(--gold-600); }
.quiz-timer strong { font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.quiz-progress-bar { height: 3px; background: #eff3f7; border-radius: 3px; margin: 13px 0 25px; overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); transition: width .35s var(--ease); }
.quiz-question-content { flex: 1; }
.question-kicker { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: .09em; color: var(--gold-600); font-weight: 700; margin-bottom: 8px; }
.question-title { font-size: 16px; line-height: 1.65; font-weight: 500; color: var(--ink); letter-spacing: -.01em; margin-bottom: 20px; }
.question-title .blank-line { display: inline-block; min-width: 80px; border-bottom: 1px solid var(--ink-soft); }
.option-list { display: flex; flex-direction: column; gap: 9px; }
.option-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px;
  border: 1px solid #e6edf4;
  border-radius: 10px;
  background: #fcfdff;
  cursor: pointer;
  transition: .2s var(--ease);
}
.option-item:hover { border-color: #c7d7e6; background: #fff; transform: translateX(2px); }
.option-item.selected { border-color: #9bb9d6; background: #f4f9fe; box-shadow: 0 0 0 2px rgba(29,78,137,.04); }
.option-letter { width: 23px; height: 23px; flex: none; border-radius: 6px; border: 1px solid #dfe7ef; background: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 600; color: var(--muted); transition: .2s; }
.option-item.selected .option-letter { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.option-text { font-size: 11px; line-height: 1.6; color: var(--ink-soft); padding-top: 1px; }
.option-item.correct-answer { border-color: #b9ddce; background: #f2faf6; }
.option-item.correct-answer .option-letter { background: var(--green); border-color: var(--green); color: #fff; }
.option-item.wrong-answer { border-color: #eccaca; background: #fdf5f5; }
.option-item.wrong-answer .option-letter { background: var(--red); border-color: var(--red); color: #fff; }
.practical-entry { display: flex; flex-direction: column; gap: 10px; }
.practical-entry textarea { width: 100%; height: 190px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: #fcfdff; padding: 13px 14px; font-size: 11.5px; line-height: 2; outline: none; font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace); }
.practical-entry textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(60,120,181,.08); }
.practical-tip { display: flex; gap: 6px; align-items: center; font-size: 8.5px; color: var(--muted); }
.practical-tip .icon { width: 12px; height: 12px; }
.instant-feedback { margin-top: 13px; padding: 11px 13px; border-radius: 8px; background: var(--green-bg); color: #32745b; font-size: 9px; line-height: 1.6; border: 1px solid #d6ebe1; display: none; }
.instant-feedback.show { display: block; animation: fadeSlide .3s var(--ease); }
.instant-feedback.error { background: var(--red-bg); border-color: #f0dada; color: #975050; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.quiz-action-right { display: flex; align-items: center; gap: 17px; }
.answer-sheet { padding: 21px; position: sticky; top: 88px; }
.answer-sheet .card-head { margin-bottom: 12px; }
.answer-sheet .card-head h3 { font-size: 14px; }
.sheet-sub { font-size: 8.5px; color: var(--muted); margin-top: 3px; }
.sheet-sub strong { color: var(--blue-700); }
.timer-mini { font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.sheet-cell { height: 31px; border-radius: 6px; border: 1px solid #e5ebf2; background: #fbfcfe; color: var(--muted); font-size: 9px; font-weight: 500; transition: .2s; }
.sheet-cell:hover { border-color: #c8d7e5; }
.sheet-cell.answered { background: var(--blue-50); border-color: #b9cee1; color: var(--blue-700); font-weight: 600; }
.sheet-cell.current { border-color: var(--blue-700); box-shadow: 0 0 0 2px rgba(29,78,137,.09); color: var(--blue-700); font-weight: 700; }
.sheet-legend { display: flex; gap: 13px; font-size: 8px; color: var(--muted-light); margin-bottom: 15px; }
.sheet-legend span { display: flex; align-items: center; gap: 4px; }
.sheet-legend i { width: 8px; height: 8px; border-radius: 2px; border: 1px solid #e0e7ef; background: #fbfcfe; display: inline-block; }
.sheet-legend i.answered { background: var(--blue-50); border-color: #b9cee1; }
.sheet-legend i.current { border-color: var(--blue-700); }
.sheet-note { display: flex; gap: 5px; justify-content: center; align-items: center; font-size: 8px; color: var(--muted-light); margin-top: 11px; }
.sheet-note .icon { width: 11px; height: 11px; }
.quiz-result-wrap { display: flex; flex-direction: column; gap: 16px; }
.result-hero-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 34px; background: linear-gradient(130deg, #0d2945, #143c5d); color: #fff; border: 0; }
.result-hero-card::after { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; right: -200px; top: -210px; }
.result-hero-card::before { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(216,186,126,.12); border-radius: 50%; right: -90px; top: -110px; }
.result-score-big { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; }
.result-score-ring { --score: 0; width: 106px; height: 106px; border-radius: 50%; background: conic-gradient(var(--gold-400) calc(var(--score) * 1%), rgba(255,255,255,.11) 0); display: grid; place-items: center; flex: none; }
.result-score-ring::after { content: ""; position: absolute; width: 88px; height: 88px; border-radius: 50%; background: #11334f; }
.result-score-ring span { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 35px; color: #f2dcb1; font-weight: 600; line-height: 1; }
.result-hero-copy h2 { font-size: 22px; font-weight: 500; margin-bottom: 5px; }
.result-hero-copy p { font-size: 10.5px; color: rgba(225,235,245,.58); }
.result-hero-stats { display: flex; gap: 30px; position: relative; z-index: 1; }
.result-hero-stats div { display: flex; flex-direction: column; }
.result-hero-stats span { font-size: 8px; color: rgba(220,232,245,.45); }
.result-hero-stats strong { font-family: var(--font-serif); font-size: 19px; color: #e8d3aa; margin-top: 2px; }
.result-tabs { display: flex; gap: 3px; margin-bottom: 0; }
.result-tabs button { border: 0; background: transparent; padding: 8px 15px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.result-tabs button.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-card { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
.review-head { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; cursor: pointer; }
.review-status { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.review-status .icon { width: 11px; height: 11px; }
.review-status.correct { background: var(--green-bg); color: var(--green); }
.review-status.wrong { background: var(--red-bg); color: var(--red); }
.review-head-copy { flex: 1; }
.review-head-copy strong { display: block; font-size: 10.5px; font-weight: 500; line-height: 1.6; }
.review-head-copy small { display: block; font-size: 8px; color: var(--muted-light); margin-top: 3px; }
.review-chevron { color: #adbac8; transition: .2s; }
.review-chevron .icon { width: 14px; height: 14px; }
.review-card.open .review-chevron { transform: rotate(90deg); }
.review-body { display: none; padding: 0 15px 15px 45px; }
.review-card.open .review-body { display: block; animation: fadeSlide .25s; }
.review-answer-row { display: flex; gap: 18px; font-size: 9px; margin-bottom: 8px; }
.review-answer-row span { color: var(--muted); }
.review-answer-row strong { font-weight: 600; }
.review-answer-row .right { color: var(--green); }
.review-answer-row .wrong { color: var(--red); }
.review-explanation { padding: 10px 12px; border-radius: 7px; background: #f8fafc; font-size: 8.8px; color: var(--muted); line-height: 1.75; }
.review-explanation strong { color: var(--ink-soft); }

/* wrongbook */
.wrongbook-card { padding: 24px; }
.wrongbook-list { display: flex; flex-direction: column; gap: 8px; }
.wrong-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid #e8edf4; border-radius: 10px; transition: .2s; background: #fcfdff; }
.wrong-row:hover { border-color: #d3dfea; background: #fff; }
.wrong-index { width: 25px; height: 25px; border-radius: 7px; flex: none; background: #f5eeee; color: #a45d5d; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.wrong-body { flex: 1; min-width: 0; }
.wrong-meta { display: flex; align-items: center; gap: 7px; font-size: 8px; color: var(--muted-light); margin-bottom: 4px; }
.wrong-tag { padding: 1px 5px; border-radius: 3px; background: #f3f6fa; color: #75879a; }
.wrong-body > strong { display: block; font-size: 10px; line-height: 1.6; font-weight: 500; }
.wrong-extra { margin-top: 6px; font-size: 8.5px; color: var(--muted); display: flex; gap: 14px; }
.wrong-extra b { color: var(--red); font-weight: 500; }
.wrong-actions { display: flex; gap: 5px; flex: none; }
.wrong-actions .icon-button { width: 27px; height: 27px; border-color: transparent; background: transparent; }
.wrong-actions .icon-button:hover { background: #f5f8fb; border-color: var(--line); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .empty-illustration { margin-bottom: 15px; }
.empty-state h3 { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.empty-state p { font-size: 9.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.empty-state .button { margin-top: 16px; }

/* diagnosis */
.diagnosis-page { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.diagnosis-main { padding: 23px 25px; }
.diagnosis-headline { display: flex; align-items: center; gap: 20px; margin-bottom: 21px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.diagnosis-headline .score-ring.large { width: 92px; height: 92px; }
.diagnosis-headline .score-ring.large > span { font-size: 28px; }
.diagnosis-headline h2 { font-size: 18px; font-weight: 600; }
.diagnosis-headline p { font-size: 9.5px; color: var(--muted); line-height: 1.7; margin-top: 4px; }
.diagnosis-headline .badge { display: inline-block; font-size: 8px; padding: 2px 7px; border-radius: 4px; background: var(--green-bg); color: var(--green); margin-top: 6px; }
.diagnosis-bars { display: flex; flex-direction: column; gap: 14px; }
.diagnosis-bar-head { display: flex; justify-content: space-between; font-size: 9px; margin-bottom: 5px; }
.diagnosis-bar-head span { color: var(--ink-soft); font-weight: 500; }
.diagnosis-bar-head strong { font-size: 9px; color: var(--muted); }
.diagnosis-bar { height: 5px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.diagnosis-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6c96bd, #2a5f95); }
.diagnosis-bar.weak span { background: linear-gradient(90deg, #ddc28f, #bd9552); }
.diagnosis-side { display: flex; flex-direction: column; gap: 14px; }
.diagnosis-side .card { padding: 20px 21px; }
.recommend-list { display: flex; flex-direction: column; gap: 9px; }
.recommend-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; background: #f9fbfd; border: 1px solid #edf2f7; }
.recommend-item span { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; font-size: 8px; font-weight: 700; flex: none; margin-top: 1px; }
.recommend-item p { font-size: 8.7px; color: var(--muted); line-height: 1.65; }
.recommend-item strong { color: var(--ink-soft); font-weight: 600; }

/* =========================================================
   CALCULATOR
   ========================================================= */
.calc-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.calc-tab { display: flex; align-items: center; gap: 8px; padding: 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; text-align: left; transition: .24s var(--ease); }
.calc-tab:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21,40,61,.05); }
.calc-tab.active { border-color: #b9cddf; background: linear-gradient(135deg, #f6faff, #edf5fb); box-shadow: inset 0 0 0 1px rgba(29,78,137,.03); }
.calc-tab-icon { width: 30px; height: 30px; border-radius: 8px; background: #f4f7fa; color: #70849a; display: grid; place-items: center; flex: none; }
.calc-tab-icon .icon { width: 15px; height: 15px; }
.calc-tab.active .calc-tab-icon { background: var(--blue-700); color: #fff; }
.calc-tab > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.calc-tab strong { font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.calc-tab small { font-size: 7.5px; color: var(--muted-light); margin-top: 1px; white-space: nowrap; }
.calc-panel { display: none; }
.calc-panel.active { display: block; animation: pageIn .4s var(--ease); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 16px; align-items: stretch; }
.calc-form-card { padding: 23px 25px; }
.calc-result { min-height: 490px; }
.method-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 17px; }
.method-select button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px; border: 1px solid #e5ebf3; border-radius: 8px; background: #fbfcfe; transition: .2s; }
.method-select button:hover { border-color: #c9d7e5; background: #fff; }
.method-select button.active { border-color: #aac0d6; background: var(--blue-50); }
.method-select strong { font-size: 8.7px; font-weight: 600; color: var(--ink-soft); }
.method-select small { font-size: 7.5px; color: var(--muted-light); }
.method-select button.active strong { color: var(--blue-700); }
.inventory-table-head, .inventory-row { display: grid; grid-template-columns: 1.15fr .8fr .8fr; gap: 8px; align-items: center; }
.inventory-table-head { font-size: 8px; color: var(--muted-light); padding: 0 2px 5px; }
.inventory-row { margin-bottom: 7px; }
.inventory-row > span { font-size: 9.5px; color: var(--ink-soft); padding-left: 2px; }
.inventory-row input { height: 37px; font-size: 10.5px; }
.inventory-issue { margin-top: 14px; max-width: calc(50% - 4px); }
.inventory-visual { margin-top: auto; padding-top: 12px; }
.inv-stack { display: flex; height: 30px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 7px; }
.inv-stack i { display: block; height: 100%; }
.inv-legend { display: flex; flex-wrap: wrap; gap: 11px; font-size: 8px; color: rgba(220,232,245,.52); }
.inv-legend span { display: flex; align-items: center; gap: 4px; }
.inv-legend b { width: 5px; height: 5px; border-radius: 1px; display: inline-block; }
.cost-composition { margin-top: auto; padding-top: 13px; }
.cost-bars { display: flex; flex-direction: column; gap: 8px; }
.cost-bar-row { display: flex; align-items: center; gap: 8px; font-size: 8px; color: rgba(220,232,245,.55); }
.cost-bar-row > span { width: 52px; flex: none; }
.cost-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; }
.cost-bar-track i { display: block; height: 100%; border-radius: 3px; }
.cost-bar-row strong { width: 58px; text-align: right; color: rgba(255,255,255,.78); font-weight: 500; font-variant-numeric: tabular-nums; }
.ratio-groups { display: flex; flex-direction: column; gap: 13px; padding-top: 10px; overflow-y: auto; max-height: 400px; }
.ratio-group-title { display: flex; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: .08em; color: rgba(220,232,245,.4); margin-bottom: 3px; }
.ratio-group-title span:last-child { color: var(--gold-400); letter-spacing: 0; }
.ratio-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.ratio-row:last-child { border-bottom: 0; }
.ratio-row > span { font-size: 8.5px; color: rgba(224,235,246,.56); }
.ratio-row > div { display: flex; align-items: center; gap: 8px; }
.ratio-row strong { font-size: 10px; font-weight: 500; color: #f0f6fc; font-variant-numeric: tabular-nums; }
.ratio-status { font-size: 7px; padding: 1px 5px; border-radius: 3px; }
.ratio-status.good { background: rgba(92,178,143,.14); color: #93cfb7; }
.ratio-status.mid { background: rgba(216,186,126,.12); color: #dec695; }
.ratio-status.bad { background: rgba(194,84,84,.14); color: #e5a3a3; }
.ratio-empty { color: rgba(220,232,245,.4); font-size: 9px; padding: 30px 0; text-align: center; }
.time-axis { margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.time-axis-title { font-size: 7px; letter-spacing: .1em; color: rgba(220,232,245,.38); margin-bottom: 9px; }
.time-axis-track { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 2px; }
.time-axis-track::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 1px; background: linear-gradient(90deg, rgba(216,186,126,.05), rgba(216,186,126,.38), rgba(216,186,126,.05)); }
.time-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.time-node i { width: 8px; height: 8px; border-radius: 50%; background: #123451; border: 1px solid rgba(216,186,126,.55); box-shadow: 0 0 0 3px rgba(18,52,81,.8); }
.time-node span { font-size: 7px; color: rgba(220,232,245,.4); white-space: nowrap; }
.time-node strong { font-size: 7.5px; color: rgba(238,245,252,.72); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-chart-bars { display: flex; align-items: flex-end; gap: 5px; height: 118px; padding: 8px 2px 0; }
.mini-chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.mini-chart-col span { width: 100%; max-width: 22px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #6d96bd, #c9dceb); transition: height .45s var(--ease); }
.mini-chart-col em { font-style: normal; font-size: 7px; color: rgba(220,232,245,.42); }

/* =========================================================
   KNOWLEDGE
   ========================================================= */
.knowledge-hero { border-radius: 18px; padding: 26px 28px 21px; background: linear-gradient(135deg, #0e2944, #143a5c); color: #fff; margin-bottom: 17px; position: relative; overflow: hidden; }
.knowledge-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 80% 20%, black, transparent 75%); }
.knowledge-hero::after { content: "知识"; position: absolute; right: 26px; top: -12px; font-family: var(--font-serif); font-size: 90px; color: rgba(255,255,255,.028); pointer-events: none; }
.knowledge-search-wrap { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.knowledge-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px; border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 12px 30px rgba(3,15,27,.22); }
.knowledge-search > .icon { width: 18px; height: 18px; color: var(--blue-500); flex: none; }
.knowledge-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--ink); padding: 0 2px; }
.knowledge-search input::placeholder { color: #9aa9ba; }
.knowledge-search kbd { margin-right: 2px; }
.knowledge-search .button { height: 38px; border-radius: 8px; font-size: 10.5px; }
.search-suggest { position: absolute; left: 0; right: 0; top: 57px; background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.22); overflow: hidden; z-index: 20; display: none; border: 1px solid var(--line); }
.search-suggest.show { display: block; animation: fadeSlide .2s var(--ease); }
.suggest-label { padding: 9px 13px 4px; font-size: 7px; letter-spacing: .12em; color: var(--muted-light); }
.search-suggest button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: #fff; padding: 9px 13px; text-align: left; color: var(--ink-soft); font-size: 10px; }
.search-suggest button:hover { background: #f7fafd; }
.search-suggest button .icon { width: 13px; height: 13px; color: var(--muted-light); }
.search-suggest button span { flex: 1; }
.search-suggest button em { font-style: normal; font-size: 7.5px; color: var(--muted-light); }
.hot-questions { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 15px auto 0; max-width: 760px; font-size: 8.5px; color: rgba(220,232,245,.42); }
.hot-questions button { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: rgba(235,242,250,.7); padding: 3px 8px; border-radius: 20px; font-size: 8px; transition: .2s; }
.hot-questions button:hover { background: rgba(255,255,255,.11); color: #fff; }
.knowledge-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr) 318px; gap: 14px; align-items: start; }
.knowledge-side { display: flex; flex-direction: column; gap: 13px; }
.knowledge-side .card { padding: 18px; }
.category-card .card-kicker { margin-bottom: 10px; }
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-item { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 7px; padding: 7px 8px; color: var(--muted); font-size: 9.5px; text-align: left; transition: .2s; }
.category-item:hover { background: #f7fafc; color: var(--ink-soft); }
.category-item.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.category-item span:first-child { width: 5px; height: 5px; border-radius: 50%; background: #c7d3df; }
.category-item.active span:first-child { background: var(--gold-500); }
.category-item em { margin-left: auto; font-style: normal; font-size: 8px; color: var(--muted-light); }
.source-card { background: linear-gradient(145deg, #fbf8f1, #fff); border-color: #eee3cf; }
.source-emblem { width: 35px; height: 35px; border-radius: 10px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; margin-bottom: 10px; }
.source-emblem .icon { width: 17px; height: 17px; }
.source-card h3 { font-size: 12px; font-weight: 600; }
.source-card p { font-size: 8.5px; color: var(--muted); line-height: 1.7; margin: 5px 0 9px; }
.source-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.source-tags span { font-size: 7px; padding: 2px 5px; border-radius: 3px; border: 1px solid #eadfc9; color: #9a7c4d; background: #fdfaf4; }
.knowledge-main { min-width: 0; }
.knowledge-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; padding: 0 2px; }
.knowledge-toolbar > div:first-child { font-size: 9px; color: var(--muted); }
.knowledge-toolbar > div:first-child strong { color: var(--ink); font-weight: 600; }
.knowledge-sort { display: flex; gap: 2px; }
.knowledge-sort button { border: 0; background: transparent; color: var(--muted-light); font-size: 8.5px; padding: 4px 8px; border-radius: 5px; }
.knowledge-sort button.active { background: #fff; color: var(--ink-soft); box-shadow: 0 2px 6px rgba(21,40,61,.05); font-weight: 600; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.knowledge-card { display: flex; flex-direction: column; text-align: left; padding: 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; transition: .24s var(--ease); min-height: 146px; }
.knowledge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d3dfea; }
.knowledge-card.active { border-color: #9fbad4; box-shadow: 0 0 0 2px rgba(29,78,137,.05); }
.knowledge-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.knowledge-cat { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #f4f7fa; color: #7b8b9d; font-size: 7px; }
.knowledge-hot { display: inline-flex; align-items: center; gap: 2px; font-size: 7px; color: var(--gold-600); }
.knowledge-hot .icon { width: 10px; height: 10px; }
.knowledge-card h3 { font-size: 10.5px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.knowledge-card p { font-size: 8.5px; color: var(--muted); line-height: 1.65; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.knowledge-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 9px; border-top: 1px dashed #eef2f6; font-size: 7.5px; color: var(--muted-light); }
.knowledge-card-foot span { display: flex; align-items: center; gap: 3px; }
.knowledge-card-foot .icon { width: 11px; height: 11px; }
.knowledge-detail-column { position: sticky; top: 88px; }
.knowledge-detail { padding: 21px; min-height: 420px; }
.detail-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 380px; color: var(--muted); }
.detail-placeholder .icon { width: 31px; height: 31px; color: #b1c0d0; margin-bottom: 12px; }
.detail-placeholder h3 { font-size: 12px; color: var(--ink-soft); }
.detail-placeholder p { font-size: 8.5px; margin-top: 4px; line-height: 1.7; max-width: 200px; }
.detail-cat { display: flex; align-items: center; gap: 5px; font-size: 7px; letter-spacing: .08em; color: var(--gold-600); font-weight: 700; margin-bottom: 7px; }
.detail-title { font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.015em; color: var(--ink); margin-bottom: 13px; }
.detail-answer { font-size: 9.5px; color: var(--ink-soft); line-height: 1.9; }
.detail-answer p { margin-bottom: 8px; }
.detail-answer strong { color: var(--ink); font-weight: 600; }
.detail-answer ul { margin: 4px 0 9px; padding-left: 15px; }
.detail-answer li { margin-bottom: 4px; }
.detail-source { margin-top: 13px; padding: 10px 11px; border-radius: 8px; background: #f7fafc; border: 1px solid #e9eff5; }
.detail-source span { display: flex; align-items: center; gap: 4px; font-size: 7px; letter-spacing: .08em; font-weight: 700; color: var(--blue-600); }
.detail-source span .icon { width: 11px; height: 11px; }
.detail-source p { font-size: 8px; color: var(--muted); line-height: 1.65; margin-top: 3px; }
.detail-related { margin-top: 14px; border-top: 1px dashed #e9eef4; padding-top: 12px; }
.detail-related > strong { font-size: 8px; color: var(--muted-light); letter-spacing: .06em; }
.detail-related button { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; background: transparent; text-align: left; padding: 6px 0; font-size: 8.5px; color: var(--muted); border-bottom: 1px solid #f2f5f8; }
.detail-related button:last-child { border-bottom: 0; }
.detail-related button:hover { color: var(--blue-700); }
.detail-related button .icon { width: 10px; height: 10px; }
.knowledge-empty { padding: 45px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; border: 1px dashed #d8e2ec; border-radius: 13px; background: #fafbfd; }
.knowledge-empty h3 { font-size: 14px; font-weight: 600; margin-top: 13px; }
.knowledge-empty p { font-size: 9.5px; color: var(--muted); max-width: 360px; margin-top: 5px; line-height: 1.7; }
.empty-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.empty-links button { border: 1px solid #dfe8f1; background: #fff; border-radius: 20px; padding: 4px 10px; font-size: 8.5px; color: var(--blue-700); }

/* =========================================================
   REPORT
   ========================================================= */
.report-layout { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.report-form-card { padding: 23px 24px; }
.report-company { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; background: #f8fafc; border: 1px solid #edf2f7; margin-bottom: 8px; }
.report-company > div { flex: 1; }
.report-company strong { display: block; font-size: 9.5px; }
.report-company p { font-size: 8px; color: var(--muted-light); margin-top: 1px; }
.case-chip { font-size: 7px; color: var(--gold-600); border: 1px solid #eadfc9; background: #fdfaf4; border-radius: 3px; padding: 1px 5px; }
.balance-check { display: flex; align-items: center; gap: 6px; margin: 12px 0 14px; padding: 8px 10px; border-radius: 7px; background: var(--green-bg); color: #38775f; font-size: 8.5px; }
.balance-check .icon { width: 12px; height: 12px; }
.balance-check.warn { background: var(--amber-bg); color: #8c6d36; }
.report-results { display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.report-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px; border-radius: 16px; background: linear-gradient(130deg, #0d2945, #153f61); color: #fff; border: 0; position: relative; overflow: hidden; }
.report-overview::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(216,186,126,.13); border-radius: 50%; right: -80px; top: -130px; }
.report-overview-copy { position: relative; z-index: 1; }
.report-overview-copy .report-label { font-size: 8px; letter-spacing: .15em; color: var(--gold-400); font-weight: 700; }
.report-overview-copy h2 { font-size: 20px; font-weight: 500; margin: 6px 0 4px; }
.report-overview-copy p { font-size: 9px; color: rgba(220,232,245,.52); max-width: 390px; line-height: 1.7; }
.report-score { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.report-grade { font-family: var(--font-serif); font-size: 12px; color: var(--gold-400); border: 1px solid rgba(216,186,126,.35); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; }
.report-score strong { font-family: var(--font-serif); font-size: 42px; font-weight: 600; color: #f1dbb1; line-height: 1; }
.report-score span { display: block; font-size: 7.5px; color: rgba(220,232,245,.45); margin-top: 4px; letter-spacing: .06em; }
.ability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ability-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ability-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.ability-head span { font-size: 8px; color: var(--muted); }
.ability-head strong { font-family: var(--font-serif); font-size: 20px; line-height: 1; color: var(--ink); }
.ability-head strong small { font-family: var(--font-sans); font-size: 8px; color: var(--muted-light); font-weight: 400; }
.ability-bar { height: 4px; border-radius: 4px; background: #eef2f6; overflow: hidden; margin-bottom: 7px; }
.ability-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ccb078, #b28a4a); }
.ability-card:nth-child(1) .ability-bar span { background: linear-gradient(90deg, #77a2c9, #2c639b); }
.ability-card:nth-child(3) .ability-bar span { background: linear-gradient(90deg, #78aaa3, #347d82); }
.ability-card p { font-size: 8px; color: var(--muted); line-height: 1.55; }
.report-detail-card { padding: 21px 23px; }
.report-detail-card .card-head { margin-bottom: 13px; }
.analysis-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.radar-report { min-height: 235px; }
.radar-report svg { width: 100%; height: 100%; overflow: visible; }
.report-ratio-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.report-ratio-table tr { border-bottom: 1px dashed #eef2f6; }
.report-ratio-table td { padding: 7px 2px; color: var(--muted); }
.report-ratio-table td:nth-child(2) { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.report-ratio-table td:nth-child(3) { text-align: right; width: 60px; }
.ratio-tag { display: inline-block; font-size: 7px; padding: 1px 5px; border-radius: 3px; }
.ratio-tag.good { background: var(--green-bg); color: var(--green); }
.ratio-tag.mid { background: var(--amber-bg); color: var(--amber); }
.ratio-tag.bad { background: var(--red-bg); color: var(--red); }
.report-narrative { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.narrative-block { padding: 12px 13px; border-radius: 9px; background: #f9fbfd; border: 1px solid #edf2f7; }
.narrative-block h4 { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 600; margin-bottom: 5px; }
.narrative-block h4 .icon { width: 12px; height: 12px; color: var(--blue-600); }
.narrative-block p { font-size: 8.3px; line-height: 1.75; color: var(--muted); }
.risk-list { display: flex; flex-direction: column; gap: 7px; }
.risk-item { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 7px; background: var(--amber-bg); border: 1px solid #f0e4cd; }
.risk-item.high { background: var(--red-bg); border-color: #f0dada; }
.risk-item.low { background: var(--green-bg); border-color: #d7ebe2; }
.risk-item .icon { width: 13px; height: 13px; color: var(--amber); margin-top: 1px; flex: none; }
.risk-item.high .icon { color: var(--red); }
.risk-item.low .icon { color: var(--green); }
.risk-item p { font-size: 8.5px; line-height: 1.65; color: var(--ink-soft); }
.risk-item strong { font-weight: 600; }
.report-skeleton { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.skeleton-copy { text-align: center; color: var(--muted); }
.skeleton-copy .spinner { margin: 0 auto 12px; }
.skeleton-copy p { font-size: 10px; }
.spinner { width: 25px; height: 25px; border: 2px solid #e3ebf3; border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   LEARNING
   ========================================================= */
.profile-banner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 26px; padding: 27px 30px; border-radius: 20px; background: linear-gradient(128deg, #0d2741, #123a5b 70%, #173f5f); color: #fff; overflow: hidden; margin-bottom: 16px; box-shadow: 0 14px 32px rgba(9,29,48,.13); }
.profile-banner::after { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(216,186,126,.13); border-radius: 50%; right: 110px; top: -190px; }
.profile-banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, black, transparent 65%); }
.profile-main { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; }
.profile-main .avatar-xl { box-shadow: inset 0 0 0 3px rgba(255,255,255,.2), 0 10px 25px rgba(0,0,0,.14); }
.profile-label { font-size: 8px; letter-spacing: .08em; color: rgba(216,186,126,.8); }
.profile-copy h2 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin: 5px 0 4px; }
.profile-copy h2 em { font-style: normal; font-family: var(--font-serif); font-size: 25px; color: #e8ce9d; }
.profile-copy > p { font-size: 9.5px; color: rgba(220,232,245,.55); }
.profile-copy > p strong { color: rgba(255,255,255,.86); font-weight: 500; }
.profile-tags { display: flex; gap: 6px; margin-top: 10px; }
.profile-tags span { font-size: 7.5px; padding: 2px 7px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; color: rgba(225,235,245,.55); background: rgba(255,255,255,.035); }
.profile-actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.profile-actions .button { height: 36px; font-size: 10px; }
.profile-actions > span { font-size: 8px; color: rgba(220,232,245,.44); }
.profile-actions > span strong { color: #e6cf9f; font-family: var(--font-serif); font-size: 11px; }
.profile-decoration { position: absolute; right: 30px; bottom: -8px; display: flex; flex-direction: column; align-items: flex-end; opacity: .32; z-index: 1; pointer-events: none; }
.profile-decoration span { font-size: 7px; letter-spacing: .3em; color: rgba(255,255,255,.3); }
.profile-decoration strong { font-family: var(--font-serif); font-size: 42px; line-height: 1; color: rgba(255,255,255,.12); letter-spacing: -.03em; }
.learning-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.learning-stat { position: relative; padding: 17px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(21,40,61,.02); transition: .25s var(--ease); overflow: hidden; }
.learning-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(21,40,61,.07); }
.stat-label { display: block; font-size: 9px; color: var(--muted); }
.learning-stat > strong { display: block; font-family: var(--font-serif); font-size: 27px; font-weight: 600; letter-spacing: -.03em; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.learning-stat > strong small { font-family: var(--font-sans); font-size: 9px; color: var(--muted-light); font-weight: 400; margin-left: 2px; }
.stat-foot { font-size: 8px; color: var(--muted-light); }
.stat-foot.warning { color: var(--amber); }
.stat-watermark { position: absolute; right: 10px; bottom: 2px; color: #f0f4f8; }
.stat-watermark .icon { width: 43px; height: 43px; stroke-width: 1.1; }
.learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.learning-grid > .card { padding: 20px 22px; }
.learning-grid > .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.mastery-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.mastery-row { display: flex; flex-direction: column; gap: 4px; }
.mastery-head { display: flex; justify-content: space-between; font-size: 8.5px; }
.mastery-head span { color: var(--ink-soft); }
.mastery-head strong { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.mastery-track { height: 4px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.mastery-track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), #6e9cc4); }
.mastery-row:nth-child(2n) .mastery-track span { background: linear-gradient(90deg, #b59763, #d8ba7e); }
.mastery-row:nth-child(3n) .mastery-track span { background: linear-gradient(90deg, #4d9387, #82b4aa); }
.heatmap-wrap { overflow-x: auto; padding-bottom: 3px; }
.heatmap { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; min-width: 250px; }
.heat-cell { width: 10px; height: 10px; border-radius: 2px; background: #eef2f6; transition: transform .15s; }
.heat-cell:hover { transform: scale(1.35); }
.heat-cell.l1 { background: #dce9f4; }
.heat-cell.l2 { background: #b8d2e8; }
.heat-cell.l3 { background: #7ca8cb; }
.heat-cell.l4 { background: #2c639b; }
.heat-cell.today { outline: 1px solid var(--gold-500); outline-offset: 1px; }
.heatmap-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 9px; font-size: 7.5px; color: var(--muted-light); }
.heatmap-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; background: #eef2f6; }
.heatmap-legend i:nth-child(2) { background: #dce9f4; }
.heatmap-legend i:nth-child(3) { background: #b8d2e8; }
.heatmap-legend i:nth-child(4) { background: #7ca8cb; }
.heatmap-legend i:nth-child(5) { background: #2c639b; }
.weak-ranking { display: flex; flex-direction: column; gap: 1px; }
.weak-rank-row { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px dashed #eef2f6; }
.weak-rank-row:last-child { border-bottom: 0; }
.weak-rank-no { font-family: var(--font-serif); font-size: 11px; color: #b7c3d1; width: 16px; }
.weak-rank-row:first-child .weak-rank-no { color: var(--gold-600); }
.weak-rank-copy { flex: 1; min-width: 0; }
.weak-rank-copy strong { display: block; font-size: 9px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weak-rank-copy small { display: block; font-size: 7.5px; color: var(--muted-light); }
.weak-rank-value { font-size: 8.5px; color: var(--red); font-weight: 600; }
.history-table { font-size: 9.5px; }
.history-table th { padding: 8px 9px; }
.history-table td { padding: 9px; }
.history-type { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; }
.history-type i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue-500); }
.history-score { font-weight: 600; color: var(--ink); }
.history-score.good { color: var(--green); }
.history-score.mid { color: var(--amber); }
.goal-card { display: flex; align-items: center; gap: 34px; padding: 25px 27px !important; background: linear-gradient(125deg, #fbf8f1, #fff 60%); border-color: #eee3cf; }
.goal-copy { flex: 1; }
.goal-copy h3 { font-size: 16px; font-weight: 600; margin: 2px 0 5px; }
.goal-copy p { font-size: 9.5px; color: var(--muted); line-height: 1.7; max-width: 450px; }
.goal-actions { display: flex; gap: 8px; margin-top: 12px; }
.goal-actions .button { height: 34px; font-size: 9.5px; }
.goal-track { width: 380px; flex: none; padding: 15px 17px; border-radius: 11px; background: rgba(255,255,255,.7); border: 1px solid #eaddc4; }
.goal-level { display: flex; justify-content: space-between; align-items: center; font-size: 8px; color: var(--muted); }
.goal-level strong { color: var(--ink); font-size: 9px; }
.goal-progress { height: 6px; border-radius: 4px; background: #ede7dc; overflow: hidden; margin: 9px 0 5px; }
.goal-progress span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #c9a45e, #d8ba7e); }
.goal-meta { display: flex; justify-content: space-between; font-size: 7.5px; color: var(--muted-light); }
.goal-meta strong { color: var(--gold-600); }
.goal-badges { display: flex; gap: 5px; margin-top: 11px; }
.goal-badges span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: #f7f2e8; color: #94784b; font-size: 7px; }
.goal-badges .icon { width: 9px; height: 9px; }

/* =========================================================
   RESOURCES
   ========================================================= */
.resource-feature-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); gap: 15px; margin-bottom: 17px; }
.resource-feature { position: relative; min-height: 280px; border-radius: 20px; background: linear-gradient(125deg, #0c2742, #123b5d 62%, #0c2b47); color: #fff; display: flex; overflow: hidden; padding: 29px 30px; box-shadow: 0 14px 32px rgba(9,29,48,.13); }
.resource-feature::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.resource-feature::after { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(216,186,126,.14); border-radius: 50%; right: 42px; top: -70px; }
.feature-copy { position: relative; z-index: 2; width: 59%; display: flex; flex-direction: column; align-items: flex-start; }
.feature-badge { display: inline-flex; padding: 3px 8px; border-radius: 20px; background: rgba(216,186,126,.1); border: 1px solid rgba(216,186,126,.24); color: #e3ca9b; font-size: 7.5px; letter-spacing: .07em; }
.feature-copy h2 { font-size: 27px; line-height: 1.35; font-weight: 500; letter-spacing: -.03em; margin: 14px 0 7px; }
.feature-copy > p { font-size: 9.5px; line-height: 1.8; color: rgba(220,232,245,.54); max-width: 380px; }
.feature-meta { display: flex; gap: 15px; margin-top: 12px; font-size: 8px; color: rgba(220,232,245,.44); }
.feature-meta span { display: flex; align-items: center; gap: 4px; }
.feature-meta .icon { width: 11px; height: 11px; }
.feature-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 17px; }
.feature-actions .button { height: 36px; font-size: 10px; }
.feature-cover { position: absolute; right: 54px; top: 25px; width: 170px; height: 226px; border-radius: 4px 9px 9px 4px; background: linear-gradient(140deg, #e8dbc4, #d8c7a8 55%, #cbb68f); color: #594a32; box-shadow: -12px 26px 40px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.28); transform: rotate(4deg); z-index: 2; padding: 22px 16px 16px 26px; }
.book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 11px; background: linear-gradient(90deg, #a78e64, #cbb68f); border-radius: 4px 0 0 4px; box-shadow: inset -2px 0 3px rgba(0,0,0,.12); }
.book-seal { position: absolute; right: 12px; top: 13px; width: 25px; height: 25px; border: 1px solid rgba(90,74,50,.45); border-radius: 3px; font-family: var(--font-serif); font-size: 10px; display: grid; place-items: center; color: #6b5738; }
.book-series { display: block; font-size: 5.5px; letter-spacing: .18em; color: #8c7856; line-height: 1.55; }
.feature-cover > strong { display: block; font-family: var(--font-serif); font-size: 17px; writing-mode: vertical-rl; letter-spacing: .12em; margin-top: 8px; color: #4f402b; }
.feature-cover > em { position: absolute; left: 27px; bottom: 29px; font-style: normal; font-size: 6.5px; letter-spacing: .08em; color: #8b7755; }
.book-lines { position: absolute; right: 18px; bottom: 29px; display: flex; flex-direction: column; gap: 4px; width: 38px; }
.book-lines i { height: 1px; background: rgba(90,74,50,.24); }
.book-year { position: absolute; right: 15px; bottom: 52px; font-family: var(--font-serif); font-size: 10px; color: rgba(90,74,50,.48); }
.resource-path .card { padding: 20px; height: 100%; }
.path-list { display: flex; flex-direction: column; gap: 2px; }
.path-item { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; padding: 9px 7px; border-radius: 7px; transition: .2s; border-bottom: 1px solid #f2f5f8; }
.path-item:last-child { border-bottom: 0; }
.path-item:hover { background: #f8fafc; }
.path-item.active { background: var(--blue-50); }
.path-num { font-family: var(--font-serif); font-size: 11px; color: #b5c2d0; }
.path-item.active .path-num { color: var(--gold-600); }
.path-item > div { flex: 1; }
.path-item strong { display: block; font-size: 9.5px; font-weight: 500; }
.path-item small { display: block; font-size: 7.5px; color: var(--muted-light); margin-top: 1px; }
.path-count { font-size: 7.5px; color: var(--muted); }
.path-tip { display: flex; gap: 7px; margin-top: 12px; padding: 9px; border-radius: 7px; background: #fbf8f1; border: 1px solid #efe4d0; }
.path-tip .icon { width: 12px; height: 12px; color: var(--gold-600); margin-top: 1px; flex: none; }
.path-tip p { font-size: 7.5px; color: #8d7c60; line-height: 1.65; }
.resource-toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 13px; }
.resource-search { display: flex; align-items: center; gap: 8px; width: 270px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 11px; flex: none; }
.resource-search .icon { width: 14px; height: 14px; color: var(--muted-light); }
.resource-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 10px; }
.resource-search kbd { font-size: 8px; }
.resource-filters { display: flex; gap: 3px; flex: 1; flex-wrap: wrap; }
.resource-filters button { border: 0; background: transparent; border-radius: 6px; padding: 5px 10px; font-size: 9px; color: var(--muted); transition: .2s; }
.resource-filters button:hover { background: #fff; color: var(--ink-soft); }
.resource-filters button.active { background: var(--navy-900); color: #fff; font-weight: 500; }
.resource-result { font-size: 8.5px; color: var(--muted-light); white-space: nowrap; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { display: flex; gap: 13px; padding: 15px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: .26s var(--ease); position: relative; overflow: hidden; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d6e1ec; }
.resource-cover { width: 55px; height: 76px; border-radius: 3px 6px 6px 3px; flex: none; position: relative; color: #fff; padding: 10px 7px 7px 11px; box-shadow: 2px 4px 9px rgba(21,40,61,.11); }
.resource-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(0,0,0,.12); border-radius: 3px 0 0 3px; }
.resource-cover span { display: block; font-family: var(--font-serif); font-size: 8px; line-height: 1.5; letter-spacing: .03em; }
.resource-cover em { position: absolute; bottom: 7px; left: 11px; font-style: normal; font-size: 4.5px; letter-spacing: .14em; opacity: .6; }
.cover-blue { background: linear-gradient(140deg, #345d83, #173a5a); }
.cover-gold { background: linear-gradient(140deg, #c7a66d, #9b783e); }
.cover-slate { background: linear-gradient(140deg, #657b8f, #3c5165); }
.cover-teal { background: linear-gradient(140deg, #4f8b86, #2b625f); }
.cover-wine { background: linear-gradient(140deg, #8f6262, #5c3737); }
.resource-card-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resource-card-copy > span { font-size: 7px; color: var(--gold-600); letter-spacing: .05em; }
.resource-card-copy h3 { font-size: 10.5px; font-weight: 600; margin: 3px 0 3px; line-height: 1.5; }
.resource-card-copy p { font-size: 8px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resource-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 7px; font-size: 7px; color: var(--muted-light); }
.resource-card-foot span { display: flex; align-items: center; gap: 3px; }
.resource-card-foot .icon { width: 9px; height: 9px; }
.resource-bookmark { position: absolute; right: 8px; top: 8px; width: 23px; height: 23px; border: 0; background: transparent; color: #c4d0dc; border-radius: 5px; display: grid; place-items: center; }
.resource-bookmark:hover { background: #f7f9fc; color: var(--gold-600); }
.resource-bookmark.active { color: var(--gold-600); }
.resource-bookmark .icon { width: 12px; height: 12px; }
.resource-download { border: 0; background: var(--blue-50); color: var(--blue-700); width: 25px; height: 25px; border-radius: 6px; display: grid; place-items: center; margin-left: auto; transition: .2s; }
.resource-download:hover { background: var(--blue-700); color: #fff; }
.resource-download .icon { width: 12px; height: 12px; }
.resource-bottom { margin-top: 16px; }
.resource-request { display: flex; align-items: center; gap: 13px; padding: 16px 19px; border: 1px dashed #d7e2ed; border-radius: 12px; background: rgba(255,255,255,.55); }
.request-icon { width: 33px; height: 33px; border-radius: 9px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; flex: none; }
.request-icon .icon { width: 16px; height: 16px; }
.resource-request > div { flex: 1; }
.resource-request strong { display: block; font-size: 10px; }
.resource-request p { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.resource-request .button { height: 33px; font-size: 9px; }

/* =========================================================
   SIMULATION
   ========================================================= */
.simulation-hero { display: flex; min-height: 350px; border-radius: 23px; background: linear-gradient(125deg, #0b2239, #0e2d4a 52%, #133e5f); color: #fff; position: relative; overflow: hidden; box-shadow: 0 18px 40px rgba(9,29,48,.16); }
.simulation-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 75% 50%, black, transparent 80%); }
.sim-hero-copy { position: relative; z-index: 2; padding: 33px 0 28px 35px; width: 55%; display: flex; flex-direction: column; }
.sim-hero-copy h2 { font-size: 31px; line-height: 1.35; font-weight: 500; letter-spacing: -.035em; margin: 15px 0 9px; }
.sim-hero-copy h2 em { font-family: var(--font-serif); font-style: normal; color: #e4c994; font-size: 27px; }
.sim-hero-copy > p { font-size: 10.5px; line-height: 1.8; color: rgba(220,232,245,.57); max-width: 460px; }
.sim-meta { display: flex; gap: 18px; margin-top: 13px; font-size: 8px; color: rgba(220,232,245,.46); }
.sim-meta span { display: flex; align-items: center; gap: 5px; }
.sim-meta .icon { width: 12px; height: 12px; color: rgba(216,186,126,.63); }
.sim-start-row { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 18px; }
.sim-start-row .button-gold { height: 43px; font-size: 11px; }
.sim-start-row .button-gold span { opacity: .6; margin-left: auto; }
.sim-start-row .text-button { color: rgba(235,242,250,.7); }
.sim-hero-visual { position: relative; flex: 1; min-width: 380px; }
.sim-orbit { position: absolute; border: 1px solid rgba(216,186,126,.13); border-radius: 50%; }
.orbit-one { width: 345px; height: 345px; right: 9px; top: 3px; animation: orbitRotate 48s linear infinite; }
.orbit-two { width: 245px; height: 245px; right: 59px; top: 53px; border-style: dashed; border-color: rgba(255,255,255,.08); animation: orbitRotate 32s linear infinite reverse; }
.sim-document { position: absolute; right: 90px; top: 61px; width: 168px; height: 218px; border-radius: 5px; background: #f8f6f1; color: #343d48; padding: 17px 15px; transform: rotate(4deg); box-shadow: 0 22px 50px rgba(0,0,0,.3); z-index: 3; }
.sim-document::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.035), transparent 12%); }
.sim-doc-head { display: flex; justify-content: space-between; font-size: 6px; font-weight: 600; border-bottom: 1px solid #ddd8ce; padding-bottom: 7px; }
.sim-doc-head em { font-style: normal; color: #8f7d5f; font-size: 5px; }
.sim-doc-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; }
.sim-doc-rows i { height: 1px; background: #dedad2; width: 100%; }
.sim-doc-rows i:nth-child(2n) { width: 72%; }
.sim-doc-rows i:nth-child(3n) { width: 87%; }
.sim-doc-stamp { position: absolute; right: 11px; bottom: 13px; border: 1px solid #b05b54; color: #b05b54; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font-size: 5.5px; font-family: var(--font-serif); transform: rotate(-13deg); opacity: .78; }
.sim-float-card { position: absolute; z-index: 4; padding: 9px 11px; min-width: 103px; border-radius: 8px; background: rgba(251,253,255,.96); color: var(--ink); box-shadow: 0 13px 28px rgba(0,0,0,.25); animation: floatY 6s ease-in-out infinite; }
.sim-float-card span { display: block; font-size: 6.5px; color: var(--muted); }
.sim-float-card strong { display: block; font-family: var(--font-serif); font-size: 12px; margin-top: 1px; }
.sim-float-card small { display: block; font-size: 6px; color: var(--green); margin-top: 2px; }
.float-a { left: 22px; top: 56px; animation-delay: -2s; }
.float-b { right: 10px; top: 241px; animation-delay: -4s; }
.sim-status-badge { position: absolute; left: 56px; bottom: 37px; z-index: 5; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 20px; background: rgba(22,55,49,.72); border: 1px solid rgba(126,181,162,.23); color: #a9d3c3; font-size: 7.5px; backdrop-filter: blur(8px); }
.sim-status-badge span { width: 4px; height: 4px; border-radius: 50%; background: #72b99f; box-shadow: 0 0 6px rgba(114,185,159,.6); }
.sim-process { margin-top: 24px; }
.sim-process-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.sim-process-head h2 { font-size: 18px; font-weight: 600; }
.sim-process-head p { font-size: 9px; color: var(--muted); }
.sim-steps-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sim-steps-preview article { position: relative; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: .25s var(--ease); }
.sim-steps-preview article:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(21,40,61,.06); }
.step-no { position: absolute; right: 11px; top: 9px; font-family: var(--font-serif); font-size: 10px; color: #c2ccd7; }
.step-icon { width: 31px; height: 31px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 9px; }
.step-icon .icon { width: 15px; height: 15px; }
.sim-steps-preview article:nth-child(2) .step-icon, .sim-steps-preview article:nth-child(4) .step-icon { background: var(--gold-100); color: var(--gold-600); }
.sim-steps-preview h3 { font-size: 10px; font-weight: 600; }
.sim-steps-preview p { font-size: 8px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.step-line { display: none; }
.sim-notice { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 11px 14px; border-radius: 9px; background: rgba(255,255,255,.6); border: 1px dashed #d8e2ed; font-size: 8.5px; color: var(--muted); }
.sim-notice .icon { width: 13px; height: 13px; color: var(--gold-600); flex: none; }
.sim-notice p { flex: 1; }
.sim-notice strong { color: var(--ink-soft); }
.sim-notice > span { font-size: 7.5px; color: var(--muted-light); white-space: nowrap; }
.sim-workspace-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.sim-workspace-head > div:first-child { display: flex; align-items: center; gap: 16px; }
.sim-workspace-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sim-workspace-head h1 span { font-size: 9px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.sim-workspace-status { display: flex; align-items: center; gap: 13px; }
.live-chip { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px; border-radius: 20px; background: var(--green-bg); color: var(--green); font-size: 8px; font-weight: 600; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: statusPulse 2s infinite; }
.sim-timer { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-soft); }
.sim-timer .icon { width: 13px; height: 13px; color: var(--gold-600); }
.sim-timer strong { font-variant-numeric: tabular-nums; }
.sim-stepper { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 9px 12px; margin-bottom: 15px; overflow: hidden; }
.sim-stepper button { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 10px; text-align: left; border-radius: 8px; transition: .2s; }
.sim-stepper button > span { width: 23px; height: 23px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid #d8e2ec; color: var(--muted); font-size: 8.5px; background: #fff; }
.sim-stepper button > div { display: flex; flex-direction: column; }
.sim-stepper strong { font-size: 9px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.sim-stepper small { font-size: 7px; color: var(--muted-light); white-space: nowrap; }
.sim-stepper button.active { background: var(--blue-50); }
.sim-stepper button.active > span { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.sim-stepper button.active strong { color: var(--blue-700); font-weight: 600; }
.sim-stepper button.done > span { background: var(--green-bg); border-color: #cfe8dd; color: var(--green); }
.sim-stepper button.done strong { color: var(--ink-soft); }
.sim-stepper button:hover { background: #f8fafc; }
.sim-stepper button.active:hover { background: var(--blue-50); }
.sim-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .55fr); gap: 15px; align-items: start; }
.sim-stage { min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.sim-stage-card { padding: 24px 25px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.stage-head h2 { font-size: 17px; font-weight: 600; }
.stage-head p { font-size: 9px; color: var(--muted); margin-top: 3px; }
.stage-index { font-family: var(--font-serif); font-size: 27px; color: #e6edf4; font-weight: 600; line-height: 1; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.stage-footer .stage-note { font-size: 8px; color: var(--muted-light); display: flex; align-items: center; gap: 4px; }
.stage-footer .stage-note .icon { width: 11px; height: 11px; }
.company-summary { display: flex; gap: 13px; align-items: center; padding: 13px; border-radius: 10px; border: 1px solid #e8eef5; background: #fafcfe; margin-bottom: 17px; }
.company-logo { width: 41px; height: 41px; border-radius: 10px; background: linear-gradient(135deg, #1c4a75, #2b6b9d); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 17px; flex: none; }
.company-summary strong { display: block; font-size: 11px; }
.company-summary p { font-size: 8px; color: var(--muted); margin-top: 1px; }
.company-status { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 7.5px; color: var(--green); background: var(--green-bg); border-radius: 4px; padding: 2px 6px; }
.company-status .icon { width: 9px; height: 9px; }
.sim-data-section { margin-bottom: 17px; }
.sim-data-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sim-data-title h3 { font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sim-data-title h3 span { width: 3px; height: 12px; border-radius: 2px; background: var(--gold-500); }
.sim-data-title em { font-style: normal; font-size: 7.5px; color: var(--muted-light); }
.sim-input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.sim-input { display: flex; flex-direction: column; gap: 4px; }
.sim-input span { font-size: 8px; color: var(--muted); }
.sim-input input { height: 36px; border: 1px solid #e4ebf3; background: #fcfdff; border-radius: 7px; padding: 0 9px; font-size: 10px; outline: 0; width: 100%; font-variant-numeric: tabular-nums; }
.sim-input input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(60,120,181,.08); background: #fff; }
.sim-input input.invalid { border-color: #dca8a8; background: #fdf8f8; }
.sim-total-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; margin-top: 9px; background: #f7f9fc; border: 1px solid #e9eff5; border-radius: 7px; font-size: 8.5px; color: var(--muted); }
.sim-total-bar strong { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.validation-summary { display: flex; gap: 13px; align-items: center; padding: 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e8eef4; margin-bottom: 15px; }
.validation-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }
.validation-icon.warn { background: var(--amber-bg); color: var(--amber); }
.validation-icon.error { background: var(--red-bg); color: var(--red); }
.validation-copy { flex: 1; }
.validation-copy strong { display: block; font-size: 11px; }
.validation-copy p { font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.validation-score { text-align: right; }
.validation-score strong { font-family: var(--font-serif); font-size: 23px; line-height: 1; display: block; }
.validation-score span { font-size: 7px; color: var(--muted-light); }
.validation-list { display: flex; flex-direction: column; gap: 7px; }
.validation-item { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border-radius: 8px; border: 1px solid #e8eef4; background: #fbfcfe; }
.validation-item .v-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.validation-item .v-icon .icon { width: 10px; height: 10px; }
.validation-item.error { background: #fdf7f7; border-color: #f0dada; }
.validation-item.error .v-icon { background: #f5dede; color: var(--red); }
.validation-item.warn { background: #fdfaf3; border-color: #efe3cd; }
.validation-item.warn .v-icon { background: #f7ead2; color: var(--amber); }
.validation-item.pass { background: #f7fbf9; border-color: #dcece5; }
.validation-item.pass .v-icon { background: var(--green-bg); color: var(--green); }
.validation-item > div:nth-child(2) { flex: 1; }
.validation-item strong { display: block; font-size: 9px; font-weight: 600; }
.validation-item p { font-size: 8px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.validation-item button { border: 0; background: transparent; color: var(--blue-700); font-size: 8px; font-weight: 600; white-space: nowrap; }
.sim-auto-fix { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 11px 12px; background: var(--blue-50); border: 1px solid #e0ecf7; border-radius: 8px; font-size: 8.5px; color: #62778f; }
.sim-auto-fix strong { color: var(--blue-700); }
.sim-declaration-head { text-align: center; margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sim-declaration-head h2 { font-size: 17px; font-family: var(--font-serif); font-weight: 600; letter-spacing: .05em; }
.sim-declaration-head p { font-size: 8px; color: var(--muted); margin-top: 3px; }
.sim-declaration-table { font-size: 9px; }
.sim-declaration-table th { background: #f6f8fb; }
.sim-declaration-table td { padding: 8px 9px; }
.sim-declaration-table td:first-child { color: var(--muted); width: 40px; text-align: center; }
.sim-declaration-table tr.section-row td { background: #f8fafc; color: var(--ink); font-weight: 600; }
.sim-declaration-table tr.total-row td { background: #f6f1e7; color: #6e552d; font-weight: 600; }
.sim-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; margin-top: 15px; border-radius: 9px; background: #f8fafc; border: 1px solid #e8eef4; }
.sim-submit-bar p { font-size: 8.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sim-submit-bar p .icon { width: 12px; height: 12px; color: var(--gold-600); }
.submit-actions { display: flex; gap: 8px; flex: none; }
.sim-report-hero { text-align: center; padding: 28px 24px 24px; background: linear-gradient(135deg, #0d2945, #143d5f); border-radius: 15px; color: #fff; position: relative; overflow: hidden; }
.sim-report-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(216,186,126,.15); border-radius: 50%; left: 50%; top: -150px; transform: translateX(-50%); }
.report-success-icon { width: 46px; height: 46px; margin: 0 auto 11px; border-radius: 50%; background: rgba(102,183,152,.15); border: 1px solid rgba(142,206,180,.32); display: grid; place-items: center; color: #9cd7bd; position: relative; z-index: 1; }
.report-success-icon .icon { width: 21px; height: 21px; }
.sim-report-hero h2 { font-size: 21px; font-weight: 500; position: relative; z-index: 1; }
.sim-report-hero p { font-size: 9px; color: rgba(220,232,245,.52); margin-top: 4px; position: relative; z-index: 1; }
.sim-report-big { font-family: var(--font-serif); font-size: 48px; color: #f0d9ad; line-height: 1.2; margin-top: 8px; position: relative; z-index: 1; }
.sim-report-big small { font-family: var(--font-sans); font-size: 10px; color: rgba(220,232,245,.42); }
.sim-report-meta { display: flex; justify-content: center; gap: 30px; margin-top: 11px; position: relative; z-index: 1; }
.sim-report-meta span { font-size: 8px; color: rgba(220,232,245,.43); }
.sim-report-meta strong { display: block; font-family: var(--font-serif); font-size: 14px; color: #e9d3a8; margin-top: 1px; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 14px; }
.report-kpi { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.report-kpi span { font-size: 7.5px; color: var(--muted); }
.report-kpi strong { display: block; font-size: 14px; font-family: var(--font-serif); margin-top: 2px; }
.report-kpi small { font-size: 7px; color: var(--green); display: block; margin-top: 1px; }
.report-skill-list { display: flex; flex-direction: column; gap: 9px; }
.report-skill { display: flex; flex-direction: column; gap: 4px; }
.report-skill-head { display: flex; justify-content: space-between; font-size: 8.5px; }
.report-skill-head span { color: var(--ink-soft); }
.report-skill-head strong { color: var(--muted); font-weight: 500; }
.report-skill-track { height: 4px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.report-skill-track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), #76a0c5); }
.case-card { padding: 18px; }
.case-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.case-label { font-size: 7px; letter-spacing: .14em; color: var(--gold-600); font-weight: 700; }
.case-no { font-size: 7px; color: var(--muted-light); }
.case-card h3 { font-size: 11px; font-weight: 600; }
.case-meta { font-size: 7.5px; color: var(--muted); line-height: 1.7; margin-top: 3px; }
.case-progress { margin: 13px 0; padding-top: 11px; border-top: 1px dashed #e8eef4; }
.case-progress > div:first-child { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); margin-bottom: 6px; }
.case-progress > div:first-child strong { color: var(--blue-700); }
.case-progress .progress-track { background: #edf2f7; }
.case-progress .progress-track span { background: linear-gradient(90deg, var(--blue-700), #4f86b3); }
.case-checklist { display: flex; flex-direction: column; gap: 9px; }
.case-checklist > div { display: flex; align-items: center; gap: 8px; }
.case-checklist > div > span { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #d9e2eb; display: grid; place-items: center; flex: none; background: #fff; color: var(--green); }
.case-checklist > div > span .icon { width: 8px; height: 8px; opacity: 0; }
.case-checklist > div.done > span { background: var(--green-bg); border-color: #cbe7dc; }
.case-checklist > div.done > span .icon { opacity: 1; }
.case-checklist p { font-size: 8px; color: var(--muted); }
.case-checklist > div.done p { color: var(--ink-soft); }
.sim-hint-card { padding: 17px; background: linear-gradient(145deg, #fbf8f1, #fff); border-color: #eee3cf; position: relative; }
.hint-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.hint-head strong { font-size: 9px; color: #846934; }
.sim-hint-card p { font-size: 8.3px; color: #7e705b; line-height: 1.7; }
.hint-index { display: block; margin-top: 8px; font-size: 6.5px; letter-spacing: .14em; color: #b09d80; }
.sim-score-mini { padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; }
.sim-score-mini > div:first-child span { display: block; font-size: 7.5px; color: var(--muted); }
.sim-score-mini > div:first-child strong { font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.sim-score-ring { width: 40px; height: 40px; position: relative; }
.sim-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sim-score-ring circle { fill: none; stroke: #eef2f6; stroke-width: 4; }
.sim-score-ring circle.fill { stroke: var(--gold-500); stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset .6s var(--ease); stroke-linecap: round; }
.sim-stage .button[disabled] { opacity: .45; pointer-events: none; }
.sim-receipt { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px dashed #cfdee9; border-radius: 9px; background: #fbfcfe; margin: 14px 0; }
.receipt-icon { width: 31px; height: 31px; border-radius: 8px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }
.receipt-icon .icon { width: 15px; height: 15px; }
.sim-receipt > div:nth-child(2) { flex: 1; }
.sim-receipt strong { display: block; font-size: 9px; }
.sim-receipt p { font-size: 7.5px; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.receipt-no { font-size: 7px; color: var(--green); background: var(--green-bg); border-radius: 3px; padding: 2px 6px; }

/* =========================================================
   TOASTS / MODALS / COMMAND / NOTIFICATIONS
   ========================================================= */
.toast-container { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  display: flex; align-items: flex-start; gap: 9px;
  width: 310px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 15px 36px rgba(21,40,61,.16);
  animation: toastIn .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.toast.leaving { animation: toastOut .28s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--blue-500); width: 100%; animation: toastBar 3.4s linear forwards; }
.toast.success::after { background: var(--green); }
.toast.warn::after { background: var(--amber); }
.toast.error::after { background: var(--red); }
@keyframes toastBar { to { width: 0; } }
.toast-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--blue-50); color: var(--blue-700); }
.toast.success .toast-icon { background: var(--green-bg); color: var(--green); }
.toast.warn .toast-icon { background: var(--amber-bg); color: var(--amber); }
.toast.error .toast-icon { background: var(--red-bg); color: var(--red); }
.toast-icon .icon { width: 12px; height: 12px; }
.toast-copy { flex: 1; }
.toast-copy strong { display: block; font-size: 10px; font-weight: 600; }
.toast-copy p { font-size: 8.5px; color: var(--muted); line-height: 1.55; margin-top: 1px; }
.toast-close { border: 0; background: transparent; color: #b4bfcc; padding: 1px; }

.modal-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(6,20,34,.48); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 30px; animation: fadeIn .25s; }
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: relative; width: min(720px, 100%); max-height: calc(100vh - 60px); overflow-y: auto; background: #fff; border-radius: 17px; box-shadow: 0 30px 80px rgba(0,0,0,.25); padding: 27px 29px; animation: modalIn .3s var(--ease); }
.modal.wide { width: min(960px, 100%); }
.modal.narrow { width: min(480px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 15px; top: 15px; z-index: 2; }
.modal-head { margin-bottom: 18px; padding-right: 30px; }
.modal-head .card-kicker { margin-bottom: 5px; }
.modal-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.modal-head p { font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.65; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.modal-note { display: flex; gap: 6px; align-items: flex-start; font-size: 8.5px; color: var(--muted); line-height: 1.6; background: #f8fafc; border: 1px solid #edf2f7; border-radius: 7px; padding: 9px 10px; margin-top: 12px; }
.modal-note .icon { width: 12px; height: 12px; color: var(--gold-600); margin-top: 1px; flex: none; }
.confirm-summary { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin: 14px 0; }
.confirm-summary div { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #eef2f6; font-size: 9.5px; }
.confirm-summary div:last-child { border-bottom: 0; }
.confirm-summary span { color: var(--muted); }
.confirm-summary strong { font-weight: 600; }
.confirm-summary div.total { background: #fbf7ef; }
.confirm-summary div.total strong { color: var(--gold-600); }
.modal-check { display: flex; align-items: flex-start; gap: 7px; font-size: 9px; color: var(--muted); line-height: 1.6; margin-top: 12px; cursor: pointer; }
.modal-check input { margin-top: 2px; accent-color: var(--blue-700); }
.modal .declaration-preview { padding: 0; }
.modal .declaration-head { margin-bottom: 14px; }
.resource-preview-cover { display: flex; gap: 18px; align-items: center; padding: 15px; border-radius: 11px; background: #f8fafc; border: 1px solid #edf2f7; margin-bottom: 18px; }
.resource-preview-cover .resource-cover { width: 70px; height: 95px; }
.resource-preview-cover h2 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.resource-preview-cover p { font-size: 9px; color: var(--muted); margin-top: 4px; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; font-size: 8px; color: var(--muted-light); }
.preview-toc { display: flex; flex-direction: column; gap: 1px; margin: 12px 0 15px; }
.preview-toc div { display: flex; gap: 8px; padding: 7px 2px; border-bottom: 1px dashed #eef2f6; font-size: 9px; color: var(--ink-soft); }
.preview-toc span { color: var(--gold-600); font-family: var(--font-serif); width: 17px; }
.preview-excerpt { background: #fbfcfe; border: 1px solid #e9eff5; border-radius: 9px; padding: 13px 15px; }
.preview-excerpt h4 { font-size: 10px; color: var(--ink-soft); margin-bottom: 5px; }
.preview-excerpt p { font-size: 8.8px; color: var(--muted); line-height: 1.8; }
.preview-actions { display: flex; gap: 8px; margin-top: 17px; }
.request-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

.command-palette { width: min(610px, 90vw); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: modalIn .26s var(--ease); }
.palette-overlay { position: fixed; inset: 0; z-index: 260; background: rgba(6,20,34,.45); backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; padding-top: 13vh; }
.palette-overlay[hidden] { display: none; }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.palette-search > .icon { width: 18px; height: 18px; color: var(--blue-600); }
.palette-search input { flex: 1; border: 0; outline: 0; font-size: 12px; background: transparent; }
.palette-body { max-height: 400px; overflow-y: auto; padding: 8px; }
.palette-group-label { padding: 7px 9px 4px; font-size: 7px; letter-spacing: .12em; color: var(--muted-light); font-weight: 700; }
.palette-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; border-radius: 7px; padding: 8px 9px; text-align: left; color: var(--ink-soft); font-size: 10px; }
.palette-item .p-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; flex: none; }
.palette-item .p-icon .icon { width: 13px; height: 13px; }
.palette-item span:nth-child(2) { flex: 1; }
.palette-item em { font-style: normal; font-size: 7.5px; color: var(--muted-light); }
.palette-item:hover, .palette-item.selected { background: #f3f7fb; }
.palette-item.selected .p-icon { background: var(--blue-700); color: #fff; }
.palette-empty { padding: 25px; text-align: center; color: var(--muted); font-size: 10px; }
.palette-foot { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); background: #fafbfd; font-size: 7.5px; color: var(--muted-light); }
.palette-foot span { display: flex; align-items: center; gap: 4px; }
.palette-foot kbd { font-size: 7px; padding: 2px 4px; }
.palette-brand { margin-left: auto; letter-spacing: .08em; color: #b3becc; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(6,20,34,.35); backdrop-filter: blur(3px); z-index: 210; animation: fadeIn .2s; }
.drawer-overlay[hidden] { display: none; }
.notification-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 380px; background: #fff; z-index: 220; box-shadow: -20px 0 50px rgba(21,40,61,.16); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.notification-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 13px; }
.drawer-head h2 { font-size: 18px; font-weight: 600; }
.drawer-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.drawer-tabs button { border: 0; background: transparent; padding: 8px 10px 10px; color: var(--muted); font-size: 9.5px; position: relative; }
.drawer-tabs button.active { color: var(--blue-700); font-weight: 600; }
.drawer-tabs button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--blue-700); }
.drawer-list { flex: 1; overflow-y: auto; padding: 9px 13px; }
.notice-item { display: flex; gap: 10px; padding: 12px 9px; border-radius: 9px; transition: .2s; cursor: pointer; }
.notice-item:hover { background: #f8fafc; }
.notice-item.unread { background: #f6faff; }
.notice-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.notice-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.notice-icon.green { background: var(--green-bg); color: var(--green); }
.notice-icon .icon { width: 14px; height: 14px; }
.notice-copy { flex: 1; }
.notice-copy strong { display: block; font-size: 9.5px; font-weight: 600; }
.notice-copy p { font-size: 8.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.notice-copy span { display: block; font-size: 7.5px; color: var(--muted-light); margin-top: 4px; }
.notice-unread-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; margin-top: 7px; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 8px; color: var(--muted-light); }
.drawer-foot > span { display: flex; align-items: center; gap: 4px; }
.drawer-foot .icon { width: 11px; height: 11px; }

/* tooltips */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%) translateY(3px); background: var(--navy-900); color: #fff; font-size: 8px; padding: 4px 7px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .18s; z-index: 20; }
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* result flash */
.flash-highlight { animation: flashHighlight .8s var(--ease); }
@keyframes flashHighlight { 0% { background: rgba(216,186,126,.22); } 100% { background: transparent; } }
.pulse-number { animation: pulseNumber .55s var(--ease); }
@keyframes pulseNumber { 0% { transform: scale(1); } 45% { transform: scale(1.025); color: var(--gold-400); } 100% { transform: scale(1); } }

/* skeleton shimmer */
.shimmer { position: relative; overflow: hidden; background: #f0f4f8; border-radius: 5px; color: transparent !important; }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* sync dot */
.refresh-dot { display: inline-block; width: 5px; height: 5px; background: var(--gold-500); border-radius: 50%; margin-right: 5px; }

/* =========================================================
   RESPONSIVE (desktop-first, graceful narrow)
   ========================================================= */
@media (min-width: 1900px) {
  .main-content { max-width: 1640px; }
}
@media (max-width: 1380px) {
  :root { --sidebar-w: 236px; }
  .main-content { padding: 28px 26px 34px; }
  .hero-copy h2 { font-size: 27px; }
  .floating-ledger { width: 132px; }
  .ledger-a { right: 162px; }
  .plan-card { padding: 19px 17px 15px; }
  .quick-tile { padding: 11px; }
  .knowledge-layout { grid-template-columns: 185px minmax(0, 1fr) 285px; }
  .resource-feature { padding: 26px; }
  .feature-cover { right: 40px; transform: scale(.93) rotate(4deg); }
  .calc-tab { padding: 10px 9px; }
  .calc-tab strong { font-size: 8.7px; }
  .calc-tab small { font-size: 7px; }
}
@media (max-width: 1220px) {
  body { min-width: 1024px; }
  .engine-status, .topbar-date { display: none; }
  .command-trigger { width: 230px; }
  .overview-hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(270px, .85fr); }
  .hero-copy { width: 64%; padding-left: 28px; }
  .hero-visual { min-width: 270px; }
  .ledger-a { right: 130px; }
  .ledger-b { right: -4px; }
  .ai-core { right: 68px; }
  .tag-a { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr); }
  .knowledge-layout { grid-template-columns: 1fr 290px; }
  .knowledge-side { display: none; }
  .tax-layout, .calc-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .learning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3 { grid-column: span 2; }
  .goal-card { gap: 20px; }
  .goal-track { width: 320px; }
  .report-layout { grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr); }
  .ability-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-hero-copy { width: 58%; }
  .sim-hero-visual { min-width: 330px; }
  .sim-document { right: 58px; }
  .float-a { left: 0; }
}
@media (max-width: 1080px) {
  body { min-width: 900px; }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .32s var(--ease); box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  body.sidebar-open .sidebar { transform: none; }
  .app-shell { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }
  .mobile-menu { display: inline-grid; }
  .breadcrumb > span:first-child, .breadcrumb > .icon { display: none; }
  .main-content { padding: 25px 22px 32px; }
  .hero-visual { display: none; }
  .hero-copy { width: 100%; }
  .overview-hero-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: auto; }
  .plan-foot { margin-top: 12px; }
  .journal-grid { grid-template-columns: 1fr; }
  .result-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .tax-layout, .calc-layout, .quiz-layout, .quiz-taking-layout, .report-layout, .sim-layout { grid-template-columns: 1fr; }
  .result-panel { min-height: auto; }
  .calc-result { min-height: auto; }
  .answer-sheet { position: static; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-detail-column { position: static; }
  .knowledge-detail { min-height: auto; }
  .detail-placeholder { min-height: 160px; }
  .sim-inspector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .sim-inspector .card { height: 100%; }
  .sim-stepper small, .sim-stepper strong { display: none; }
  .sim-stepper button { justify-content: center; }
  .sim-stepper button > span { margin: 0; }
  .resource-feature-grid { grid-template-columns: 1fr; }
  .resource-path .card { height: auto; }
  .path-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ability-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  body { min-width: 0; }
  .main-content { padding: 22px 16px 30px; }
  .topbar { padding: 0 16px; }
  .command-trigger { width: 38px; padding: 0; justify-content: center; }
  .command-trigger span, .command-trigger kbd { display: none; }
  .profile-chip-copy, .profile-chip > .icon { display: none; }
  .page-heading { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .stat-grid, .learning-stat-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .result-column { grid-template-columns: 1fr; }
  .tax-tabs, .calc-tabs { grid-template-columns: repeat(2, 1fr); }
  .chapter-grid, .form-row.three-col, .template-grid { grid-template-columns: 1fr 1fr; }
  .tax-note-grid, .resource-grid, .learning-grid, .knowledge-grid { grid-template-columns: 1fr; }
  .resource-feature { padding: 22px; min-height: 300px; }
  .feature-copy { width: 100%; }
  .feature-cover { display: none; }
  .sim-hero-copy { width: 100%; padding: 28px 24px; }
  .sim-hero-visual { display: none; }
  .sim-process-head { flex-direction: column; align-items: flex-start; gap: 5px; }
  .sim-steps-preview { grid-template-columns: 1fr 1fr; }
  .sim-inspector { grid-template-columns: 1fr; }
  .sim-input-grid { grid-template-columns: 1fr 1fr; }
  .ability-grid, .report-kpis { grid-template-columns: 1fr 1fr; }
  .analysis-two, .report-narrative { grid-template-columns: 1fr; }
  .goal-card { flex-direction: column; align-items: stretch; }
  .goal-track { width: 100%; }
  .profile-banner { flex-direction: column; align-items: flex-start; }
  .profile-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .sim-stepper { overflow-x: auto; }
  .knowledge-hero { padding: 21px 17px; }
  .knowledge-search { height: 47px; }
  .knowledge-search .button { display: none; }
  .form-row.two-col { grid-template-columns: 1fr; }
}

/* =========================================================
   PRINT
   ========================================================= */
.printable-document { font-family: "SimSun", "Songti SC", serif; color: #111; }
@media print {
  @page { size: A4 portrait; margin: 13mm 12mm; }
  body { background: #fff !important; min-width: 0; }
  .sidebar, .topbar, .page-heading, .page-foot, .toast-container, .modal-close, .modal-actions, .declaration-head .form-actions, .drawer, .palette-overlay, .notification-drawer, .drawer-overlay { display: none !important; }
  .app-shell { display: block; }
  .main-content { padding: 0; max-width: none; }
  .page { display: none !important; }
  .page.print-source { display: block !important; }
  .modal-overlay { position: static; background: #fff; padding: 0; display: block !important; }
  .modal { box-shadow: none; max-height: none; width: 100%; padding: 0; border-radius: 0; overflow: visible; }
  .modal-close { display: none; }
  .print-only { display: block !important; }
  .no-print { display: none !important; }
  .data-table th { background: #f2f2f2 !important; color: #000; border: 1px solid #999; }
  .data-table td { border: 1px solid #bbb; color: #111; }
  .declaration-preview { padding: 0 !important; }
  .doc-meta-grid { border-color: #999; }
  .doc-meta-grid div { background: #fff; }
  .declaration-note { border-color: #999; }
  .sim-report-hero { background: #f0f0f0 !important; color: #111 !important; border: 1px solid #999; }
  .sim-report-hero h2, .sim-report-big, .report-success-icon { color: #111 !important; }
  .sim-report-meta strong, .sim-report-meta span, .sim-report-hero p { color: #333 !important; }
  .report-kpi { break-inside: avoid; }
  .print-footer { display: flex !important; justify-content: space-between; margin-top: 20px; padding-top: 8px; border-top: 1px solid #999; font-size: 9px; color: #444; }
}
.print-footer { display: none; }
.print-only { display: none; }

