:root {
  --bg: #041210;
  --bg-soft: #071815;
  --panel: #0a211e;
  --panel-2: #0d2924;
  --line: #24443d;
  --line-soft: rgba(111, 151, 138, .22);
  --text: #f2f4ec;
  --muted: #91aaa2;
  --gold: #efc364;
  --gold-strong: #f6d183;
  --mint: #66dfa2;
  --coral: #f47f69;
  --blue: #71a9ff;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  min-width: 320px; margin: 0; color: var(--text); background:
    radial-gradient(circle at 7% 0, rgba(33, 134, 97, .12), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(220, 174, 76, .07), transparent 30rem), var(--bg);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.page-shell { width: min(1420px, calc(100% - 40px)); margin-inline: auto; }
.app-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-soft); background: rgba(4, 18, 16, .88); backdrop-filter: blur(18px); }
.app-nav { min-height: 72px; display: flex; align-items: center; gap: 26px; padding: 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { display: inline-grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(239, 195, 100, .55); border-radius: 50%; color: var(--gold); background: #0b251f; box-shadow: inset 0 0 0 5px rgba(239, 195, 100, .05); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .06em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 10px 11px; border-radius: 9px; color: #b7c9c3; font-size: 12px; white-space: nowrap; transition: .18s; }
.main-nav a:hover { color: var(--text); background: rgba(102, 223, 162, .08); }
.main-nav i { margin-right: 5px; color: #719b8d; }
.account-nav { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.line-state { color: var(--mint); font-size: 10px; white-space: nowrap; }
.line-state i { margin-right: 4px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #132018; background: var(--gold); border-radius: 50%; font-size: 12px; font-weight: 900; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--text); background: var(--panel); }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: var(--text); font-size: 24px; }
.app-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 80px; padding: 28px; border-top: 1px solid var(--line-soft); color: #718a82; font-size: 10px; }

.eyebrow { display: inline-block; color: var(--mint); font-size: 10px; font-weight: 900; letter-spacing: .19em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 12px; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--gold); color: #19170d; background: linear-gradient(135deg, var(--gold-strong), #dcaa46); box-shadow: 0 10px 26px rgba(239, 195, 100, .12); }
.button-quiet { color: #c9d6d1; background: rgba(12, 38, 33, .7); }
.status-chip { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border: 1px solid rgba(102, 223, 162, .36); border-radius: 999px; color: var(--mint); background: rgba(102, 223, 162, .08); font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.meta { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; opacity: 0; transform: translate(-50%, 15px); padding: 11px 17px; border-radius: 999px; color: #09140e; background: var(--mint); box-shadow: var(--shadow); font-size: 12px; font-weight: 900; pointer-events: none; transition: .2s; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

.dashboard-hero { min-height: 430px; display: grid; grid-template-columns: 1fr 300px; gap: 70px; align-items: center; padding: 76px 34px; border-bottom: 1px solid var(--line-soft); }
.hero-copy h1, .page-intro h1 { max-width: 900px; margin: 11px 0 14px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.04em; }
.hero-copy p, .page-intro p { max-width: 700px; color: var(--muted); line-height: 1.8; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-stat { align-self: center; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 47, 40, .94), rgba(7, 27, 23, .94)); box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 10px; }
.hero-stat strong { display: block; margin: 7px 0 10px; color: var(--gold); font-family: Georgia, serif; font-size: 64px; font-weight: 500; line-height: 1; }
.hero-stat strong small { color: var(--muted); font: 12px Inter, sans-serif; }
.score-track { height: 5px; overflow: hidden; border-radius: 999px; background: #05110f; }
.score-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c79237, var(--gold), var(--mint)); }
.hero-stat p { margin: 12px 0 0; color: var(--mint); font-size: 10px; }
.section-block { padding-block: 64px 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 6px 0 0; font-family: Georgia, "Noto Serif TC", serif; font-size: 28px; }
.section-heading > a { color: var(--gold); font-size: 11px; }
.tool-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 13px; }
.tool-card { position: relative; min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(8, 29, 25, .72); transition: .2s; overflow: hidden; }
.tool-card:hover { transform: translateY(-3px); border-color: #496f63; background: var(--panel); }
.tool-card.featured { background: radial-gradient(circle at 92% 0, rgba(239, 195, 100, .11), transparent 18rem), var(--panel); border-color: rgba(239, 195, 100, .25); }
.tool-card .status-chip { position: absolute; right: 20px; top: 20px; }
.tool-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 23px; border: 1px solid #31594d; border-radius: 11px; color: var(--mint); background: #0e2e28; font-size: 18px; }
.tool-card h3 { margin: 0 0 8px; font-size: 18px; }
.tool-card p { max-width: 430px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.card-link { margin-top: auto; color: var(--gold); font-size: 11px; font-weight: 800; }
.content-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 34px; }
.course-list, .recent-panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(8, 28, 24, .65); overflow: hidden; }
.course-row { display: grid; grid-template-columns: 55px 1fr auto; gap: 17px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.course-row:last-child { border-bottom: 0; }
.course-index { color: var(--gold); font-family: Georgia, serif; font-size: 24px; }
.course-row h3 { margin: 4px 0; font-size: 14px; }
.course-row p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.course-row > i { color: #54766d; }
.analysis-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 17px; border-bottom: 1px solid var(--line-soft); }
.analysis-row:last-child { border: 0; }
.analysis-row:hover { background: rgba(102, 223, 162, .05); }
.mini-score { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #4b705e; border-radius: 50%; color: var(--gold); font: 19px Georgia, serif; }
.analysis-row strong, .analysis-row small { display: block; }
.analysis-row strong { font-size: 11px; }
.analysis-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.analysis-row > i { color: var(--gold); }
.empty-state { margin: 0; padding: 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.page-intro { position: relative; padding: 70px 15px 44px; border-bottom: 1px solid var(--line-soft); }
.page-intro.compact { padding-bottom: 30px; }
.page-intro > .button { margin-top: 18px; }
.course-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 38px; }
.course-card { position: relative; min-height: 270px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.course-card .status-chip { position: absolute; right: 23px; top: 23px; }
.course-card h2 { margin: 30px 0 10px; font-family: Georgia, "Noto Serif TC", serif; font-size: 24px; }
.course-card p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.course-card-footer { display: flex; justify-content: space-between; margin-top: auto; color: var(--muted); font-size: 10px; }
.course-card-footer a { color: var(--gold); font-weight: 800; }
.tool-page-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 42px 10px 24px; }
.tool-page-head h1 { margin: 5px 0 5px; font-family: Georgia, serif; font-size: 38px; }
.tool-page-head p { margin: 0; color: var(--muted); font-size: 11px; }
.embedded-tool { height: calc(100vh - 200px); min-height: 720px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #07110f; box-shadow: var(--shadow); }
.embedded-tool.tall { min-height: 900px; }
.embedded-tool iframe { width: 100%; height: 100%; border: 0; }

.history-list { display: grid; gap: 10px; padding-top: 34px; }
.history-card { display: grid; grid-template-columns: 70px 1fr 110px auto; gap: 20px; align-items: center; padding: 19px 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.history-card:hover { border-color: #42685d; }
.history-score { display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid #4f765f; border-radius: 50%; color: var(--gold); font: 26px Georgia, serif; }
.history-card h2 { margin: 4px 0; font-size: 15px; }
.history-card p { margin: 0; color: var(--muted); font-size: 10px; }
.plane-reading small, .plane-reading strong { display: block; text-align: right; }
.plane-reading small { color: var(--muted); font-size: 9px; }
.plane-reading strong { margin-top: 3px; color: var(--mint); font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 14px; padding-top: 28px; }
.result-hero { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 27px; border: 1px solid rgba(239, 195, 100, .28); border-radius: var(--radius); background: linear-gradient(135deg, rgba(239, 195, 100, .09), transparent 35%), var(--panel); }
.result-score { border-right: 1px solid var(--line); }
.result-score span, .result-score small { color: var(--muted); font-size: 9px; }
.result-score strong { margin: 0 4px 0 7px; color: var(--gold); font: 58px Georgia, serif; }
.result-hero h2 { margin: 9px 0; font-size: 19px; }
.result-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.detail-photos { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.detail-photos figure { margin: 0; }
.detail-photos figure > div { aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.detail-photos img { width: 100%; height: 100%; object-fit: cover; }
.detail-photos figcaption { padding: 7px; color: var(--muted); font-size: 9px; }
.coach-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.coach-card h2 { margin: 7px 0 12px; font-family: Georgia, serif; }
.coach-card p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.coach-card form { display: grid; gap: 8px; margin-top: 18px; }
.coach-card textarea, .coach-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #061713; font-size: 11px; }
.admin-table { padding-top: 34px; overflow-x: auto; }
.admin-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 11px; }
.admin-table th { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); }
.notice-success { margin-bottom: 12px; padding: 10px 13px; border: 1px solid rgba(102,223,162,.35); border-radius: 9px; color: var(--mint); background: rgba(102,223,162,.07); font-size: 11px; }
.form-panel { max-width: 820px; padding-top: 30px; }
.form-panel form { display: grid; gap: 17px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.form-panel label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.form-panel input, .form-panel textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #061713; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr .6fr; gap: 12px; }
.form-panel .check-field { display: flex; align-items: center; gap: 8px; }
.form-panel .check-field input { width: 17px; height: 17px; accent-color: var(--mint); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.validation { color: var(--coral); font-size: 10px; }

.login-shell { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 20px; }
.login-panel { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 24px; text-align: center; background: var(--panel); box-shadow: var(--shadow); }
.brand-mark.large { width: 58px; height: 58px; margin-bottom: 20px; font-size: 22px; }
.login-panel h1 { margin: 8px 0; font-family: Georgia, serif; font-size: 31px; }
.login-panel > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.line-login { display: flex; justify-content: center; gap: 8px; width: 100%; margin-top: 22px; padding: 12px; border-radius: 10px; color: #071108; background: #06c755; font-size: 12px; font-weight: 900; }
.notice-warning { margin-top: 15px; padding: 10px; border: 1px solid rgba(239, 195, 100, .35); border-radius: 8px; color: var(--gold); background: rgba(239, 195, 100, .07); font-size: 10px; }
.demo-logins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-logins > span { grid-column: 1/-1; margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.demo-logins button { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: #b8cbc4; background: transparent; font-size: 9px; }

/* Dual-view posture analysis */
.pose-shell { width: min(1500px, calc(100% - 30px)); margin-inline: auto; padding: 32px 0 20px; }
.pose-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.pose-heading h1 { margin: 5px 0 6px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(32px, 4vw, 51px); letter-spacing: -.04em; }
.pose-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.pose-head-actions { display: flex; align-items: center; gap: 9px; }
.model-state { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(8, 31, 26, .8); font-size: 9px; white-space: nowrap; }
.model-state i, .confidence i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(239, 195, 100, .08); }
.model-state.ready { color: var(--mint); }
.model-state.ready i { background: var(--mint); }
.analysis-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(8, 27, 23, .75); overflow: hidden; }
.analysis-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-right: 1px solid var(--line-soft); color: #718b82; }
.analysis-steps li:last-child { border-right: 0; }
.analysis-steps li::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: .2s; }
.analysis-steps li.active, .analysis-steps li.done { color: var(--text); }
.analysis-steps li.active::after, .analysis-steps li.done::after { width: 100%; }
.analysis-steps li.done::after { background: var(--mint); }
.analysis-steps b { color: var(--gold); font: 16px Georgia, serif; }
.analysis-steps span { font-size: 10px; font-weight: 800; }
.analysis-steps small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.analysis-layout { display: grid; grid-template-columns: minmax(520px, 1.35fr) minmax(330px, .78fr) minmax(315px, .64fr); gap: 10px; align-items: start; }
.view-workspace, .analysis-panel { border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 27, 23, .9); box-shadow: var(--shadow); overflow: hidden; }
.workspace-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.workspace-head > div { display: flex; align-items: center; gap: 9px; }
.workspace-head strong, .workspace-head small { display: block; }
.workspace-head strong { font-size: 11px; }
.workspace-head small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.view-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(239, 195, 100, .45); border-radius: 50%; color: var(--gold); font: 14px Georgia, serif; }
.mini-upload { color: var(--gold); font-size: 8px; cursor: pointer; white-space: nowrap; }
.mini-upload i { margin-right: 4px; }
.photo-stage { position: relative; min-height: 590px; overflow: hidden; background: #030b0a; }
.rear-workspace .photo-stage { min-height: 590px; }
.photo-stage > img, .photo-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-stage > img { object-fit: cover; }
.photo-stage > canvas { touch-action: none; cursor: crosshair; }
.photo-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 66%, rgba(2, 10, 8, .7)); }
.upload-curtain { position: absolute; inset: 0; z-index: 6; display: none; place-items: center; align-content: center; gap: 7px; border: 1px dashed #41695e; color: var(--muted); background: rgba(3, 17, 14, .9); cursor: pointer; }
.upload-curtain.show { display: grid; }
.upload-curtain i { color: var(--gold); font-size: 27px; }
.upload-curtain strong { color: var(--text); font-size: 12px; }
.upload-curtain span { font-size: 8px; }
.photo-label { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dce7e2; background: rgba(3, 13, 11, .68); backdrop-filter: blur(8px); font-size: 8px; }
.photo-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.metrics-float { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; min-width: 130px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(3, 15, 12, .74); backdrop-filter: blur(9px); }
.metrics-float span { display: flex; justify-content: space-between; gap: 15px; padding: 7px 9px; border-bottom: 1px solid rgba(255,255,255,.09); color: #a8bbb4; font-size: 8px; }
.metrics-float span:last-child { border: 0; }
.metrics-float b { color: var(--gold); font-size: 9px; }
.rear-guide { position: absolute; top: 12px; left: 50%; z-index: 3; height: calc(100% - 24px); border-left: 1px dashed rgba(102, 223, 162, .5); pointer-events: none; }
.rear-guide span { position: absolute; top: 0; left: 6px; color: var(--mint); font-size: 7px; white-space: nowrap; }
.workspace-foot { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 13px; color: var(--muted); font-size: 8px; }
.workspace-foot i { margin-right: 4px; color: #749b8e; }
.confidence { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); }
.confidence i { width: 5px; height: 5px; background: var(--mint); box-shadow: none; }
.analysis-panel { position: sticky; top: 84px; }
.score-summary { display: grid; grid-template-columns: 75px 1fr; gap: 13px; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(circle at 0 0, rgba(239, 195, 100, .1), transparent 13rem); }
.score-ring { width: 68px; height: 68px; display: grid; place-items: center; align-content: center; border: 2px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(239, 195, 100, .04), 0 0 25px rgba(239, 195, 100, .08); }
.score-ring strong { color: var(--gold); font: 28px Georgia, serif; line-height: 1; }
.score-ring small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.score-summary h2 { margin: 4px 0; font-size: 13px; }
.score-summary p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.judgement-list { padding: 8px 13px; }
.judgement { display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; align-items: start; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
.judgement:last-child { border-bottom: 0; }
.judge-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--mint); background: rgba(102, 223, 162, .1); }
.judgement.warning .judge-icon { color: var(--coral); background: rgba(244, 127, 105, .1); }
.judgement strong { display: block; font-size: 9px; }
.judgement p { margin: 4px 0 0; color: var(--muted); font-size: 7.5px; line-height: 1.55; }
.judgement > b { color: var(--mint); font-size: 8px; }
.judgement.warning > b { color: var(--coral); }
.coach-callout { display: grid; grid-template-columns: 34px 1fr; gap: 9px; margin: 0 13px 10px; padding: 12px; border: 1px solid rgba(239, 195, 100, .22); border-radius: 10px; background: rgba(239, 195, 100, .06); }
.coach-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #17150d; background: var(--gold); }
.coach-callout small { color: var(--gold); font-size: 7px; font-weight: 900; }
.coach-callout p { margin: 3px 0 0; color: #c5d2cd; font-size: 8px; line-height: 1.55; }
.privacy-note { display: flex; gap: 9px; margin: 0 13px 12px; padding: 10px; border-radius: 9px; color: var(--mint); background: rgba(102, 223, 162, .06); }
.privacy-note i { margin-top: 1px; }
.privacy-note strong, .privacy-note small { display: block; }
.privacy-note strong { font-size: 8px; }
.privacy-note small { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.panel-actions { display: grid; gap: 7px; padding: 0 13px 14px; }
.panel-actions .button { width: 100%; }
.analysis-disclaimer { margin: 13px 2px 0; color: #718a82; font-size: 8px; line-height: 1.55; }
.analysis-disclaimer i { margin-right: 4px; }

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

@media (max-width: 1080px) {
  .app-nav { flex-wrap: wrap; min-height: 64px; padding: 11px 18px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; order: 4; width: 100%; flex-wrap: wrap; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--line-soft); }
  .main-nav.open { display: flex; }
  .dashboard-hero { grid-template-columns: 1fr 260px; gap: 35px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card.featured { grid-column: 1/-1; }
  .course-catalog { grid-template-columns: 1fr 1fr; }
  .analysis-layout { grid-template-columns: minmax(500px, 1.2fr) minmax(330px, .8fr); }
  .analysis-panel { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1.3fr; }
  .score-summary { border-right: 1px solid var(--line-soft); }
  .judgement-list { grid-row: span 3; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 22px, 1420px); }
  .account-nav .line-state { display: none; }
  .brand small { display: none; }
  .dashboard-hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 54px 8px 42px; }
  .hero-copy h1, .page-intro h1 { font-size: clamp(35px, 11vw, 52px); }
  .hero-stat { width: 100%; }
  .section-block { padding-top: 44px; }
  .tool-grid, .content-split, .course-catalog, .detail-grid { grid-template-columns: 1fr; }
  .tool-card.featured { grid-column: auto; }
  .tool-card { min-height: 215px; }
  .course-row { grid-template-columns: 42px 1fr; }
  .course-row > i { display: none; }
  .history-card { grid-template-columns: 55px 1fr auto; padding: 15px; gap: 12px; }
  .history-card > i { display: none; }
  .plane-reading { grid-column: 2; }
  .plane-reading small, .plane-reading strong { display: inline; text-align: left; }
  .result-hero { grid-template-columns: 1fr; }
  .result-score { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .detail-photos { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tool-page-head { align-items: flex-start; flex-direction: column; }
  .embedded-tool { width: 100%; min-height: 760px; border-radius: 0; }
  .app-footer { flex-direction: column; margin-top: 55px; }
  .pose-shell { width: min(100% - 16px, 1500px); padding-top: 22px; }
  .pose-heading { align-items: flex-start; flex-direction: column; }
  .pose-head-actions { width: 100%; justify-content: space-between; }
  .analysis-steps { grid-template-columns: repeat(2, 1fr); }
  .analysis-steps li:nth-child(2) { border-right: 0; }
  .analysis-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .analysis-layout { grid-template-columns: 1fr; }
  .photo-stage, .rear-workspace .photo-stage { min-height: 500px; }
  .analysis-panel { grid-column: auto; display: block; }
  .score-summary { border-right: 0; }
}
