:root {
  --bg: #f4f2ec;
  --surface: #fffdf8;
  --surface-2: #f8f6f0;
  --ink: #202823;
  --ink-2: #4d5a52;
  --muted: #77827a;
  --line: #dcd8cd;
  --line-strong: #bdb8aa;
  --accent: #315f4a;
  --accent-2: #487c62;
  --accent-soft: #e4eee7;
  --warn: #925a19;
  --warn-soft: #fbf0dc;
  --danger: #973f36;
  --danger-soft: #f8e6e1;
  --info: #365d7a;
  --info-soft: #e7eef4;
  --gold: #9b7c33;
  --shadow: 0 1px 2px rgba(38, 42, 35, 0.05), 0 8px 30px rgba(38, 42, 35, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(84, 119, 96, 0.10), transparent 30rem),
    linear-gradient(180deg, #f7f5ef 0%, var(--bg) 45rem);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.52; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.28; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(26px, 3vw, 36px); }
h2 { font-size: clamp(20px, 2vw, 25px); }
h3 { font-size: 18px; }
h4 { font-size: 15.5px; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; gap: 14px; text-align: center; color: var(--ink-2); }
.boot-mark { width: 54px; height: 54px; margin: auto; border-radius: 50%; display: grid; place-content: center; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 25px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 248, 242, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1380px; margin: 0 auto; padding: 12px 26px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none !important; flex: 0 0 auto; }
.brand-mark { width: 35px; height: 35px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-content: center; font-family: var(--serif); font-size: 19px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; }
.brand-title { font-family: var(--serif); font-size: 16px; font-weight: 650; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.main-nav { display: flex; gap: 2px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link { padding: 7px 12px; border-radius: 7px; color: var(--ink-2); font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.user-area { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.user-chip { font-size: 12.5px; color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--accent-2); margin-right: 5px; }
.role-dot.teacher { background: var(--gold); }

.page { width: min(1380px, 100%); margin: 0 auto; padding: 30px 26px 70px; flex: 1; }
.page.narrow { width: min(980px, 100%); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 7px; }
.page-head p { color: var(--ink-2); margin-top: 7px; max-width: 760px; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.footer { border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; }
.footer-inner { max-width: 1380px; margin: auto; padding: 18px 26px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card-flat { box-shadow: none; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.subtle { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.grid-main.flip { grid-template-columns: minmax(320px, 1fr) minmax(0, 1.7fr); }
.split-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 22px; align-items: start; }

.button {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.button:hover { background: var(--surface-2); border-color: var(--line-strong); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-2); }
.button.danger { color: var(--danger); border-color: #d7b3aa; background: var(--danger-soft); }
.button.ghost { border-color: transparent; background: transparent; }
.button.small { padding: 5px 9px; font-size: 12px; border-radius: 6px; }
.button.block { width: 100%; }
.button.link { border: 0; background: transparent; color: var(--accent); padding: 0; font-weight: 600; }
.button-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em; border: 1px solid transparent; white-space: nowrap; }
.badge.green { background: var(--accent-soft); color: var(--accent); border-color: #c8ddcf; }
.badge.gray { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.badge.amber { background: var(--warn-soft); color: var(--warn); border-color: #ead4ab; }
.badge.red { background: var(--danger-soft); color: var(--danger); border-color: #e4c3bb; }
.badge.blue { background: var(--info-soft); color: var(--info); border-color: #c9d9e5; }
.badge.gold { background: #f7f0db; color: var(--gold); border-color: #e6d6ad; }
.badge.dark { background: var(--ink); color: white; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.alert { border: 1px solid var(--line); background: var(--surface-2); padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-2); }
.alert.warn { background: var(--warn-soft); border-color: #ead4ab; color: #6f4917; }
.alert.danger { background: var(--danger-soft); border-color: #e4c3bb; color: #73322a; }
.alert.info { background: var(--info-soft); border-color: #c9d9e5; color: #2c506a; }
.alert.success { background: var(--accent-soft); border-color: #c8ddcf; color: #294f3d; }
.alert strong { color: inherit; }

.hero { padding: 28px; border-radius: var(--radius); background: linear-gradient(120deg, #eff3ed, #fbf8ef 58%, #f5efe2); border: 1px solid #d8d2c3; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -50px; bottom: -90px; width: 260px; height: 260px; border: 1px solid rgba(49,95,74,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(49,95,74,.035), 0 0 0 70px rgba(49,95,74,.025); pointer-events: none; }
.hero h1 { max-width: 850px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); gap: 24px; align-items: end; position: relative; z-index: 1; }
.next-box { border-left: 2px solid rgba(49,95,74,.35); padding-left: 16px; }
.next-box .next-label { font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.next-box .next-action { font-family: var(--serif); font-size: 19px; margin: 4px 0 9px; }

.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 12px 13px; }
.metric-value { font-family: var(--serif); font-size: 25px; line-height: 1; }
.metric-label { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.lesson-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.meta-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.meta-tile .k { font-size: 11px; color: var(--muted); }
.meta-tile .v { font-weight: 600; margin-top: 2px; }
.lesson-text { font-family: var(--serif); font-size: 16px; line-height: 1.9; color: #2d362f; }
.key-points { display: flex; gap: 7px; flex-wrap: wrap; margin: 13px 0; }
.chip { border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); padding: 3px 10px; font-size: 12px; color: var(--ink-2); }
.demo-box { border-left: 3px solid #b6a779; background: #faf6ea; padding: 13px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 13.5px; }
.checklist { display: grid; gap: 7px; list-style: none; padding: 0; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.checklist li::before { content: "□"; color: var(--accent); font-size: 15px; line-height: 1.35; }
.self-check { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 16px; margin-top: 15px; }

.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.candidate { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 17px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.candidate.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.candidate.locked { background: #fbfaf6; }
.candidate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.candidate-code { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 13px; }
.candidate-title { font-family: var(--serif); font-size: 16.5px; line-height: 1.4; }
.candidate-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.candidate-section { border-top: 1px dashed var(--line); padding-top: 9px; font-size: 12.8px; color: var(--ink-2); }
.candidate-section b { color: var(--ink); font-weight: 600; }
.candidate-actions { margin-top: auto; padding-top: 6px; }
.candidate .official-links { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.candidate .official-links a { overflow-wrap: anywhere; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .label { font-size: 12px; font-weight: 650; color: var(--ink-2); letter-spacing: .02em; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, input[type="text"], input[type="password"], input[type="date"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; background: #fffefa; padding: 8px 10px; font-size: 13.5px; outline: none;
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(72,124,98,.12); }
textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
textarea.tall { min-height: 150px; }
.input-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.input-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.input-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-note { font-size: 12px; color: var(--muted); }
.inline-form { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { min-width: 150px; }
.required { color: var(--danger); }

.dropzone { border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--surface-2); padding: 16px; }
.upload-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.upload-status.saved { color: var(--accent); }
.upload-status.failed { color: var(--danger); }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: var(--surface); font-size: 12.3px; }
.file-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 9px 14px; border: 1px solid transparent; border-bottom: none; border-radius: 7px 7px 0 0; background: transparent; color: var(--ink-2); font-size: 13.5px; }
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--surface); border-color: var(--line); color: var(--accent); font-weight: 600; margin-bottom: -1px; }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 18px; padding: 18px 20px; align-items: start; }
.task-index { font-family: var(--serif); font-size: 25px; color: var(--accent); line-height: 1; padding-top: 2px; }
.task-index small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .12em; color: var(--muted); margin-top: 5px; }
.task-title { font-size: 18px; font-family: var(--serif); }
.task-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 7px 0 0; }
.task-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.task-card .task-main { min-width: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 650; letter-spacing: .03em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.matrix-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 72vh; }
.matrix { border-collapse: separate; border-spacing: 0; min-width: 960px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px; }
.matrix thead th { position: sticky; top: 0; z-index: 5; background: var(--surface-2); }
.matrix th:first-child, .matrix td:first-child { position: sticky; left: 0; z-index: 4; background: var(--surface); min-width: 140px; }
.matrix thead th:first-child { z-index: 6; background: var(--surface-2); }
.matrix-cell { min-width: 155px; min-height: 78px; display: flex; flex-direction: column; gap: 4px; padding: 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid transparent; text-align: left; width: 100%; }
.matrix-cell:hover { border-color: var(--line-strong); background: #f3f0e7; }
.matrix-cell.empty { color: var(--muted); background: transparent; }
.cell-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.cell-status { font-size: 11.5px; font-weight: 600; }
.cell-flags { display: flex; gap: 4px; flex-wrap: wrap; }
.flag { font-size: 10px; border-radius: 3px; padding: 0 4px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.flag.late { color: var(--warn); background: var(--warn-soft); border-color: #ead4ab; }
.flag.sci { color: var(--danger); background: var(--danger-soft); border-color: #e4c3bb; }
.flag.todo { color: var(--info); background: var(--info-soft); border-color: #d3ded3; }
.matrix-student { font-weight: 650; font-size: 13px; }
.matrix-student small { display: block; color: var(--muted); font-weight: 400; }

.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--ink-2); }
.version-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.version-pill { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 5px 9px; font-size: 12px; color: var(--ink-2); }
.version-pill.active { background: var(--accent); border-color: var(--accent); color: white; }


.pdf-stage { border: 1px solid var(--line); border-radius: 8px; background: #525659; overflow: hidden; }
.pdf-viewer { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 6px 9px; }
.pdf-nav, .pdf-zoom, .pdf-actions { display: flex; align-items: center; gap: 4px; }
.pdf-tool-btn, .pdf-icon-btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 5px; color: var(--ink-2); font-size: 12px; line-height: 1; padding: 5px 8px; min-height: 26px; }
.pdf-icon-btn { width: 27px; padding: 4px; font-size: 17px; }
.pdf-tool-btn:hover, .pdf-icon-btn:hover { background: #ebe7dc; }
.pdf-icon-btn:disabled { opacity: .35; }
.pdf-page-label, .pdf-zoom-label { font-size: 11.5px; color: var(--ink-2); min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.pdf-zoom-label { min-width: 40px; }
.pdf-link { font-size: 11.5px; color: var(--accent); white-space: nowrap; padding: 3px 4px; }
.pdf-canvas-wrap { position: relative; background: #525659; min-height: 320px; height: 470px; overflow: auto; padding: 12px; display: block; }
.pdf-canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.26); max-width: none; }
.pdf-loading, .pdf-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: #e6e4de; font-size: 12.5px; background: #525659; padding: 20px; }
.pdf-loading[hidden], .pdf-error[hidden] { display: none; }
.pdf-error { color: #ffe9e1; }
.pdf-viewer.compact .pdf-toolbar { padding: 5px 7px; }
.pdf-viewer.compact .pdf-canvas-wrap { height: 300px; min-height: 230px; padding: 8px; }
.pdf-viewer.compact .pdf-tool-btn { font-size: 11px; padding: 4px 6px; }
.pdf-viewer.compact .pdf-link { font-size: 10.5px; }
.compare-pane .pdf-canvas-wrap { height: 390px; }
.gallery-pdf { border-bottom: 1px solid var(--line); background: #525659; }
.gallery-pdf .pdf-viewer { border: 0; border-radius: 0; }
.gallery-pdf .pdf-toolbar { background: #f4f1e8; }
@media (max-width: 820px) {
  .pdf-canvas-wrap { height: 380px; padding: 8px; }
  .pdf-toolbar { gap: 5px; }
  .pdf-actions { width: 100%; justify-content: flex-end; }
  .compare-pane .pdf-canvas-wrap { height: 350px; }
}

.artwork-stage { min-height: 260px; border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(#f1eee5 0% 25%, #f8f6f0 0% 50%) 50% / 18px 18px; display: grid; place-items: center; overflow: auto; padding: 10px; }
.artwork-stage img { display: block; max-width: 100%; max-height: 520px; margin: auto; box-shadow: 0 4px 20px rgba(0,0,0,.12); background: white; }
.zoom-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.zoom-row input[type="range"] { width: 180px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-pane { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: var(--surface-2); }
.compare-pane h4 { font-size: 12px; margin-bottom: 7px; color: var(--ink-2); }
.compare-pane .artwork-stage { min-height: 180px; }
.compare-pane img { max-height: 340px; }
.empty-art { color: var(--muted); font-size: 12px; text-align: center; padding: 30px; }

.feedback-item { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: var(--surface); }
.feedback-item.severity-must_fix { border-left: 3px solid var(--danger); }
.feedback-item.severity-suggestion { border-left: 3px solid var(--info); }
.feedback-item.severity-highlight { border-left: 3px solid var(--accent); }
.feedback-item.severity-scientific { border-left: 3px solid var(--gold); }
.feedback-head { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.feedback-issue { font-weight: 600; }
.feedback-field { margin-top: 7px; font-size: 13px; color: var(--ink-2); }
.feedback-field b { color: var(--ink); }
.responses { background: var(--surface-2); border-radius: 7px; padding: 10px 12px; margin-top: 10px; font-size: 12.5px; }
.response { border-bottom: 1px dashed var(--line); padding: 6px 0; }
.response:last-child { border-bottom: 0; }
.response-form { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
details.accordion { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
details.accordion > summary { cursor: pointer; padding: 14px 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion[open] > summary { border-bottom: 1px solid var(--line); }
details.accordion .accordion-body { padding: 17px; }

.rubric-table input[type="number"] { width: 75px; text-align: right; padding: 5px 7px; }
.rubric-table th, .rubric-table td { padding: 7px 9px; }
.rubric-table .dimension-row td { background: #f5f2e9; font-weight: 650; }
.total-box { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); margin-top: 12px; padding-top: 12px; }
.total-box .total-value { font-family: var(--serif); font-size: 32px; }
.total-box .total-label { color: var(--muted); font-size: 12px; }
.score-mini { font-family: var(--mono); }
.grade-history { font-size: 12px; color: var(--ink-2); }
.grade-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.grade-row:last-child { border-bottom: 0; }

.publish-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.rank-number { font-family: var(--serif); font-size: 21px; color: var(--accent); }
.rank-1 { color: var(--gold); }
.result-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 22px; padding: 26px; background: linear-gradient(120deg, #f0f4ef, #fbf8ed); border: 1px solid #d8d2c3; border-radius: var(--radius); }
.final-number { font-family: var(--serif); font-size: 54px; line-height: 1; }
.final-caption { color: var(--muted); font-size: 12px; margin-top: 7px; }
.dimension-bars { display: grid; gap: 8px; }
.dimension-bar { display: grid; grid-template-columns: 80px 1fr 45px; align-items: center; gap: 9px; font-size: 12px; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent-2); }
.consent-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; border-top: 1px dashed var(--line); padding-top: 10px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-card { overflow: hidden; }
.gallery-card img { width: 100%; height: 240px; object-fit: contain; background: #f1eee6; display: block; }
.gallery-card .meta { padding: 14px 16px; }
.gallery-card .meta h3 { font-size: 16px; margin-bottom: 4px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 25, 21, .48); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { width: min(740px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.28); border: 1px solid var(--line); }
.modal.wide { width: min(1150px, 100%); }
.modal-header { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: var(--surface-2); position: sticky; bottom: 0; }
.modal-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); padding: 0 4px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .75fr); }
.login-art { background: linear-gradient(135deg, #244436, #315f4a 55%, #4e725f); color: #edf1e9; padding: 58px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; right: -120px; top: -100px; box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.025); }
.login-art h1 { font-size: clamp(34px, 4.3vw, 58px); max-width: 700px; letter-spacing: .02em; }
.login-art p { color: #cee0d5; max-width: 580px; margin-top: 18px; font-size: 15px; }
.login-mark { width: 44px; height: 44px; background: #f4efe2; color: var(--accent); display: grid; place-content: center; border-radius: 10px; font-family: var(--serif); font-size: 23px; }
.login-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; color: #c0d4c7; border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.login-panel { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin-bottom: 6px; }
.login-form .field { margin-top: 15px; }
.login-form .button { margin-top: 20px; }
.login-foot { color: var(--muted); font-size: 12px; margin-top: 20px; line-height: 1.7; }

.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 9px; max-width: min(400px, calc(100vw - 30px)); }
.toast { background: var(--ink); color: #f8f6ee; padding: 11px 15px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 13px; animation: toast-in .2s ease; }
.toast.error { background: #7a342e; }
.toast.success { background: #2d5944; }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.spinner { width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { padding: 50px 20px; text-align: center; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #eeeae0 25%, #f7f4ec 37%, #eeeae0 63%); background-size: 400% 100%; animation: skeleton 1.2s ease infinite; border-radius: 7px; min-height: 18px; }
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.muted-line { border-top: 1px solid var(--line); margin: 14px 0; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-main, .grid-main.flip, .split-panel { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .topbar-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; padding-top: 3px; }
  .user-area { margin-left: auto; }
  .user-chip { display: none; }
  .page { padding: 22px 16px 55px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .grid-2, .grid-3, .grid-4, .lesson-meta { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-card { grid-template-columns: 45px minmax(0, 1fr); padding: 15px; }
  .task-actions { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .detail-header { flex-direction: column; }
  .compare-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 330px; padding: 32px 24px; }
  .login-art h1 { font-size: 34px; }
  .login-art p { font-size: 14px; }
  .login-panel { padding: 30px 20px; }
  .result-hero { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .input-row, .input-row.three, .input-row.four { grid-template-columns: 1fr; }
  .matrix th:first-child, .matrix td:first-child { position: static; }
  .matrix thead th { position: static; }
}
@media (max-width: 520px) {
  .hero { padding: 20px; }
  .card-pad, .card-body { padding: 16px; }
  .card-header { padding: 15px 16px; }
  .final-number { font-size: 44px; }
  .toast-root { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}
@media print {
  .topbar, .footer, .no-print, .head-actions { display: none !important; }
  .page { width: 100%; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}

@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }

.learn-summary { display:block; }

/* ===== 2026-10 课程 v3：每日流程、课程总览、提示词与案例 ===== */
.flow-rail { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:22px 0 0; border:1px solid var(--line); background:var(--surface); border-radius:6px; overflow:hidden; }
.flow-step { display:flex; align-items:flex-start; gap:10px; padding:13px 15px; border-right:1px solid var(--line); min-width:0; }
.flow-step:last-child { border-right:0; }
.flow-step .flow-index { flex:0 0 auto; width:21px; height:21px; border-radius:50%; display:grid; place-content:center; font-size:11px; background:#eef1f4; color:var(--muted); }
.flow-step.current { background:#f3f8f4; }
.flow-step.current .flow-index { background:var(--accent); color:#fff; }
.flow-step.done .flow-index { background:#dceee2; color:var(--accent); }
.flow-step.waiting { opacity:.72; }
.flow-label { font-size:13px; font-weight:600; line-height:1.35; }
.flow-note { font-size:11px; color:var(--muted); margin-top:2px; line-height:1.4; }
.teach-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.teach-block { background:#f8fafc; border:1px solid var(--line); border-radius:4px; padding:14px 16px; font-size:13.5px; line-height:1.8; }
.practice-box { border-left:3px solid var(--warn); background:var(--warn-soft); border-radius:0 4px 4px 0; padding:13px 16px; font-size:13.5px; color:#6f4917; }
.case-box { border:1px solid var(--line); border-top:3px solid var(--accent); background:#fbfcfa; border-radius:4px; padding:16px 18px; margin-top:16px; }
.case-box h3 { font-family:var(--sans); font-size:15px; }
.materials-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:16px; }
.material-link { display:flex; flex-direction:column; border:1px solid var(--line); background:#fff; border-radius:4px; padding:10px 12px; text-decoration:none !important; font-size:12px; line-height:1.5; }
.material-link strong { font-size:13px; }
.material-link span { color:var(--muted); margin-top:3px; }
.checklist.acceptance li { margin-bottom:5px; }
.round-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.round-card { background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:15px; }
.round-card h3 { font-family:var(--sans); font-size:14px; line-height:1.45; }
.curriculum-timeline { display:flex; flex-direction:column; gap:10px; }
.curriculum-day { background:var(--surface); border:1px solid var(--line); border-radius:6px; }
.curriculum-day > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:14px; padding:14px 18px; }
.curriculum-day > summary::-webkit-details-marker { display:none; }
.curriculum-day[open] > summary { border-bottom:1px solid var(--line); background:#fbfcfa; }
.day-index { flex:0 0 auto; font-size:11px; letter-spacing:.09em; color:var(--muted); font-family:var(--mono); }
.day-summary-main { display:flex; flex-direction:column; gap:1px; flex:1 1 auto; min-width:0; }
.day-summary-main strong { font-family:var(--sans); font-size:14.5px; }
.day-body { padding:18px; }
.prompt-list { display:flex; flex-direction:column; gap:14px; }
.prompt-card { border:1px solid var(--line); border-radius:5px; padding:16px 18px; background:#fff; }
.prompt-card h3 { font-family:var(--sans); font-size:15px; }
.prompt-text { margin:12px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; font-family:var(--sans); font-size:13px; line-height:1.8; background:#f8fafc; border:1px solid var(--line); border-radius:4px; padding:14px; color:var(--ink-2); }
.resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.resource-card { border:1px solid var(--line); border-radius:4px; padding:14px 16px; background:#fff; }
.resource-card h3 { font-family:var(--sans); font-size:14px; line-height:1.45; }
.history-context { font-size:12.5px; }
@media(max-width:1100px) { .round-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:820px) {
  .flow-rail { grid-template-columns:1fr; }
  .flow-step { border-right:0; border-bottom:1px solid var(--line); }
  .flow-step:last-child { border-bottom:0; }
  .teach-grid, .materials-list, .round-grid, .resource-grid { grid-template-columns:1fr; }
  .curriculum-day > summary { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  .day-summary-main { flex-basis:calc(100% - 70px); }
}

/* ===== 主持人核验内容：8 步操作、AI 候选案例、本地练习材料 ===== */
.operation-box { border:1px solid var(--line); background:#fff; border-radius:4px; padding:15px 18px; }
.operation-steps { padding-left:1.5rem; font-size:13px; line-height:1.8; }
.operation-steps li { margin-bottom:5px; }
.ai-case { background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:6px; padding:20px 22px; margin-top:18px; }
.ai-case.compact { padding:16px; }
.ai-case-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.ai-case-head h2 { font-size:20px; }
.case-facts { margin-top:14px; background:#f8fafc; border:1px solid var(--line); border-radius:4px; padding:13px 16px; }
.case-prompt-block { min-width:0; }
.case-prompt-block .prompt-text { font-size:12.5px; max-height:260px; overflow:auto; }
.ai-variant-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:16px; }
.ai-variant { border:1px solid var(--line); border-radius:5px; overflow:hidden; background:#fff; }
.ai-image-link { display:block; background:#f5f5f5; border-bottom:1px solid var(--line); }
.ai-image-link img { display:block; width:100%; height:210px; object-fit:contain; }
.ai-variant-body { padding:12px 14px; }
.ai-case .practice-box { margin-top:14px; }
.material-link .tiny { color:var(--muted); }
@media(max-width:1000px) { .ai-variant-grid { grid-template-columns:1fr; } .ai-image-link img { height:auto; max-height:300px; } }

/* ============================================================
   紫金山十日学习 · 暖白 / 深绿 / 金色编辑设计
   2026-10-19
   ============================================================ */
:root {
  --bg: #f6f5ef;
  --surface: #fffdf8;
  --surface-2: #f1f0e8;
  --ink: #20382e;
  --ink-2: #485a4f;
  --muted: #77857b;
  --line: #dedbd0;
  --line-strong: #c5c0b1;
  --accent: #214e3b;
  --accent-2: #32664f;
  --accent-soft: #e7eee8;
  --gold: #c3a56a;
  --gold-ink: #8c6d31;
  --warn: #8a601f;
  --warn-soft: #f7efdf;
  --danger: #8f4439;
  --danger-soft: #f7e9e5;
  --info: #5c6b60;
  --info-soft: #eef1eb;
  --shadow: 0 18px 50px rgba(33, 78, 59, 0.055);
  --radius: 16px;
  --radius-sm: 10px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 9% -10%, rgba(136, 168, 138, 0.13), transparent 33rem),
    radial-gradient(circle at 98% 9%, rgba(195, 165, 106, 0.09), transparent 27rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 3.1vw, 44px); }
h2 { font-size: clamp(22px, 2.1vw, 29px); }
p { line-height: 1.75; }
a { color: var(--accent); }
.topbar { background: rgba(246, 245, 239, .93); border-bottom-color: #e3e0d5; }
.topbar-inner { max-width: 1440px; padding: 13px 30px; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); font-size: 20px; }
.brand-title { font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.brand-sub { color: #8a8d80; letter-spacing: .14em; }
.nav-link { padding: 8px 13px; border-radius: 999px; color: var(--ink-2); }
.nav-link.active { background: #e7eee8; color: var(--accent); }
.nav-link:hover { background: #eeece4; text-decoration: none; }
.page { max-width: 1440px; padding: 38px 30px 80px; }
.button { border-radius: 10px; border-color: var(--line-strong); background: #fffdf8; color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.button:hover { background: #f2f0e7; border-color: #bdb6a5; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fffdf8; }
.button.primary:hover { background: #173d2e; border-color: #173d2e; }
.button.small { border-radius: 8px; }
.badge { border-radius: 8px; font-weight: 600; }
.badge.green { background: #e8efe8; color: #2d5a43; border-color: #cfddd1; }
.badge.gray { background: #f0eee6; color: #5c675f; border-color: #e0ddd1; }
.badge.blue { background: #edf1ea; color: #3f5e4c; border-color: #d3ded3; }
.badge.amber { background: #f7efdf; color: #825a1f; border-color: #ead6b0; }
.badge.red { background: #f7e9e5; color: #8f4439; border-color: #e5c7bf; }
.badge.gold { background: #f8f1df; color: var(--gold-ink); border-color: #e8d8b3; }
.alert { border-radius: 12px; font-size: 14px; }
.alert.info { background: #eef1eb; border-color: #d8ded2; color: #405247; }
.alert.success { background: #e9f0e9; border-color: #cdddcf; color: #2d5944; }
.alert.warn { background: #f8f0e0; border-color: #e8d3ab; color: #6d4b1c; }
.card { border-radius: 16px; border-color: #e0ddd2; background: var(--surface); }
.card-header { border-bottom-color: #e5e1d6; }
.card-body, .card-pad { padding: 24px; }
.hero { border-left: 2px solid var(--gold); background: linear-gradient(120deg, #edf2ea, #fbf8ef 58%, #f6efe0); border-color: #ded8c8; border-radius: 18px; }
.hero h1 { font-family: var(--serif); }
.eyebrow { color: #6e7d71; font-size: 11.5px; letter-spacing: .16em; font-weight: 700; }
.teach-block, .demo-box, .operation-box, .case-box, .prompt-card, .resource-card, .round-card, .curriculum-day, .meta-tile, .metric, .candidate {
  background-color: #fbfaf5;
  border-color: #e3dfd4;
}
.teach-block { border-radius: 12px; }
.demo-box { background: #faf6ea; border-left-color: #c3a56a; }
.practice-box { background: #f7efdf; border-left-color: #b58b45; color: #624718; }
.prompt-text, .case-facts, .ai-image-link { background: #f4f2e9; }
.ai-case { border-top-color: var(--gold); border-radius: 14px; }
.ai-variant { border-radius: 12px; }
.material-link { background: #fbfaf5; border-radius: 10px; }
.lesson-text { color: #324239; }
.checklist li::before { color: #6b896f; }
.tabs { border-bottom-color: #ddd8ca; }
.tab.active { color: var(--accent); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid #b89454;
  outline-offset: 3px;
}
.login-art { background: linear-gradient(142deg, #163c2e 0%, #214e3b 54%, #3f6b51 100%); }
.login-art h1 { color: #fbf7eb; font-family: var(--serif); }
.login-art p, .login-meta { color: #d8e2d5; }
.login-mark { background: #f6f0df; color: var(--accent); border-radius: 50%; }
.login-panel { background: #f6f5ef; }
.login-form h2 { font-size: 30px; }
.login-form .button[type="submit"] { background: var(--accent); color: #fffdf8; border-color: var(--accent); }
.gallery-site, .gallery-page { background: var(--bg); }
.filter-pill { background: #fbfaf5; border-color: #ddd8ca; border-radius: 999px; }
.filter-pill.active { background: #e7eee8; border-color: #c4d4c6; color: var(--accent); }

/* ---------- 山路总览 ---------- */
.trail-hero {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(560px, 1.18fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  min-height: 660px;
  padding: 22px 0 24px;
}
.trail-hero-copy { max-width: 570px; }
.trail-kicker {
  display: flex; align-items: center; gap: 14px;
  color: #758478; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 24px;
}
.trail-kicker span + span::before { content: "·"; margin-right: 14px; color: #b4aa92; }
.trail-hero h1 {
  font-size: clamp(50px, 5.4vw, 78px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0;
  color: #183b2c;
}
.trail-hero h1 em { font-style: normal; color: #315f4a; position: relative; z-index: 0; }
.trail-hero h1 em::after {
  content: ""; position: absolute; left: 2px; right: 8px; bottom: 2px; height: 8px;
  background: rgba(195, 165, 106, .24); z-index: -1; border-radius: 8px;
}
.trail-lede { color: #4c5d52; max-width: 520px; font-size: 16.5px; line-height: 1.9; margin-top: 28px; }
.trail-progress-line { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid #ddd8ca; }
.trail-progress-number { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
.trail-progress-number span { font-family: var(--sans); font-size: 12px; color: #76847a; letter-spacing: .08em; }
.trail-progress-note { font-size: 13px; color: #68766c; }
.trail-cta { margin-top: 28px; padding: 13px 20px 13px 23px; font-size: 15px; border-radius: 10px; }
.trail-cta span { margin-left: 12px; font-size: 18px; line-height: 1; }
.trail-no-cta { display: block; margin-top: 28px; font-size: 14px; color: var(--muted); }
.trail-map-caption { margin-top: 20px; font-size: 11.5px; color: #819086; letter-spacing: .08em; }

.trail-map-panel { position: relative; min-width: 0; }
.trail-map {
  position: relative;
  width: 100%;
  height: clamp(540px, 47vw, 660px);
  isolation: isolate;
}
.trail-map::before {
  content: ""; position: absolute; inset: 4% 1% 6%; z-index: -1;
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(ellipse at 56% 48%, rgba(136,168,138,.18), transparent 60%);
  filter: blur(8px);
}
.trail-ridge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail-ridge-mobile { display: none; }
.trail-pine { color: #3e674d; }
.trail-pine.pine-mid { color: #628468; opacity: .9; }
.trail-pine.pine-soft { color: #8aa28a; opacity: .72; }
.trail-pine.pine-dark { color: #2d583f; }
.trail-station {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 0;
  color: var(--ink); cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.trail-station-pin {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fbf9f1;
  border: 1.5px solid #6f8d74;
  color: #315f4a;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(246,245,239,.85);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.trail-station:hover .trail-station-pin { transform: scale(1.07); background: #fffdf8; }
.trail-station.is-complete .trail-station-pin { background: var(--accent); border-color: var(--accent); color: #fffdf8; }
.trail-station.is-current .trail-station-pin { box-shadow: 0 0 0 4px #f6f5ef, 0 0 0 6px #c3a56a, 0 0 0 11px rgba(195,165,106,.16); }
.trail-station.is-locked .trail-station-pin { background: #f1efe7; border-style: dashed; border-color: #9ca999; color: #78867b; }
.trail-station.is-unpublished .trail-station-pin { background: #f3f1e9; border-color: #c7c4b8; color: #8b9188; }
.trail-station.is-gated:hover .trail-station-pin { transform: scale(1.03); }
.trail-station-check {
  position: absolute; right: -4px; top: -4px;
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
  background: #c3a56a; color: #fffdf8; border: 2px solid #f6f5ef;
  font-family: var(--sans); font-size: 9px; font-style: normal; font-weight: 800;
}
.trail-station-copy {
  position: absolute; left: 54px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-start;
  background: rgba(246,245,239,.92);
  border: 1px solid rgba(222,219,208,.75);
  border-radius: 8px;
  padding: 3px 8px;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 12px rgba(32,56,46,.04);
}
.trail-station-copy strong { font-family: var(--serif); font-size: 12.5px; font-weight: 650; color: #2b4135; }
.trail-station-copy small { font-size: 9.5px; color: #78867c; letter-spacing: .03em; }
.trail-station.label-left .trail-station-copy { left: auto; right: 54px; text-align: right; align-items: flex-end; }
.trail-station.is-locked .trail-station-copy small,
.trail-station.is-unpublished .trail-station-copy small { color: #8a7f68; }
.trail-map-note {
  position: relative; z-index: 5; width: min(450px, 100%);
  margin: 2px auto 0; padding: 7px 12px; border: 1px solid #ded8c9; border-radius: 999px;
  background: rgba(250,248,240,.92); backdrop-filter: blur(5px);
  color: #6a786e; font-size: 11px; line-height: 1.45; text-align: center;
}
.trail-map-note.is-reason { color: #6f5727; border-color: #d9c69c; background: #fbf5e7; }
.trail-map-legend { display: flex; flex-wrap: wrap; gap: 8px 17px; padding: 6px 0 0; color: #7d897f; font-size: 10.5px; }
.trail-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trail-map-legend .dot { width: 7px; height: 7px; border-radius: 50%; background: #f6f5ef; border: 1.5px solid #6f8d74; }
.trail-map-legend .dot.done { background: var(--accent); border-color: var(--accent); }
.trail-map-legend .dot.current { border-color: #c3a56a; box-shadow: 0 0 0 2px #f6f5ef, 0 0 0 3.5px #c3a56a; }
.trail-map-legend .dot.locked { border-style: dashed; border-color: #9ca999; }
.trail-map-legend .dot.unpublished { border-color: #c7c4b8; }

.trail-footline {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 28px; align-items: start;
  border-top: 1px solid #dedacd; padding: 26px 2px 0;
}
.trail-footline > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.trail-footline > div > span { grid-row: span 2; font-family: var(--serif); color: #b09258; font-size: 13px; }
.trail-footline strong { font-family: var(--serif); font-size: 15px; font-weight: 650; }
.trail-footline p { font-size: 12px; color: #78867c; margin-top: 2px; }
.trail-footline-link { align-self: center; justify-self: end; font-size: 12px; letter-spacing: .05em; color: #5b6d5f; }

/* ---------- 日页 ---------- */
.trail-day-page { max-width: 1370px; margin: 0 auto; }
.trail-day-topline { display: flex; align-items: center; gap: 20px; min-height: 42px; padding-bottom: 18px; border-bottom: 1px solid #dfdbcf; }
.trail-back-link { color: #67766c; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.trail-back-link:hover { color: var(--accent); }
.trail-day-crumb { margin-left: auto; color: #7d897f; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.trail-day-crumb span { color: #b6aa93; margin: 0 6px; }
.trail-mobile-picker { display: none; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--muted); }
.trail-mobile-picker select { width: auto; min-width: 170px; padding: 7px 28px 7px 9px; border-radius: 8px; background: #fffdf8; font-size: 12px; }
.trail-teacher-badge { margin-top: 16px; display: inline-flex; border: 1px solid #e4d3ae; background: #fbf5e7; color: #745522; border-radius: 8px; padding: 6px 10px; font-size: 11.5px; }
.trail-day-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(28px, 4vw, 58px); padding-top: 32px; }
.trail-rail { align-self: start; position: sticky; top: 92px; }
.trail-rail-head { display: flex; flex-direction: column; gap: 3px; padding: 0 0 13px; border-bottom: 1px solid #ddd8ca; }
.trail-rail-head span { font-family: var(--serif); font-size: 17px; }
.trail-rail-head small { font-size: 10.5px; color: #859189; letter-spacing: .06em; }
.trail-rail-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 1px; }
.trail-rail-item { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 5px 8px; border-radius: 9px; color: #53645a; }
.trail-rail-item:hover { background: #eeede5; text-decoration: none; }
.trail-rail-item.is-current { background: #e8eee8; color: var(--accent); }
.trail-rail-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #b5c2b4; display: grid; place-items: center; font-family: var(--serif); font-size: 10.5px; color: #6f7e73; flex: 0 0 auto; }
.trail-rail-item.is-completed .trail-rail-dot { background: var(--accent); border-color: var(--accent); color: #fffdf8; }
.trail-rail-item.is-current .trail-rail-dot { border-color: #c3a56a; box-shadow: 0 0 0 3px rgba(195,165,106,.16); }
.trail-rail-item.is-locked, .trail-rail-item.is-unpublished { color: #8b938a; }
.trail-rail-item.is-locked .trail-rail-dot, .trail-rail-item.is-unpublished .trail-rail-dot { border-style: dashed; }
.trail-rail-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.trail-rail-copy strong { font-family: var(--serif); font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trail-rail-copy small { font-size: 9.5px; color: #879188; }
.trail-rail-note { display: inline-block; margin-top: 15px; padding: 0 8px; font-size: 11px; color: #718076; }
.trail-workspace { min-width: 0; }
.trail-day-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.trail-day-heading h1 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.12; margin-top: 7px; letter-spacing: -.025em; color: #193c2c; }
.trail-day-outcome { max-width: 730px; margin-top: 14px; color: #59695e; font-size: 15px; line-height: 1.85; }
.trail-day-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; padding-bottom: 4px; color: #7b887e; font-size: 10.5px; text-align: right; }
.trail-day-facts span { display: inline-flex; align-items: baseline; gap: 4px; }
.trail-day-facts strong { font-family: var(--serif); font-size: 18px; font-weight: 500; color: #3d5747; }
.trail-day-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid #e0dcd0; }
.trail-assignment-link { font-size: 12px; color: #5d7063; }
.trail-prep-link { font-size: 11px; color: #8a826e; }
.trail-tabs { display: flex; gap: 24px; border-bottom: 1px solid #dedacd; margin-top: 22px; }
.trail-tab { appearance: none; border: 0; border-bottom: 2px solid transparent; background: none; color: #7d897f; font-size: 14px; font-weight: 600; padding: 11px 1px 13px; margin-bottom: -1px; letter-spacing: .03em; }
.trail-tab:hover { color: var(--accent); }
.trail-tab.active { border-bottom-color: #b89858; color: var(--accent); }
.trail-step-panel { padding-top: 30px; min-height: 420px; }
.trail-step-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 24px; align-items: end; margin-bottom: 20px; }
.trail-step-heading h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.trail-step-aside { font-size: 12px; line-height: 1.7; color: #7b887e; border-left: 1px solid #dcd6c6; padding-left: 14px; }
.trail-demo-controls { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #ded9cc; border-radius: 10px; background: #f2f0e7; margin-bottom: 12px; }
.trail-state-button { border: 0; background: transparent; border-radius: 7px; color: #67766c; padding: 6px 13px; font-size: 12px; }
.trail-state-button.active { background: #fffdf8; color: var(--accent); box-shadow: 0 2px 8px rgba(33,78,59,.07); font-weight: 650; }
.trail-figure { margin: 0; border: 1px solid #ddd8ca; border-radius: 16px; background: #f1f0e7; overflow: hidden; }
.trail-illustration { display: block; width: 100%; height: auto; aspect-ratio: 680 / 390; }
.trail-figure figcaption { display: flex; gap: 10px; align-items: baseline; padding: 11px 16px 13px; border-top: 1px solid #ddd8ca; background: #fbfaf5; font-size: 12.5px; line-height: 1.65; color: #5b6a60; }
.trail-figure figcaption strong { color: #7e5f2b; font-weight: 650; white-space: nowrap; }
.trail-layout-picker { display: grid; grid-template-columns: 78px repeat(3, minmax(0,1fr)); gap: 7px; align-items: stretch; margin-top: 12px; }
.trail-layout-picker > span { align-self: center; color: #7d897f; font-size: 11px; }
.trail-layout-button { text-align: left; border: 1px solid #ded9cc; border-radius: 10px; background: #fbfaf5; padding: 8px 10px; color: #5b6a60; }
.trail-layout-button strong { display: block; font-size: 11px; }
.trail-layout-button small { display: block; margin-top: 2px; font-size: 10px; color: #869088; line-height: 1.45; }
.trail-layout-button.active { border-color: #c3a56a; background: #fbf5e7; box-shadow: 0 0 0 2px rgba(195,165,106,.12); }
.trail-layout-button.active strong { color: #7c5b26; }
.trail-demo-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr); gap: 26px; margin-top: 25px; }
.trail-demo-notes { display: grid; gap: 18px; }
.trail-demo-notes h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 5px; }
.trail-demo-notes p { color: #59695e; font-size: 13.5px; }
.trail-key-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ddd8ca; }
.trail-key-steps li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #e2ded2; }
.trail-key-steps li > span { color: #ad8b4e; font-family: var(--serif); font-size: 12px; }
.trail-key-steps p { font-size: 12.5px; color: #5d6c62; line-height: 1.65; }
.trail-demo-actions, .trail-practice-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.trail-note { color: #8a938b; font-size: 11px; }
.trail-slides, .trail-advanced { margin-top: 28px; border-top: 1px solid #ddd8ca; }
.trail-slides summary, .trail-advanced summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; padding: 16px 1px 13px; color: #526359; font-size: 13px; font-weight: 600; }
.trail-slides summary::-webkit-details-marker, .trail-advanced summary::-webkit-details-marker { display: none; }
.trail-slides summary small, .trail-advanced summary span { font-weight: 400; color: #8a938b; font-size: 11px; }
.trail-slide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding-top: 10px; }
.trail-slide-grid figure { margin: 0; border: 1px solid #ded9cc; border-radius: 12px; overflow: hidden; background: #f6f3e9; }
.trail-slide-grid a { display: block; }
.trail-slide-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .25s ease; }
.trail-slide-grid img:hover { transform: scale(1.015); }
.trail-slide-grid figcaption { padding: 8px 10px; font-size: 10.5px; color: #7b887e; border-top: 1px solid #ded9cc; }
.trail-file-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 13px 0 2px; font-size: 11px; }
.trail-file-links span { color: #8a938b; }
.trail-advanced-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 28px; padding: 8px 0 4px; }
.trail-advanced-body h3 { font-size: 16px; }
.trail-advanced-body p { font-size: 13px; color: #5b6a60; }
.trail-ai-slot { grid-column: 1 / -1; padding: 15px; border: 1px dashed #d8c8a6; background: #fbf7eb; border-radius: 12px; }
.trail-ai-slot p { font-size: 11px; color: #8a7a5d; margin-top: 7px; }
.trail-ai-slot .ai-case { margin-top: 16px; background: #fffdf8; }

.trail-practice-lead { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #e1dccf; border-bottom: 1px solid #e1dccf; padding: 14px 0; color: #59695e; font-size: 14px; }
.trail-practice-lead span { font-size: 10.5px; color: #8a938b; white-space: nowrap; }
.trail-practice-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 28px; margin-top: 22px; }
.trail-practice-steps { list-style: none; padding: 0; margin: 0; }
.trail-practice-steps li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid #e2ded2; }
.trail-practice-steps li > span { color: #b08d4d; font-family: var(--serif); font-size: 12px; }
.trail-practice-steps p { font-size: 13px; color: #4f6155; }
.trail-practice-note { margin-top: 18px; padding: 14px 16px; border-left: 2px solid #c3a56a; background: #faf6ea; border-radius: 0 10px 10px 0; }
.trail-practice-note strong { font-family: var(--serif); font-size: 14px; }
.trail-practice-note p { font-size: 12px; color: #726347; margin-top: 3px; }
.trail-checklist-box { background: #fbfaf5; border: 1px solid #ded9cc; border-radius: 14px; padding: 19px; align-self: start; }
.trail-checklist-box h3 { font-size: 18px; margin-bottom: 12px; }
.trail-check-list { display: flex; flex-direction: column; gap: 11px; }
.trail-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 12.5px; line-height: 1.6; color: #53645a; }
.trail-check input { appearance: none; width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; border: 1.5px solid #b4bdad; border-radius: 4px; background: #fffdf8; display: grid; place-items: center; }
.trail-check input:checked { background: var(--accent); border-color: var(--accent); }
.trail-check input:checked::after { content: "✓"; color: #fffdf8; font-size: 11px; line-height: 1; }
.trail-check-note { margin-top: 14px; font-size: 10.5px; color: #8a938b; line-height: 1.6; }
.trail-practice-confirm { margin-top: 13px; padding: 10px 12px; border: 1px solid #d9cfb9; border-radius: 9px; background: #fffdf7; font-size: 12px; }

.trail-inline-status { padding: 11px 14px; border-radius: 10px; margin-bottom: 15px; font-size: 12px; line-height: 1.6; }
.trail-inline-status.is-error { background: #f7e9e5; border: 1px solid #e5c7bf; color: #8f4439; }
.trail-inline-status.is-ok { background: #e9f0e9; border: 1px solid #cdddcf; color: #2d5944; }
.trail-quiz-form { margin-top: 6px; }
.trail-question { border: 1px solid #ded9cc; border-radius: 14px; padding: 17px 18px 15px; margin: 0 0 12px; background: #fffdf8; }
.trail-question legend { display: flex; gap: 10px; width: 100%; font-family: var(--serif); font-size: 16.5px; line-height: 1.55; color: #263c30; padding: 0 0 12px; }
.trail-question legend span { color: #ae8b4c; font-family: var(--serif); font-size: 12px; padding-top: 4px; }
.trail-options { display: grid; gap: 7px; }
.trail-option { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid #e4e0d4; border-radius: 9px; background: #fbfaf5; color: #56655b; cursor: pointer; font-size: 12.5px; line-height: 1.6; transition: border-color .15s, background .15s; }
.trail-option:hover { border-color: #c9c3b5; background: #f6f4eb; }
.trail-option:has(input:focus-visible) { outline: 2px solid #b89454; outline-offset: 2px; }
.trail-option.is-selected { border-color: #8aa88d; background: #edf2ec; color: #284738; }
.trail-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trail-option-letter { width: 21px; height: 21px; border-radius: 50%; border: 1px solid #c3c8bc; display: grid; place-items: center; flex: 0 0 auto; font-size: 10.5px; }
.trail-option.is-selected .trail-option-letter { background: var(--accent); border-color: var(--accent); color: #fffdf8; }
.trail-quiz-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 5px; }
.trail-quiz-hint { font-size: 11px; color: #7d897f; }
.trail-full-record { display: flex; gap: 12px; border: 1px solid #cbdccd; background: #eaf1e9; border-radius: 12px; padding: 14px 16px; margin-bottom: 15px; }
.trail-full-record > span { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fffdf8; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto; }
.trail-full-record strong { font-family: var(--serif); font-size: 15px; }
.trail-full-record p { font-size: 11.5px; color: #5e7263; }
.trail-quiz-result { border: 1px solid #dcd7c9; border-radius: 14px; padding: 16px; margin-bottom: 18px; background: #fbfaf5; }
.trail-quiz-result.is-full { border-color: #c9dacb; background: #f4f8f1; }
.trail-quiz-score { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e0dccf; }
.trail-quiz-score strong { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.trail-quiz-score span { font-size: 11px; color: #718076; }
.trail-result-list { display: grid; gap: 1px; margin-top: 4px; }
.trail-result { padding: 12px 0; border-bottom: 1px solid #e4e0d4; }
.trail-result:last-child { border-bottom: 0; }
.trail-result-head { display: flex; align-items: center; gap: 9px; color: #617065; font-size: 10.5px; }
.trail-result-head span { font-family: var(--serif); font-size: 11px; color: #b08d4d; }
.trail-result.is-wrong .trail-result-head strong { color: #8f4439; }
.trail-result.is-correct .trail-result-head strong { color: #2f6048; }
.trail-result-prompt { font-family: var(--serif); font-size: 14px; margin: 4px 0; color: #2a4033; }
.trail-result-answer { font-size: 11.5px; color: #6b796f; }
.trail-result-answer.is-correct-answer { color: #2f6048; }
.trail-result-explain { margin-top: 5px; font-size: 11.5px; color: #65746a; }
.trail-completion-gate { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border: 1px solid #ddd8ca; border-radius: 14px; padding: 20px; margin-top: 20px; background: #fbfaf5; }
.trail-completion-gate.is-ready { border-color: #c8d9c9; background: #f4f8f1; }
.trail-gate-copy h3 { font-size: 20px; margin: 3px 0 10px; }
.trail-gate-hint, .trail-gate-server { font-size: 10.5px; color: #7d897f; line-height: 1.55; }
.trail-gate-action { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.trail-gate-action .button { min-width: 210px; }
.trail-completed { border-top: 1px solid #ddd8ca; padding-top: 22px; position: relative; overflow: hidden; }
.trail-summit-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fffdf8; font-size: 22px; margin-bottom: 17px; box-shadow: 0 0 0 8px #e8eee8, 0 0 0 9px #d3dfd4; }
.trail-completed h2 { font-size: clamp(32px, 4vw, 46px); color: #183b2c; }
.trail-completed-lede { max-width: 660px; margin-top: 10px; color: #5b6a60; }
.trail-completed-facts { display: flex; flex-wrap: wrap; gap: 7px 18px; align-items: baseline; border-top: 1px solid #e0dcd0; border-bottom: 1px solid #e0dcd0; margin-top: 22px; padding: 12px 0; font-size: 11px; }
.trail-completed-facts span { color: #8a938b; }
.trail-completed-facts strong { font-weight: 500; color: #506156; margin-right: 8px; }
.trail-completed-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.trail-formal-note { margin-top: 17px; font-size: 11px; color: #7c887f; max-width: 650px; }
.trail-review-actions { display: flex; gap: 4px; margin-top: 18px; }
.trail-teacher-answer-list { display: grid; gap: 11px; }
.trail-teacher-answer { border: 1px solid #ded9cc; border-radius: 12px; padding: 16px 17px; background: #fffdf8; }
.trail-teacher-answer h3 { font-size: 15px; margin-top: 5px; }
.trail-teacher-correct { margin-top: 7px; color: #2f6048; font-size: 12.5px; }
.trail-teacher-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.trail-gated { max-width: 760px; margin: 36px auto; }
.trail-gated-body { border-top: 1px solid #ddd8ca; margin-top: 18px; padding-top: 36px; }
.trail-gated h1 { font-size: clamp(36px, 4.5vw, 58px); color: #1a3c2d; margin-top: 6px; }
.trail-gated-reason { margin-top: 16px; color: #735a2a; font-size: 16px; background: #fbf5e7; border: 1px solid #e4d3ae; padding: 13px 16px; border-radius: 12px; }
.trail-gated-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: #7b887e; font-size: 11.5px; }
.trail-gated-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.trail-gated-note { margin-top: 22px; font-size: 12px; color: #7c887f; }

@media (max-width: 1120px) {
  .trail-hero { grid-template-columns: minmax(300px, .9fr) minmax(430px, 1.1fr); gap: 28px; min-height: 590px; }
  .trail-hero h1 { font-size: clamp(46px, 6vw, 64px); }
  .trail-map { height: 540px; }
  .trail-day-layout { grid-template-columns: 184px minmax(0, 1fr); gap: 28px; }
  .trail-rail-copy strong { font-size: 12px; }
  .trail-day-head { grid-template-columns: 1fr; gap: 12px; }
  .trail-day-facts { justify-content: flex-start; text-align: left; }
}
@media (max-width: 900px) {
  .trail-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .trail-hero-copy { max-width: 680px; }
  .trail-hero h1 { font-size: clamp(48px, 9vw, 68px); }
  .trail-map-panel { margin-top: 10px; }
  .trail-map { height: 520px; }
  .trail-footline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trail-footline-link { justify-self: start; }
  .trail-day-layout { grid-template-columns: 1fr; padding-top: 18px; }
  .trail-rail { display: none; }
  .trail-mobile-picker { display: flex; }
  .trail-day-crumb { display: none; }
  .trail-day-topline { gap: 12px; }
  .trail-day-heading h1 { font-size: clamp(32px, 6vw, 44px); }
  .trail-step-heading { grid-template-columns: 1fr; gap: 9px; }
  .trail-step-aside { border-left: 0; padding-left: 0; }
  .trail-demo-grid, .trail-practice-grid { grid-template-columns: 1fr; gap: 20px; }
  .trail-advanced-body { grid-template-columns: 1fr; }
  .trail-layout-picker { grid-template-columns: 1fr; }
  .trail-layout-picker > span { margin-bottom: 2px; }
  .trail-completion-gate { flex-direction: column; align-items: stretch; }
  .trail-gate-action { align-items: stretch; }
  .trail-gate-action .button { width: 100%; }
  .trail-practice-lead { flex-direction: column; gap: 5px; }
}
@media (max-width: 760px) {
  .page { padding: 22px 18px 58px; }
  .topbar-inner { padding: 10px 18px; gap: 11px; }
  .brand-title { font-size: 15px; }
  .user-chip { display: none; }
  .trail-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .trail-lede { font-size: 15px; margin-top: 20px; }
  .trail-kicker { margin-bottom: 17px; }
  .trail-map { height: 440px; }
  .trail-ridge-desktop { display: none; }
  .trail-ridge-mobile { display: block; }
  .trail-station { left: var(--mx); top: var(--my); }
  .trail-station-copy { display: none; }
  .trail-station-pin { width: 42px; height: 42px; font-size: 14px; }
  .trail-station.label-left .trail-station-copy { display: none; }
  .trail-map-note { width: min(330px, 100%); font-size: 10px; }
  .trail-map-legend { gap: 6px 12px; font-size: 10px; }
  .trail-footline { grid-template-columns: 1fr; gap: 15px; padding-top: 21px; }
  .trail-footline > div { grid-template-columns: 26px 1fr; }
  .trail-day-topline { flex-wrap: wrap; padding-bottom: 12px; }
  .trail-mobile-picker { flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
  .trail-mobile-picker select { flex: 1; min-width: 0; }
  .trail-day-actions { gap: 9px 16px; margin-top: 16px; padding-bottom: 15px; }
  .trail-tabs { gap: 18px; position: sticky; top: 62px; z-index: 12; background: rgba(246,245,239,.95); backdrop-filter: blur(8px); }
  .trail-step-panel { padding-top: 20px; }
  .trail-figure figcaption { display: block; padding: 9px 12px 11px; font-size: 11.5px; }
  .trail-figure figcaption strong { display: block; margin-bottom: 2px; }
  .trail-slide-grid { grid-template-columns: 1fr; }
  .trail-question { padding: 14px; }
  .trail-question legend { font-size: 15px; }
  .trail-quiz-footer { align-items: flex-start; flex-direction: column; }
  .trail-quiz-footer .button { width: 100%; }
  .trail-completed-actions .button { width: 100%; }
  .trail-teacher-answer { padding: 13px; }
}
@media (max-width: 430px) {
  .page { padding: 18px 14px 50px; }
  .trail-hero h1 { font-size: 44px; }
  .trail-map { height: 410px; }
  .trail-progress-line { gap: 8px 12px; }
  .trail-progress-number { font-size: 27px; }
  .trail-cta { width: 100%; justify-content: space-between; }
  .trail-day-heading h1 { font-size: 31px; }
  .trail-day-outcome { font-size: 13.5px; }
  .trail-day-facts { gap: 4px 11px; }
  .trail-demo-controls { width: 100%; }
  .trail-state-button { flex: 1; padding: 7px 6px; }
  .trail-demo-actions .button, .trail-practice-actions .button { width: 100%; }
  .trail-completion-gate { padding: 15px; }
  .trail-quiz-score strong { font-size: 28px; }
  .trail-file-links { gap: 7px 12px; }
  .trail-gated { margin: 20px auto; }
}

/* 旧课程总览的锁定日只显示概要，不显示学习单正文 */
.curriculum-day.is-locked > summary { background: #f7f5ee; }
.curriculum-day.is-locked .day-summary-main strong { color: #53645a; }
.curriculum-locked-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fbfaf5; }
.curriculum-locked-body p { color: #75663f; font-size: 13px; max-width: 720px; }

.login-brand { display: flex; align-items: flex-start; gap: 18px; }
.login-brand h1 { margin: 0; }
.login-brand .login-mark { flex: 0 0 auto; margin-top: 8px; }
.login-art { gap: 30px; }
.login-meta { margin-top: auto; }

/* 地图标签保持一行，状态交给图例、勾选与锁态说明 */
.trail-station-copy small { display: none; }
.trail-station.is-current .trail-station-copy { background: #fffdf8; border-color: #d8c69f; }

/* 检验与完成卡使用块级容器；.trail-check 仅保留给勾选项 */
.trail-check-step { display: block; min-width: 0; }
.trail-completed > * { min-width: 0; }
.trail-completed-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; align-items: baseline; }
.trail-completed-facts strong { margin-right: 0; overflow-wrap: anywhere; }

/* ---------- 桌面首屏压缩与检验反馈（2026-10-19 polish） ---------- */
.trail-day-page .trail-day-topline { min-height: 34px; padding-bottom: 11px; }
.trail-day-page .trail-day-layout { padding-top: 19px; }
.trail-day-heading h1 { font-size: clamp(34px, 3.35vw, 46px); margin-top: 4px; }
.trail-day-outcome { margin-top: 9px; font-size: 14px; line-height: 1.72; }
.trail-day-actions { margin-top: 12px; padding-bottom: 12px; gap: 7px; }
.trail-assignment-label { font-size: 10.5px; letter-spacing: .12em; color: #849087; text-transform: uppercase; }
.trail-link-sep { color: #b2a88f; font-size: 11px; }
.trail-tabs { margin-top: 11px; }
.trail-tab { padding-top: 8px; padding-bottom: 9px; }
.trail-step-panel { padding-top: 15px; }
.trail-demo-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.trail-demo-topbar .trail-demo-controls { margin-bottom: 0; }
.trail-demo-hint { color: #8c968e; font-size: 10.5px; white-space: nowrap; }
.trail-demo-grid { grid-template-columns: minmax(0, 1.04fr) minmax(250px, .96fr); gap: 24px; margin-top: 17px; align-items: start; }
.trail-why { border-top: 1px solid #ddd8ca; }
.trail-why summary, .trail-explanations summary { cursor: pointer; list-style: none; padding: 11px 0; color: #5a6a5f; font-size: 12.5px; font-weight: 600; }
.trail-why summary::-webkit-details-marker, .trail-explanations summary::-webkit-details-marker { display: none; }
.trail-why summary::after, .trail-explanations summary::after { content: " +"; color: #a08a5b; font-weight: 400; }
.trail-why[open] summary::after, .trail-explanations[open] summary::after { content: " −"; }
.trail-why-body { display: grid; gap: 13px; padding: 2px 0 8px; }
.trail-why-body h3 { font-size: 14px; margin-bottom: 3px; }
.trail-why-body p { font-size: 12.5px; color: #5b6a60; line-height: 1.7; }
.trail-score-strip { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid #e0dbce; border-bottom: 1px solid #e0dbce; padding: 9px 1px; margin-bottom: 13px; }
.trail-score-strip strong { font-family: var(--serif); font-size: 24px; color: #8f4439; line-height: 1; }
.trail-score-strip span { font-size: 11.5px; color: #7a877e; }
.trail-answer-feedback { margin-top: 10px; padding: 9px 11px; border-left: 2px solid #b9c9b8; background: #f7f6ef; border-radius: 0 8px 8px 0; }
.trail-answer-feedback strong { display: block; font-size: 11.5px; color: #425a4a; }
.trail-answer-feedback p { margin-top: 3px; font-size: 11.5px; color: #6a786e; line-height: 1.6; }
.trail-answer-feedback.is-wrong { border-left-color: #bc7b6f; background: #f9f1ee; }
.trail-answer-feedback.is-wrong strong { color: #8f4439; }
.trail-explanations { margin: 12px 0 4px; border-top: 1px solid #ddd8ca; border-bottom: 1px solid #ddd8ca; }
.trail-explanations ol { list-style: none; padding: 0 0 8px; margin: 0; display: grid; gap: 8px; }
.trail-explanations li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; font-size: 12px; color: #5e6d63; }
.trail-explanations li > span { color: #9b8252; font-size: 10.5px; padding-top: 2px; }
.trail-wait-note { margin-top: 12px; font-size: 11.5px; color: #7e6b45; }
.trail-completed-facts { margin-top: 17px; }
.trail-completed .trail-formal-note { margin-top: 13px; }
.trail-completed .trail-review-actions { margin-top: 14px; }
@media (max-width: 1120px) {
  .trail-day-page .trail-day-layout { padding-top: 15px; }
}
@media (max-width: 760px) {
  .trail-demo-topbar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .trail-demo-hint { display: none; }
  .trail-demo-grid { margin-top: 14px; }
  .trail-completed-facts { grid-template-columns: 1fr; gap: 3px; }
  .trail-completed-facts span { margin-top: 5px; }
  .trail-completed-actions { flex-direction: column; align-items: stretch; }
  .trail-completed-actions .button { width: 100%; }
}

/* 让 1440 首屏能完整看到主图 */
.trail-figure { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 1120px) { .trail-figure { max-width: 100%; } }

.trail-layout-picker { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 1120px) { .trail-layout-picker { max-width: 100%; } }

/* 仅在精确 membership 授权时显示的一行提示 */
.trail-open-access { margin-top: 11px; color: var(--gold-ink); font-size: 12px; letter-spacing: .02em; }

/* ============================================================
   mastery-v1：系统课程、操作动画、动手实战
   ============================================================ */
.trail-tabs { overflow-x: auto; scrollbar-width: none; }
.trail-tabs::-webkit-scrollbar { display: none; }
.trail-day-facts { max-width: 430px; }
.trail-day-facts span { white-space: nowrap; }

.mastery-course, .mastery-practice, .trail-animation { max-width: 1120px; }
.mastery-course-head, .trail-animation-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 17px; border-bottom: 1px solid #ddd8ca;
}
.mastery-course-head h2, .trail-animation-head h2 { margin-top: 4px; font-size: clamp(26px, 2.4vw, 34px); }
.mastery-course-head p:not(.eyebrow), .trail-animation-head p:not(.eyebrow) {
  margin-top: 7px; max-width: 760px; color: #5b6a60; font-size: 13.5px;
}
.mastery-edition {
  flex: 0 0 auto; padding: 4px 9px; border: 1px solid #d8c8a6; border-radius: 7px;
  color: #81652f; background: #fbf6e9; font-size: 10.5px; letter-spacing: .06em;
}
.mastery-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; margin-top: 20px; }
.mastery-directory { align-self: start; position: sticky; top: 88px; min-width: 0; }
.mastery-directory-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 9px; border-bottom: 1px solid #ddd8ca; }
.mastery-directory-head span { font-family: var(--serif); font-size: 16px; font-weight: 650; }
.mastery-directory-head small { color: #8d978f; font-size: 10px; }
.mastery-directory ol { list-style: none; padding: 0; margin: 7px 0 0; display: flex; flex-direction: column; gap: 2px; }
.mastery-directory-item {
  width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start;
  border: 0; border-radius: 8px; background: transparent; color: #58685d; text-align: left;
  padding: 8px 7px; line-height: 1.45;
}
.mastery-directory-item > span { padding-top: 2px; color: #a18a5b; font-size: 9.5px; font-family: var(--mono); }
.mastery-directory-item strong { font-family: var(--serif); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.mastery-directory-item:hover { background: #efeee6; }
.mastery-directory-item.active { background: #e8eee8; color: #214e3b; }
.mastery-directory-item.active strong { font-weight: 700; }
.mastery-main { min-width: 0; }
.mastery-unit { border-top: 2px solid var(--accent); border-bottom: 1px solid #ddd8ca; padding: 19px 0 22px; }
.mastery-unit-head h2 { margin-top: 4px; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.25; }
.mastery-goal { margin-top: 8px; max-width: 780px; color: #4f6155; font-size: 14px; line-height: 1.8; }
.mastery-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.mastery-menu-grid > div { border: 1px solid #e0dcd0; border-radius: 9px; background: #fbfaf5; padding: 10px 13px; }
.mastery-menu-grid span { display: block; color: #9a8254; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mastery-menu-grid p { margin-top: 3px; color: #57685d; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.mastery-unit-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 26px; margin-top: 22px; }
.mastery-steps h3, .mastery-exercise h3 { font-family: var(--serif); font-size: 17px; }
.mastery-steps ol { list-style: none; padding: 0; margin: 10px 0 0; }
.mastery-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; border-top: 1px solid #e1ddd1; padding: 10px 0; }
.mastery-steps li > span { color: #ac8a4d; font-family: var(--serif); font-size: 11px; padding-top: 2px; }
.mastery-steps p { color: #506156; font-size: 12.5px; line-height: 1.7; overflow-wrap: anywhere; }
.mastery-outcomes { display: grid; gap: 9px; align-content: start; }
.mastery-outcome { border: 1px solid #dfdbcf; border-radius: 10px; background: #fbfaf5; padding: 11px 13px; }
.mastery-outcome b { display: block; color: #496052; font-size: 10px; letter-spacing: .08em; }
.mastery-outcome p { margin-top: 4px; color: #5d6c62; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.mastery-outcome.is-expected { border-left: 2px solid #7f9f84; }
.mastery-outcome.is-pitfall { border-left: 2px solid #b77d6e; }
.mastery-outcome.is-exercise { border-left: 2px solid #c3a56a; }
.mastery-trouble-box, .mastery-prompts, .mastery-symbols { border-top: 1px solid #ddd8ca; margin-top: 22px; }
.mastery-trouble-box > summary, .mastery-prompts > summary, .mastery-symbols > summary {
  cursor: pointer; list-style: none; padding: 13px 0; font-family: var(--serif); font-size: 16px; font-weight: 650;
}
.mastery-trouble-box > summary::-webkit-details-marker, .mastery-prompts > summary::-webkit-details-marker, .mastery-symbols > summary::-webkit-details-marker { display: none; }
.mastery-trouble-box > summary span, .mastery-prompts > summary span, .mastery-symbols > summary span { font-family: var(--sans); font-size: 10px; color: #8a938b; font-weight: 400; margin-left: 8px; }
.mastery-trouble-list { display: grid; gap: 12px; padding: 2px 0 6px; }
.mastery-trouble { border: 1px solid #e1dccf; border-radius: 10px; background: #fbfaf5; padding: 13px 15px; }
.mastery-trouble h3 { font-size: 15px; margin-bottom: 8px; }
.mastery-trouble-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mastery-trouble-grid > div { border-top: 1px solid #e5e0d4; padding-top: 5px; min-width: 0; }
.mastery-trouble-grid b { display: block; color: #99804f; font-size: 9.5px; letter-spacing: .06em; }
.mastery-trouble-grid p { margin-top: 2px; color: #5b6a60; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.mastery-prompt-list { display: grid; gap: 13px; padding-bottom: 7px; }
.mastery-prompt { border: 1px solid #ded9cc; border-radius: 12px; background: #fbfaf5; padding: 14px 16px; }
.mastery-prompt header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.mastery-prompt h3 { margin-top: 5px; font-size: 15px; }
.mastery-prompt-text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 310px; overflow: auto; border: 1px solid #e2ded2; border-radius: 8px; background: #f4f2e9; padding: 12px; color: #4f6056; font-family: var(--sans); font-size: 11.5px; line-height: 1.65; }
.mastery-prompt-example { margin-top: 8px; border-top: 1px dashed #ded9cc; padding-top: 7px; }
.mastery-prompt-example summary { cursor: pointer; color: #6f7d72; font-size: 10.5px; }
.mastery-prompt-example p { margin-top: 5px; color: #5e6d63; font-size: 11px; line-height: 1.65; }
.mastery-teaching-note { color: #8b6b2e !important; }
.mastery-symbol-note { color: #6f7d72; font-size: 11px; line-height: 1.6; }
.mastery-symbol-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; padding-bottom: 7px; }
.mastery-symbol { min-width: 53px; border: 1px solid #ded9cc; border-radius: 8px; background: #fffdf8; padding: 5px 7px; text-align: center; color: #3f5a49; }
.mastery-symbol:hover { border-color: #b9a575; background: #fbf6e9; }
.mastery-symbol strong { display: block; font-size: 18px; font-family: var(--serif); font-weight: 500; line-height: 1.2; }
.mastery-symbol span { display: block; font-size: 8.5px; color: #8b958d; margin-top: 1px; }
.mastery-source-links { margin-top: 18px; color: #8a938b; font-size: 10px; line-height: 1.7; }
.mastery-source-links a { color: #6d7c70; }
.mastery-empty { border-top: 1px solid #ddd8ca; padding: 24px 0; color: #6e7b71; }

.mastery-practice .mastery-course-head { margin-bottom: 17px; }
.mastery-exercise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mastery-exercise { border: 1px solid #ded9cc; border-top: 2px solid #c3a56a; border-radius: 12px; background: #fbfaf5; padding: 17px 18px; }
.mastery-exercise-head { display: flex; flex-direction: column; gap: 3px; }
.mastery-exercise-head > span { color: #a08655; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.mastery-exercise-instruction { margin-top: 9px; color: #506156; font-size: 12.5px; line-height: 1.75; }
.mastery-acceptance { margin-top: 12px; border-top: 1px solid #e4dfd3; padding-top: 9px; }
.mastery-acceptance b { color: #496052; font-size: 10px; letter-spacing: .08em; }
.mastery-acceptance ul { margin-top: 5px; padding-left: 1.15rem; color: #5d6c62; font-size: 11.5px; line-height: 1.65; }
.mastery-acceptance li { margin-top: 2px; }
.mastery-practice-boundary { margin-top: 17px; border-left: 2px solid #c3a56a; background: #faf6ea; border-radius: 0 9px 9px 0; padding: 11px 14px; }
.mastery-practice-boundary strong { font-family: var(--serif); font-size: 13px; }
.mastery-practice-boundary p { margin-top: 3px; color: #736347; font-size: 11.5px; line-height: 1.65; }

/* 操作动画与通用播放器 */
.trail-animation-head { margin-bottom: 14px; }
.trail-animation-head .trail-note { max-width: 220px; text-align: right; line-height: 1.6; }
.mastery-player-slot { margin: 8px 0 22px; }
.mastery-player-loading, .mastery-player-empty {
  min-height: 110px; display: grid; place-content: center; gap: 8px; text-align: center;
  border: 1px dashed #d8d3c5; border-radius: 12px; background: #fbfaf5; color: #7d897f; font-size: 12px;
}
.mastery-player-loading p, .mastery-player-empty p { max-width: 620px; font-size: 11.5px; line-height: 1.65; }
.mastery-player-empty strong { font-family: var(--serif); font-size: 16px; color: #5d6d62; }
.mastery-player { border: 1px solid #d7d3c7; border-radius: 15px; background: #f2f0e8; padding: 17px; }
.mastery-player-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.mastery-player-head h3 { margin-top: 6px; font-size: 21px; }
.mastery-player-head p { margin-top: 4px; color: #66746a; font-size: 11.5px; line-height: 1.6; max-width: 760px; }
.mastery-sim-badge { display: inline-block; border: 1px solid #d8c8a6; border-radius: 6px; background: #fbf6e9; color: #81652f; padding: 3px 7px; font-size: 9.5px; letter-spacing: .03em; }
.mastery-animation-select { display: flex; flex-direction: column; gap: 4px; color: #7a877e; font-size: 10px; }
.mastery-animation-select select { min-width: 170px; background: #fffdf8; padding: 5px 8px; border-radius: 7px; }
.mastery-window { border: 1px solid #d4d0c3; border-radius: 10px; overflow: hidden; background: #fffdf8; box-shadow: 0 1px 0 rgba(32,56,46,.04); }
.mastery-ribbon { background: #e7e6de; border-bottom: 1px solid #d2cec0; }
.mastery-ribbon-tabs { display: flex; gap: 1px; padding: 0 10px; border-bottom: 1px solid #d7d3c7; }
.mastery-ribbon-tabs span { padding: 6px 11px 5px; color: #79857c; font-size: 9px; }
.mastery-ribbon-tabs span.active { background: #fffdf8; color: #2e5140; border-radius: 5px 5px 0 0; font-weight: 700; }
.mastery-ribbon-path { padding: 5px 12px; color: #6e7b71; font-family: var(--mono); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mastery-stage-wrap { padding: 12px; background: #dddcd5; }
.mastery-stage {
  position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin: 0 auto;
  background: #fff; overflow: hidden; border: 1px solid #d1cdbf; container-type: inline-size;
}
.mastery-object {
  position: absolute; min-width: 1px; min-height: 1px; z-index: 2;
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease, opacity .3s ease;
  box-sizing: border-box;
}
.mastery-object.type-box {
  display: grid; place-items: center; padding: 4px 6px; border: 1.5px solid #7b9a80; border-radius: 7px;
  background: #f4f8f2; color: #294d3a; font-size: 15px; font-size: clamp(9px, 1.5cqw, 15px); line-height: 1.22;
  text-align: center; overflow: hidden; min-width: 0; min-height: 0; overflow-wrap: anywhere;
}
.mastery-object.type-text {
  display: flex; align-items: center; justify-content: center; color: #2c4336;
  font-family: var(--serif); font-size: 15px; font-size: clamp(9px, 1.55cqw, 16px); line-height: 1.25;
  text-align: center; overflow: hidden; padding: 2px 4px; min-width: 0; min-height: 0;
}
.mastery-object-label { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.mastery-object.type-table { overflow: hidden; background: #fff; border: 1px solid #c8c4b6; border-radius: 4px; }
.mastery-object.type-table table { width: 100%; height: 100%; border-collapse: collapse; font-size: clamp(8px, .95vw, 13px); }
.mastery-object.type-table th, .mastery-object.type-table td { border: 1px solid #d2cec0; padding: 3px 5px; text-align: left; vertical-align: middle; }
.mastery-object.type-table th { background: #eef2ea; color: #304e3d; font-weight: 700; }
.mastery-object.type-arrow { z-index: 1; overflow: visible; }
.mastery-object.type-arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mastery-arrow-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fffdf8; padding: 1px 4px; border-radius: 4px; color: #496152; font-size: clamp(8px, .8vw, 11px); white-space: nowrap; }
.mastery-object.type-image { background: #f8f7f1; border: 1px dashed #c8c4b6; display: block; overflow: hidden; min-width: 0; min-height: 0; }
.mastery-object.type-image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.mastery-image-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #748177; font-size: clamp(9px, 1vw, 13px); text-align: center; padding: 8%; }
.mastery-selection {
  position: absolute; z-index: 30; display: none; pointer-events: none; border: 2px dashed #b68c43;
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease;
}
.mastery-selection.visible { display: block; }
.mastery-selection i { position: absolute; width: 7px; height: 7px; border: 1px solid #fffdf8; background: #b68c43; border-radius: 50%; }
.mastery-selection i:nth-child(1) { left: -4px; top: -4px; }
.mastery-selection i:nth-child(2) { right: -4px; top: -4px; }
.mastery-selection i:nth-child(3) { left: -4px; bottom: -4px; }
.mastery-selection i:nth-child(4) { right: -4px; bottom: -4px; }
.mastery-selection span { position: absolute; left: 2px; top: 2px; background: #b68c43; color: #fffdf8; font-size: 9px; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.mastery-frame-info { background: #fbfaf5; border: 1px solid #ddd8ca; border-radius: 10px; padding: 11px 14px; margin-top: 11px; }
.mastery-frame-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mastery-frame-no { color: #9b8252; font-size: 9.5px; white-space: nowrap; }
.mastery-frame-top h4 { font-size: 15px; }
.mastery-frame-info > p { display: flex; gap: 8px; margin-top: 4px; color: #5c6b61; font-size: 11.5px; line-height: 1.55; }
.mastery-frame-info > p b { flex: 0 0 auto; color: #8a7140; font-size: 9.5px; font-weight: 600; }
.mastery-frame-info > p span { min-width: 0; overflow-wrap: anywhere; }
.mastery-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mastery-player-status { margin-left: 3px; color: #859087; font-size: 10px; }
.mastery-progress { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.mastery-progress-dot { width: 28px; height: 22px; border: 1px solid #d4cfc1; border-radius: 5px; background: #fffdf8; color: #87938a; font-size: 8.5px; }
.mastery-progress-dot.active { background: #214e3b; border-color: #214e3b; color: #fffdf8; }
.trail-fallback-visual { border-top: 2px solid #d8d3c5; padding-top: 16px; margin-top: 22px; }
.trail-demo-heading h3 { font-size: 19px; margin-top: 2px; }
.trail-demo-topbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 10px; }
.trail-demo-controls { margin-bottom: 11px; }

@media (max-width: 1050px) {
  .mastery-layout { grid-template-columns: 198px minmax(0, 1fr); gap: 24px; }
  .mastery-unit-body { grid-template-columns: 1fr; }
  .mastery-trouble-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .mastery-layout { grid-template-columns: 1fr; gap: 14px; }
  .mastery-directory { position: static; }
  .mastery-directory ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mastery-menu-grid, .mastery-exercise-grid { grid-template-columns: 1fr; }
  .mastery-course-head, .trail-animation-head, .mastery-player-head { flex-direction: column; gap: 8px; }
  .trail-animation-head .trail-note { text-align: left; }
  .mastery-trouble-grid { grid-template-columns: 1fr; }
  .mastery-player { padding: 11px; }
  .mastery-stage-wrap { padding: 7px; }
  .mastery-ribbon-path { font-size: 8.5px; }
  .mastery-frame-info > p { display: block; }
  .mastery-frame-info > p b { display: block; margin-bottom: 1px; }
  .mastery-progress-dot { width: 26px; }
}
@media (max-width: 520px) {
  .mastery-directory ol { grid-template-columns: 1fr; }
  .trail-tabs { gap: 13px; }
  .trail-tab { font-size: 12.5px; }
  .mastery-symbol { min-width: 47px; }
  .mastery-player-head h3 { font-size: 18px; }
}

/* mastery-v1 review addendum: 真论文案例、合成数据、表格边框与字体样式 */
.mastery-verified-case, .mastery-data-case {
  margin-top: 18px; border: 1px solid #ded8ca; border-radius: 12px; background: #fbfaf5; padding: 17px 18px;
}
.mastery-case-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.mastery-case-head h3 { margin-top: 3px; font-size: 19px; }
.mastery-case-head p { margin-top: 4px; color: #69776d; font-size: 11px; line-height: 1.6; max-width: 790px; }
.mastery-case-meta { display: grid; gap: 5px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #e2ded2; color: #7c887f; font-size: 10.5px; line-height: 1.6; }
.mastery-case-facts { margin-top: 13px; }
.mastery-case-facts h4, .mastery-case-unknown h4, .mastery-case-task h4, .mastery-case-prompt h4, .mastery-case-artifacts h4 { font-family: var(--serif); font-size: 14px; color: #354e40; }
.mastery-case-facts table { width: 100%; margin-top: 6px; border-collapse: collapse; background: #fffdf8; font-size: 10.5px; }
.mastery-case-facts th, .mastery-case-facts td { border: 1px solid #e0dcd0; padding: 6px 8px; vertical-align: top; text-align: left; }
.mastery-case-facts th { background: #eef2ea; color: #385541; }
.mastery-case-unknown, .mastery-case-task, .mastery-case-artifacts { margin-top: 11px; }
.mastery-case-unknown ul, .mastery-case-artifacts ol { margin-top: 4px; padding-left: 1.15rem; color: #59695e; font-size: 11px; line-height: 1.7; }
.mastery-case-task p, .mastery-case-artifacts p { margin-top: 3px; color: #59695e; font-size: 11.5px; line-height: 1.7; }
.mastery-case-prompt { margin-top: 13px; border-top: 1px solid #e2ded2; padding-top: 10px; }
.mastery-case-prompt header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.mastery-case-prompt header p { margin-top: 2px; color: #8b7a5b; font-size: 10px; }
.mastery-case-prompt .mastery-prompt-text { max-height: 250px; }
.mastery-case-disclaimer, .mastery-data-disclaimer { margin-top: 11px; color: #8a6d37; font-size: 10.5px; line-height: 1.65; }
.mastery-record-template { color: #86744f !important; }
.mastery-data-note { margin-top: 9px; color: #5f6e64; font-size: 11.5px; }
.mastery-data-table-wrap { overflow-x: auto; margin-top: 9px; }
.mastery-data-table { width: 100%; border-collapse: collapse; font-size: 11px; background: #fffdf8; }
.mastery-data-table th, .mastery-data-table td { border: 1px solid #e1ddd1; padding: 6px 9px; text-align: left; }
.mastery-data-table th { background: #eef2ea; color: #385541; }
.mastery-data-steps { margin-top: 10px; padding-left: 1.3rem; color: #506156; font-size: 11.5px; line-height: 1.7; }
.mastery-data-steps li { margin-top: 4px; }
.mastery-prompt-copy-note { color: #806c45; font-size: 10.5px; line-height: 1.6; margin-bottom: 8px; }

/* 动画新增的边框与字体语义 */
.mastery-object.font-formula { font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; }
.mastery-object.font-formula .mastery-object-label,
.mastery-object.font-formula table { font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; }
.mastery-object.font-superscript .mastery-object-label { display: inline-block; transform: translateY(-0.35em); font-size: .75em; }
.mastery-object.font-subscript .mastery-object-label { display: inline-block; transform: translateY(0.35em); font-size: .75em; }
.mastery-object.border-none table th,
.mastery-object.border-none table td { border: 0; background: transparent; }
.mastery-object.border-none table { border: 0; }
.mastery-object.border-three_line table { border-top: 2px solid #4a6352; border-bottom: 2px solid #4a6352; }
.mastery-object.border-three_line table th,
.mastery-object.border-three_line table td { border-left: 0; border-right: 0; border-top: 0; background: transparent; }
.mastery-object.border-three_line table th { border-bottom: 1.5px solid #4a6352; }
.mastery-object.border-three_line table td { border-bottom: 0; }
.mastery-object.border-grid table { border: 1px solid #c8c4b6; }

.trail-check-scope { margin: 0 0 12px; max-width: 760px; }

/* 已审核动画素材字段：top_bottom 表格、右对齐、图片裁切位置、空心框 */
.mastery-object.border-top_bottom table { border-top: 2px solid #4a6352; border-bottom: 2px solid #4a6352; }
.mastery-object.border-top_bottom table th,
.mastery-object.border-top_bottom table td { border-left: 0; border-right: 0; border-top: 0; border-bottom: 0; background: transparent; }
.mastery-object.align-right table th,
.mastery-object.align-right table td { text-align: right; }
.mastery-object.type-image.fit-cover img { object-fit: cover; }
.mastery-object.type-image.pos-top img { object-position: top center; }
.mastery-object.type-image.pos-center img { object-position: center center; }
.mastery-object.type-box.is-outline { background: transparent; }

/* 课程首屏正在学习的单元，以及可展开的真论文/合成数据案例 */
.mastery-unit-kicker { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mastery-unit-kicker .eyebrow { margin: 0; }
.mastery-current-badge {
  display: inline-block; border: 1px solid #b8a167; border-radius: 999px;
  background: #fbf5e6; color: #7e632d; padding: 2px 7px; font-size: 9.5px; letter-spacing: .03em;
}
.mastery-case-details {
  margin-top: 14px; border: 1px solid #ded8ca; border-radius: 11px; background: #fbfaf5;
}
.mastery-case-details > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px;
  align-items: baseline; padding: 12px 14px; color: #354e40; font-family: var(--serif);
  font-size: 15px; font-weight: 650;
}
.mastery-case-details > summary::-webkit-details-marker { display: none; }
.mastery-case-details > summary small { color: #8a938b; font-family: var(--sans); font-size: 10px; font-weight: 400; text-align: right; }
.mastery-case-details > summary::after { content: '展开'; color: #a18652; font-family: var(--sans); font-size: 10px; font-weight: 400; flex: 0 0 auto; }
.mastery-case-details[open] > summary::after { content: '收起'; }
.mastery-case-details[open] > summary { border-bottom: 1px solid #e3ded2; }
.mastery-case-details > .mastery-verified-case,
.mastery-case-details > .mastery-data-case { margin: 0; border: 0; border-radius: 0 0 11px 11px; background: transparent; }
@media (max-width: 620px) {
  .mastery-case-details > summary { flex-wrap: wrap; }
  .mastery-case-details > summary small { text-align: left; }
}

/* 审核动画中的长表格/长标签：固定列宽并允许单元格换行，不改变故事内容 */
.mastery-object.type-table table { table-layout: fixed; max-width: 100%; }
.mastery-object.type-table th,
.mastery-object.type-table td { overflow-wrap: anywhere; word-break: break-word; line-height: 1.25; }
.mastery-object.type-text .mastery-object-label,
.mastery-object.type-box .mastery-object-label { max-width: 100%; }

/* image_crop：容器 overflow:hidden，内部图片按裁剪比例放大并偏移，不拉伸 */
.mastery-object.type-image.has-crop img {
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center center;
}

/* font_size：960 画布设计字号，按画布宽度缩放，48px 上限；不表示 PPT 物理单位 */
.mastery-object.has-font-size {
  font-size: min(var(--mastery-font-size, 15px), 48px);
}

/* 上下文功能区：保留四个基础 tab，按路径显示真实上下文或外部工具/操作提示 */
.mastery-ribbon-tabs { flex-wrap: wrap; align-items: flex-end; }
.mastery-ribbon-context {
  margin-left: auto; padding: 5px 9px; border-left: 1px solid #d2cec0;
  color: #81652f; background: #f5eedc; font-size: 9px; font-weight: 700;
  border-radius: 5px 5px 0 0; white-space: nowrap;
}
.mastery-ribbon-context.is-aux { color: #6f6657; background: #efebe0; font-weight: 600; }
.mastery-ribbon-context.active { color: #6d531f; background: #f1e4c7; }

/* ============================================================
   2026-10-20 审计整改：登录、匿名展厅与共用导航/页脚
   作用域限定在本次目标页面，不改动 960×540 动画画布字号。
   ============================================================ */
.topbar,
.footer,
.login-page,
.gallery-site {
  --muted: #5b6b60;
  --ink-2: #3f5147;
}

.topbar .brand { min-height: 44px; min-width: 0; }
.topbar .brand-sub {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: .08em;
  color: #5b665f;
  text-transform: none;
}
.topbar .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.topbar .button {
  min-height: 44px;
  font-size: 14px;
}
.topbar .user-chip {
  min-width: 0;
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 1.5;
}
.footer {
  font-size: 14px;
  line-height: 1.7;
  color: #5b6b60;
}
.footer-inner { align-items: center; }
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.login-page :is(a, button, input, select, textarea):focus-visible,
.gallery-site :is(a, button, input, select, textarea):focus-visible,
.topbar :is(a, button):focus-visible,
.footer a:focus-visible {
  outline: 3px solid #1f5d44;
  outline-offset: 3px;
}

/* ---------- 登录：单一内容列，标题中英文分层 ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
  align-items: stretch;
  min-width: 0;
}
.login-art {
  min-width: 0;
  padding: clamp(36px, 5vw, 64px);
  gap: 24px;
  justify-content: flex-start;
}
.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.login-art .login-brand-name {
  color: #d8e2d5;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .12em;
}
.login-art .login-brand-en {
  color: #e7efe4;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .08em;
  margin-top: 0;
}
.login-art h1 {
  max-width: 720px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.14;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.login-art .login-lede {
  max-width: 620px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
  color: #d8e2d5;
}
.login-art .login-meta {
  margin-top: auto;
  color: #e7efe4;
  gap: 12px 24px;
  font-size: 14px;
  line-height: 1.6;
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: clamp(28px, 5vw, 52px);
  background: #f6f5ef;
}
.login-form {
  width: min(390px, 100%);
  min-width: 0;
}
.login-form h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.login-form .small,
.login-form .tiny,
.login-foot {
  font-size: 14px;
  line-height: 1.8;
}
.login-form .field { margin-top: 16px; }
.login-form .field > label { font-size: 14px; }
.login-form input {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
}
.login-form input:focus { border-color: var(--accent-2); }
.login-form input::placeholder { color: #5f6d63; opacity: 1; }
.login-page .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
.login-page .button.small {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 14px;
}
.login-tabs { gap: 8px; }
.login-tabs .button {
  flex: 0 1 auto;
  min-width: 0;
}
.login-form .button[type="submit"] { margin-top: 20px; }
.login-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.mobile-login-brand { display: none; }

/* ---------- 匿名展厅 ---------- */
.gallery-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.gallery-site .topbar-inner { min-width: 0; }
.gallery-site .brand { min-width: 0; }
.gallery-site .brand-copy { min-width: 0; }
.gallery-page {
  flex: 1;
  width: min(1240px, 100%);
  min-width: 0;
  padding-top: 0;
}
.gallery-site .eyebrow {
  color: #4c6255;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .1em;
}
.gallery-site .small,
.gallery-site .tiny {
  font-size: 14px;
  line-height: 1.65;
}
.gallery-site .badge {
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.35;
}
.gallery-site .button {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.4;
}
.gallery-site .button.small {
  min-height: 44px;
  padding: 9px 13px;
  font-size: 14px;
}
.exhibit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  min-width: 0;
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}
.exhibit-copy { min-width: 0; }
.exhibit-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.exhibit-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 10px;
  color: #4f6156;
  font-size: 16px;
  line-height: 1.8;
}
.exhibit-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  min-width: 0;
  max-width: 360px;
}
.exhibit-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.exhibit-count strong {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
  font-weight: 550;
  color: var(--ink);
}
.exhibit-count > span {
  color: var(--ink-2);
  font-size: 16px;
  white-space: nowrap;
}
.exhibit-collection {
  min-width: 0;
  padding: 26px 0 8px;
}
.collection-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  min-width: 0;
  margin-bottom: 18px;
}
.collection-heading > div { min-width: 0; }
.collection-heading h2 { overflow-wrap: anywhere; }
.collection-heading p {
  flex: 1 1 280px;
  min-width: 0;
  margin-bottom: 3px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.collection-heading .button { flex: 0 0 auto; }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-bottom: 22px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #d5d1c3;
  border-radius: 999px;
  background: #fbfaf5;
  color: #44584b;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}
.filter-pill:hover { background: #f0eee5; border-color: #bdb6a5; }
.filter-pill.active {
  border-color: #b9cdbb;
  background: #e7eee8;
  color: #173f2f;
  font-weight: 650;
}
.filter-label { min-width: 0; overflow-wrap: anywhere; }
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 2.5em;
  min-height: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(33, 78, 59, .09);
  color: #334b3d;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.filter-pill.active .filter-count { background: rgba(255, 253, 248, .9); color: #234b39; }
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
.gallery-card {
  min-width: 0;
  overflow: hidden;
}
.gallery-card .meta { min-width: 0; padding: 14px 16px 16px; }
.gallery-card .meta h3 {
  margin: 6px 0 4px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.gallery-card .meta .eyebrow { margin-bottom: 0; letter-spacing: .06em; }
.artwork-cover {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    repeating-conic-gradient(#f1eee5 0% 25%, #f8f6f0 0% 50%) 50% / 18px 18px;
  color: var(--ink);
  text-align: left;
}
.artwork-cover canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  transition: opacity .2s ease;
}
.artwork-cover canvas.ready { opacity: 1; }
.thumb-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 16px;
  color: #4f6156;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.artwork-open,
.gallery-stage-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(255, 253, 248, .94);
  color: #244c3a;
  box-shadow: 0 1px 5px rgba(32, 56, 46, .1);
}
.artwork-open { left: 12px; bottom: 12px; }
.gallery-stage-badge { right: 12px; top: 12px; }
.artwork-cover:hover .artwork-open { background: #214e3b; color: #fffdf8; }
.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  padding: 22px 24px;
  border: 1px dashed #cfcabb;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .72);
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7eee8;
  color: #315f4a;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}
.empty-copy { min-width: 0; }
.empty-copy h3 {
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.empty-copy p {
  margin-top: 4px;
  color: #4f6156;
  font-size: 16px;
  line-height: 1.7;
}
.gallery-empty .button { justify-self: start; }
.gallery-policy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin-top: 26px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.gallery-policy > span {
  flex: 0 0 auto;
  color: #8c6d31;
  font-size: 18px;
  line-height: 1.6;
}
.gallery-policy p {
  min-width: 0;
  color: #3f5147;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.artwork-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(20, 35, 27, .3);
}
.artwork-dialog::backdrop { background: rgba(20, 25, 21, .54); }
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading > div { min-width: 0; }
.dialog-heading h2 { overflow-wrap: anywhere; }
.dialog-heading .eyebrow { margin-bottom: 2px; }
.artwork-dialog > p { padding: 0 18px 16px; }

/* 展厅作品对话框内的共享 PDF 工具条：只作用于 .gallery-site，
   不改课程作业/教师审阅 PDF 条。 */
.gallery-site .pdf-viewer .pdf-toolbar {
  gap: 8px;
  padding: 8px;
}
.gallery-site .pdf-viewer .pdf-tool-btn,
.gallery-site .pdf-viewer .pdf-icon-btn,
.gallery-site .pdf-viewer .pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.35;
}
.gallery-site .pdf-viewer .pdf-icon-btn { padding: 8px; }
.gallery-site .pdf-viewer .pdf-link {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.gallery-site .pdf-viewer .pdf-page-label,
.gallery-site .pdf-viewer .pdf-zoom-label,
.gallery-site .pdf-viewer .pdf-loading,
.gallery-site .pdf-viewer .pdf-error {
  font-size: 14px;
  line-height: 1.6;
}
.gallery-site .pdf-viewer .pdf-toolbar,
.gallery-site .pdf-viewer .pdf-nav,
.gallery-site .pdf-viewer .pdf-zoom,
.gallery-site .pdf-viewer .pdf-actions {
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .login-page { display: block; }
  .login-art { display: none; }
  .login-panel {
    min-height: 100vh;
    justify-content: center;
    gap: 24px;
    padding: 32px 20px 40px;
  }
  .mobile-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(390px, 100%);
    min-width: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #d8d4c7;
  }
  .mobile-login-brand .login-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ede9db;
    color: #214e3b;
    font-size: 22px;
  }
  .mobile-login-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .mobile-login-copy h1 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .mobile-login-copy p {
    color: #5b6b60;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .04em;
  }
  .login-form h2 { font-size: 26px; }
  .exhibit-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }
  .exhibit-stat { justify-content: flex-start; max-width: none; }
  .collection-heading { align-items: flex-start; }
  .collection-heading p { flex-basis: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gallery-empty {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 18px;
  }
  .gallery-empty .button { grid-column: 1 / -1; }
  .gallery-policy { flex-direction: column; gap: 6px; }
}
@media (max-width: 520px) {
  .topbar .brand-sub { display: none; }
  .gallery-page { padding-bottom: 58px; }
  .exhibit-copy h1 { font-size: 38px; }
  .exhibit-count strong { font-size: 40px; }
  .filter-pill { padding: 8px 12px; }
  .artwork-cover { min-height: 200px; }
  .dialog-heading { flex-direction: column; }
}
@media (max-width: 380px) {
  .login-panel { padding-left: 16px; padding-right: 16px; }
  .mobile-login-copy h1 { font-size: 20px; }
  .login-tabs .button { padding-left: 12px; padding-right: 12px; }
}

/* ===== R2 student course overview + daily learning flow ===== */
.r2-overview,
.r2-day-page {
  --r2-ink: #1c2f27;
  --r2-muted: #52635a;
  --r2-line: #d7e2dc;
  --r2-green: #1e5641;
  --r2-green-dark: #164231;
  --r2-indigo: #2b4c7e;
  --r2-indigo-soft: #f0f4fa;
  --r2-amber: #8a4f08;
  --r2-amber-soft: #fef7ec;
  --r2-gray: #5d6b64;
  --r2-gray-soft: #eef1ef;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--r2-ink);
  min-width: 0;
}
.r2-overview-head,
.r2-section-head,
.r2-day-top,
.r2-day-hero,
.r2-focus-kicker,
.r2-step-head,
.r2-target-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.r2-overview-head { margin-bottom: 22px; flex-wrap: wrap; }
.r2-overview-head h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.02em; }
.r2-overview-head p { color: var(--r2-muted); max-width: 760px; line-height: 1.65; }
.r2-overview-progress { display: grid; gap: 4px; justify-items: end; color: var(--r2-muted); }
.r2-overview-progress strong { color: var(--r2-green); font-size: 26px; line-height: 1; }
.r2-focus-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: 24px; align-items: start; }
.r2-focus-main,
.r2-formal-card,
.r2-round-card,
.r2-step-card,
.r2-check-card,
.r2-target-card {
  background: #fff;
  border: 1px solid var(--r2-line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(28, 47, 39, .045);
  min-width: 0;
}
.r2-focus-main { padding: 24px; }
.r2-focus-kicker { color: var(--r2-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.r2-focus-kicker span + span { color: var(--r2-muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.r2-focus-main h2 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; margin: 10px 0 8px; }
.r2-focus-main > p { color: var(--r2-muted); line-height: 1.65; margin-bottom: 16px; }
.r2-focus-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.r2-focus-actions .button.primary,
.r2-start-row .button.primary { background: var(--r2-green); border-color: var(--r2-green); color: #fff; }
.r2-focus-actions .button.primary:hover,
.r2-start-row .button.primary:hover { background: var(--r2-green-dark); border-color: var(--r2-green-dark); }
.r2-focus-actions-preview { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: 14px; font-size: 12.5px; color: var(--r2-muted); }
.r2-focus-actions-preview > span:first-child { color: var(--r2-ink); font-weight: 700; }
.r2-formal-card { border-top: 4px solid var(--r2-indigo); padding: 20px; background: var(--r2-indigo-soft); }
.r2-formal-kicker { display: flex; justify-content: space-between; gap: 12px; color: var(--r2-indigo); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.r2-formal-card h2 { font-size: 18px; line-height: 1.4; margin: 10px 0 8px; color: var(--r2-indigo); }
.r2-formal-card p { color: var(--r2-ink); font-size: 14px; line-height: 1.65; }
.r2-formal-link { margin-top: 12px; background: var(--r2-indigo); border-color: var(--r2-indigo); color: #fff; white-space: normal; text-align: left; line-height: 1.45; }
.r2-formal-link:hover { background: #203b63; border-color: #203b63; }
.r2-formal-note { margin-top: 10px; color: var(--r2-muted); font-size: 12px; line-height: 1.5; }
.r2-formal-card.is-muted { border-top-color: var(--r2-gray); background: var(--r2-gray-soft); }
.r2-formal-card.is-muted h2,
.r2-formal-card.is-muted .r2-formal-kicker { color: var(--r2-gray); }
.r2-formal-card.is-attention { border-top-color: var(--r2-amber); background: var(--r2-amber-soft); }
.r2-formal-card.is-attention h2,
.r2-formal-card.is-attention .r2-formal-kicker { color: var(--r2-amber); }
.r2-formal-card.is-submitted { border-top-color: #476650; background: #f2f7f3; }
.r2-formal-card.is-submitted h2,
.r2-formal-card.is-submitted .r2-formal-kicker { color: #31523d; }
.r2-formal-card.is-teacher { border-top-color: #7a6440; background: #fbf8f0; }
.r2-section-head { margin: 28px 0 14px; align-items: end; flex-wrap: wrap; }
.r2-section-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.r2-day-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.r2-day-pill { flex: 0 0 150px; display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--r2-line); border-radius: 10px; background: #fff; color: var(--r2-ink); text-decoration: none !important; min-width: 0; }
.r2-day-pill:hover { border-color: var(--r2-green); }
.r2-day-pill strong { font-size: 12px; color: var(--r2-green); }
.r2-day-pill small { color: var(--r2-muted); font-size: 11.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r2-day-pill.is-current { border-color: var(--r2-green); box-shadow: inset 0 0 0 1px var(--r2-green); }
.r2-day-pill.is-locked,
.r2-day-pill.is-unpublished { background: var(--r2-gray-soft); }
.r2-day-pill.is-locked strong,
.r2-day-pill.is-unpublished strong { color: var(--r2-gray); }
.r2-rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.r2-round-card { padding: 14px; }
.r2-round-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--r2-line); }
.r2-round-card > header strong { color: var(--r2-indigo); font-size: 16px; }
.r2-round-card > header span { color: var(--r2-muted); font-size: 12px; }
.r2-round-days { display: grid; gap: 8px; padding-top: 10px; }
.r2-round-day { display: grid; gap: 4px; padding: 9px; border-radius: 8px; border: 1px solid transparent; color: var(--r2-ink); text-decoration: none !important; min-width: 0; }
a.r2-round-day:hover { border-color: var(--r2-line); background: #fbfdfb; }
.r2-round-day.is-completed { background: #f3f8f4; }
.r2-round-day.is-locked,
.r2-round-day.is-unpublished { background: var(--r2-gray-soft); color: var(--r2-gray); }
.r2-round-day-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--r2-muted); }
.r2-round-day > strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.r2-round-day > small { font-size: 11px; color: var(--r2-muted); }
.r2-round-tag { font-size: 10.5px; color: var(--r2-green); }
.r2-round-tag.locked,
.r2-round-tag.unpublished { color: var(--r2-gray); }
.r2-day-top { align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.r2-day-top .r2-day-pills { flex: 1 1 680px; padding-bottom: 0; }
.r2-day-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.r2-day-main { min-width: 0; display: grid; gap: 18px; }
.r2-day-hero { padding: 4px 2px 0; }
.r2-day-hero h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 7px 0 8px; }
.r2-day-hero p { color: var(--r2-muted); line-height: 1.65; max-width: 760px; }
.r2-day-role { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--r2-indigo-soft); color: var(--r2-indigo); font-size: 12px; font-weight: 700; }
.r2-day-side { position: sticky; top: calc(var(--app-topbar-height, 74px) + 16px); align-self: start; display: grid; gap: 14px; min-width: 0; }
.r2-side-note { border: 1px solid var(--r2-line); background: #f7faf8; border-radius: 12px; padding: 14px; }
.r2-side-note strong { color: var(--r2-green); }
.r2-side-note p { margin-top: 5px; color: var(--r2-muted); font-size: 12px; line-height: 1.55; }
.r2-target-card { overflow: hidden; }
.r2-target-head { padding: 16px 18px 10px; align-items: center; }
.r2-target-head h2 { margin: 3px 0 0; font-size: 18px; line-height: 1.35; }
.r2-target-frame { display: grid; place-items: center; width: 100%; min-height: 160px; max-height: 460px; padding: 12px; border: 0; border-top: 1px solid var(--r2-line); border-bottom: 1px solid var(--r2-line); background: #fff; cursor: zoom-in; position: relative; }
.r2-target-frame img { display: block; width: 100%; max-width: 100%; max-height: 436px; height: auto; object-fit: contain; }
.r2-target-card.is-compact .r2-target-frame { max-height: 260px; min-height: 120px; }
.r2-target-card.is-compact .r2-target-frame img { max-height: 236px; }
.r2-zoom-hint { position: absolute; right: 12px; bottom: 10px; padding: 3px 7px; border-radius: 999px; background: rgba(28,47,39,.82); color: #fff; font-size: 10.5px; }
.r2-target-meta { padding: 12px 18px 16px; display: grid; gap: 5px; }
.r2-target-meta p { color: var(--r2-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.r2-target-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.r2-target-actions a:not(.button) { color: var(--r2-green); font-size: 12px; }
.r2-honest-note { border-left: 3px solid var(--r2-green); padding-left: 8px; color: var(--r2-muted) !important; }
.r2-core-actions { margin-top: 2px; }
.r2-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r2-core-grid article { border: 1px solid var(--r2-line); border-radius: 10px; padding: 13px; background: #fbfdfb; min-width: 0; }
.r2-core-grid article > span { color: var(--r2-green); font-size: 11px; font-weight: 700; }
.r2-core-grid h3 { font-size: 14px; margin: 5px 0; }
.r2-core-grid p { color: var(--r2-muted); font-size: 12px; line-height: 1.55; }
.r2-start-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 2px 0; }
.r2-start-row span { color: var(--r2-muted); font-size: 12px; }
.r2-steps { scroll-margin-top: calc(var(--app-topbar-height, 74px) + 16px); }
.r2-step-card { padding: 16px; }
.r2-step-card + .r2-step-card { margin-top: 12px; }
.r2-step-head { align-items: flex-start; }
.r2-step-number { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--r2-green); color: #fff; font-size: 11px; font-weight: 700; }
.r2-step-head > div { flex: 1 1 auto; min-width: 0; }
.r2-step-head h3 { font-size: 16px; margin: 2px 0 4px; }
.r2-step-head p { color: var(--r2-muted); font-size: 13px; line-height: 1.55; }
.r2-step-note { margin: 8px 0 0 42px; padding: 7px 9px; border-left: 3px solid var(--r2-amber); background: var(--r2-amber-soft); color: #6d3f05; font-size: 12px; line-height: 1.5; }
.r2-platform-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 0 0 auto; }
.r2-platform-tabs button { border: 1px solid var(--r2-line); border-radius: 999px; padding: 4px 8px; background: #fff; color: var(--r2-muted); font-size: 11px; cursor: pointer; }
.r2-platform-tabs button.is-active { color: #fff; background: var(--r2-green); border-color: var(--r2-green); }
.r2-step-media { margin-top: 11px; }
.r2-step-shot { margin: 0; border: 1px solid var(--r2-line); border-radius: 9px; overflow: hidden; background: #fff; }
.r2-step-shot img { display: block; width: 100%; max-height: 270px; object-fit: contain; background: #fff; }
.r2-step-shot figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 7px 9px; background: #f7faf8; color: var(--r2-muted); font-size: 11px; line-height: 1.45; }
.r2-step-shot figcaption a { color: var(--r2-green); flex: 0 0 auto; }
.r2-host-boundary { margin: 0; padding: 7px 9px; background: var(--r2-amber-soft); color: #6d3f05; font-size: 11.5px; line-height: 1.5; border-top: 1px solid #f0d9b6; }
.r2-check-card { padding: 18px; }
.r2-compare-list { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--r2-ink); font-size: 14px; line-height: 1.6; }
.r2-save-box { margin-top: 14px; padding: 13px; border: 1px solid #cfe3d6; border-radius: 10px; background: #f3faf5; }
.r2-save-box strong { color: var(--r2-green); }
.r2-save-box p { margin: 4px 0 8px; color: var(--r2-muted); font-size: 12.5px; line-height: 1.55; }
.r2-save-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.r2-save-status { display: block; margin-top: 5px; color: var(--r2-muted); font-size: 11.5px; }
.r2-symbols { border: 1px solid var(--r2-line); border-radius: 10px; padding: 11px 14px; background: #fff; }
.r2-symbols summary { cursor: pointer; color: var(--r2-green); font-size: 13px; font-weight: 700; }
.r2-symbols > p { color: var(--r2-muted); font-size: 11.5px; margin: 7px 0; }
.r2-symbol-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.r2-symbol-grid button { min-width: 42px; padding: 7px 9px; border: 1px solid var(--r2-line); border-radius: 7px; background: #fbfdfb; font-size: 17px; cursor: pointer; }
.r2-symbol-grid button:hover { border-color: var(--r2-green); }
.r2-legacy { border: 1px dashed var(--r2-line); border-radius: 10px; padding: 13px 15px; background: #fbfcfb; color: var(--r2-muted); }
.r2-legacy summary { cursor: pointer; color: var(--r2-ink); font-weight: 700; }
.r2-legacy > p { font-size: 12px; line-height: 1.55; margin: 7px 0 10px; }
.r2-empty { padding: 24px; background: #fff; border: 1px solid var(--r2-line); border-radius: 12px; color: var(--r2-muted); }
.r2-zoom-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.r2-zoom-toolbar .button.is-active { background: #1e5641; border-color: #1e5641; color: #fff; }
.r2-zoom-scroll { max-height: 70vh; overflow: auto; border: 1px solid #d7e2dc; background: #f5f5f2; }
.r2-zoom-image { display: block; width: 100%; max-width: none; height: auto; }
.r2-overview .badge, .r2-day-page .badge { white-space: normal; }

@media (max-width: 1080px) {
  .r2-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .r2-focus-grid, .r2-day-grid { grid-template-columns: minmax(0, 1fr); }
  .r2-day-side { position: static; }
  .r2-focus-main, .r2-formal-card { padding: 18px; }
}
@media (max-width: 680px) {
  .r2-overview, .r2-day-page { padding-left: 0; padding-right: 0; }
  .r2-overview-head h1 { font-size: 22px; }
  .r2-overview-progress { justify-items: start; display: flex; align-items: baseline; gap: 6px; }
  .r2-overview-progress strong { font-size: 20px; }
  .r2-focus-main h2, .r2-day-hero h1 { font-size: 21px; }
  .r2-core-grid { grid-template-columns: 1fr; }
  .r2-rounds { grid-template-columns: 1fr; }
  .r2-day-top { gap: 8px; }
  .r2-day-top .r2-day-pills { flex-basis: 100%; }
  .r2-day-pill { flex-basis: 132px; }
  .r2-target-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .r2-target-frame { min-height: 140px; padding: 8px; }
  .r2-day-main { gap: 14px; }
  .r2-step-card, .r2-check-card { padding: 13px; }
  .r2-step-head { flex-wrap: wrap; }
  .r2-step-head .r2-platform-tabs { margin-left: 42px; }
  .r2-step-note { margin-left: 0; }
  .r2-start-row .button { width: 100%; min-height: 44px; }
  .r2-focus-actions .button { min-height: 44px; }
  .r2-formal-card { order: 2; }
  .r2-target-actions .button { min-height: 40px; }
}
@media (min-width: 901px) {
  .r2-step-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr); gap: 0 18px; align-items: start; }
  .r2-step-head, .r2-step-note { grid-column: 1; }
  .r2-step-media { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
.r2-no-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 11px; border: 1px solid var(--r2-line); border-radius: 7px; color: var(--r2-muted); font-size: 12px; line-height: 1.4; background: #fff; }
.r2-legacy .trail-tabs { position: static; background: transparent; backdrop-filter: none; }
.r2-legacy .trail-tabs .trail-tab { font-size: 12px; }
.r2-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2px 0 4px; }
.r2-hero-actions .button.primary { background: var(--r2-green); border-color: var(--r2-green); color: #fff; }
.r2-hero-actions .button.primary:hover { background: var(--r2-green-dark); border-color: var(--r2-green-dark); }
.r2-hero-actions span { color: var(--r2-muted); font-size: 12px; }
.r2-target-label { display: block; color: var(--r2-green); font-size: 18px; line-height: 1.3; margin-top: 2px; }
@media (max-width: 680px) {
  .r2-hero-actions { align-items: stretch; }
  .r2-hero-actions .button { width: 100%; min-height: 44px; }
}
.r2-step-zoom { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 6px; padding: 7px 10px; border: 1px solid var(--r2-green); border-radius: 8px; background: #fff; color: var(--r2-green-dark); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.r2-step-zoom:hover { background: #f2f7f3; }
.r2-step-zoom:focus-visible { outline: 3px solid rgba(30, 86, 65, .28); outline-offset: 2px; }
.r2-step-zoom-meta { margin-top: 12px; padding: 12px 14px; border: 1px solid #d7e2dc; border-radius: 10px; background: #f2f7f3; }
.r2-step-zoom-meta p { margin: 5px 0; color: #1c2f27; font-size: 13px; line-height: 1.6; }
.r2-step-zoom-kicker { color: #164231 !important; font-weight: 700; }
.r2-step-zoom-source { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 4px; }
.r2-step-zoom-source a { color: #164231; font-size: 12px; font-weight: 700; }
.r2-quiz { margin-top: 28px; padding: 20px; border: 1px solid #cfe0d7; border-radius: 14px; background: #fff; }
.r2-quiz .r2-section-head { margin-bottom: 12px; }
.r2-quiz-status { margin: 8px 0 12px; padding: 9px 11px; border: 1px solid #d7e2dc; border-radius: 8px; background: #f7faf8; color: #1c2f27; font-size: 13px; line-height: 1.6; }
.r2-quiz-status.is-done { border-color: #b9d5c5; background: #f2f7f3; color: #164231; }
.r2-quiz-status.is-legacy { border-color: #ecd8b5; background: #fef7ec; color: #6d3f05; }
.r2-quiz-progress { color: #52635a; }
.r2-quiz-form { margin-top: 12px; }
.r2-quiz-q { margin: 12px 0; padding: 13px 14px; border: 1px solid #d7e2dc; border-radius: 10px; }
.r2-quiz-q legend { width: 100%; padding: 0 0 8px; color: #1c2f27; font-size: 14px; font-weight: 700; line-height: 1.55; }
.r2-quiz-q legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 50%; background: #164231; color: #fff; font-size: 10px; }
.r2-quiz-option { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0; color: #1c2f27; font-size: 13px; line-height: 1.6; cursor: pointer; }
.r2-quiz-option input { margin-top: 3px; accent-color: #1e5641; }
.r2-quiz-option b { color: #164231; }
.r2-quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.r2-quiz-result { margin-top: 10px; font-size: 13px; font-weight: 700; }
.r2-quiz-result.is-success { color: #164231; }
.r2-quiz-result.is-error { color: #8a2d20; }
.r2-quiz-complete-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid #d7e2dc; }
.r2-quiz-complete-box > strong { display: block; color: #1c2f27; font-size: 14px; }
.r2-quiz-complete-box > p { margin: 5px 0 8px; color: #52635a; font-size: 12px; line-height: 1.6; }
.r2-quiz-complete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 9px; }
.r2-quiz-answers { display: grid; gap: 10px; }
.r2-quiz-answer { padding: 11px 13px; border: 1px solid #d7e2dc; border-radius: 9px; background: #f7faf8; }
.r2-quiz-answer h3 { margin: 0 0 5px; color: #1c2f27; font-size: 14px; line-height: 1.55; }
.r2-quiz-answer p { margin: 4px 0; color: #1c2f27; font-size: 13px; line-height: 1.6; }
.r2-quiz-unavailable { border-color: #ecd8b5; background: #fef7ec; }
@media (max-width: 680px) {
  .r2-quiz { padding: 14px; }
  .r2-quiz-actions .button, .r2-quiz-complete-actions .button { width: 100%; min-height: 44px; }
}
.r2-quiz-feedback { margin-top: 9px; padding: 10px 12px; border: 1px solid #d7e2dc; border-radius: 8px; background: #fff; }
.r2-quiz-feedback.is-correct { border-color: #b9d5c5; background: #f2f7f3; }
.r2-quiz-feedback.is-wrong { border-color: #e5c9c0; background: #fff8f5; }
.r2-quiz-feedback strong { display: block; color: #1c2f27; font-size: 13px; }
.r2-quiz-feedback p { margin: 4px 0; color: #1c2f27; font-size: 12.5px; line-height: 1.55; }
.r2-quiz-explanation { color: #52635a !important; }

/* DS10POLISH: mobile nav access, compact overview target inset, Office help scroll clearance. */
@media (max-width: 820px) {
  .topbar-inner { padding-left: 12px; padding-right: 12px; }
  .main-nav {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #8a9a90 transparent;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: block; height: 3px; }
  .main-nav::-webkit-scrollbar-thumb { background: #8a9a90; border-radius: 3px; }
  .topbar .nav-link {
    min-width: 44px;
    min-height: 44px;
    padding-left: 8px;
    padding-right: 8px;
    justify-content: center;
  }
}
@media (max-width: 680px) {
  .r2-overview .r2-focus-main > .r2-target-card.is-compact,
  .r2-journey .r2-focus-main > .r2-target-card.is-compact {
    width: auto;
    max-width: 100%;
    margin-left: 8px;
    margin-right: 8px;
  }
}
.modal.office-help-modal .modal-body { padding-bottom: 112px; }

/* ===== DS11-PRO: four-layer student route, focused task, formal track, prepare teaching scaffolds ===== */
.r2-journey { width: 100%; max-width: 1200px; margin: 0 auto; }
.r2-journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 18px 28px;
  align-items: end;
  padding: 6px 0 20px;
  border-bottom: 1px solid #dedacd;
}
.r2-journey-copy h1 { margin: 7px 0 7px; font-size: clamp(30px, 3.4vw, 43px); line-height: 1.13; letter-spacing: -.025em; color: #183b2c; }
.r2-journey-copy p { max-width: 690px; color: #4f6256; font-size: 15px; line-height: 1.7; }
.r2-journey-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.r2-journey-metrics > div { min-width: 0; padding: 10px 11px; border: 1px solid #d9ded3; border-radius: 10px; background: rgba(255,253,246,.7); }
.r2-journey-metrics strong { display: block; color: #214e3b; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 29px); line-height: 1.05; white-space: nowrap; }
.r2-journey-metrics span { display: block; margin-top: 5px; color: #68766c; font-size: 12px; line-height: 1.35; }
.r2-journey-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.r2-primary-cta { min-height: 44px; padding: 11px 18px; font-size: 14.5px; border-radius: 9px; }
.r2-primary-cta span { margin-left: 8px; }
.r2-primary-cta.is-disabled { opacity: .62; cursor: not-allowed; }
.r2-journey-position { color: #647368; font-size: 12.5px; line-height: 1.5; }
.r2-journey-map-section { margin-top: 20px; }
.r2-map-caption { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.r2-map-caption h2 { margin: 3px 0 0; font-size: 18px; color: #214e3b; }
.r2-map-caption > span { color: #758176; font-size: 11.5px; text-align: right; }
.r2-journey-map {
  position: relative;
  height: 320px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #dce2d7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f8f2 0%, #edf2e9 72%, #e5ebdf 100%);
}
.r2-journey-map::before {
  content: "";
  position: absolute;
  inset: 3% 2% 4%;
  z-index: -1;
  border-radius: 46% 54% 44% 56%;
  background: radial-gradient(ellipse at 62% 48%, rgba(136,168,138,.22), transparent 64%);
  filter: blur(9px);
}
.r2-journey-map .trail-ridge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.r2-journey-map .trail-ridge-mobile { display: none; }
.r2-map-progress { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.r2-map-progress-mobile { display: none; }
.r2-map-progress path { fill: none; stroke: #315f4a; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.r2-map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  display: flex;
  align-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #214e3b;
  transform: translate(-50%, -50%);
  cursor: pointer;
  text-align: left;
}
.r2-map-pin {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid #6f8d74;
  border-radius: 50%;
  background: #fbf9f1;
  box-shadow: 0 0 0 4px rgba(246,245,239,.86);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.r2-map-icon { position: absolute; top: 3px; right: 5px; color: #c3a56a; font-size: 12px; font-weight: 800; line-height: 1; }
.r2-map-day { font-family: var(--serif); font-size: 15px; line-height: 1; }
.r2-map-copy {
  position: absolute;
  left: 52px;
  top: 50%;
  max-width: 116px;
  padding: 3px 7px;
  border: 1px solid rgba(222,219,208,.8);
  border-radius: 7px;
  background: rgba(246,245,239,.94);
  box-shadow: 0 3px 12px rgba(32,56,46,.05);
  transform: translateY(-50%);
  white-space: nowrap;
}
.r2-map-copy strong { display: block; color: #2b4135; font-family: var(--serif); font-size: 12px; line-height: 1.25; }
.r2-map-copy small { display: block; margin-top: 1px; color: #5f6e64; font-size: 11.5px; line-height: 1.25; }
.r2-map-node.label-left .r2-map-copy { left: auto; right: 52px; text-align: right; }
.r2-map-node:hover .r2-map-pin { transform: scale(1.06); background: #fffdf8; }
.r2-map-node.is-complete .r2-map-pin { background: #214e3b; border-color: #214e3b; color: #fffdf8; }
.r2-map-node.is-legacy .r2-map-pin { background: #f6edda; border-color: #b18c4f; color: #6d531f; }
.r2-map-node.is-complete .r2-map-icon { color: #f0d79e; }
.r2-map-node.is-current .r2-map-pin { box-shadow: 0 0 0 4px #f6f5ef, 0 0 0 6px #c3a56a, 0 0 0 11px rgba(195,165,106,.15); }
.r2-map-node.is-preview:not(.is-current) .r2-map-pin { box-shadow: 0 0 0 4px #f6f5ef, 0 0 0 6px #315f4a; }
.r2-map-node.is-locked .r2-map-pin, .r2-map-node.is-unpublished .r2-map-pin { background: #f1efe7; border-style: dashed; border-color: #9ca999; color: #78867b; }
.r2-map-node.is-unpublished .r2-map-pin { border-color: #c7c4b8; color: #8b9188; }
.r2-map-node.is-gated .r2-map-pin { cursor: not-allowed; }
.r2-map-node:focus-visible { outline: 3px solid #1f5d44; outline-offset: 3px; border-radius: 50%; }
.r2-map-note { margin: 7px auto 0; padding: 6px 11px; border: 1px solid #ded8c9; border-radius: 999px; background: rgba(250,248,240,.95); color: #6a786e; font-size: 11px; line-height: 1.45; text-align: center; }
.r2-map-note.is-reason { color: #6f5727; border-color: #d9c69c; background: #fbf5e7; }
.r2-map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 7px; color: #657368; font-size: 12px; }
.r2-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.r2-dot { width: 8px; height: 8px; border-radius: 50%; background: #f6f5ef; border: 1.5px solid #6f8d74; }
.r2-dot.done { background: #214e3b; border-color: #214e3b; }
.r2-dot.legacy { background: #f6edda; border-color: #b18c4f; }
.r2-dot.current { border-color: #c3a56a; box-shadow: 0 0 0 2px #f6f5ef, 0 0 0 3.5px #c3a56a; }
.r2-dot.locked { border-style: dashed; border-color: #9ca999; }
.r2-dot.unpublished { border-color: #c7c4b8; }

.r2-journey-focus { margin-top: 24px; }
.r2-journey .r2-focus-grid { grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); }
.r2-journey .r2-formal-link { background: #fffdf8; border: 1px solid #b9c8ba; color: #214e3b; }
.r2-journey .r2-formal-link:hover { background: #f3f7f2; border-color: #7d9b84; }
.r2-preview-note { color: #6f5727; font-size: 12px; }
.r2-preview-loading { min-height: 160px; display: grid; place-items: center; border: 1px dashed #cbd8ca; border-radius: 14px; background: #f7faf5; color: #647368; font-size: 13px; }

.r2-formal-track { margin-top: 32px; padding-top: 8px; border-top: 1px solid #d8ded2; }
.r2-track-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.r2-track-head h2 { margin: 4px 0 0; font-size: 20px; color: #214e3b; }
.r2-track-head p { margin-top: 5px; max-width: 780px; color: #657368; font-size: 12.5px; line-height: 1.55; }
.r2-formal-rows { border-top: 1px solid #d8ded2; }
.r2-formal-row { border-bottom: 1px solid #d8ded2; }
.r2-formal-row > summary {
  display: grid;
  grid-template-columns: 38px 215px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px 3px;
  cursor: pointer;
  list-style: none;
}
.r2-formal-row > summary::-webkit-details-marker { display: none; }
.r2-formal-row > summary::after { content: "›"; color: #728076; font-size: 20px; grid-column: 5; transition: transform .16s ease; }
.r2-formal-row[open] > summary::after { transform: rotate(90deg); }
.r2-formal-code { color: #315f4a; font-family: var(--mono); font-size: 12px; font-weight: 800; }
.r2-formal-round { color: #657368; font-size: 12px; }
.r2-formal-row > summary strong { min-width: 0; color: #1f3c2d; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.r2-formal-row > summary .badge { justify-self: end; white-space: normal; }
.r2-formal-body { padding: 0 3px 13px 48px; color: #4f6256; font-size: 13px; line-height: 1.6; }
.r2-formal-body p + p { margin-top: 4px; }
.r2-formal-body .button { margin-top: 9px; }
.r2-formal-row.is-current, .r2-formal-row.is-reopened, .r2-formal-row.is-correction_required { background: #fbf8ef; }
.r2-formal-row.is-unknown, .r2-formal-row.is-unpublished { color: #657368; }
.r2-teacher-formal-note { padding: 13px 15px; border: 1px dashed #cbd8ca; border-radius: 10px; color: #657368; font-size: 13px; line-height: 1.6; background: #f7faf5; }
.r2-track-error { margin-top: 7px; color: #735a2a; font-size: 12px; }

.r2-practice-focus, .r2-self-check, .r2-task-bridge {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #d7e2dc;
  border-radius: 12px;
  background: #fbfdfb;
}
.r2-practice-focus .r2-section-head, .r2-self-check .r2-section-head { margin-bottom: 8px; }
.r2-practice-focus h2, .r2-self-check h2, .r2-task-bridge h2 { font-size: 16px; margin: 3px 0 0; color: #214e3b; }
.r2-practice-focus ol { margin: 0; padding-left: 1.15rem; color: #3f5147; font-size: 13px; line-height: 1.65; }
.r2-practice-focus li + li { margin-top: 5px; }
.r2-self-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.r2-self-check-grid article { padding: 10px; border: 1px solid #dce5dc; border-radius: 9px; background: #fff; min-width: 0; }
.r2-self-check-grid article > span { color: #315f4a; font-family: var(--mono); font-size: 10px; font-weight: 800; }
.r2-self-check-grid h3 { margin: 4px 0 5px; font-size: 13px; line-height: 1.45; color: #1f3c2d; }
.r2-self-check-grid p { margin: 3px 0; color: #52635a; font-size: 12.5px; line-height: 1.55; }
.r2-self-check-grid b { color: #315f4a; }
.r2-task-bridge { display: grid; grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr); gap: 12px 18px; background: #f7faf5; border-color: #cfded2; }
.r2-task-bridge p { color: #52635a; font-size: 12.5px; line-height: 1.6; }
.r2-task-bridge p + p { margin-top: 3px; }

.r2-day-stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.r2-day-stepper > strong { min-width: 64px; color: #214e3b; font-family: var(--serif); font-size: 15px; text-align: center; }
.r2-day-stepper .button { min-height: 44px; }
.r2-day-stepper .button.is-disabled { opacity: .5; pointer-events: none; }
.r2-day-select { display: inline-flex; align-items: center; gap: 6px; color: #657368; font-size: 11.5px; }
.r2-day-select select { min-height: 44px; max-width: 170px; padding: 7px 26px 7px 8px; border: 1px solid #cfd9ce; border-radius: 8px; background: #fffdf8; color: #2b4135; font-size: 12px; }

.r2-prepare-candidates .r2-track-head { align-items: flex-start; }
.r2-prepare-bridge { display: grid; grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr); gap: 12px 18px; margin: 12px 0 14px; padding: 12px 14px; border: 1px solid #d5e1d5; border-radius: 10px; background: #f7faf5; }
.r2-prepare-bridge h2 { margin: 3px 0 0; color: #214e3b; font-size: 16px; }
.r2-prepare-bridge p { color: #52635a; font-size: 12.5px; line-height: 1.6; }
.r2-candidate-summaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.r2-candidate-summary { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 150px; padding: 13px; border: 1px solid #d5ded3; border-radius: 10px; background: #fffdf8; color: #1f3c2d; text-align: left; cursor: pointer; font: inherit; }
.r2-candidate-summary:hover { border-color: #7f9c84; background: #fbfdf8; }
.r2-candidate-summary.is-selected { border-color: #315f4a; box-shadow: inset 0 0 0 1px #315f4a; }
.r2-candidate-summary.is-viewing:not(.is-selected) { border-color: #9fb6a3; background: #f8fbf7; }
.r2-candidate-summary:focus-visible { outline: 3px solid #1f5d44; outline-offset: 2px; }
.r2-candidate-summary-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.r2-candidate-code { color: #315f4a; font-family: var(--mono); font-size: 12px; font-weight: 800; }
.r2-candidate-option { color: #6d531f; font-size: 11px; }
.r2-candidate-summary strong { font-family: var(--serif); font-size: 14px; line-height: 1.35; }
.r2-candidate-figure { color: #6f5727; font-size: 11px; }
.r2-candidate-scope { display: block; margin-top: 2px; color: #52635a; font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }
.r2-candidate-summary small { margin-top: auto; color: #315f4a; font-size: 10.5px; line-height: 1.35; }
.r2-candidate-details { margin-top: 12px; }
.r2-candidate-detail { border: 1px solid #cfdace; border-radius: 12px; padding: 15px 16px; background: #fbfdf8; scroll-margin-top: 90px; }
.r2-candidate-detail[hidden] { display: none; }
.r2-candidate-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.r2-candidate-detail-head h2 { margin: 4px 0 0; color: #1f3c2d; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.r2-candidate-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.r2-candidate-detail-grid section { min-width: 0; padding-top: 9px; border-top: 1px dashed #ced9cd; }
.r2-candidate-detail-grid h3 { margin: 0 0 4px; color: #315f4a; font-size: 12px; }
.r2-candidate-detail-grid p, .r2-candidate-detail-grid li { color: #3f5147; font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }
.r2-science-note { margin-top: 11px; padding: 10px 12px; border-left: 3px solid #b18c4f; border-radius: 6px; background: #fbf7ec; color: #4f4330; font-size: 12px; line-height: 1.6; }
.r2-science-note strong { color: #6d531f; }
.r2-science-note ul { margin-top: 4px; }
.r2-candidate-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.r2-candidate-detail-actions a:not(.button) { color: #315f4a; font-size: 12px; }
.r2-candidate-detail-actions .button { margin-left: auto; }
.r2-workpaper { margin-top: 13px; border-top: 1px solid #d5dfd3; padding-top: 9px; }
.r2-workpaper > summary { cursor: pointer; color: #214e3b; font-size: 13px; font-weight: 700; }
.r2-workpaper > summary span { color: #6f7c72; font-weight: 400; font-size: 11px; }
.r2-workpaper ol { margin: 9px 0 0; padding-left: 1.2rem; color: #3f5147; font-size: 12.5px; line-height: 1.6; }
.r2-workpaper li + li { margin-top: 7px; }
.r2-workpaper li p { margin: 3px 0 0; }
.r2-workpaper > p { margin-top: 8px; }

@media (max-width: 900px) {
  .r2-journey-head { grid-template-columns: 1fr; align-items: start; }
  .r2-journey-actions { grid-column: auto; }
  .r2-journey .r2-focus-grid { grid-template-columns: 1fr; }
  .r2-formal-row > summary { grid-template-columns: 34px 180px minmax(0, 1fr) auto; }
  .r2-self-check-grid { grid-template-columns: 1fr; }
  .r2-candidate-summaries { grid-template-columns: 1fr; }
  .r2-candidate-summary { min-height: 124px; }
  .r2-candidate-detail-grid { grid-template-columns: 1fr; }
  .r2-candidate-detail-actions .button { margin-left: 0; }
}
@media (max-width: 680px) {
  .r2-map-progress-desktop { display: none; }
  .r2-map-progress-mobile { display: block; }
  .r2-journey-head { gap: 13px; padding-bottom: 16px; }
  .r2-journey-copy h1 { font-size: 30px; }
  .r2-journey-copy p { font-size: 13.5px; line-height: 1.6; }
  .r2-journey-metrics > div { padding: 8px; }
  .r2-journey-metrics span { font-size: 12px; line-height: 1.4; }
  .r2-journey-actions { align-items: flex-start; flex-direction: column; }
  .r2-primary-cta { width: 100%; justify-content: center; }
  .r2-journey-map-section { margin-top: 16px; }
  .r2-map-caption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .r2-map-caption > span { text-align: left; }
  .r2-journey-map { height: 380px; border-radius: 13px; }
  .r2-journey-map .trail-ridge-desktop { display: none; }
  .r2-journey-map .trail-ridge-mobile { display: block; }
  .r2-map-node { left: var(--mx); top: var(--my); }
  .r2-map-copy { left: 48px; max-width: 92px; padding: 2px 5px; }
  .r2-map-node.label-left .r2-map-copy { right: 48px; }
  .r2-map-copy strong { font-size: 11px; }
  .r2-map-copy small { font-size: 9px; }
  .r2-map-note { border-radius: 8px; text-align: left; }
  .r2-map-legend { gap: 5px 9px; font-size: 9.5px; }
  .r2-formal-row > summary { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 9px 2px; }
  .r2-formal-row > summary::after { grid-column: auto; margin-left: auto; }
  .r2-formal-round { flex: 1 1 auto; }
  .r2-formal-row > summary strong { flex: 1 0 100%; }
  .r2-formal-row > summary .badge { margin-left: 0; }
  .r2-formal-body { padding-left: 3px; }
  .r2-task-bridge, .r2-prepare-bridge { grid-template-columns: 1fr; gap: 7px; }
  .r2-day-stepper { margin-left: 0; margin-top: 8px; width: 100%; }
  .r2-day-select { margin-left: auto; }
  .r2-day-select select { max-width: 145px; }
  .r2-candidate-detail { padding: 12px; }
  .r2-candidate-detail-head { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .r2-map-pin, .r2-formal-row > summary::after { transition: none; }
}

/* labels sit above/below the pin on desktop; side labels return only on 375 */
.r2-map-node .r2-map-copy { left: 50%; top: 48px; right: auto; bottom: auto; text-align: center; transform: translateX(-50%); max-width: 94px; }
.r2-map-node.label-left .r2-map-copy { left: 50%; right: auto; top: 48px; bottom: auto; text-align: center; transform: translateX(-50%); }
.r2-map-node.label-up .r2-map-copy { top: auto; bottom: 48px; }
@media (max-width: 680px) {
  .r2-map-node .r2-map-copy,
  .r2-map-node.label-left .r2-map-copy,
  .r2-map-node.label-up .r2-map-copy { left: 48px; right: auto; top: 50%; bottom: auto; text-align: left; transform: translateY(-50%); max-width: 92px; }
}
.r2-candidate-scope { font-size: 12.5px; }
.r2-candidate-summary small { font-size: 12px; }
@media (max-width: 680px) {
  .r2-map-copy strong { font-size: 12px; }
  .r2-map-copy small { font-size: 11.5px; }
  .r2-map-legend { font-size: 11.5px; }
}
.r2-progress-details { grid-column: 1 / 2; margin: -4px 0 0; color: #5f6e64; font-size: 12px; line-height: 1.55; }
.r2-progress-details summary { cursor: pointer; color: #315f4a; font-weight: 600; }
.r2-progress-details p { margin: 5px 0 0; max-width: 620px; }
@media (max-width: 680px) {
  .r2-progress-details { grid-column: auto; }
}

/* DS11-MOBILE: prevent nav text shrink; two full half-row mobile steps, top-to-bottom, readable labels. */
.topbar .main-nav > .nav-link {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .r2-journey-map { height: 380px; }
  .r2-map-node,
  .r2-map-node.label-up,
  .r2-map-node.label-down {
    left: auto;
    right: auto;
    top: var(--my);
    width: calc(50% - 8px);
    min-width: 140px;
    height: auto;
    min-height: 48px;
    padding: 2px 4px;
    transform: translateY(-50%);
    justify-content: flex-start;
    text-align: left;
  }
  .r2-map-node.mobile-left { left: 4px; right: auto; }
  .r2-map-node.mobile-right { left: auto; right: 4px; }
  .r2-map-pin {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .r2-map-copy,
  .r2-map-node.label-left .r2-map-copy,
  .r2-map-node.label-up .r2-map-copy {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0 0 0 7px;
    border: 0;
    background: none;
    box-shadow: none;
    text-align: left;
    transform: none;
    white-space: normal;
  }
  .r2-map-copy strong { font-size: 12px; line-height: 1.25; white-space: normal; }
  .r2-map-copy small { font-size: 12px; line-height: 1.25; white-space: normal; }
  .r2-map-legend { font-size: 12px; }
}
@media (max-width: 680px) {
  .r2-map-node.mobile-right { flex-direction: row-reverse; text-align: right; }
  .r2-map-node.mobile-right .r2-map-copy { padding-left: 0; padding-right: 7px; text-align: right; }
}
@media (max-width: 680px) {
  .r2-map-copy small { color: #405247; }
}

/* DS11-PUBLIC: prepare hierarchy and selected read-only state */
.r2-prepare-hero { padding: 16px 22px; margin-bottom: 16px; }
.r2-prepare-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.r2-prepare-hero h1 { max-width: none; margin: 6px 0 7px; font-size: 24px; line-height: 1.2; }
.r2-prepare-hero p { max-width: 900px; font-size: 13.5px; line-height: 1.55; }
.r2-prepare-hero .hero-meta { margin-top: 9px; }
.r2-prepare-hero .button-group { margin-top: 8px; }
.r2-prepare-candidates .r2-prepare-bridge { margin: 8px 0 10px; padding: 10px 14px; }
.r2-candidate-summary { min-height: 124px; padding: 11px 12px; }
.r2-selected-readonly { margin: 10px 0; padding: 10px 12px; border: 1px solid #d9c69c; border-radius: 9px; background: #fbf5e7; color: #5d4927; font-size: 12.5px; line-height: 1.55; }
.r2-selected-readonly strong { display: block; color: #6d531f; }
.r2-selected-readonly p { margin-top: 3px; }
@media (max-width: 680px) {
  .r2-prepare-hero { padding: 13px 14px; }
  .r2-prepare-hero h1 { font-size: 22px; }
}

.main-nav-hint { display: none; }
@media (max-width: 820px) {
  .main-nav-hint {
    display: block;
    order: 4;
    flex: 0 0 100%;
    padding-left: 4px;
    color: #405247;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }
}

/* DS11-CSSFINAL: narrow preview-badge hide, map legibility, 900px route component, desktop compact, compare disclosure. */
.r2-prepare-candidates [data-candidate-view-badge][hidden] { display: none !important; }
.r2-map-copy small, .r2-map-caption > span, .r2-map-note, .r2-map-legend { font-size: 12px; }
.r2-map-copy small { line-height: 1.35; }
.r2-map-caption > span { line-height: 1.4; }
.r2-map-note { line-height: 1.45; }
.r2-map-legend { line-height: 1.4; }
.r2-day-select, .r2-day-select > span { white-space: nowrap; flex-shrink: 0; }
.r2-day-select select { flex: 0 0 auto; }
.r2-compare-details { margin: 7px 0 0; padding: 7px 0 0; border-top: 1px dashed #d7e2dc; }
.r2-compare-details > summary { cursor: pointer; color: #315f4a; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.r2-compare-details .r2-compare-list { margin-top: 6px; }

/* Only the mountain component moves to the 900px breakpoint; page layout keeps its 680px breakpoint. */
@media (max-width: 900px) {
  .r2-journey-map { height: 380px; }
  .r2-journey-map .trail-ridge-desktop { display: none; }
  .r2-journey-map .trail-ridge-mobile { display: block; }
  .r2-map-progress-desktop { display: none; }
  .r2-map-progress-mobile { display: block; }
  .r2-map-node,
  .r2-map-node.label-up,
  .r2-map-node.label-down {
    left: auto;
    right: auto;
    top: var(--my);
    width: calc(50% - 8px);
    min-width: 140px;
    height: auto;
    min-height: 48px;
    padding: 2px 4px;
    transform: translateY(-50%);
    justify-content: flex-start;
    text-align: left;
  }
  .r2-map-node.mobile-left { left: 4px; right: auto; }
  .r2-map-node.mobile-right { left: auto; right: 4px; }
  .r2-map-pin {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .r2-map-copy,
  .r2-map-node.label-left .r2-map-copy,
  .r2-map-node.label-up .r2-map-copy {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 2px 6px 2px 7px;
    border: 1px solid rgba(222,219,208,.78);
    border-radius: 6px;
    background: rgba(246,245,239,.88);
    box-shadow: none;
    text-align: left;
    transform: none;
    white-space: normal;
  }
  .r2-map-node.mobile-right { flex-direction: row-reverse; text-align: right; }
  .r2-map-node.mobile-right .r2-map-copy { padding: 2px 7px 2px 6px; text-align: right; }
  .r2-map-copy strong { font-size: 12px; line-height: 1.3; white-space: normal; }
  .r2-map-copy small { font-size: 12px; line-height: 1.35; white-space: normal; }
  .r2-map-legend { font-size: 12px; }
}

@media (min-width: 901px) {
  .r2-journey-head { gap: 10px 24px; padding: 2px 0 12px; }
  .r2-journey-copy h1 { margin: 4px 0; }
  .r2-journey-copy p { margin: 0; }
  .r2-journey-map-section { margin-top: 10px; }
  .r2-journey-map { height: 280px; }
  .r2-map-note { margin: 4px auto 0; padding: 4px 10px; }
  .r2-map-legend { padding-top: 4px; }
  .r2-journey-focus { margin-top: 12px; }
}

/* DS12B1: one complete-figure formal target per round */
.r2-formal-main { margin: 16px 0 0; padding: 18px 20px; }
.r2-formal-main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.r2-formal-main-head h2 { margin: 5px 0 8px; font-size: 22px; line-height: 1.3; }
.r2-formal-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.r2-formal-paper { margin: 10px 0 0; color: #5d6d63; font-size: 12.5px; line-height: 1.5; }
.r2-formal-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.r2-formal-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.r2-formal-scope-block { min-width: 0; }
.r2-formal-scope { margin: 6px 0 0; color: #35473d; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.r2-formal-main .small { line-height: 1.6; }
.r2-formal-skills { margin-top: 13px; padding-top: 11px; border-top: 1px dashed #d7e2dc; }
.r2-formal-skills ol { margin: 6px 0 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-size: 12.5px; line-height: 1.5; }
.r2-formal-action { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f5f8f3; }
.r2-formal-action p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }
.r2-formal-action ol { margin: 5px 0 0; padding-left: 20px; display: grid; gap: 3px; font-size: 13px; line-height: 1.6; }
.r2-formal-checks { margin-top: 8px; border-top: 1px dashed #d7e2dc; padding-top: 7px; }
.r2-formal-checks summary { cursor: pointer; color: #315f4a; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.r2-formal-checks ul { margin: 6px 0 0; padding-left: 20px; font-size: 12.5px; line-height: 1.6; }
.r2-formal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e3e8e1; }
.r2-formal-foot p { margin: 0; }
.r2-formal-main.is-legacy { border-left: 3px solid #c6a665; }
.r2-base-details > summary { cursor: pointer; color: #315f4a; font-size: 13px; font-weight: 600; line-height: 1.5; }
.r2-curriculum-round h3 { font-size: 17px; line-height: 1.4; }
@media (max-width: 680px) {
  .r2-formal-main { padding: 14px; }
  .r2-formal-main-head { display: block; }
  .r2-formal-main-head h2 { font-size: 19px; }
  .r2-formal-links { justify-content: flex-start; margin-top: 10px; }
  .r2-formal-grid { grid-template-columns: 1fr; gap: 12px; }
  .r2-formal-skills ol { grid-template-columns: 1fr; }
  .r2-formal-foot { display: block; }
  .r2-formal-foot .button { margin-top: 10px; }
}
.r2-formal-target { margin: 8px 0 0; color: #35473d; font-size: 13.5px; line-height: 1.6; }
.r2-formal-scope-details { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d7e2dc; }
.r2-formal-scope-details > summary { cursor: pointer; color: #315f4a; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.r2-office-atlas { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #d7e2dc; }
.r2-office-atlas > summary { cursor: pointer; color: #315f4a; font-size: 13px; font-weight: 700; line-height: 1.5; }
.r2-office-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.r2-office-tool { border: 1px solid #dbe5df; border-radius: 10px; background: #fff; overflow: hidden; min-width: 0; }
.r2-office-tool-img { display: block; aspect-ratio: 16 / 9; background: #f5f8f6; overflow: hidden; }
.r2-office-tool-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.r2-office-tool-body { padding: 8px 9px 10px; }
.r2-office-tool-body strong { display: block; font-size: 12px; line-height: 1.45; color: #263d31; }
.r2-office-tool-body p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #3c5045; }
.r2-office-tool-body a { color: #315f4a; }
.r2-step-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.r2-step-docs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 12px; }
.r2-step-docs a { color: #315f4a; }
@media (max-width: 640px) {
  .r2-office-grid, .r2-step-tools { grid-template-columns: minmax(0, 1fr); }
  .r2-office-tool-body strong, .r2-office-tool-body p { font-size: 12px; }
}
.r2-formal-action, .r2-office-tool { scroll-margin-top: max(84px, calc(var(--app-topbar-height, 72px) + 12px)); }
.r2-office-grid { grid-template-columns: minmax(0, 1fr); }
.r2-office-tool-img { aspect-ratio: auto; height: 240px; position: relative; }
.r2-office-tool-img.is-frame-focus { height: auto; margin: 0 auto; }
.r2-office-tool-img.is-frame-focus img { position: absolute; height: auto; max-width: none; object-fit: unset; transform: none; }
.r2-office-tool.is-contain .r2-office-tool-img { background: #f5f8f6; }
.r2-office-tool.is-contain .r2-office-tool-img img { position: static; width: 100%; height: 100%; object-fit: contain; transform: none; }
.r2-office-tool.is-atlas-highlight { outline: 3px solid #d79735; outline-offset: 3px; }
.r2-office-full { display: inline-block; margin: 2px 8px 0 0; color: #315f4a; font-size: 12px; font-weight: 600; }
.r2-step-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.r2-atlas-badge { min-height: 44px; padding: 5px 9px; border: 1px solid #c9d9cf; border-radius: 7px; background: #f4f8f5; color: #28533f; font: inherit; font-size: 12px; line-height: 1.45; text-align: left; cursor: pointer; }
.r2-atlas-badge:hover, .r2-atlas-badge:focus-visible { background: #e8f2eb; border-color: #7aa38a; outline: 2px solid #315f4a; outline-offset: 1px; }
.r2-step-docs { align-items: baseline; }
@media (max-width: 640px) {
  .r2-office-grid { grid-template-columns: minmax(0, 1fr); }
  .r2-office-tool-img.is-contain { height: 220px; }
  .r2-office-tool-body strong, .r2-office-tool-body p, .r2-office-full, .r2-atlas-badge { font-size: 12px; }
}
.r2-focus-formal-actions { display: block; }
.r2-focus-formal-actions > span { display: block; margin-bottom: 4px; }
.r2-focus-formal-actions ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 12px; line-height: 1.5; }
.r2-map-copy strong, .r2-map-copy small { white-space: nowrap; word-break: keep-all; }
@media (max-width: 680px) {
  .r2-map-copy strong { font-size: 12px; line-height: 1.25; }
  .r2-map-copy small { font-size: 12px; line-height: 1.25; }
}

/* ===== r3 ten-day whole-Figure frontend (scoped to new student pages) ===== */
.r3-home, .r3-day { max-width: 1280px; margin: 0 auto; }
.r3-home-hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, .9fr); gap: 24px;
  padding: 28px 30px; border: 1px solid #d6ded2; border-radius: 16px;
  background: linear-gradient(120deg, #eef4ec 0%, #fbf8ef 62%, #f4eee2 100%);
  box-shadow: var(--shadow);
}
.r3-home-hero h1 { font-size: clamp(28px, 3.2vw, 38px); max-width: 760px; margin: 4px 0 8px; }
.r3-home-hero p { max-width: 720px; color: #4f6256; font-size: 16px; line-height: 1.7; }
.r3-resume-line { margin-top: 14px; padding: 10px 13px; border-left: 3px solid #b18c4f; background: rgba(255,253,246,.78); color: #334b3c; font-size: 14px; line-height: 1.6; }
.r3-home-stats { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: center; }
.r3-home-stats > div { padding: 11px 13px; border: 1px solid #d5dfd2; border-radius: 10px; background: rgba(255,253,246,.82); }
.r3-home-stats span { display: block; color: #68776c; font-size: 12px; }
.r3-home-stats strong { display: block; margin-top: 2px; color: #214e3b; font-family: var(--serif); font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.r3-home-stats small { display: block; margin-top: 2px; color: #758176; font-size: 11.5px; line-height: 1.4; }
.r3-home-mountain { margin-top: 20px; }
.r3-home-mountain .r2-journey-map { background: linear-gradient(180deg, #f7f8f2 0%, #edf2e9 72%, #e5ebdf 100%); }
.r3-today-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 24px; margin-top: 24px; padding: 24px 26px; border: 1px solid #d6ded2; border-radius: 16px; background: #fffdf8; box-shadow: var(--shadow); }
.r3-today-copy h2 { margin: 4px 0 8px; color: #214e3b; }
.r3-today-copy > p { color: #4f6256; font-size: 16px; line-height: 1.7; }
.r3-today-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.r3-today-media { min-width: 0; }
.r3-target-media { border: 1px solid #d8dfd3; border-radius: 12px; background: #f5f6f0; overflow: hidden; }
.r3-target-media img { display: block; width: 100%; height: auto; max-height: 430px; object-fit: contain; background: #fff; }
.r3-target-media-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 9px; color: #6b796e; font-size: 11px; line-height: 1.4; }
.r3-target-media-foot a { margin-left: auto; }
.r3-target-media-foot a + a { margin-left: 0; }
.r3-target-placeholder { min-height: 150px; display: grid; place-items: center; padding: 18px; border: 1px dashed #cbd8ca; border-radius: 12px; color: #6b796e; text-align: center; font-size: 13px; }
.r3-home .r2-formal-track { margin-top: 26px; }

.r3-day-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.r3-day-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; padding: 24px 26px; border: 1px solid #d6ded2; border-radius: 16px; background: linear-gradient(120deg, #eef4ec, #fbf8ef 70%, #f5efe3); box-shadow: var(--shadow); }
.r3-day-hero h1 { margin: 4px 0 8px; color: #1e3b2c; font-size: clamp(26px, 2.8vw, 36px); }
.r3-day-hero-copy > p { color: #4f6256; font-size: 16px; line-height: 1.7; }
.r3-day-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.r3-day-hero-media { min-width: 0; }
.r3-section-nav { display: flex; gap: 7px; overflow-x: auto; padding: 14px 0 8px; margin-top: 10px; scrollbar-width: thin; }
.r3-section-nav button { flex: 0 0 min(245px, 78vw); min-height: 60px; display: grid; grid-template-columns: 24px minmax(0,1fr); grid-template-rows: auto auto; gap: 1px 7px; text-align: left; border: 1px solid #d6ded2; border-radius: 10px; background: #fffdf8; padding: 8px 10px; color: #334b3c; }
.r3-section-nav button > span { grid-row: 1 / 3; align-self: center; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #e4eee7; color: #315f4a; font-size: 11px; font-weight: 700; }
.r3-section-nav button strong { font-family: var(--serif); font-size: 13.5px; line-height: 1.35; }
.r3-section-nav button small { color: #758176; font-size: 11px; }
.r3-section-nav button.is-active { border-color: #315f4a; box-shadow: inset 0 0 0 1px #315f4a; background: #f5faf4; }
.r3-section-list { margin-top: 8px; }
.r3-section { border: 1px solid #d7ded3; border-radius: 13px; background: #fffdf8; margin-top: 11px; box-shadow: 0 1px 2px rgba(38,42,35,.04); }
.r3-section > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 18px; min-height: 56px; cursor: pointer; list-style: none; }
.r3-section > summary::-webkit-details-marker { display: none; }
.r3-section > summary > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.r3-section-kicker { color: #6f8b76; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.r3-section > summary strong { color: #214e3b; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.r3-section > summary small { color: #68776c; font-size: 12.5px; line-height: 1.5; }
.r3-section > summary .badge { justify-self: end; }
.r3-section-body { border-top: 1px solid #e2e7dd; padding: 0 18px 18px; }
.r3-unit { padding: 18px 0 22px; border-bottom: 1px solid #e4e9df; }
.r3-unit:last-child { border-bottom: 0; padding-bottom: 5px; }
.r3-unit-head { max-width: 980px; }
.r3-unit-kicker { display: flex; flex-wrap: wrap; gap: 8px; color: #758176; font-size: 11.5px; }
.r3-unit-kicker span:first-child { color: #315f4a; font-family: var(--mono); font-weight: 700; }
.r3-unit-head h3 { margin: 4px 0 5px; color: #1f3c2d; font-size: 21px; }
.r3-unit-goal { color: #43584b; font-size: 15px; line-height: 1.7; }
.r3-unit-entry { margin-top: 7px; padding: 9px 11px; border-left: 3px solid #c3a56a; background: #fbf8ef; color: #5d6b60; font-size: 13.5px; line-height: 1.65; }
.r3-phase-list { display: grid; gap: 15px; margin-top: 15px; }
.r3-phase { border: 1px solid #dde4d9; border-radius: 11px; padding: 15px 16px 14px; background: #fffefa; }
.r3-phase-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 7px; }
.r3-phase-no { color: #a08550; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.r3-phase-head h4 { margin: 0; color: #294a38; font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.r3-primary-copy { color: #263a2d; font-size: 16px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.r3-scene { margin-top: 14px; border: 1px solid #cfdacb; border-radius: 11px; background: #f7faf5; overflow: hidden; }
.r3-scene-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px 7px; }
.r3-scene-head strong { display: block; margin-top: 2px; color: #315f4a; font-family: var(--serif); font-size: 14px; }
.r3-role-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px 8px; scrollbar-width: thin; }
.r3-role-tabs button { flex: 0 0 auto; min-height: 44px; padding: 7px 11px; border: 1px solid #cdd9c9; border-radius: 8px; background: #fffdf8; color: #536559; font-size: 12px; font-weight: 600; white-space: nowrap; }
.r3-role-tabs button.is-active { background: #315f4a; border-color: #315f4a; color: #fff; }
.r3-role-tabs button:focus-visible { outline: 3px solid #1f5d44; outline-offset: 2px; }
.r3-scene-panel { padding: 11px 13px 13px; border-top: 1px solid #dfe7da; background: #fbfdf9; }
.r3-scene-panel[hidden] { display: none !important; }
.r3-state-stamp { color: #7b8a7e; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.r3-scene-text { margin-top: 5px; color: #3e5646; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.r3-scene-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.r3-details { margin-top: 11px; border-top: 1px dashed #d3ddcf; }
.r3-details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #35644c; font-size: 13px; font-weight: 650; list-style: none; }
.r3-details > summary::-webkit-details-marker { display: none; }
.r3-details > summary::before { content: "＋"; margin-right: 7px; color: #8a9b8e; font-size: 15px; }
.r3-details[open] > summary::before { content: "－"; }
.r3-details-body { padding: 0 0 5px; }
.r3-inline-details { color: #44594b; font-size: 14px; line-height: 1.7; }
.r3-detail-block { margin: 10px 0 14px; }
.r3-detail-block h4 { margin: 0 0 6px; color: #315f4a; font-family: var(--serif); font-size: 15px; }
.r3-detail-block ol, .r3-detail-block ul { margin: 0; padding-left: 1.25rem; color: #475d4f; font-size: 13.5px; line-height: 1.7; }
.r3-detail-block li + li { margin-top: 4px; }
.r3-detail-block .pre-wrap { color: #475d4f; font-size: 13.5px; line-height: 1.7; }
.r3-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d8e1d4; border-radius: 8px; background: #fff; }
.r3-table-scroll:focus-visible { outline: 3px solid #1f5d44; outline-offset: 2px; }
.r3-table-scroll table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 12.5px; line-height: 1.5; }
.r3-table-scroll th, .r3-table-scroll td { border-bottom: 1px solid #e4e9df; border-right: 1px solid #e4e9df; padding: 6px 9px; text-align: left; vertical-align: top; }
.r3-table-scroll th { background: #eef4ec; color: #315f4a; white-space: nowrap; }
.r3-success { margin-top: 12px; padding: 11px 13px; border: 1px solid #d5e4d8; border-radius: 9px; background: #f3f9f2; color: #405848; font-size: 13.5px; line-height: 1.65; }
.r3-success strong { color: #315f4a; }
.r3-success p { margin-top: 4px; white-space: pre-wrap; }
.r3-success ul { margin-top: 4px; }
.r3-wrong { margin-top: 11px; border: 1px solid #e6d8bb; border-radius: 9px; background: #fdf9ef; }
.r3-wrong > summary { min-height: 44px; display: flex; align-items: center; padding: 8px 12px; cursor: pointer; color: #745a2a; font-size: 13px; font-weight: 650; list-style: none; }
.r3-wrong > summary::-webkit-details-marker { display: none; }
.r3-wrong > summary::before { content: "⚠"; margin-right: 7px; }
.r3-wrong > div { padding: 0 12px 12px; color: #665737; font-size: 13.5px; line-height: 1.7; }
.r3-wrong > div p { margin-top: 5px; }
.r3-wrong > div ol { margin-top: 6px; }
.r3-next { margin-top: 11px; color: #657368; font-size: 13px; line-height: 1.65; }
.r3-quiz-wrap { margin-top: 22px; }
.r3-day-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #dce2d7; }

@media (max-width: 900px) {
  .r3-home-hero, .r3-day-hero, .r3-today-card { grid-template-columns: 1fr; }
  .r3-home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r3-home-stats > div { min-width: 0; }
  .r3-home-stats strong { font-size: 18px; }
}
@media (max-width: 680px) {
  .r3-home, .r3-day { width: 100%; }
  .r3-home-hero, .r3-day-hero, .r3-today-card { padding: 17px 15px; border-radius: 13px; }
  .r3-home-hero h1 { font-size: 28px; }
  .r3-home-hero p, .r3-today-copy > p, .r3-day-hero-copy > p { font-size: 15px; line-height: 1.7; }
  .r3-home-stats { grid-template-columns: 1fr; }
  .r3-home-stats > div { padding: 8px 9px; }
  .r3-home-stats strong { font-size: 19px; }
  .r3-day-top { align-items: flex-start; }
  .r3-section-nav { margin-top: 5px; padding-top: 8px; }
  .r3-section-nav button { flex-basis: min(230px, 84vw); }
  .r3-section > summary { padding: 12px 13px; }
  .r3-section > summary strong { font-size: 17px; }
  .r3-section-body { padding: 0 12px 12px; }
  .r3-phase { padding: 12px 12px 11px; }
  .r3-unit-head h3 { font-size: 19px; }
  .r3-phase-head h4 { font-size: 16px; }
  .r3-primary-copy { font-size: 16px; line-height: 1.75; }
  .r3-scene-head { display: block; }
  .r3-scene-head > .tiny { display: block; margin-top: 3px; }
  .r3-role-tabs { padding-left: 8px; padding-right: 8px; }
  .r3-role-tabs button { min-height: 44px; padding: 6px 9px; font-size: 11.5px; }
  .r3-scene-panel { padding: 10px 11px 12px; }
  .r3-scene-text { font-size: 14px; }
  .r3-target-media img { max-height: 300px; }
  .r3-details > summary { font-size: 12.5px; }
  .r3-table-scroll table { font-size: 12px; }
}

/* ===== phase02c: focused DEMO, mobile containment, finite scene, copy cleanup ===== */
.mobile-nav { display: none; }
.r3-home-hero h1 { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.24; text-wrap: balance; }
.r3-today-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.r3-today-copy h2 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; text-wrap: balance; }
.r3-today-media .r3-target-media img { max-height: 340px; }
.r3-day-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.r3-day-hero h1 { font-size: clamp(23px, 2.2vw, 33px); text-wrap: balance; }
.r3-day-formal { margin-top: 22px; }
.r3-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding-top: 13px; }
.r3-demo-card { border: 1px solid #d8e1d3; border-radius: 11px; background: #fffefa; padding: 13px 14px 12px; min-width: 0; }
.r3-demo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r3-demo-no { color: #315f4a; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.r3-demo-card h4 { margin: 5px 0 5px; color: #1f3c2d; font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.r3-demo-card > p { color: #526458; font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r3-demo-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0; color: #758176; font-size: 11.5px; }
.r3-demo-card .button { min-height: 44px; }
.r3-roadmap-title { margin: 22px 0 5px; color: #214e3b; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.r3-demo-page { max-width: 1280px; margin: 0 auto; }
.r3-demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.r3-demo-nav { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: #657368; font-size: 12px; }
.r3-demo-hero { border: 1px solid #d6ded2; border-radius: 16px; padding: 18px; background: #fffdf8; box-shadow: var(--shadow); }
.r3-demo-targets { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: center; }
.r3-demo-local { min-width: 0; }
.r3-demo-local h1 { margin: 4px 0 7px; color: #214e3b; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.3; text-wrap: balance; }
.r3-demo-local p { color: #465b4d; font-size: 15.5px; line-height: 1.7; }
.r3-demo-stage { margin-top: 18px; border: 1px solid #d6ded2; border-radius: 16px; background: #fffdf8; padding: 18px; box-shadow: var(--shadow); }
.r3-demo-phase-head h2 { margin: 4px 0 9px; color: #214e3b; font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.35; }
.r3-phase-stepper { display: flex; gap: 5px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.r3-phase-stepper a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid #cdd9c9; border-radius: 8px; background: #f7faf5; color: #536559; font-size: 12px; font-weight: 600; text-decoration: none; }
.r3-phase-stepper a.is-active { background: #315f4a; border-color: #315f4a; color: #fff; }
.r3-demo-phase-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.r3-scene-stage { margin: 10px 0 8px; border: 1px solid #d3e0d2; border-radius: 10px; background: #f7faf5; overflow: hidden; }
.r3-scene-svg { display: block; width: 100%; height: auto; max-height: 420px; background: #fffefa; }
.r3-scene-caption { margin-top: 5px; color: #758176; font-size: 11.5px; line-height: 1.5; }
.r3-mountain-marker { display: none; }
.r3-target-media-foot { font-size: 10.5px; }

@media (max-width: 820px) {
  .main-nav { display: none !important; }
  .mobile-nav { display: flex; order: 4; flex: 0 0 100%; gap: 5px; overflow: hidden; padding-top: 4px; }
  .mobile-nav-link { flex: 1 1 0; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 5px; border: 1px solid #cdd9c9; border-radius: 9px; background: #fffdf8; color: #405247; font-size: 11.5px; font-weight: 650; text-align: center; text-decoration: none !important; line-height: 1.25; }
  .mobile-nav-link.active { background: #315f4a; border-color: #315f4a; color: #fff; }
  html, body, #app, .shell, .page, .r3-home, .r3-day, .r3-demo-page { max-width: 100%; overflow-x: hidden; }
  .r3-section, .r3-unit, .r3-phase, .r3-scene, .r3-details, .r3-detail-block, .r3-demo-stage, .r3-demo-hero, .r3-today-card { max-width: 100%; min-width: 0; box-sizing: border-box; }
  .r3-role-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; overflow: visible; }
  .r3-role-tabs button { min-width: 0; width: 100%; white-space: normal; padding: 6px 3px; font-size: 11px; line-height: 1.25; }
  .r3-scene-stage { max-width: 100%; }
  .r3-table-scroll { max-width: 100%; width: 100%; }
  .r3-table-scroll table { min-width: 640px; width: max-content; }
  .r3-demo-grid { grid-template-columns: 1fr; }
  .r3-demo-targets, .r3-demo-hero, .r3-today-card, .r3-day-hero { grid-template-columns: 1fr; }
  .r3-today-media, .r3-day-hero-media, .r3-demo-locator { order: -1; min-width: 0; }
  .r3-demo-top { align-items: flex-start; }
  .r3-demo-nav { width: 100%; justify-content: space-between; }
  .r3-phase-stepper { flex-wrap: wrap; overflow: visible; }
  .r3-phase-stepper a { flex: 1 1 calc(33.333% - 4px); justify-content: center; padding-left: 3px; padding-right: 3px; }
  .r3-home-hero h1 { white-space: normal; font-size: 26px; }
  .r3-demo-card > p { -webkit-line-clamp: 3; }
  .r3-day-meta { align-items: flex-start; }
  .r3-day-meta .badge { white-space: normal; }
  .r3-mountain-marker { display: flex; justify-content: flex-end; color: #6d7b70; font-size: 11px; line-height: 1.3; padding: 1px 8px; }
  .r3-mountain-marker.is-top { justify-content: flex-start; }
  .r3-home-mountain .r2-journey-map { height: 420px; }
  .r3-target-media-foot { font-size: 10px; }
  .r3-target-media-foot a { margin-left: 0; }
}
@media (min-width: 821px) {
  .r3-home-hero h1 { white-space: nowrap; }
  .r3-today-copy h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .r3-home-mountain .r2-journey-map { height: 340px; }
}
@media (max-width: 680px) {
  .r2-map-node.mobile-right .r2-map-copy,
  .r2-map-node.mobile-right.label-left .r2-map-copy,
  .r2-map-node.mobile-right.label-up .r2-map-copy { left: auto; right: 48px; text-align: right; }
}
@media (min-width: 821px) {
  .r3-home-hero h1 { font-size: clamp(22px, 2vw, 27px); white-space: nowrap; }
  .r3-today-copy h2 { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; }
}

/* ===== r3 DEMO-only presentation alignment (appended; every selector is scoped to .r3-demo-page) ===== */
.r3-demo-page { color: #1c241e; scroll-margin-top: calc(var(--app-topbar-height, 74px) + 14px); }
.r3-demo-page .r3-demo-hero,
.r3-demo-page .r3-demo-stage,
.r3-demo-page .r3-scene,
.r3-demo-page .r3-details { scroll-margin-top: calc(var(--app-topbar-height, 74px) + 14px); }
.r3-demo-page .r3-demo-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: start; }
.r3-demo-page .r3-demo-hero-copy { min-width: 0; }
.r3-demo-page .r3-demo-hero-copy h1 { margin: 4px 0 8px; color: #214e3b; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.3; text-wrap: balance; }
.r3-demo-page .r3-demo-hero-copy > p { margin: 0; color: #465b4d; font-size: 15px; line-height: 1.7; }
.r3-demo-page .r3-demo-hero-thumbs { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; min-width: 0; }
.r3-demo-page .r3-demo-thumb { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; padding: 8px; border: 1px solid #d6ded2; border-radius: 10px; background: #fffdf8; }
.r3-demo-page .r3-demo-thumb figcaption { color: #315f4a; font-size: 13px; font-weight: 700; line-height: 1.35; }
.r3-demo-page .r3-demo-locator-frame { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #e1e8df; border-radius: 8px; background: #edf1ec; }
.r3-demo-page .r3-demo-locator-frame img { display: block; width: 100%; height: 100%; object-fit: fill; }
.r3-demo-page .r3-demo-locate-box { position: absolute; border: 2px solid #c85a12; border-radius: 2px; background: rgba(200, 90, 18, .08); box-shadow: 0 0 0 1px rgba(255, 248, 241, .7) inset; pointer-events: none; }
.r3-demo-page .r3-demo-local-frame { display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #e1e8df; border-radius: 8px; background: #f7faf5; }
.r3-demo-page .r3-demo-local-frame .r3-scene-svg { display: block; width: 100%; height: auto; max-height: 100%; }
.r3-demo-page .r3-demo-thumb-local > p { margin: 0; color: #526458; font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r3-demo-page .r3-demo-thumb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: #6d7b70; font-size: 11.5px; line-height: 1.4; }
.r3-demo-page .r3-demo-thumb-foot a { color: #315f4a; font-weight: 650; text-decoration: underline; }
.r3-demo-page .r3-command-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; margin: 12px 12px 10px; padding: 10px 14px; border: 1px solid #d97724; border-radius: 8px; background: #fff8f1; }
.r3-demo-page .r3-command-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: #9a3b00; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.r3-demo-page .r3-command-main { min-width: 0; }
.r3-demo-page .r3-command-path { color: #1c241e; font-size: 15px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.r3-demo-page .r3-command-active { margin-left: 6px; color: #9a3b00; }
.r3-demo-page .r3-command-steps { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; color: #5c3a1c; font-size: 13.5px; line-height: 1.55; }
.r3-demo-page .r3-command-step { min-width: 0; }
.r3-demo-page .r3-command-help { align-self: center; max-width: 300px; padding: 6px 10px; border: 1px solid #e3c9a5; border-radius: 999px; background: #fffdf8; color: #74501f; font-size: 13px; line-height: 1.45; }
.r3-demo-page .r3-role-tabs { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; padding: 0 12px 10px; }
.r3-demo-page .r3-role-tabs button { flex: 0 0 auto; min-height: 36px; padding: 6px 10px; border: 1px solid #cdd9c9; border-radius: 999px; background: #fffdf8; color: #405247; font-size: 13px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.r3-demo-page .r3-role-tabs button[data-r3-role="compare"] { border-color: #b7cbb9; background: #e3efe7; color: #1e4631; }
.r3-demo-page .r3-role-tabs button.is-active { border-color: #315f4a; background: #315f4a; color: #fff; }
.r3-demo-page .r3-scene-panel.r3-compare-panel { padding: 0 12px 4px; border-top: 0; background: transparent; }
.r3-demo-page .r3-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r3-demo-page .r3-compare-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #c8d6cc; border-radius: 12px; background: #fffefa; }
.r3-demo-page .r3-compare-card.is-current { border: 2px solid #1e4631; box-shadow: 0 6px 18px rgba(30, 70, 49, .08); }
.r3-demo-page .r3-compare-head { padding: 9px 11px 8px; background: #e3efe7; }
.r3-demo-page .r3-compare-card.is-current .r3-compare-head { background: #9a3b00; }
.r3-demo-page .r3-compare-kicker { display: block; color: #1e4631; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.r3-demo-page .r3-compare-card.is-current .r3-compare-kicker { color: #fff; }
.r3-demo-page .r3-compare-visual { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 150px; padding: 6px; overflow: hidden; border-bottom: 1px solid #e1e8df; background: #f7faf5; }
.r3-demo-page .r3-compare-visual .r3-scene-svg { display: block; width: 100%; height: auto; max-height: 210px; }
.r3-demo-page .r3-compare-caption { display: -webkit-box; margin: 0; padding: 8px 11px 6px; overflow: hidden; color: #3e5646; font-size: 13.5px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.r3-demo-page .r3-compare-open { align-self: flex-start; min-height: 36px; margin: 0 11px 10px; padding: 5px 10px; border: 1px solid #c8d6cc; border-radius: 8px; background: #fffdf8; color: #315f4a; font-size: 13px; font-weight: 650; cursor: pointer; }
.r3-demo-page .r3-compare-open:hover { background: #e3efe7; }
.r3-demo-page .r3-compare-mobile-note { display: none; margin: 8px 0 0; color: #6d7b70; font-size: 13px; line-height: 1.5; }
.r3-demo-page .r3-readables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 12px 0; }
.r3-demo-page .r3-readable-card { min-width: 0; padding: 10px 12px; border: 1px solid #d6ded2; border-radius: 10px; background: #fffdf8; }
.r3-demo-page .r3-readable-card h4 { margin: 0 0 6px; color: #1e4631; font-size: 14.5px; line-height: 1.4; }
.r3-demo-page .r3-readable-note { margin: 6px 0 0; color: #6b5a3e; font-size: 13px; line-height: 1.55; }
.r3-demo-page .r3-pane-list,
.r3-demo-page .r3-menu-list,
.r3-demo-page .r3-ui-list { display: grid; gap: 2px; max-height: 270px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.r3-demo-page .r3-pane-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px calc(6px + var(--r3-level, 0) * 14px); border-radius: 6px; color: #30483a; font-size: 13.5px; line-height: 1.4; }
.r3-demo-page .r3-pane-row.is-selected { background: #e3efe7; color: #174a80; font-weight: 650; }
.r3-demo-page .r3-pane-row.is-group .r3-pane-name { color: #1e4631; font-weight: 700; }
.r3-demo-page .r3-pane-mark { flex: 0 0 auto; color: #8a9b8e; font-size: 11px; }
.r3-demo-page .r3-pane-row.is-selected .r3-pane-mark { color: #1b6ec2; }
.r3-demo-page .r3-pane-name { min-width: 0; overflow-wrap: anywhere; }
.r3-demo-page .r3-pane-count { margin-left: auto; flex: 0 0 auto; color: #526458; font-size: 12.5px; }
.r3-demo-page .r3-pane-editing { flex: 0 0 auto; padding: 1px 5px; border-radius: 999px; background: #e8f0fb; color: #174a80; font-size: 11.5px; }
.r3-demo-page .r3-menu-list li { display: flex; gap: 6px; padding: 3px 6px; border-radius: 5px; color: #30483a; font-size: 13.5px; line-height: 1.45; }
.r3-demo-page .r3-menu-list li.is-active { background: #fff0da; color: #8a3e06; font-weight: 700; }
.r3-demo-page .r3-menu-checks { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; color: #526458; font-size: 13px; }
.r3-demo-page .r3-menu-checks .is-on { color: #246b4b; font-weight: 700; }
.r3-demo-page .r3-readable-subhead { color: #526458; font-weight: 700; }
.r3-demo-page .r3-readable-steps { margin: 6px 0 0 18px; padding: 0; color: #5c3a1c; font-size: 13px; line-height: 1.55; }
.r3-demo-page .r3-pill { display: inline-block; margin-bottom: 4px; padding: 1px 7px; border-radius: 999px; background: #e5f0e1; color: #246b4b; font-size: 12.5px; font-weight: 700; }
.r3-demo-page .r3-field-list { display: grid; gap: 3px; margin: 0; }
.r3-demo-page .r3-field-list > div { display: grid; grid-template-columns: minmax(76px, auto) minmax(0, 1fr); gap: 8px; padding: 4px 0; border-bottom: 1px dashed #e1e8df; }
.r3-demo-page .r3-field-list dt { color: #526458; font-size: 13px; }
.r3-demo-page .r3-field-list dd { margin: 0; color: #1f3b2a; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.r3-demo-page .r3-dialog-action { display: inline-block; margin-top: 7px; padding: 4px 12px; border-radius: 6px; background: #1e5b43; color: #fff; font-size: 13.5px; font-weight: 700; }
.r3-demo-page .r3-color-swatch { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #526458; font-size: 13px; }
.r3-demo-page .r3-color-swatch span { width: 26px; height: 18px; border: 1px solid #6e8974; border-radius: 3px; }
.r3-demo-page .r3-file-name { color: #1f3a4d; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.r3-demo-page .r3-file-meta { margin-top: 2px; color: #526458; font-size: 13px; line-height: 1.5; }
.r3-demo-page .r3-file-paired { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 6px; color: #526458; font-size: 13px; }
.r3-demo-page .r3-file-paired code { padding: 1px 5px; border-radius: 4px; background: #eef3ee; font-size: 12.5px; overflow-wrap: anywhere; }
.r3-demo-page .r3-ui-list li { display: grid; grid-template-columns: 10px minmax(0, 120px) minmax(0, 1fr); gap: 6px; align-items: start; padding: 4px 2px; border-bottom: 1px dashed #e1e8df; font-size: 13.5px; line-height: 1.45; }
.r3-demo-page .r3-ui-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #b9c6bd; }
.r3-demo-page .r3-ui-list li.is-ok .r3-ui-dot { background: #246b4b; }
.r3-demo-page .r3-ui-list li.is-bad .r3-ui-dot { background: #b83227; }
.r3-demo-page .r3-ui-list li.is-action .r3-ui-dot { background: #d97724; }
.r3-demo-page .r3-ui-label { color: #526458; }
.r3-demo-page .r3-ui-value { color: #1f3b2a; font-weight: 600; }
.r3-demo-page .r3-focus-label { margin: 0; color: #3e5646; font-size: 13.5px; line-height: 1.55; }
.r3-demo-page .r3-focus-facts { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.r3-demo-page .r3-focus-facts span { padding: 2px 7px; border: 1px solid #d8b98b; border-radius: 999px; background: #fff8ec; color: #74501f; font-size: 13px; line-height: 1.4; }
.r3-demo-page .r3-focus-facts .r3-check { border-color: #9ac0a6; background: #eaf5ec; color: #1e5b43; font-weight: 700; }
.r3-demo-page .r3-focus-closeup { margin-top: 8px; overflow: hidden; border: 1px solid #d6ded2; border-radius: 8px; background: #f7faf5; }
.r3-demo-page .r3-focus-closeup .r3-scene-svg { display: block; width: 100%; height: auto; max-height: 220px; }
.r3-demo-page .r3-visual-mini { display: flex; flex-direction: column; gap: 6px; }
.r3-demo-page .r3-visual-mini .r3-readable-card { padding: 0; border: 0; background: transparent; }
.r3-demo-page .r3-visual-mini h4 { font-size: 13.5px; }
.r3-demo-page .r3-visual-mini .r3-pane-list,
.r3-demo-page .r3-visual-mini .r3-menu-list { max-height: 180px; }
.r3-demo-page .r3-mini-canvas { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border: 1px dashed #b9c6bd; border-radius: 8px; background: #fff; }
.r3-demo-page .r3-mini-canvas-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #6d7b70; font-size: 13px; }
.r3-demo-page .r3-mini-canvas-inner strong { color: #315f4a; font-size: 14.5px; }
.r3-demo-page .r3-mini-label { color: #315f4a; font-size: 13.5px; font-weight: 700; }
.r3-demo-page .r3-mini-note { margin: 6px 0 0; color: #6b5a3e; font-size: 13px; line-height: 1.5; }
.r3-demo-page .r3-visual-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 10px; border: 1px dashed #cfdacb; border-radius: 8px; background: #f7faf5; color: #6d7b70; font-size: 13px; line-height: 1.5; text-align: center; }
.r3-demo-page .r3-scene-panel[hidden] { display: none !important; }
.r3-demo-page .r3-scene-panel { padding: 11px 13px 13px; border-top: 1px solid #dfe7da; background: #fbfdf9; }
.r3-demo-page .r3-state-stamp { display: inline-block; margin-bottom: 7px; padding: 2px 8px; border: 1px solid #d8b98b; border-radius: 999px; background: #fff8ec; color: #8a3e06; font-size: 13px; font-weight: 650; line-height: 1.4; }
.r3-demo-page .r3-scene-stage { margin: 8px 0; overflow: hidden; border: 1px solid #d3e0d2; border-radius: 10px; background: #f7faf5; }
.r3-demo-page .r3-scene-stage .r3-scene-svg { display: block; width: 100%; height: auto; max-height: 520px; }
.r3-demo-page .r3-scene-text { margin: 6px 0 0; color: #3e5646; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.r3-demo-page .r3-scene-text-action { color: #526458; font-size: 13.5px; }
.r3-demo-page .r3-repaired { margin-top: 16px; padding-top: 12px; border-top: 2px dashed #b18c4f; }
.r3-demo-page .r3-wrong-readable { margin-top: 10px; }
.r3-demo-page .r3-scene-caption { margin: 6px 0 0; color: #758176; font-size: 12.5px; line-height: 1.5; }
.r3-demo-page .r3-scene-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 13px; }
.r3-demo-page .r3-primary-copy { margin: 11px 0 12px; color: #1c241e; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.r3-demo-page .r3-phase-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 2px 0 0; overflow: visible; }
.r3-demo-page .r3-phase-stepper a { display: flex; align-items: center; justify-content: flex-start; gap: 4px; text-align: left; min-height: 46px; padding: 6px 8px; border: 1px solid #cdd9c9; border-radius: 8px; background: #f7faf5; color: #405247; font-size: 13px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.r3-demo-page .r3-phase-stepper a.is-active { border-color: #315f4a; background: #315f4a; color: #fff; }
.r3-demo-page .r3-phase-symbol { flex: 0 0 auto; font-size: 12px; }
.r3-demo-page .r3-phase-ord { flex: 0 0 auto; font-weight: 700; }
.r3-demo-page .r3-phase-title { min-width: 0; overflow-wrap: anywhere; }
.r3-demo-page .r3-phase-current { margin-left: auto; flex: 0 0 auto; padding: 1px 5px; border-radius: 999px; background: #fff3e5; color: #8a3e06; font-size: 11px; font-weight: 700; }
.r3-demo-page .r3-details { margin-top: 14px; border-top: 1px dashed #d3ddcf; }
.r3-demo-page .r3-details > summary { display: flex; align-items: center; min-height: 44px; color: #35644c; font-size: 13.5px; font-weight: 650; list-style: none; cursor: pointer; }
.r3-demo-page .r3-details > summary::-webkit-details-marker { display: none; }
.r3-demo-page .r3-details > summary::before { content: "▾"; margin-right: 7px; color: #8a9b8e; font-size: 14px; }
.r3-demo-page .r3-details[open] > summary::before { content: "▴"; }
.r3-demo-page .r3-details-body { padding: 0 0 5px; }
.r3-demo-page .r3-inline-details { color: #3e5646; font-size: 13.5px; line-height: 1.7; }
.r3-demo-page .r3-detail-block { margin-top: 9px; }
.r3-demo-page .r3-detail-block h4 { margin: 0 0 5px; color: #315f4a; font-size: 13.5px; }
.r3-demo-page .r3-detail-block li { font-size: 13.5px; line-height: 1.65; }
.r3-demo-page .r3-table-scroll { max-width: 100%; overflow: auto; }
.r3-demo-page .r3-table-scroll table { min-width: 560px; font-size: 13px; }
.r3-demo-page .r3-wrong { margin-top: 14px; border: 1px solid #e6d8bb; border-radius: 9px; background: #fdf9ef; }
.r3-demo-page .r3-wrong > summary { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #745a2a; font-size: 13.5px; font-weight: 650; list-style: none; cursor: pointer; }
.r3-demo-page .r3-wrong > summary::-webkit-details-marker { display: none; }
.r3-demo-page .r3-wrong > summary::before { content: "⚠"; margin-right: 7px; }
.r3-demo-page .r3-wrong > summary::after { content: "▾"; margin-left: auto; color: #a8874f; }
.r3-demo-page .r3-wrong[open] > summary::after { content: "▴"; }
.r3-demo-page .r3-wrong > div { padding: 0 12px 12px; color: #665737; font-size: 13.5px; line-height: 1.7; }
.r3-demo-page .r3-wrong > div p { margin-top: 5px; }
.r3-demo-page .r3-wrong > div ol { margin-top: 6px; }
.r3-demo-page .r3-next { margin: 10px 0 0; color: #526458; font-size: 13.5px; line-height: 1.6; }
.r3-demo-page .r3-demo-phase-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.r3-demo-page .r3-demo-top { align-items: flex-start; }
.r3-demo-page .r3-demo-nav { font-size: 13px; }

@media (max-width: 1100px) {
  .r3-demo-page .r3-demo-hero { grid-template-columns: minmax(0, 1fr); }
  .r3-demo-page .r3-demo-hero-thumbs { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 820px) {
  .r3-demo-page .r3-demo-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .r3-demo-page .r3-demo-hero-copy h1 { font-size: 24px; }
  .r3-demo-page .r3-demo-hero-copy > p { font-size: 14.5px; }
  .r3-demo-page .r3-demo-hero-thumbs { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
  .r3-demo-page .r3-demo-thumb { padding: 7px; }
  .r3-demo-page .r3-demo-thumb figcaption { font-size: 12.5px; }
  .r3-demo-page .r3-demo-thumb-local > p { font-size: 12px; }
  .r3-demo-page .r3-command-strip { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 10px 12px; }
  .r3-demo-page .r3-command-badge { justify-self: start; }
  .r3-demo-page .r3-command-path { font-size: 14px; }
  .r3-demo-page .r3-command-steps { flex-direction: column; gap: 2px; font-size: 13.5px; }
  .r3-demo-page .r3-command-help { max-width: none; width: 100%; border-radius: 8px; font-size: 13px; }
  .r3-demo-page .r3-role-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .r3-demo-page .r3-role-tabs button { width: 100%; min-height: 40px; padding: 6px 4px; white-space: normal; font-size: 13px; }
  .r3-demo-page .r3-compare-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .r3-demo-page .r3-compare-card[data-r3-compare-card="action"] { display: none; }
  .r3-demo-page .r3-compare-mobile-note { display: block; }
  .r3-demo-page .r3-compare-visual { min-height: 132px; }
  .r3-demo-page .r3-compare-visual .r3-scene-svg { max-height: 190px; }
  .r3-demo-page .r3-compare-caption { font-size: 13.5px; }
  .r3-demo-page .r3-readables { grid-template-columns: minmax(0, 1fr); }
  .r3-demo-page .r3-primary-copy { font-size: 14.5px; }
  .r3-demo-page .r3-phase-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .r3-demo-page .r3-phase-stepper a { min-height: 48px; font-size: 13px; }
  .r3-demo-page .r3-scene-head { display: block; }
  .r3-demo-page .r3-scene-head > .tiny { display: block; margin-top: 3px; }
  .r3-demo-page .r3-scene-panel { padding: 10px 11px 12px; }
  .r3-demo-page .r3-scene-stage .r3-scene-svg { max-height: 420px; }
  .r3-demo-page .r3-scene-text { font-size: 14px; }
  .r3-demo-page .r3-details > summary { font-size: 13px; }
  .r3-demo-page .r3-demo-nav { width: 100%; justify-content: space-between; }
  .r3-demo-page .r3-demo-top { align-items: flex-start; }
}
@media (max-width: 430px) {
  .r3-demo-page .r3-demo-thumb-foot { font-size: 11px; }
  .r3-demo-page .r3-phase-current { display: none; }
  .r3-demo-page .r3-phase-stepper a { padding: 6px; }
}
.r3-demo-page .r3-wrong-badge { display: inline-block; margin: 0 0 7px; padding: 3px 9px; border-radius: 6px; background: #fbe9e5; color: #8a1f18; font-size: 13px; font-weight: 700; line-height: 1.4; }
.r3-demo-page .r3-field-list .r3-check { color: #1e5b43; font-weight: 700; }
.r3-demo-page .r3-thumb-state { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; width: 100%; height: 100%; padding: 8px; color: #3e5646; }
.r3-demo-page .r3-thumb-state span { color: #6d7b70; font-size: 12.5px; }
.r3-demo-page .r3-thumb-state strong { color: #1e4631; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.r3-demo-page .r3-thumb-state small { color: #74501f; font-size: 12.5px; line-height: 1.4; }

/* ===== final three consumption/readability microfix (DEMO-scoped only) ===== */
.r3-demo-page .r3-primary-copy { font-size: 16px; line-height: 1.72; white-space: pre-wrap; }
.r3-demo-page .r3-primary-copy-stepped,
.r3-demo-page .r3-primary-copy-paragraphs { white-space: normal; }
.r3-demo-page .r3-primary-copy p { margin: 0; font-size: 16px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.r3-demo-page .r3-primary-copy-stepped { display: grid; gap: 10px; }
.r3-demo-page .r3-instruction-lead { color: #1c241e; font-weight: 700; }
.r3-demo-page .r3-instruction-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.r3-demo-page .r3-instruction-step { padding: 10px 12px; border: 1px solid #e5d5c5; border-radius: 10px; background: #fffdfb; color: #263a2d; }
.r3-demo-page .r3-primary-copy-paragraphs { display: grid; gap: 8px; }
.r3-demo-page .r3-instruction-paragraph { padding: 9px 12px; border: 1px solid #e5d5c5; border-radius: 10px; background: #fffdfb; color: #263a2d; }
.r3-demo-page .r3-wrong-readable .r3-readable-card { margin-top: 8px; }
@media (max-width: 820px) {
  .r3-demo-page .r3-primary-copy,
  .r3-demo-page .r3-primary-copy p { font-size: 16px; line-height: 1.75; }
  .r3-demo-page .r3-instruction-steps { grid-template-columns: minmax(0, 1fr); }
  .r3-demo-page .r3-instruction-step,
  .r3-demo-page .r3-instruction-paragraph { padding: 9px 10px; }
}

/* ===== phase03f actual AG repairs: presentation-only consumption ===== */
.r3-target-media-zoom { display: block; color: inherit; text-decoration: none; }
.r3-demo-card.is-current { border: 2px solid #1e4631; background: #f7fbf4; box-shadow: 0 4px 14px rgba(30, 70, 49, .08); }
.r3-demo-current { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #1e4631; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.r3-demo-page .r3-compare-caption { display: block; max-height: none; overflow: visible; -webkit-line-clamp: unset; -webkit-box-orient: initial; }
.r3-demo-page .r3-demo-thumb-local > p { display: block; max-height: none; overflow: visible; -webkit-line-clamp: unset; -webkit-box-orient: initial; }
.r3-local-acceptance-label { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 999px; background: #e3efe7; color: #1e4631; font-size: 11px; font-weight: 700; white-space: nowrap; }
.r3-demo-page .r3-pane-list { max-height: 420px; }
.r3-demo-page .r3-readables[hidden] { display: none !important; }
.r3-demo-page .r3-visual-stack { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.r3-demo-page .r3-scene-badges { display: flex; flex-wrap: wrap; gap: 5px 7px; padding: 2px 2px 0; }
.r3-scene-badge { display: inline-flex; align-items: flex-start; max-width: 100%; padding: 3px 8px; border: 1px solid #c8d6cc; border-radius: 8px; background: #f7faf5; color: #30483a; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.r3-scene-badge.is-selection { border-color: #9bbbe0; background: #eef5fd; color: #174a80; }
.r3-scene-badge.is-focus { border-color: #d8b98b; background: #fff8ec; color: #74501f; }
.r3-scene-badge.is-action { border-color: #d97724; background: #fff3e5; color: #8a3e06; }
.r3-scene-badge.is-wrong { border-color: #d9a49d; background: #fbe9e5; color: #8a1f18; }
.r3-scene-badge.is-repaired { border-color: #9ac0a6; background: #eaf5ec; color: #1e5b43; }
.r3-demo-page .r3-scene-badge-note { flex: 1 1 100%; margin: 1px 0 0; color: #5c3a1c; font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-math-readables { margin: 12px 12px 0; padding: 10px 12px 12px; border: 1px solid #d6ded2; border-radius: 10px; background: #fffdf8; }
.r3-math-readables .r3-scene-head { padding: 0 0 8px; }
.r3-math-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r3-math-card { min-width: 0; margin: 0; padding: 8px; border: 1px solid #d8e1d4; border-radius: 9px; background: #f7faf5; }
.r3-math-card figcaption { margin: 0 0 6px; color: #1e4631; font-size: 13px; line-height: 1.4; }
.r3-math-card figcaption code { font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; font-size: 15px; font-weight: 700; }
.r3-math-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.r3-math-pair > div { min-width: 0; }
.r3-math-pair > div > span { display: block; margin-bottom: 3px; color: #6d7b70; font-size: 11px; line-height: 1.3; }
.r3-math-pair .r3-scene-svg { display: block; width: 100%; height: auto; max-height: 190px; border: 1px solid #e1e8df; border-radius: 6px; background: #fff; }
.r3-prepare-target { margin: 12px 0 14px; padding: 10px; border: 1px solid #d6ded2; border-radius: 11px; background: #f7faf5; }
.r3-prepare-target .r3-target-media { border: 0; background: transparent; }
.r3-prepare-target figcaption { margin-top: 7px; color: #5c6b60; font-size: 12px; line-height: 1.55; }
.r3-prepare-rounds { margin-top: 22px; padding: 16px; border: 1px solid #d6ded2; border-radius: 13px; background: #fffdf8; }
.r3-prepare-rounds-note { margin: 4px 0 12px; color: #5c6b60; }
.r3-prepare-round-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r3-prepare-round { min-width: 0; padding: 11px 12px; border: 1px solid #d8e1d4; border-radius: 10px; background: #f7faf5; }
.r3-prepare-round.is-current { border: 2px solid #1e4631; background: #f3f9ef; }
.r3-prepare-round.is-unpublished { background: #f4f2eb; border-style: dashed; }
.r3-prepare-round.is-unknown { background: #fbf5e8; border-color: #e6d8bb; }
.r3-prepare-round-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r3-prepare-round-code { color: #315f4a; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.r3-prepare-round h3 { margin: 5px 0 4px; color: #1f3c2d; font-family: var(--serif); font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.r3-prepare-round-identity { margin: 0; color: #526458; font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-prepare-round-choice { margin: 6px 0 0; color: #334b3c; font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-prepare-round-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: #6d7b70; font-size: 12px; line-height: 1.45; }
.r3-prepare-round-foot .button { min-height: 36px; }
@media (max-width: 820px) {
  .r3-prepare-round-grid { grid-template-columns: minmax(0, 1fr); }
  .r3-prepare-rounds { padding: 12px; }
  .r3-math-grid { grid-template-columns: minmax(0, 1fr); }
  .r3-math-pair .r3-scene-svg { max-height: 220px; }
}
@media (max-width: 680px) {
  .r3-section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 8px 0 6px; }
  .r3-section-nav button { flex: none; width: 100%; min-width: 0; min-height: 52px; grid-template-columns: 22px minmax(0, 1fr); padding: 7px 8px; }
  .r3-section-nav button strong { font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
  .r3-section-nav button small { font-size: 10.5px; }
}
@media (max-width: 370px) {
  .r3-section-nav { grid-template-columns: minmax(0, 1fr); }
}
.r3-math-phases { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.r3-math-phase { display: inline-block; max-width: 100%; padding: 2px 6px; border-radius: 6px; background: #f4efe4; color: #74501f; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.r3-math-phase.is-after { background: #eaf5ec; color: #1e5b43; }

/* ===== R3 native evidence: real image, ROI, lightbox, non-destructive overlay ===== */
.r3-native { margin: 14px 0 0; border: 1px solid #c6d5c2; border-radius: 13px; background: #fffdf8; box-shadow: 0 8px 24px rgba(30, 70, 49, .06); min-width: 0; }
.r3-native * { box-sizing: border-box; }
.r3-native-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px 10px; border-bottom: 1px solid #dce7d8; background: linear-gradient(180deg, #f5faf1 0%, #fffdf8 100%); border-radius: 13px 13px 0 0; }
.r3-native-head strong { display: block; margin-top: 2px; color: #1e4631; font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.r3-native-head p { max-width: 72ch; margin: 5px 0 0; color: #536559; font-size: 13px; line-height: 1.58; }
.r3-native-status { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; border: 1px solid #c9d6c5; border-radius: 999px; background: #fff; color: #526458; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: normal; }
.r3-native-status.is-captured { border-color: #d2a45d; background: #fff7e7; color: #7b4b05; }
.r3-native-status.is-rejected { border-color: #d9a49d; background: #fbe9e5; color: #8a1f18; }
.r3-native-status.is-verified { border-color: #7eaa7d; background: #eaf5ec; color: #1e5b43; }
.r3-native-status.is-pending { border-color: #ced8c9; background: #f7f8f2; color: #59685d; }
.r3-native-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 12px 14px 0; border: 1px solid #dbe5d7; border-radius: 9px; overflow: hidden; background: #dbe5d7; }
.r3-native-meta-grid > div { min-width: 0; padding: 9px 10px; background: #fffefa; }
.r3-native-meta-grid span { display: block; color: #748176; font-size: 11px; line-height: 1.35; }
.r3-native-meta-grid strong { display: block; margin-top: 3px; color: #2e4c3a; font-size: 12.5px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.r3-native-meta-grid strong.is-captured { color: #7b4b05; }
.r3-native-meta-grid strong.is-pending { color: #59685d; }
.r3-native-trial-note { margin: 12px 14px 0; padding: 9px 11px; border-left: 3px solid #d2a45d; border-radius: 0 7px 7px 0; background: #fff8eb; color: #684415; font-size: 12.5px; line-height: 1.6; }
.r3-native-stepper { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 14px 0; padding: 7px; border: 1px solid #d6e1d2; border-radius: 10px; background: #f4f8f0; }
.r3-native-step-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 60px; padding: 7px 11px; border: 1px solid #c9d6c5; border-radius: 8px; background: #fffefa; color: #4c6153; font-size: 12.5px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.r3-native-step-tab.is-active { border-color: #1e5b43; background: #1e5b43; color: #fff; }
.r3-native-step-tab:focus-visible, .r3-native-roi-tab:focus-visible, .r3-native-control:focus-visible, .r3-native-lightbox-close:focus-visible { outline: 3px solid #23684c; outline-offset: 2px; }
.r3-native-step-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #b7c3b4; }
.r3-native-step-dot.is-captured { background: #d38a1b; }
.r3-native-step-dot.is-rejected { background: #b43a2f; }
.r3-native-step-dot.is-verified { background: #4d9363; }
.r3-native-step-panel { min-width: 0; padding: 12px 14px 14px; }
.r3-native-step-panel[hidden], .r3-native-roi-figure[hidden] { display: none !important; }
.r3-native-step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.r3-native-step-head strong { display: block; max-width: 90ch; margin-top: 2px; color: #294a38; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-native-step-kicker { display: inline-block; color: #7a4a10; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.r3-native-step-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.r3-native-viewer-grid { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 12px; align-items: start; }
.r3-native-global-col, .r3-native-roi-col { min-width: 0; padding: 10px; border: 1px solid #d8e2d4; border-radius: 10px; background: #f9fbf6; }
.r3-native-viewer-head, .r3-native-roi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.r3-native-viewer-head strong, .r3-native-roi-head strong { display: block; margin-top: 2px; color: #2f4d3c; font-size: 13.5px; line-height: 1.4; }
.r3-native-stage { position: relative; width: 100%; overflow: hidden; border: 1px solid #b9c9b7; border-radius: 8px; background: #f2f4f0; }
.r3-native-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.r3-native-viewport.is-zoomed { touch-action: none; cursor: grab; }
.r3-native-viewport.is-dragging { cursor: grabbing; }
.r3-native-viewport:focus-visible { outline: 3px solid #23684c; outline-offset: -3px; }
.r3-native-zoom-layer { position: absolute; top: 0; left: 0; width: 100%; transform-origin: 0 0; will-change: transform; }
.r3-native-shot { display: block; width: 100%; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.r3-native-roi-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.r3-native-roi-overlay.is-hidden { display: none; }
.r3-native-roi-rect { opacity: .55; }
.r3-native-roi-rect.is-active { opacity: 1; stroke: #c4471f; }
.r3-native-viewer-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.r3-native-control { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 52px; padding: 7px 10px; border: 1px solid #c7d5c3; border-radius: 8px; background: #fffefa; color: #375443; font-size: 12.5px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.r3-native-control.is-active { border-color: #1e5b43; background: #1e5b43; color: #fff; }
.r3-native-control:hover { border-color: #7da284; }
.r3-native-viewer-note, .r3-native-caption, .r3-native-reuse, .r3-native-step-note { margin: 7px 0 0; color: #66766a; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-native-caption { color: #455a4b; }
.r3-native-reuse { padding: 7px 9px; border: 1px dashed #d0b57d; border-radius: 7px; background: #fff9ec; color: #6e4d16; }
.r3-native-roi-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.r3-native-roi-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 10px; border: 1px solid #c9d6c5; border-radius: 8px; background: #fffefa; color: #4b6152; font-size: 12px; font-weight: 700; cursor: pointer; }
.r3-native-roi-tab.is-active { border-color: #315f4a; background: #315f4a; color: #fff; }
.r3-native-roi-figure { margin: 0; }
.r3-native-roi-frame { position: relative; width: 100%; overflow: hidden; border: 1px solid #b9c9b7; border-radius: 8px; background: #f2f4f0; }
.r3-native-roi-frame img { position: absolute; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.r3-native-roi-figure figcaption { margin-top: 6px; color: #586b5d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.r3-native-roi-figure figcaption span { display: block; margin-bottom: 2px; color: #7a4a10; font-family: var(--mono); font-size: 10.5px; font-weight: 700; }
.r3-native-evidence-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.r3-native-pill { display: inline-flex; align-items: flex-start; max-width: 100%; padding: 3px 7px; border: 1px solid #cbd8c7; border-radius: 7px; background: #fffefa; color: #455b4c; font-size: 11.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.r3-native-pill.is-app { border-color: #a9c0ae; background: #eef5ed; color: #22523a; }
.r3-native-pill.is-captured { border-color: #d2a45d; background: #fff7e7; color: #7b4b05; }
.r3-native-pill.is-rejected { border-color: #d9a49d; background: #fbe9e5; color: #8a1f18; }
.r3-native-pill.is-verified { border-color: #7eaa7d; background: #eaf5ec; color: #1e5b43; }
.r3-native-pill.is-pending { border-color: #ced8c9; background: #f7f8f2; color: #59685d; }
.r3-native-pending { display: flex; align-items: flex-start; gap: 11px; margin: 12px 14px 0; padding: 13px; border: 1px dashed #c9d6c5; border-radius: 10px; background: #fbfcf7; }
.r3-native-pending.is-rejected { border-color: #d9a49d; background: #fdf3f0; }
.r3-native-pending-mark { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #c9d6c5; border-radius: 50%; background: #fffefa; color: #6d7b70; font-size: 18px; font-weight: 700; }
.r3-native-pending.is-rejected .r3-native-pending-mark { border-color: #d9a49d; color: #8a1f18; }
.r3-native-pending h4 { margin: 0 0 4px; color: #2b4938; font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.r3-native-pending p { margin: 0; color: #536559; font-size: 13px; line-height: 1.6; }
.r3-native-pending-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px !important; color: #4b6152 !important; font-size: 12px !important; }
.r3-native-pending-intent { margin-top: 6px !important; padding: 7px 9px; border-radius: 6px; background: #f3f7ef; color: #314d3d !important; }
.r3-native-pending-help { margin-top: 5px !important; color: #748176 !important; font-size: 12px !important; }
.r3-native-pending-steps { margin: 10px 14px 14px; padding: 0 12px 9px; border: 1px solid #dbe5d7; border-radius: 9px; background: #fffefa; }
.r3-native-pending-steps summary { min-height: 44px; padding: 11px 0; color: #315f4a; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.r3-native-pending-steps ol { margin: 0 0 4px 18px; padding: 0; color: #455a4b; font-size: 12.5px; line-height: 1.6; }
.r3-native-pending-steps li { margin: 4px 0; overflow-wrap: anywhere; }
.r3-native-platform { margin: 12px 14px 14px; border: 1px solid #dbe5d7; border-radius: 9px; background: #fffefa; }
.r3-native-platform summary { min-height: 44px; padding: 11px 12px; color: #3d5c49; font-size: 12.5px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.r3-native-platform-body { padding: 0 12px 12px; border-top: 1px solid #e2eadf; }
.r3-native-platform-body > p { margin: 9px 0; color: #5d6e62; font-size: 12px; line-height: 1.6; }
.r3-native-platform-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.r3-native-platform-cols > div { min-width: 0; }
.r3-native-platform-cols strong { display: block; margin-bottom: 5px; color: #315f4a; font-size: 12px; }
.r3-native-platform-cols ul { margin: 0; padding-left: 0; list-style: none; }
.r3-native-platform-cols li { display: flex; align-items: flex-start; gap: 5px; margin: 4px 0; color: #526458; font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
.r3-structure-aux { margin: 16px 0 0; border: 1px dashed #c7b98f; border-radius: 11px; background: #faf8ef; }
.r3-structure-aux > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 48px; padding: 10px 12px; color: #5f4b20; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.r3-structure-aux-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 7px; border: 1px solid #c8a963; border-radius: 6px; background: #fff4d8; color: #6b4b00; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.r3-structure-aux-note { margin: 0; padding: 0 12px 10px; color: #6d6044; font-size: 12px; line-height: 1.6; }
.r3-structure-aux .r3-scene { margin: 0 10px 10px; border-color: #d8cfb6; background: #fffdf6; }
.r3-structure-inline-note { margin: 0 12px 9px; padding: 7px 9px; border-radius: 6px; background: #fff8e8; color: #70561e; font-size: 12px; line-height: 1.55; }
.r3-native-lightbox { position: fixed; inset: 0; z-index: 10020; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 24, 18, .82); }
.r3-native-lightbox[hidden] { display: none !important; }
.r3-native-lightbox-dialog { display: flex; flex-direction: column; width: min(96vw, 1600px); max-height: 92vh; overflow: hidden; border: 1px solid #9daf9d; border-radius: 12px; background: #fffdf8; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.r3-native-lightbox-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #d9e4d5; background: #f5faf1; }
.r3-native-lightbox-head strong { display: block; color: #1e4631; font-size: 14px; line-height: 1.4; }
.r3-native-lightbox-head .tiny { display: block; margin-top: 3px; max-width: 90ch; line-height: 1.5; }
.r3-native-lightbox-close { flex: 0 0 auto; min-height: 44px; padding: 7px 12px; border: 1px solid #b9cbb7; border-radius: 8px; background: #fff; color: #315f4a; font-size: 13px; font-weight: 700; cursor: pointer; }
.r3-native-lightbox-body { flex: 1 1 auto; overflow: auto; padding: 12px; background: #202823; overscroll-behavior: contain; }
.r3-native-lightbox-body img { display: block; width: auto; max-width: none; height: auto; margin: 0 auto; background: #202823; }
.r3-native-lightbox-note { margin: 0; padding: 8px 12px; border-top: 1px solid #e2eadf; color: #65756a; font-size: 12px; line-height: 1.5; }
body.r3-native-lightbox-open { overflow: hidden; }
@media (max-width: 1023px) {
  .r3-native-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r3-native-viewer-grid { grid-template-columns: minmax(0, 1fr); }
  .r3-native-roi-col { order: 2; }
}
@media (max-width: 767px) {
  .r3-native { margin-top: 12px; border-radius: 10px; }
  .r3-native-head { display: block; padding: 11px 11px 9px; border-radius: 10px 10px 0 0; }
  .r3-native-head strong { font-size: 15.5px; }
  .r3-native-status { margin-top: 7px; }
  .r3-native-meta-grid { margin: 10px 11px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r3-native-trial-note { margin: 10px 11px 0; font-size: 12px; }
  .r3-native-stepper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 10px 11px 0; padding: 6px; }
  .r3-native-step-tab { width: 100%; min-height: 44px; padding: 6px 8px; white-space: normal; }
  .r3-native-step-panel { padding: 10px 10px 12px; }
  .r3-native-step-head { display: block; }
  .r3-native-step-badges { justify-content: flex-start; margin-top: 6px; }
  .r3-native-viewer-grid { display: flex; flex-direction: column; gap: 9px; }
  .r3-native-roi-col { order: -1; width: 100%; padding: 8px; }
  .r3-native-global-col { width: 100%; padding: 8px; }
  .r3-native-stage { max-height: none; }
  .r3-native-roi-frame { max-height: none; }
  .r3-native-control { flex: 1 1 calc(50% - 6px); min-width: 0; min-height: 44px; }
  .r3-native-platform { margin: 10px 11px 12px; }
  .r3-native-platform-cols { grid-template-columns: minmax(0, 1fr); }
  .r3-native-pending { margin: 10px 11px 0; }
  .r3-native-pending-steps { margin: 9px 11px 12px; }
  .r3-structure-aux > summary { align-items: flex-start; }
  .r3-native-lightbox { padding: 6px; }
  .r3-native-lightbox-dialog { width: 100%; max-height: 96vh; }
  .r3-native-lightbox-head { padding: 9px 10px; }
  .r3-native-lightbox-body { padding: 6px; }
}
@media (max-width: 390px) {
  .r3-native-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r3-native-step-tab { font-size: 11.5px; }
  .r3-native-viewer-controls { gap: 5px; }
  .r3-native-control { flex: 1 1 100%; }
}
.r3-native-copy-caveat { margin: 10px 14px 0; padding: 8px 10px; border: 1px solid #e0c98e; border-radius: 8px; background: #fff8e8; color: #654b1b; font-size: 12px; line-height: 1.6; }
.r3-native-copy-caveat strong { color: #573b08; }
@media (max-width: 767px) {
  .r3-native-copy-caveat { margin: 9px 11px 0; }
}

/* ===== Student-facing capture hierarchy: simple status, folded technical detail ===== */
.r3-native-source-note { margin: 10px 14px 0; padding: 8px 10px; border-left: 3px solid #b7a26b; border-radius: 0 7px 7px 0; background: #faf6e9; color: #5f4c21; font-size: 12.5px; line-height: 1.6; }
.r3-native-tech { margin: 10px 0 0; border: 1px solid #dbe5d7; border-radius: 8px; background: #fbfcf8; }
.r3-native-tech > summary { min-height: 44px; padding: 10px 11px; color: #55685b; font-size: 12px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.r3-native-tech-body { padding: 0 11px 11px; border-top: 1px solid #e3ebe0; }
.r3-native-tech-warn { margin: 9px 0; padding: 7px 9px; border-radius: 6px; background: #fdf1ee; color: #8a2c22; font-size: 12px; line-height: 1.5; }
.r3-native-tech dl { display: grid; gap: 6px; margin: 9px 0 0; }
.r3-native-tech dl > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #edf2ea; }
.r3-native-tech dt { color: #78847a; font-size: 11.5px; line-height: 1.5; }
.r3-native-tech dd { min-width: 0; margin: 0; color: #465b4d; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-native-step-tab.is-empty { border-style: dashed; color: #6a786e; background: #f8faf4; }
.r3-native-step-tab.is-empty.is-active { border-color: #5e7766; background: #5e7766; color: #fff; }
.r3-demo-local-aux { min-width: 0; padding: 0; border: 1px dashed #cbb77e; border-radius: 10px; background: #faf7ec; }
.r3-demo-local-aux > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 9px 10px; color: #5f4b20; font-size: 12px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.r3-demo-local-aux .r3-demo-thumb { margin: 0 7px 7px; border-color: #e0d6bd; background: #fffdf6; }
.r3-demo-local-aux .r3-demo-local-frame { background: #f7f4e9; }
@media (max-width: 767px) {
  .r3-native-source-note { margin: 9px 11px 0; }
  .r3-native-tech dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .r3-demo-local-aux > summary { align-items: flex-start; }
}
.r3-native-pill.is-result { border-color: #dfcf9f; background: #fbf4e2; color: #6b5321; }

/* Day1 real-PowerPoint target reference (independent from native action evidence) */
.r3-day1-reference { margin: 16px 0 0; padding: 14px; border: 1px solid #c9d8c6; border-radius: 12px; background: #fbfdf8; }
.r3-day1-ref-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.r3-day1-ref-head strong { display: block; margin-top: 2px; color: #244d3a; font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.r3-day1-ref-badge { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #d9c58f; border-radius: 999px; background: #fff8e7; color: #6f5218; font-size: 11px; font-weight: 700; line-height: 1.4; }
.r3-day1-ref-note { margin: 0 0 10px; color: #405a49; font-size: 13px; line-height: 1.7; }
.r3-day1-ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.r3-day1-ref-card { min-width: 0; margin: 0; padding: 9px; border: 1px solid #d6e1d2; border-radius: 9px; background: #fffefa; }
.r3-day1-ref-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #315f4a; font-size: 12.5px; line-height: 1.45; }
.r3-day1-ref-card figcaption strong { color: #68796c; font-family: var(--mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.r3-day1-ref-frame { display: block; overflow: hidden; border: 1px solid #cfdccc; border-radius: 7px; background: #f2f4f0; }
.r3-day1-ref-frame img { display: block; width: 100%; height: auto; max-width: none; }
.r3-day1-ref-foot { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; font-size: 11.5px; line-height: 1.5; }
.r3-day1-ref-foot a { color: #2c6046; font-weight: 650; text-decoration: underline; }
.r3-day1-ref-detail { margin-top: 7px; border-top: 1px dashed #d9e3d5; }
.r3-day1-ref-detail > summary { padding: 7px 0 3px; color: #566a5b; font-size: 11.5px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.r3-day1-ref-scroll { max-height: 62vh; overflow: auto; border: 1px solid #cfdccc; border-radius: 7px; background: #f2f4f0; }
.r3-day1-ref-scroll img { display: block; width: auto; max-width: none; height: auto; }
.r3-day1-ref-limits { margin: 10px 0 0; padding: 8px 10px 8px 25px; border-left: 3px solid #b9cfb2; border-radius: 0 7px 7px 0; background: #f4f8f1; color: #506354; font-size: 12px; line-height: 1.6; }
.r3-day1-ref-limits li + li { margin-top: 3px; }
.r3-day1-ref-footnote { margin: 8px 0 0; color: #5f7064; font-size: 11.5px; line-height: 1.6; }
@media (max-width: 820px) {
  .r3-day1-reference { padding: 11px; }
  .r3-day1-ref-head { flex-wrap: wrap; }
  .r3-day1-ref-grid { grid-template-columns: minmax(0, 1fr); }
  .r3-day1-ref-head strong { font-size: 16px; }
}

/* ===== Independent macOS menu examples (separate from native evidence/reference) ===== */
.mac-example { margin: 16px 0 0; padding: 13px; border: 1px solid #cfd5d2; border-radius: 12px; background: #f7f8f7; }
.mac-example-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mac-example-head h3 { margin: 2px 0 0; color: #283b34; font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.mac-example-badge { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #cbd1ce; border-radius: 999px; background: #eef0ef; color: #55615c; font-size: 11px; font-weight: 700; line-height: 1.4; }
.mac-example-note, .mac-example-missing-note { margin: 8px 0 0; color: #4d5a55; font-size: 12.5px; line-height: 1.65; }
.mac-example-missing-note { padding: 8px 10px; border-left: 3px solid #b8a56f; border-radius: 0 7px 7px 0; background: #fbf7ec; color: #5f502e; }
.mac-example-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.mac-example-picker { display: inline-flex; align-items: center; gap: 7px; color: #52615b; font-size: 12px; font-weight: 650; max-width: 100%; }
.mac-example-picker > span { flex: 0 0 auto; white-space: nowrap; }
.mac-example-picker select { min-width: 0; min-height: 36px; max-width: 100%; padding: 5px 28px 5px 8px; border: 1px solid #bfc8c4; border-radius: 7px; background: #fff; color: #293d35; font: inherit; }
.mac-example-picker-label { color: #394d45; font-size: 12.5px; font-weight: 700; }
.mac-example-views { display: inline-flex; gap: 4px; }
.mac-example-views button { min-height: 34px; padding: 5px 9px; border: 1px solid #bfc8c4; border-radius: 7px; background: #fff; color: #42534c; font: inherit; font-size: 12px; cursor: pointer; }
.mac-example-views button.is-active { border-color: #657a70; background: #e8eeea; color: #263d33; font-weight: 700; }
.mac-example-views button:focus-visible, .mac-example-picker select:focus-visible { outline: 3px solid #8aa99a; outline-offset: 2px; }
.mac-example-stage { position: relative; width: 100%; overflow: hidden; border: 1px solid #bfc8c4; border-radius: 8px; background: #e9ecea; }
.mac-example-stage[data-view="fit"][data-crop="1"] { aspect-ratio: 3840 / 1998; }
.mac-example-stage[data-view="fit"][data-crop="0"] { aspect-ratio: var(--ratio, 16 / 9); }
.mac-example-stage[data-view="fit"][data-orientation="portrait"] { width: fit-content; max-width: min(100%, 500px); aspect-ratio: auto; margin-inline: auto; }
.mac-example-stage img { display: block; width: 100%; max-width: none; height: auto; }
.mac-example-stage[data-view="fit"][data-orientation="portrait"] img { width: auto; max-width: 100%; max-height: 70vh; margin-inline: auto; }
.mac-example-stage[data-view="fit"][data-crop="1"] img { transform: translateY(-2.9%); }
.mac-example-stage[data-view="one"] { max-height: 70vh; overflow: auto; aspect-ratio: auto; }
.mac-example-stage[data-view="one"] img { width: auto; max-width: none; height: auto; margin-inline: auto; transform: none; }
.mac-example-stage[data-view="zoom"] { aspect-ratio: var(--zoom-aspect, 1); width: 100%; max-width: 640px; margin-inline: auto; overflow: hidden; }
.mac-example-stage[data-view="zoom"] img { position: absolute; width: var(--zoom-width, 833.333%); max-width: none; height: auto; left: var(--zoom-left, -683.333%); top: var(--zoom-top, -33.333%); transform: none; }
.mac-example-views button:disabled { opacity: .45; cursor: not-allowed; }
.mac-example-caption { margin: 8px 0 0; color: #33483f; font-size: 13px; line-height: 1.7; }
.mac-example-error { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: #fdf1ee; color: #8a2c22; font-size: 12.5px; line-height: 1.55; }
.mac-example.is-image-error .mac-example-stage { min-height: 80px; }
@media (max-width: 820px) {
  .mac-example { padding: 10px; }
  .mac-example-head { flex-wrap: wrap; }
  .mac-example-toolbar { align-items: flex-start; }
  .mac-example-picker { width: 100%; }
  .mac-example-picker select { width: 100%; }
  .mac-example-views { width: 100%; }
  .mac-example-views button { flex: 1 1 0; min-height: 40px; }
}
.r3-action-pack { margin: 18px 0 0; min-width: 0; }
.r3-action-goal { padding: 15px 16px; border: 1px solid #cfd5d2; border-radius: 12px; background: #fbfcfb; }
.r3-action-goal h3 { margin: 3px 0 6px; color: #283b34; font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.r3-action-goal p { margin: 0; color: #33483f; font-size: 13.5px; line-height: 1.75; }
.r3-action-layer-note { margin-top: 10px !important; padding: 8px 10px; border-left: 3px solid #b8a56f; border-radius: 0 7px 7px 0; background: #fbf7ec; color: #5f502e !important; font-size: 12.5px !important; }
.r3-action-pack .mac-example { border-color: #b9c9c0; background: #f5f9f6; }
.r3-action-pack .mac-example-badge { border-color: #b9c9c0; background: #e8f0eb; color: #2f5142; }
.r3-action-sequence, .r3-action-params { margin: 16px 0 0; padding: 15px 16px; border: 1px solid #cfd5d2; border-radius: 12px; background: #fbfcfb; min-width: 0; }
.r3-action-sequence h3, .r3-action-params h3 { margin: 3px 0 10px; color: #283b34; font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.r3-action-sequence ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.r3-action-sequence li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px dashed #d7ded9; min-width: 0; }
.r3-action-sequence li:first-child { border-top: 0; padding-top: 2px; }
.r3-action-step-no { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #2f5142; color: #fff; font-size: 12px; font-weight: 700; line-height: 26px; text-align: center; }
.r3-action-step-copy { min-width: 0; }
.r3-action-step-copy strong { display: block; color: #2c4338; font-size: 13.5px; line-height: 1.55; }
.r3-action-step-copy p { margin: 3px 0 0; color: #3f5149; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.r3-action-step-copy small { display: block; margin-top: 4px; color: #6b7772; font-size: 11.5px; line-height: 1.55; }
.r3-action-params dl { display: grid; grid-template-columns: minmax(92px, 160px) minmax(0, 1fr); margin: 0; border-top: 1px solid #dce2df; }
.r3-action-params dl > div { display: contents; }
.r3-action-params dt, .r3-action-params dd { padding: 8px 0; border-bottom: 1px solid #e4e9e6; font-size: 13px; line-height: 1.65; }
.r3-action-params dt { padding-right: 12px; color: #52615b; font-weight: 700; }
.r3-action-params dd { margin: 0; color: #2c4338; overflow-wrap: anywhere; }
.r3-action-params h4 { margin: 14px 0 0; color: #5f502e; font-size: 13px; line-height: 1.5; }
.r3-action-params ul { margin: 7px 0 0; padding-left: 18px; color: #4f5d56; font-size: 12.5px; line-height: 1.7; }
.r3-action-params li + li { margin-top: 3px; }
.r3-action-fallback { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #d9c08a; border-radius: 10px; background: #fff8e8; color: #5a4318; }
.r3-action-fallback strong { display: block; font-size: 13.5px; }
.r3-action-fallback p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.65; }
.r3-historical-audit-fold { margin: 16px 0 0; border: 1px solid #cfd5d2; border-radius: 12px; background: #f7f8f7; }
.r3-historical-audit-fold > summary { padding: 12px 14px; color: #394d45; font-size: 12.5px; font-weight: 700; line-height: 1.55; cursor: pointer; }
.r3-historical-audit-body { padding: 0 14px 14px; min-width: 0; }
.r3-historical-audit-note { margin: 0 0 10px; color: #5f6d66; font-size: 12px; line-height: 1.65; }
.r3-historical-audit-body .r3-day1-reference { margin-top: 10px; }
.r3-native-audit { margin-top: 12px; border-top: 1px solid #dce2df; padding-top: 10px; }
.r3-native-audit > summary { color: #42534c; font-size: 12.5px; font-weight: 700; line-height: 1.55; cursor: pointer; }
.r3-native-audit-note { margin: 6px 0 8px; color: #68756e; font-size: 11.5px; line-height: 1.6; }
.r3-native-audit-list { display: grid; gap: 8px; }
.r3-native-audit-slot { min-width: 0; }
.r3-native-audit-slot h4 { margin: 0 0 4px; color: #52615b; font-size: 12px; line-height: 1.5; }
.r3-native-audit-meta { display: grid; grid-template-columns: 92px minmax(0, 1fr); margin: 0 0 8px; border-top: 1px solid #e4e9e6; }
.r3-native-audit-meta > div { display: contents; }
.r3-native-audit-meta dt, .r3-native-audit-meta dd { padding: 4px 0; border-bottom: 1px solid #eef2ef; font-size: 11px; line-height: 1.55; }
.r3-native-audit-meta dt { padding-right: 8px; color: #6b7772; font-weight: 700; }
.r3-native-audit-meta dd { margin: 0; color: #4f5d56; overflow-wrap: anywhere; }
.r3-native-audit-slot .r3-native-tech { margin: 0; }
@media (max-width: 640px) {
  .r3-action-goal, .r3-action-sequence, .r3-action-params { padding: 12px; }
  .r3-action-params dl { grid-template-columns: minmax(0, 1fr); }
  .r3-action-params dt { padding-bottom: 1px; border-bottom: 0; }
  .r3-action-params dd { padding-top: 1px; }
  .r3-native-audit-meta { grid-template-columns: minmax(0, 1fr); }
  .r3-native-audit-meta dt { padding-bottom: 0; border-bottom: 0; }
  .r3-native-audit-meta dd { padding-top: 1px; }
}
.r3-action-continuity-note { margin-top: 10px !important; padding: 9px 10px; border-left: 3px solid #7f9c8e; border-radius: 0 7px 7px 0; background: #f1f6f3; color: #355143 !important; font-size: 12.5px !important; }
.r3-existing-bases-gallery { border-color: #bfcbc4; }
.r3-existing-bases-gallery .mac-example-badge { background: #eef3ef; color: #365446; }
.mac-example[data-mac-bank="existing"] .mac-example-stage[data-view="fit"][data-orientation="portrait"] { width: 100%; max-width: 500px; display: flex; justify-content: center; }
.mac-example[data-mac-bank="existing"] .mac-example-stage[data-view="fit"][data-orientation="portrait"] img { width: auto; max-width: 100%; max-height: min(68vh, 560px); }
.r3-existing-bases-ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.r3-existing-bases-ref-card { margin: 0; min-width: 0; padding: 9px; border: 1px solid #d7dfda; border-radius: 9px; background: #fbfcfb; }
.r3-existing-bases-ref-frame { display: block; overflow: hidden; border: 1px solid #d7dfda; border-radius: 6px; background: #eef1ef; }
.r3-existing-bases-ref-frame img { display: block; width: 100%; max-width: 100%; height: auto; }
.r3-existing-bases-ref-card figcaption { min-width: 0; margin-top: 6px; color: #4f5d56; font-size: 11.5px; line-height: 1.6; }
.r3-existing-bases-ref-card figcaption strong { display: block; margin-top: 3px; color: #33483f; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.r3-existing-bases-ref-card figcaption p { margin: 3px 0 0; overflow-wrap: anywhere; }
.r3-existing-bases-ref-card figcaption small { display: block; margin-top: 4px; color: #6b7772; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.r3-existing-state-badge { display: inline-block; margin-right: 4px; padding: 2px 6px; border: 1px solid #c9d8d0; border-radius: 999px; background: #eef5f0; color: #395847; font-size: 10.5px; font-weight: 700; line-height: 1.4; }
.r3-existing-state-badge.is-history { border-color: #d8c9a7; background: #faf6ea; color: #665531; }
.r3-existing-save-note { margin: 12px 0 0; padding: 9px 10px; border-left: 3px solid #7f9c8e; border-radius: 0 7px 7px 0; background: #f1f6f3; color: #355143; font-size: 12.5px; line-height: 1.65; }
.r3-existing-bases-tech-note { margin: 10px 0 0; color: #6b7772; font-size: 11px; line-height: 1.6; }
@media (max-width: 640px) {
  .r3-existing-bases-ref-grid { grid-template-columns: minmax(0, 1fr); }
}
.r3-canvas-gallery { border-color: #c5cfc9; }
.r3-canvas-gallery .mac-example-badge { border-color: #c7d3cb; background: #eef4ef; color: #355545; }
.r3-existing-state-badge.is-menu { border-color: #d8c9a7; background: #faf6ea; color: #665531; }
.r3-canvas-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r3-canvas-check { min-width: 0; padding: 10px 11px; border: 1px solid #d9e1dc; border-radius: 8px; background: #f7faf8; }
.r3-canvas-check strong { display: block; color: #2f4b3e; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.r3-canvas-check p { margin: 5px 0 0; color: #4c5d55; font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; }
.r3-canvas-check p span { color: #6b7772; font-weight: 700; }
.r3-canvas-check-pitfall { color: #6c552c !important; }
.r3-canvas-check-pitfall span { color: #8a6b35 !important; }
.r3-canvas-save-note, .r3-canvas-history-note { margin: 12px 0 0; padding: 9px 10px; border-left: 3px solid #7f9c8e; border-radius: 0 7px 7px 0; background: #f1f6f3; color: #355143; font-size: 12.5px; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .r3-canvas-checks { grid-template-columns: minmax(0, 1fr); }
}
.r3-native-short-pending { margin: 8px 14px 0; padding: 7px 9px; border-left: 3px solid #c2ad78; border-radius: 0 6px 6px 0; background: #faf6ea; color: #5f502f; font-size: 12.5px; line-height: 1.6; }
@media (max-width: 767px) { .r3-native-short-pending { margin: 8px 11px 0; } }
.r2-t1-current-note { margin: 10px 0; padding: 10px 12px; border: 1px solid #c8a96a; border-radius: 8px; background: #fff8e8; color: #5a4318; }
.r2-t1-current-note strong { display: block; margin-bottom: 4px; color: #49340d; }
.r2-t1-current-note p { margin: 0; font-size: 13px; line-height: 1.65; }
.r2-t1-scope-note { margin: 0 0 8px; padding: 7px 9px; border-left: 3px solid #c8a96a; background: #fffaf0; color: #5a4318; font-size: 12.5px; line-height: 1.6; }
.r2-t1-original-actions { margin-top: 10px; border: 1px solid #d8d8d2; border-radius: 8px; background: #fafaf7; }
.r2-t1-original-actions > summary { min-height: 44px; padding: 9px 11px; color: #5b625c; font-size: 12.5px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.r2-t1-original-actions .r2-formal-action { margin: 0 11px 11px; }
