:root {
  --ink: #27233f;
  --ink-soft: #514d69;
  --ink-faint: #8d879f;
  --sun: #f4c95d;
  --sun-soft: #fff3cd;
  --paper: #fbfaf6;
  --paper-deep: #f3eee3;
  --line: #e7e3d9;
  --mint: #c8e8d0;
  --mint-deep: #317558;
  --coral: #f3b2a7;
  --coral-deep: #a84a43;
  --blue: #b7d8ef;
  --shadow: 0 24px 60px rgba(39, 35, 63, .11);
  --radius-xl: 30px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(49, 117, 88, .35); outline-offset: 3px; }
.hidden { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(420px, .92fr);
  background: #d9e9ee;
}

.auth-art {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #8fb5c9 url("/assets/xiaobu-campus.png") center / cover no-repeat;
  isolation: isolate;
}

.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(39, 35, 63, .87) 0%, rgba(39, 35, 63, .54) 34%, rgba(39, 35, 63, .04) 72%);
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  z-index: -1;
  background: linear-gradient(transparent, rgba(39, 35, 63, .42));
}

.art-topline, .art-copy, .art-sticker, .art-caption { position: absolute; z-index: 2; }
.art-topline { top: 34px; left: clamp(28px, 5vw, 70px); display: flex; align-items: center; gap: 13px; color: rgba(255, 255, 255, .86); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.art-copy { top: clamp(145px, 20vh, 205px); left: clamp(28px, 5vw, 70px); max-width: 450px; }
.art-copy h2 { margin: 17px 0 15px; font-size: clamp(42px, 5vw, 70px); line-height: 1.03; letter-spacing: -.08em; }
.art-copy h2 em, .hero-copy h3 em { color: var(--sun); font-style: normal; }
.art-copy p:not(.eyebrow) { max-width: 330px; margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.8; }
.auth-mascot { position: absolute; z-index: 2; width: min(330px, 37vw); right: 5%; bottom: -15px; filter: drop-shadow(0 20px 22px rgba(39, 35, 63, .2)); }
.art-sticker { right: 8%; top: 35%; display: grid; gap: 3px; min-width: 155px; padding: 14px 17px; color: var(--ink); background: rgba(255, 248, 222, .92); border: 1px solid rgba(255, 255, 255, .7); border-radius: 15px 15px 15px 4px; transform: rotate(3deg); box-shadow: 0 14px 28px rgba(39, 35, 63, .14); }
.art-sticker span { font-size: 11px; font-weight: 800; color: #806223; }
.art-sticker strong { font-size: 19px; letter-spacing: -.04em; }
.art-sticker small { font-size: 11px; color: #8d879f; }
.art-caption { left: clamp(28px, 5vw, 70px); bottom: 38px; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; max-width: 250px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .3); }
.art-caption span { color: var(--sun); font-weight: 900; }
.art-caption strong { font-size: 17px; }
.art-caption small { grid-column: 2; margin-top: 4px; color: rgba(255, 255, 255, .72); line-height: 1.55; }

.brand-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 19px 16px 20px 13px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -2px;
  transform: rotate(-4deg);
}
.brand-mark.inverse { width: 34px; height: 34px; color: #fff; background: var(--ink); border: 2px solid var(--sun); border-radius: 11px 9px 12px 8px; font-size: 12px; }

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 7vw, 100px);
  background: var(--paper);
}
.auth-brandline { display: flex; align-items: center; gap: 14px; margin-bottom: 54px; }
.auth-brandline strong { display: block; font-size: 17px; }
.auth-brandline span { display: block; margin-top: 4px; color: #9e98ab; font-size: 11px; }
.eyebrow { margin: 0 0 10px; color: var(--ink-faint); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.eyebrow.light { color: #f8dda0; }
.auth-card h1 { max-width: 460px; margin: 21px 0 18px; font-size: clamp(35px, 4.1vw, 58px); line-height: 1.08; letter-spacing: -.075em; }
.auth-copy { max-width: 410px; margin: 0 0 34px; color: var(--ink-soft); line-height: 1.8; }
.stack-form { display: grid; gap: 15px; max-width: 390px; }
.stack-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.stack-form input { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; outline: none; }
.stack-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(39, 35, 63, .08); }
.primary-button, .sun-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 17px; border-radius: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button { color: #fff; background: var(--ink); box-shadow: 0 12px 24px rgba(39, 35, 63, .18); }
.sun-button { color: var(--ink); background: var(--sun); box-shadow: 0 10px 20px rgba(244, 201, 93, .28); }
.primary-button:hover, .sun-button:hover { transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.compact { padding: 11px 15px; font-size: 13px; }
.error-text { min-height: 20px; margin: 11px 0 0; color: var(--coral-deep); font-size: 13px; }
.install-button { align-self: flex-start; margin-top: 2px; padding: 10px 12px; color: var(--mint-deep); background: var(--mint); border-radius: 11px; font-size: 12px; font-weight: 800; }
.tiny-note { max-width: 410px; margin-top: 22px; color: #aaa4b2; font-size: 11px; line-height: 1.7; }

.app-shell { min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #fbfaf6 0, #f6f1e8 100%); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 62px); background: rgba(251, 250, 246, .9); border-bottom: 1px solid rgba(231, 227, 217, .9); backdrop-filter: blur(18px); }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-avatar { width: 42px; height: 42px; object-fit: cover; object-position: 50% 22%; background: var(--sun-soft); border: 2px solid #fff; border-radius: 14px 12px 13px 10px; box-shadow: 0 5px 10px rgba(39, 35, 63, .12); }
.brand-lockup strong { display: block; font-size: 15px; }
.brand-lockup span { display: block; margin-top: 3px; color: #9e98ab; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.streak-chip { padding: 8px 11px; color: #806223; background: var(--sun-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }
.streak-chip b { color: var(--ink); }
.user-chip { padding: 9px 12px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.text-button, .link-button { color: #7f7894; background: none; font-size: 12px; font-weight: 700; }
.text-button:hover, .link-button:hover { color: var(--ink); }
.app-main { max-width: 1260px; margin: 0 auto; padding: 42px clamp(18px, 4vw, 50px); }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.welcome-row h2 { margin: 0; font-size: clamp(30px, 4vw, 49px); letter-spacing: -.075em; }
.date-badge { padding-bottom: 6px; color: #878095; border-bottom: 1px solid var(--sun); font-size: 12px; }

.hero-panel { position: relative; display: grid; grid-template-columns: minmax(330px, .95fr) minmax(240px, .65fr); min-height: 390px; overflow: hidden; color: var(--ink); background: #d9e9ee url("/assets/xiaobu-campus.png") center / cover no-repeat; border: 1px solid rgba(130, 159, 166, .18); border-radius: var(--radius-xl); box-shadow: 0 20px 50px rgba(74, 109, 117, .12); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 250, 233, .98) 0%, rgba(255, 250, 233, .88) 38%, rgba(255, 250, 233, .14) 76%); }
.hero-copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 45px); }
.mission-label { display: inline-flex; align-items: center; gap: 7px; color: #806223; font-size: 12px; font-weight: 800; }
.mission-pin { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--ink); background: var(--sun); border-radius: 9px 7px 9px 6px; }
.hero-copy h3 { max-width: 550px; margin: 22px 0 17px; font-size: clamp(34px, 4.5vw, 62px); line-height: 1.02; letter-spacing: -.085em; }
.hero-copy h3 em { color: #3f597d; }
.hero-copy p:not(.eyebrow) { max-width: 410px; margin: 0; color: #716b80; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.save-note { color: #8d879f; font-size: 11px; }
.hero-route { align-self: end; position: relative; z-index: 2; display: grid; gap: 11px; width: min(260px, 86%); margin: 0 28px 26px auto; padding: 19px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 20px 20px 7px 20px; box-shadow: 0 12px 25px rgba(52, 75, 82, .11); backdrop-filter: blur(10px); }
.route-label { color: #8d879f; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.route-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 9px; align-items: center; min-height: 41px; padding: 8px 9px; color: #8e8796; border-bottom: 1px solid rgba(39, 35, 63, .08); }
.route-step:last-child { border-bottom: 0; }
.route-step b { grid-row: span 2; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: #918b9c; background: #f0ece3; border-radius: 11px; font-size: 11px; }
.route-step span { font-size: 12px; font-weight: 800; }
.route-step small { color: #aaa4b2; font-size: 10px; }
.route-step.done b { color: var(--mint-deep); background: var(--mint); }
.route-step.current { color: var(--ink); background: rgba(255, 243, 205, .72); border-radius: 11px; }
.route-step.current b { color: var(--ink); background: var(--sun); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.metric-card { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.metric-card.accent { color: var(--ink); background: var(--sun); border-color: var(--sun); }
.metric-icon { display: inline-flex; width: 33px; height: 33px; align-items: center; justify-content: center; border-radius: 11px 8px 10px 7px; font-size: 16px; font-weight: 900; }
.metric-icon.blue { color: #456c8a; background: var(--blue); }
.metric-icon.coral { color: var(--coral-deep); background: #fde5df; }
.metric-icon.mint { color: var(--mint-deep); background: var(--mint); }
.metric-icon.ink { color: var(--sun); background: var(--ink); }
.metric-card small { display: block; color: #8b8499; font-size: 11px; }
.metric-card strong { display: inline-block; margin-top: 5px; font-size: 29px; line-height: 1; letter-spacing: -.06em; }
.metric-card em { margin-left: 3px; color: #9f99a8; font-size: 11px; font-style: normal; }
.metric-card.accent small, .metric-card.accent em { color: #806223; }

.content-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.panel { position: relative; overflow: hidden; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 19px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel h3 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.05em; }
.status-dot { width: 11px; height: 11px; margin: 5px 3px 0 0; background: var(--mint-deep); border-radius: 50%; box-shadow: 0 0 0 6px rgba(49, 117, 88, .11); }
.gap-list { display: grid; gap: 9px; margin-top: 20px; }
.gap-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--paper); border-radius: 11px; }
.gap-item strong { font-size: 13px; }
.gap-item span { color: var(--coral-deep); font-size: 12px; font-weight: 800; }
.panel-footnote { margin-top: 19px; color: #aaa4b2; font-size: 11px; }
.muted { color: #aaa4b2; font-size: 13px; line-height: 1.7; }
.plan-snippet { position: relative; z-index: 1; width: 68%; margin-top: 20px; }
.plan-day { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--sun); }
.plan-day strong { display: block; font-size: 13px; }
.plan-day span { display: block; margin-top: 4px; color: #8b8499; font-size: 12px; line-height: 1.5; }
.panel-mascot { position: absolute; right: -8px; bottom: -32px; width: 145px; transform: rotate(3deg); filter: drop-shadow(0 9px 9px rgba(39, 35, 63, .1)); }

.learning-head { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.back-button { padding: 8px 0; color: #716b80; background: none; font-size: 13px; }
.focus-mode { color: var(--mint-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.focus-mode span { color: var(--mint-deep); font-size: 9px; }
.progress-track { flex: 1; height: 8px; overflow: hidden; background: #ebe8e1; border-radius: 99px; }
.progress-value { width: 0; height: 100%; background: var(--sun); border-radius: 99px; transition: width .3s; }
.learning-head > span { min-width: 40px; color: #918b9c; font-size: 12px; text-align: right; }
.question-card { display: flex; flex-direction: column; justify-content: center; max-width: 720px; min-height: 450px; margin: 0 auto; padding: clamp(25px, 5vw, 60px); background: #fff; border: 1px solid var(--line); border-radius: 27px; box-shadow: var(--shadow); }
.question-tag { display: inline-flex; align-self: flex-start; padding: 7px 10px; color: #8c6b20; background: var(--sun-soft); border-radius: 99px; font-size: 11px; font-weight: 800; }
.question-card h3 { margin: 25px 0 12px; font-size: clamp(27px, 5vw, 46px); line-height: 1.12; letter-spacing: -.06em; }
.question-prompt { margin: 0 0 20px; color: #898295; line-height: 1.7; }
.audio-button { align-self: flex-start; margin: 0 0 20px; padding: 10px 13px; color: var(--ink); background: var(--blue); border-radius: 10px; font-size: 12px; font-weight: 800; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-button { padding: 14px; color: var(--ink); text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: .2s; }
.choice-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.answer-form { display: flex; gap: 9px; }
.answer-form input { flex: 1; min-width: 0; padding: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.answer-form input:focus { border-color: var(--ink); }
.hint { margin-top: 11px; color: #aaa4b2; font-size: 12px; }
.feedback { margin-top: 20px; padding: 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.feedback.good { color: var(--mint-deep); background: var(--mint); }
.feedback.bad { color: var(--coral-deep); background: #fde5df; }
.continue-button { margin-top: 14px; padding: 12px 16px; color: #fff; background: var(--ink); border-radius: 10px; font-weight: 800; }

.report-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.report-toolbar h3 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.06em; }
.report-toolbar p:not(.eyebrow) { margin: 0; color: #8c8697; line-height: 1.6; }
.report-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
.report-summary { padding: 27px; color: #fff; background: var(--ink) url("/assets/xiaobu-campus.png") right center / auto 170% no-repeat; border-radius: 19px; }
.report-summary p { max-width: 580px; margin: 8px 0 0; color: #ccc8d8; line-height: 1.8; }
.report-summary h3 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.05em; }
.report-block { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.report-block h4 { margin: 0 0 15px; font-size: 18px; letter-spacing: -.04em; }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deficit { margin: 14px 0; padding: 0 0 13px 14px; border-left: 4px solid var(--coral); }
.deficit strong { display: block; }
.deficit small { display: block; margin-top: 4px; color: #958e9e; line-height: 1.6; }
.deficit em { color: var(--coral-deep); font-size: 11px; font-style: normal; font-weight: 800; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-tag { padding: 8px 11px; color: #806223; background: var(--sun-soft); border-radius: 99px; font-size: 12px; }
.report-plan { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.report-plan .plan-day { margin: 0; padding: 11px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sun); border-radius: 10px; }
.report-plan .plan-day span { line-height: 1.5; }
.notice { margin-bottom: 14px; padding: 11px 14px; color: #786021; background: var(--sun-soft); border-radius: 10px; font-size: 12px; line-height: 1.6; }
.report-history { margin-top: 14px; padding: 20px 22px; background: rgba(255, 255, 255, .68); border: 1px solid var(--line); border-radius: 18px; }
.report-history h4 { margin: 0 0 13px; font-size: 16px; letter-spacing: -.04em; }
.history-list { display: grid; gap: 8px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; background: #fff; border-radius: 10px; }
.history-item strong { font-size: 12px; }
.history-item span { color: #918b9c; font-size: 11px; }

.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; height: calc(70px + env(safe-area-inset-bottom)); align-items: flex-start; justify-content: center; gap: clamp(28px, 7vw, 100px); padding-top: 13px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-item { display: grid; gap: 3px; justify-items: center; min-width: 48px; color: #aaa5b1; background: none; font-size: 11px; }
.nav-item span { font-size: 19px; line-height: 1; }
.nav-item.active { color: var(--ink); font-weight: 800; }
.nav-item.active span { color: var(--sun); }
.toast { position: fixed; bottom: 94px; left: 50%; z-index: 20; padding: 11px 15px; color: #fff; background: var(--ink); border-radius: 10px; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(39, 35, 63, .46); backdrop-filter: blur(8px); }
.dialog-card { position: relative; width: min(100%, 430px); padding: 30px; background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; box-shadow: var(--shadow); }
.dialog-card h3 { margin: 8px 0 10px; font-size: 29px; letter-spacing: -.06em; }
.dialog-card .muted { margin: 0 0 20px; line-height: 1.7; }
.dialog-close { position: absolute; top: 15px; right: 17px; width: 32px; height: 32px; color: var(--ink-soft); background: transparent; border-radius: 50%; font-size: 25px; line-height: 1; }
.dialog-close:hover { background: var(--paper-deep); }
.login-guide { display: flex; align-items: center; gap: 10px; max-width: 390px; margin: -7px 0 17px; padding: 11px 12px; color: var(--ink-soft); background: #fff8de; border: 1px solid #f4e4a7; border-radius: 13px; }
.login-role-icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; color: var(--ink); background: var(--sun); border-radius: 9px 7px 9px 6px; font-size: 12px; font-weight: 900; }
.login-guide strong, .login-guide small { display: block; }
.login-guide strong { font-size: 12px; }
.login-guide small { margin-top: 3px; color: #9b8e70; font-size: 11px; }
.ghost-button, .soft-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 14px; color: var(--ink-soft); background: rgba(255, 255, 255, .72); border: 1px solid rgba(39, 35, 63, .12); border-radius: 12px; font-size: 12px; font-weight: 800; }
.ghost-button:hover, .soft-button:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.parent-hero { position: relative; display: grid; grid-template-columns: minmax(330px, 1fr) minmax(250px, .54fr); min-height: 330px; overflow: hidden; color: var(--ink); background: #d8eee4 url("/assets/xiaobu-campus.png") center / cover no-repeat; border: 1px solid rgba(104, 150, 132, .2); border-radius: var(--radius-xl); box-shadow: 0 20px 50px rgba(74, 109, 117, .11); isolation: isolate; }
.parent-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 250, 233, .98) 0%, rgba(255, 250, 233, .89) 42%, rgba(255, 250, 233, .16) 80%); }
.parent-hero .hero-copy { padding: clamp(28px, 4vw, 43px); }
.parent-hero .hero-copy h3 { font-size: clamp(32px, 4vw, 53px); }
.parent-signal { align-self: end; display: grid; gap: 8px; width: min(250px, 88%); margin: 0 28px 26px auto; padding: 18px; text-align: center; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px 24px 7px 24px; box-shadow: 0 12px 25px rgba(52, 75, 82, .1); backdrop-filter: blur(10px); }
.parent-signal .route-label { text-align: left; }
.parent-signal strong { font-size: 17px; letter-spacing: -.04em; }
.parent-signal small { color: #8d879f; line-height: 1.55; }
.signal-orbit { position: relative; width: 88px; height: 88px; margin: 1px auto 2px; border: 1px dashed rgba(49, 117, 88, .35); border-radius: 50%; }
.signal-orbit::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(244, 201, 93, .7); border-radius: 50%; }
.orbit-core { position: absolute; top: 28px; left: 28px; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: var(--ink); background: var(--sun); border-radius: 50%; }
.orbit-dot { position: absolute; width: 9px; height: 9px; background: var(--mint-deep); border-radius: 50%; }
.orbit-dot.one { top: 10px; right: 13px; }
.orbit-dot.two { bottom: 14px; left: 10px; background: var(--coral-deep); }
.parent-grid, .manage-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.parent-report-card, .account-card { min-height: 222px; }
.report-preview { margin-top: 22px; }
.report-preview strong { font-size: 17px; }
.report-preview p { max-width: 700px; margin: 8px 0 14px; color: #8b8499; line-height: 1.7; }
.status-badge { padding: 6px 9px; color: #8f8798; background: var(--paper); border-radius: 999px; font-size: 11px; font-weight: 800; }
.status-badge.ready { color: var(--mint-deep); background: var(--mint); }
.account-summary { margin-top: 20px; }
.account-summary strong { font-size: 16px; }
.account-summary p { margin: 6px 0 16px; color: #8b8499; line-height: 1.65; }
.account-card .soft-button { margin-top: 3px; }
.page-intro { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 155px; overflow: hidden; margin-bottom: 14px; padding: 25px 30px; background: #fce8d9; border: 1px solid #f1d1bd; border-radius: 22px; }
.page-intro h3 { margin: 3px 0 7px; font-size: 29px; letter-spacing: -.06em; }
.page-intro p:not(.eyebrow) { max-width: 610px; margin: 0; color: #8d6f68; line-height: 1.7; }
.page-intro img { align-self: flex-end; width: 126px; margin: 0 12% -30px 0; filter: drop-shadow(0 9px 9px rgba(39, 35, 63, .1)); }
.manage-panel { min-height: 500px; }
.panel-number { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: var(--ink); background: var(--sun-soft); border-radius: 11px; font-size: 16px; font-weight: 900; }
.panel-lead { margin: 15px 0 22px; color: #8b8499; line-height: 1.7; }
.mini-form { max-width: none; }
.mini-form .primary-button { margin-top: 4px; }
.file-drop { display: grid; justify-items: center; gap: 5px; margin: 4px 0 12px; padding: 18px 12px; color: #756e80; background: #f8f5ed; border: 1px dashed #d6ccb8; border-radius: 14px; text-align: center; cursor: pointer; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: var(--mint-deep); background: var(--mint); border-radius: 50%; font-size: 18px; font-weight: 900; }
.file-drop strong { color: var(--ink-soft); font-size: 13px; }
.file-drop small { color: #aaa4b2; font-size: 11px; }
.csv-input { width: 100%; min-height: 145px; resize: vertical; padding: 12px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 12px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; outline: none; }
.csv-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(39, 35, 63, .08); }
.import-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.import-options label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.import-options input { min-width: 0; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; outline: none; font-size: 12px; }
.full-button { width: 100%; }
.form-hint { min-height: 19px; margin: 11px 0 0; color: #aaa4b2; font-size: 11px; line-height: 1.6; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 535px; }
  .auth-card { min-height: 590px; padding: 50px clamp(28px, 8vw, 90px); }
  .auth-brandline { margin-bottom: 38px; }
  .hero-panel { grid-template-columns: minmax(300px, .9fr) minmax(220px, .7fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .auth-art { min-height: 455px; background-position: 63% center; }
  .auth-art::before { background: linear-gradient(110deg, rgba(39, 35, 63, .9) 0%, rgba(39, 35, 63, .55) 48%, rgba(39, 35, 63, .05) 100%); }
  .art-topline { top: 22px; left: 22px; font-size: 10px; }
  .art-copy { top: 92px; left: 22px; max-width: 275px; }
  .art-copy h2 { margin: 13px 0 10px; font-size: 39px; }
  .art-copy p:not(.eyebrow) { font-size: 12px; line-height: 1.65; }
  .auth-mascot { width: 200px; right: -2px; bottom: -7px; }
  .art-sticker { top: auto; right: 16px; bottom: 29px; min-width: 130px; padding: 10px 12px; }
  .art-sticker strong { font-size: 16px; }
  .art-caption { display: none; }
  .auth-card { min-height: 0; padding: 36px 22px 52px; }
  .auth-brandline { margin-bottom: 37px; }
  .auth-card h1 { font-size: 38px; }
  .tiny-note { margin-bottom: 0; }
  .topbar { height: 67px; padding: 0 16px; }
  .brand-avatar { width: 37px; height: 37px; }
  .streak-chip, .user-chip { display: none; }
  .app-main { padding: 29px 16px; }
  .welcome-row { align-items: flex-start; margin-bottom: 22px; }
  .welcome-row h2 { font-size: 34px; }
  .date-badge { font-size: 10px; }
  .hero-panel { display: block; min-height: 590px; background-position: 68% center; }
  .hero-panel::before { background: linear-gradient(180deg, rgba(255, 250, 233, .98) 0%, rgba(255, 250, 233, .9) 43%, rgba(255, 250, 233, .05) 77%); }
  .hero-copy { padding: 27px 24px; }
  .hero-copy h3 { margin: 17px 0 13px; font-size: 38px; }
  .hero-copy p:not(.eyebrow) { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 18px; }
  .hero-route { width: calc(100% - 32px); margin: 0 16px 16px; padding: 13px 15px; }
  .route-step { min-height: 36px; }
  .route-step b { width: 27px; height: 27px; }
  .metric-card { min-height: 84px; padding: 13px; }
  .metric-card strong { font-size: 27px; }
  .content-grid, .report-columns { grid-template-columns: 1fr; }
  .parent-hero { display: block; min-height: 510px; background-position: 68% center; }
  .parent-hero::before { background: linear-gradient(180deg, rgba(255, 250, 233, .98) 0%, rgba(255, 250, 233, .9) 47%, rgba(255, 250, 233, .08) 82%); }
  .parent-hero .hero-copy { padding: 27px 24px; }
  .parent-hero .hero-copy h3 { font-size: 37px; }
  .parent-signal { width: calc(100% - 32px); margin: 0 16px 16px; }
  .parent-grid, .manage-grid { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; min-height: 205px; padding: 22px 20px; }
  .page-intro h3 { font-size: 26px; }
  .page-intro img { position: absolute; right: -5px; bottom: -24px; width: 115px; margin: 0; }
  .manage-panel { min-height: auto; }
  .import-options { grid-template-columns: 1fr; }
  .panel { padding: 19px; }
  .panel-mascot { width: 120px; }
  .plan-snippet { width: 72%; }
  .learning-head { flex-wrap: wrap; margin-bottom: 21px; }
  .focus-mode { order: 3; width: 100%; }
  .progress-track { order: 4; }
  .learning-head > span { order: 5; }
  .question-card { min-height: 510px; padding: 27px 21px; border-radius: 22px; }
  .question-card h3 { font-size: 32px; }
  .choices { grid-template-columns: 1fr; }
  .report-toolbar { align-items: flex-start; flex-direction: column; }
  .report-toolbar h3 { font-size: 29px; }
  .report-plan { grid-template-columns: 1fr 1fr; }
  .report-summary { background-position: 120% center; }
  .history-item { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
