:root {
  color-scheme: light;
  --paper: #f7f9f8;
  --surface: #ffffff;
  --ink: #192c2b;
  --muted: #647570;
  --line: #e1e8e4;
  --rust: #a94c32;
  --rust-hover: #8f3f28;
  --sage: #216957;
  --accent-primary: var(--sage);
  --focus-ring: #b27c54;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;
  --radius-pill: 999px;
  --body-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141d1a;
  --surface: #1d2a24;
  --ink: #e5ece4;
  --muted: #a9b8aa;
  --line: #35463d;
  --rust: #d69a7d;
  --rust-hover: #e5aa8d;
  --sage: #91bba0;
  --accent-primary: var(--sage);
  --focus-ring: #b7d6c2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--body-font); }
html.dialog-scroll-locked,
html.dialog-scroll-locked body { overflow: hidden; overscroll-behavior: none; }
html.dialog-scroll-locked body { position: fixed; inset: 0; width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 1px; }
main > section[tabindex="-1"]:focus { outline: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; background: var(--ink); color: white; padding: 8px 16px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 222px; padding: 28px 18px 20px; border-right: 1px solid #e1e5d9; background: #eef1e8; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; gap: 11px; align-items: center; margin: 0 8px 38px; font-weight: 600; font-size: 23px; letter-spacing: 3px; line-height: 1.1; }
.brand-caption { display: block; font: 8px/1.4 Georgia, serif; letter-spacing: 1.3px; margin-top: 7px; }
.nav-label { color: #868b7d; font-size: 11px; letter-spacing: 1.6px; margin: 0 14px 13px; }
.nav-item { border: none; background: transparent; display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; margin-bottom: 4px; border-radius: 10px; color: #56634f; text-align: left; font-size: 12px; transition: background .15s, transform .15s; }
.nav-item svg { flex: 0 0 20px; }
.nav-symbol { flex: 0 0 20px; width: 20px; text-align: center; font-size: 24px; line-height: 1; }
.nav-item:hover { background: #e6e7da; }
.nav-item.current { background: #e3e7d9; color: #3e5232; font-weight: 600; }
.nav-item.nav-ai { margin-top: 12px; color:#8b5038; background:#f5e9df; }
.nav-item.nav-ai:hover { background:#f0dfd2; }
.nav-more { margin-top: 8px; }
.nav-more summary { list-style:none; }
.nav-more summary::-webkit-details-marker { display:none; }
.nav-more[open] summary .nav-symbol { transform:rotate(45deg); }
.nav-more .nav-subitem { padding-left:42px; font-size:11px; color:#707a69; }
.nav-dot { width: 5px; height: 5px; margin-left: auto; background: var(--sage); border-radius: 50%; }
.nav-item:not(.current) .nav-dot { display: none; }
.sidebar-note { margin: auto 14px 60px; padding-top: 32px; }
.note-line { display: block; width: 25px; height: 2px; background: #a6ae97; margin-bottom: 20px; }
.sidebar-note p { font: 19px/1.9 var(--display-font); color: #58644d; letter-spacing: 1px; }
.note-caption { display: block; font: 8px Georgia, serif; letter-spacing: 1.5px; margin-top: 17px; color: #858c7a; }
.profile { display: flex; gap: 10px; align-items: center; padding-top: 22px; border-top: 1px solid #dde0d1; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #72775d; background: #e2e4d4; font-size: 13px; }
.profile small { display: block; color: #858b7a; font-size: 10px; margin-top: 2px; }
.main-shell { margin-left: 222px; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 0 48px; font-size: 12px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.theme-menu { position: relative; color: var(--muted); }
.theme-menu > summary { list-style: none; }
.theme-menu > summary::-webkit-details-marker { display: none; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; }
.theme-toggle:hover, .theme-menu[open] .theme-toggle { background: var(--paper); }
.theme-icon { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-options { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; display: grid; min-width: 144px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 10px 28px #0c171024; }
.theme-options button { padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; font-size: 12px; }
.theme-options button:hover, .theme-options button[aria-pressed="true"] { background: var(--paper); color: var(--sage); }
.breadcrumb { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumb span { margin: 0 12px; color: #b4b7a9; }
.breadcrumb strong { font-weight: 500; color: #4d5846; }
.session-view .breadcrumb span,
.session-view .breadcrumb strong { display: none; }
.topbar time { color: #808576; font-size: 11px; font-variant-numeric: tabular-nums; }
main { max-width: 1450px; margin: 0 auto; padding: 0 48px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 35px; align-items: center; padding: 46px 0 40px; }
.eyebrow { font: 10px/1.4 Georgia, serif; letter-spacing: 2.5px; color: #79806f; display: flex; align-items: center; gap: 9px; }
.eyebrow > span { height: 5px; width: 5px; background: var(--sage); border-radius: 50%; }
h1 { font: 38px/1.35 var(--display-font); font-weight: 500; letter-spacing: 0; margin: 14px 0 12px; }
.accent-word { color: var(--rust); }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); max-width: 100%; min-height: 42px; padding: 10px 17px; border-radius: var(--radius-control); font-size: 13px; font-weight: 500; text-align: center; white-space: normal; border: 1px solid transparent; transition: background .18s, transform .18s; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-primary { color: #fff8ef; background: var(--rust); border-color: var(--rust); }
.button-primary:not(:disabled):hover { background: var(--rust-hover); border-color: var(--rust-hover); }
.button-outline { border-color: #d7d9cc; background: transparent; color: #536047; }
.button-outline:not(:disabled):hover { background: #eaece1; }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:not(:disabled):hover { background: #f0f0e8; }
.button-danger { background: var(--rust); color: white; }
.plus { font-size: 20px; line-height: 1; font-weight: 300; }
.hero-art { height: 290px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 40px; }
.orbit { border: 1px solid #dedfcf; border-radius: 50%; position: absolute; pointer-events: none; }
.orbit-one { width: 320px; height: 320px; left: 76px; top: 4px; }
.orbit-two { width: 260px; height: 260px; left: 106px; top: 34px; }
.art-grid { position: absolute; width: 58px; height: 82px; left: 24px; bottom: 20px; background-image: radial-gradient(#b9beaa 1px, transparent 1px); background-size: 8px 8px; opacity: .7; }
.art-label { z-index: 1; margin: 0 0 16px 9px; font: 9px Georgia, serif; letter-spacing: 2px; color: #8a917f; }
.art-card { z-index: 1; display: flex; align-items: center; gap: 15px; width: 260px; padding: 14px 16px; border-radius: 5px; border: 1px solid #dddfcf; background: #fbfaf3; font-size: 13px; box-shadow: 0 7px 22px #353d2110; }
.art-card-one { transform: rotate(-4deg); margin-bottom: 7px; }
.art-card-two { margin-left: 30px; margin-bottom: 8px; transform: rotate(1deg); background: #e6eadb; border-color: #d9dfca; color: #536444; }
.art-card-three { margin-left: 60px; transform: rotate(4deg); }
.art-number { color: #949d83; font: italic 18px Georgia, serif; }
.art-check { margin-left: auto; color: #889777; font-size: 16px; }
.art-footnote { z-index: 1; margin: 24px 0 0 70px; font-size: 10px; color: #8c9380; letter-spacing: 1px; }
.workspace { scroll-margin-top: 20px; padding-bottom: 30px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); margin-bottom: 18px; }
.section-heading > * { min-width: 0; }
.section-eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 6px; }
h2 { font-size: 20px; font-weight: 500; letter-spacing: 0; }
.section-heading h2 { font-size: 21px; }
.section-heading .daily-eyebrow + h2 { margin-top: 3px; }
.overview-focus-side h3, .overview-ai-evidence h3 { font-size: 15px; }
.daily-eyebrow { font-size: 10px; letter-spacing: .1em; color:#7c8574; }
.weekly-note { max-width: 760px; font-size: 12px; line-height: 1.65; }
.total-count { font-family: Georgia, serif; font-size: 12px; margin-left: 7px; color: #829071; border: 1px solid #d9decd; border-radius: 20px; min-width: 24px; padding: 1px 7px; display: inline-block; vertical-align: 2px; text-align: center; }
.workbench { display: grid; grid-template-columns: minmax(265px, .85fr) minmax(320px, 1.15fr); min-height: 422px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.goal-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.panel-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 20px 20px 16px; color: var(--muted); font-size: 12px; }
.sync-state { display: flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.sync-state::before { content: ""; display: block; width: 4px; height: 4px; background: #91a67b; border-radius: 50%; }
.sync-state.error::before { background: var(--rust); }
.goal-list { padding: 0 12px 10px; }
.loading-text { padding: 45px 20px; text-align: center; font-size: 12px; color: var(--muted); }
.goal-card { display: block; width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; text-align: left; padding: 18px 15px; margin-bottom: 8px; color: var(--ink); transition: background .15s, border-color .15s; }
.goal-card:hover { background: #f6f6ee; }
.goal-card.selected { border-color: #d8dec9; background: #f1f4e9; }
.goal-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.goal-index { font: italic 12px Georgia, serif; color: #6a785f; }
.status-badge { display: inline-block; border-radius: 3px; padding: 2px 7px; font-size: 11px; color: #526b3c; background: #e4ecd8; font-weight: 400; }
.status-completed { color: #4e7a6b; background: #e3eee7; }
.status-archived { color: #888273; background: #eeeae0; }
.goal-card-title { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.goal-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--muted); margin-top: 6px; }
.goal-card-footer { margin-top: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.goal-panel-bottom { margin-top: auto; border-top: 1px solid #eeeee5; padding: 14px 20px; color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.small-star { color: #949e7d; font-size: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 5px 0 14px; font-size: 12px; color: var(--muted); }
.pagination button { border: 1px solid var(--line); border-radius: 4px; background: transparent; min-width: 58px; height: 30px; padding: 0 8px; color: #5d6c4f; }
.pagination button:disabled { cursor: default; opacity: .35; }
.empty-list { padding: 38px 14px 40px; text-align: center; }
.empty-list-icon { margin: 0 auto 18px; height: 44px; width: 44px; display: grid; place-items: center; background: #edf0e3; color: #8b9a70; border-radius: 10px; font-size: 23px; }
.empty-list h3 { font-size: 13px; font-weight: 500; }
.empty-list p { font-size: 11px; color: #999d8e; margin: 7px 0 17px; }
.text-button { color: var(--rust); border: none; padding: 4px 0; background: transparent; font-size: 13px; }
.detail-panel { padding: 30px; min-width: 0; }
.detail-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.detail-actions button { font-size: 12px; color: #637056; border: none; background: transparent; padding: 4px 0; }
.detail-actions button:last-child { color: #a17b67; }
.detail-title { font-size: 21px; font-weight: 500; line-height: 1.5; margin: 13px 0 8px; overflow-wrap: anywhere; }
.detail-description { color: var(--muted); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 16px; padding-bottom: 24px; border-bottom: 1px dashed #e0e2d5; }
.route-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 15px; }
.route-heading h3 { font-size: 16px; font-weight: 600; }
.route-heading > span { color: var(--muted); font-size: 12px; }
.route-empty { padding: 22px 0 10px; }
.route-empty p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 19px; }
.route-empty .button { font-size: 13px; }
.route-illustration { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; }
.route-illustration span { display: grid; place-items: center; font: italic 13px Georgia, serif; height: 29px; width: 29px; border-radius: 50%; border: 1px solid #dfe4d4; color: #9aa789; }
.route-illustration i { display: block; flex: 0 1 40px; height: 1px; background: #e2e6d9; }
.route-error { padding: 10px 0 0; color: var(--rust); font-size: 11px; }
.route-steps { list-style: none; padding: 0; margin: 20px 0 18px; }
.route-step { display: flex; gap: 13px; position: relative; padding-bottom: 22px; }
.route-step:last-child { padding-bottom: 0; }
.route-step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 27px; bottom: 3px; width: 1px; background: #e0e4d5; }
.step-number { display: grid; place-items: center; flex: 0 0 26px; height: 26px; background: #f0f3e8; border: 1px solid #e2e7d7; border-radius: 50%; font: 11px Georgia, serif; color: #70845c; }
.step-content { flex: 1; min-width: 0; }
.step-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.step-objective { margin-top: 3px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.step-time { padding-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.route-note { border-radius: 4px; background: #f6f4ee; padding: 12px 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.route-regenerate { margin-top: 12px; font-size: 10px; }
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 345px; text-align: center; }
.empty-art { width: 90px; height: 73px; position: relative; margin-bottom: 24px; }
.empty-art::before { content: ""; position: absolute; width: 57px; height: 66px; left: 6px; top: 0; transform: rotate(-10deg); border: 1px solid #d6ddc9; border-radius: 4px; background: #f0f3e8; }
.empty-art::after { content: ""; position: absolute; width: 53px; height: 65px; left: 31px; top: 9px; transform: rotate(9deg); border: 1px solid #d6ddc9; border-radius: 4px; background: #fffef8; }
.detail-empty h3 { font: 23px/1.65 var(--display-font); color: #647354; }
.detail-empty p { font-size: 11px; color: #999e8d; margin-top: 12px; }
.detail-empty .text-button { margin-top: 18px; }
.footer { border-top: 1px solid var(--line); color: #999d90; font-size: 10px; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px; }
.connection-error { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #914d34; background: #f2e7da; border: 1px solid #e4d0bd; border-radius: 5px; padding: 12px 15px; font-size: 12px; margin-bottom: 22px; }
.connection-error button { color: #914d34; border: none; border-bottom: 1px solid #be9377; background: transparent; padding: 3px 0; white-space: nowrap; }
.modal { padding: 30px; border: 1px solid #deded2; border-radius: 10px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px #222a2630; }
.modal.task-drawer { inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); height: 100dvh; max-height: none; padding: 0; border: 0; border-left: 1px solid #deded2; border-radius: 0; overflow: hidden; }
.modal.task-drawer[open] { display: flex; }
.modal.form-drawer { inset: 0 0 0 auto; margin: 0; width: min(620px, 100vw); height: 100dvh; max-height: none; border: 0; border-left: 1px solid #deded2; border-radius: 0; padding: 28px; overflow: auto; }
.modal.form-drawer[open] { display: block !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important; margin: 0 !important; width: min(620px, 100vw) !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; transform: none !important; }
.modal.form-drawer form { min-height: 100%; }
.modal.form-drawer .modal-heading { position: sticky; top: -28px; z-index: 1; padding: 0 0 18px; background: var(--surface); }
.modal.form-drawer .modal-actions { position: sticky; bottom: -28px; margin: 28px -28px -28px; padding: 16px 28px; background: var(--surface); border-top: 1px solid var(--line); }
.task-drawer form { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.task-drawer-header { flex: 0 0 auto; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.task-drawer-header h2 { margin-top: 0; font-size: 24px; overflow-wrap: anywhere; }
.task-drawer-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 20px 28px 28px; overscroll-behavior: contain; }
.task-drawer-actions { flex: 0 0 auto; margin: 0; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.task-drawer-actions .button { width: 100%; }
.modal::backdrop { background: #2e362d55; backdrop-filter: blur(3px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.modal-heading h2 { font: 28px/1.4 var(--display-font); margin-top: 8px; }
.icon-button { width: 30px; height: 30px; border: none; color: #7b8270; background: transparent; font-size: 26px; line-height: 1; border-radius: 5px; }
.icon-button:hover { background: #efefe5; }
.modal-description { color: var(--muted); font-size: 14px; margin: 12px 0 25px; }
.modal label { display: block; font-size: 13px; color: #4e5e46; margin: 20px 0 8px; }
.required { color: var(--rust); }
.optional { color: var(--muted); font-size: 12px; margin-left: 4px; }
.modal input, .modal textarea, .modal select { width: 100%; border: 1px solid #dddfd0; border-radius: 5px; padding: 10px 12px; color: var(--ink); background: #fbfbf5; font-size: 14px; min-height: 42px; }
.modal input::placeholder, .modal textarea::placeholder { color: #757d6d; }
.modal textarea { resize: vertical; min-height: 86px; }
.example-row { display: flex; gap: 10px; align-items: center; margin-top: 9px; font-size: 10px; color: #a0a58f; }
.example-row button { padding: 2px 6px; border: none; background: #eef1e4; color: #718260; border-radius: 3px; font-size: 10px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-error { color: #a04e36; background: #f7ede3; padding: 10px 12px; border-radius: 5px; font-size: 12px; margin-top: 16px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 28px; }
.delete-modal h2 { margin: 12px 0; font: 26px var(--display-font); }
.delete-modal p { font-size: 12px; color: #868b79; overflow-wrap: anywhere; }
.delete-modal strong { font-weight: 500; }
.help-steps { padding-left: 22px; margin: 28px 0; }
.help-steps li { padding: 0 0 18px 8px; color: #6b7a58; }
.help-steps strong { font-size: 13px; font-weight: 500; }
.help-steps p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.help-note { background: #f2f3e9; padding: 14px; border-radius: 5px; color: var(--muted); font-size: 13px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 111px); transform: translateX(-50%); background: #3f4d35; color: #f7f7eb; border-radius: 6px; padding: 12px 20px; font-size: 12px; box-shadow: 0 8px 30px #303b2925; z-index: 5; max-width: calc(100vw - 30px); text-align: center; }
/* 次要信息保持可读对比度，浅色只用于装饰与边界。 */
.hero-description, .panel-topline, .goal-card-description, .goal-card-footer,
.detail-description, .detail-meta, .route-empty p, .route-heading > span,
.step-objective, .step-time, .route-note, .empty-list p, .detail-empty p,
.help-steps p, .help-note, .footer, .modal-description { color: #66705d; }
.detail-actions button { color: #637056; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: appear .55s ease both; }
  .hero-art { animation: appear .7s .08s ease both; }
  .workspace { animation: appear .65s .15s ease both; }
  @keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1180px) {
  .sidebar { width: 190px; padding-right: 16px; padding-left: 16px; }
  .main-shell { margin-left: 190px; }
  main { padding: 0 32px; }
  .topbar { padding: 0 32px; }
  h1 { font-size: 40px; }
  .hero { gap: 10px; }
  .hero-art { padding-left: 10px; }
  .art-card { width: 230px; }
  .workbench { grid-template-columns: minmax(245px, .85fr) minmax(300px, 1.15fr); }
  .detail-panel { padding: 24px 20px; }
  .toast { left: calc(50% + 95px); }
}
@media (max-width: 950px) {
  .sidebar { width: 160px; padding: 28px 12px 20px; }
  .brand { margin: 0 6px 45px; font-size: 21px; gap: 7px; }
  .brand img { width: 31px; }
  .brand-caption { font-size: 6px; }
  .sidebar-note { margin-left: 8px; }
  .main-shell { margin-left: 160px; }
  main { padding: 0 24px; }
  .topbar { padding: 0 24px; height: 70px; }
  .hero { grid-template-columns: 1fr; padding-top: 35px; }
  .hero-art { display: none; }
  .workbench { grid-template-columns: minmax(230px, .9fr) minmax(260px, 1.1fr); }
  .toast { left: calc(50% + 80px); }
}
@media (max-width: 720px) {
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 17px 20px; border-right: none; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; font-size: 22px; }
  .brand-caption { font-size: 7px; }
  .sidebar nav { display: flex; flex-wrap: wrap; flex-basis: 100%; align-items: center; gap: 4px; }
  .nav-item { width: auto; margin: 0; padding: 8px; font-size: 12px; gap: 6px; }
  .nav-item svg { width: 15px; height: 15px; flex-basis: 15px; }
  .nav-label, .sidebar-note, .profile { display: none; }
  .main-shell { margin-left: 0; }
  main { padding: 0 20px; }
  .topbar { height: 54px; padding: 0 20px; }
  .topbar time { font-size: 10px; }
  .hero { padding: 30px 0 32px; }
  h1 { font-size: 36px; margin-top: 15px; }
  .hero-description { margin-bottom: 21px; }
  .workbench { grid-template-columns: 1fr; }
  .goal-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .goal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 6px; }
  .empty-list, .loading-text { grid-column: 1 / -1; }
  .goal-card { padding: 13px 10px; }
  .goal-card-description { -webkit-line-clamp: 1; }
  .goal-card-footer { margin-top: 10px; font-size: 9px; }
  .detail-panel { padding: 24px 20px; }
  .detail-empty { min-height: 250px; }
  .footer { font-size: 9px; }
  .footer span:last-child { display: none; }
  .toast { left: 50%; }
  .modal { padding: 24px; }
  .modal.task-drawer { inset: auto 0 0 0; width: 100vw; height: min(92dvh, 760px); max-height: 92dvh; border-left: 0; border-top: 1px solid #deded2; border-radius: 14px 14px 0 0; }
  .modal.form-drawer { inset: auto 0 0 0; width: 100vw; height: min(92dvh, 760px); max-height: 92dvh; border-left: 0; border-top: 1px solid #deded2; border-radius: 14px 14px 0 0; padding: 22px 18px; }
  .modal.form-drawer .modal-heading { top: -22px; }
  .modal.form-drawer .modal-actions { margin: 24px -18px -22px; padding: 14px 18px; }
  .task-drawer-header { padding: 18px 18px 14px; }
  .task-drawer-header h2 { font-size: 22px; }
  .task-drawer-body { padding: 16px 18px 22px; }
  .task-drawer-actions { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .connection-error { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* 计划沿用纸张与鼠尾草绿，进度和当天行动保持清晰。 */
.plan-hint, .task-meta { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 8px 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.plan-confirm { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 18px 0; }
.plan-confirm label { display: grid; gap: 7px; font-size: 12px; color: #5f6c52; }
.plan-confirm input { min-width: 0; max-width: 100%; border: 1px solid #dddfd0; border-radius: 5px; background: #fbfbf5; padding: 10px; color: var(--ink); }
.plan-progress { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 20px 0; }
.plan-progress strong { font: 36px var(--display-font); color: #526747; }
.plan-progress span { font-size: 12px; color: #66705d; }
.plan-progress progress { width: 100%; height: 7px; accent-color: #73865e; border: none; border-radius: 4px; overflow: hidden; }
.plan-progress progress::-webkit-progress-bar { background: #e8ecde; }
.plan-progress progress::-webkit-progress-value { background: #73865e; }
.plan-subtitle { font: 20px var(--display-font); color: #526747; }
.plan-empty { margin: 16px 0; padding: 16px; background: #f0f3e8; color: #526747; font-size: 13px; line-height: 1.8; border-radius: 5px; }
.plan-history { margin-top: 24px; padding-top: 15px; border-top: 1px dashed #dce1d1; }
.plan-history summary { cursor: pointer; font-size: 12px; color: #5f6c52; padding: 8px 0; }
.task-done .step-number { background: #70845c; color: #fff; }
.task-reflection { font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; margin: 10px 0; background: #f3f2e9; border-left: 2px solid #c6cfb5; }
.step-content .text-button { font-size: 11px; margin-top: 5px; }
.plan-edit-card { border: 1px solid #dddfd0; border-radius: 6px; margin: 18px 0; padding: 12px 16px; min-width: 0; }
.plan-edit-card legend { padding: 0 6px; color: #66705d; font-size: 12px; }
.plan-edit-card label:first-of-type { margin-top: 4px; }
.modal .task-completed-label { display: flex; gap: 10px; align-items: center; }
.modal .task-completed-label input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; flex-shrink: 0; padding: 0; accent-color: #73865e; }
.manual-plan-example { display: block; margin-top: 18px; font-size: 12px; }
.plan-import-help { border: 1px solid #dddfd0; background: #f6f6ee; border-radius: 6px; margin: 12px 0; padding: 12px 14px; }
.plan-import-help summary { cursor: pointer; color: #526747; font-size: 13px; }
.plan-import-help textarea { line-height: 1.7; }
.plan-import-help .button { margin-top: 8px; white-space: normal; height: auto; }
.schedule-list { list-style: none; padding: 0; margin: 12px 0; }
.schedule-list li { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.schedule-list .task-meta { margin: 0; }
.schedule-revision { padding: 14px 0; font-size: 12px; }
#schedule-dialog .plan-subtitle { margin-top: 22px; }

/* 今日行动与目标规划分开呈现，沿用纸张、细线和鼠尾草绿。 */
.daily-workspace { --section-accent: var(--sage); position: relative; scroll-margin-top: 20px; margin-bottom: 38px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.daily-workspace::before,
.weekly-workspace::before,
.organization-section::before { content: ""; position: absolute; top: -1px; left: 28px; width: 58px; height: 3px; border-radius: 0 0 3px 3px; background: var(--section-accent); }
.daily-workspace .section-heading { align-items: center; margin-bottom: 10px; gap: 16px; }
.daily-eyebrow { font-size: 10px; letter-spacing: 1.5px; color: var(--sage); margin-bottom: 6px; }
.daily-description { font-size: 14px; color: var(--muted); line-height: 1.8; }
.daily-summary { display: flex; flex-wrap: wrap; gap: 16px 36px; padding: 22px 0; }
.daily-metric { display: flex; align-items: baseline; gap: 8px; }
.daily-metric strong { font: 30px var(--display-font); color: var(--sage); }
.daily-metric span { color: var(--muted); font-size: 13px; }
.daily-tasks { padding: 0; margin: 0; list-style: none; }
.daily-task { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.daily-task-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.daily-task h3 { font-size: 15px; margin: 8px 0; font-weight: 500; }
.daily-task-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.daily-goal { color: var(--muted); font-size: 13px; }
.daily-status { font-size: 10px; color: var(--sage); background: #edf1e6; padding: 2px 7px; border-radius: 3px; }
.daily-overdue .daily-status { color: var(--rust); background: #f5e9e1; }
.daily-overdue .button { border-color: #dec5b7; color: var(--rust); }
.daily-task > .button { flex-shrink: 0; }
.daily-empty { color: var(--sage); background: #f0f3e8; padding: 16px; font-size: 13px; line-height: 1.8; border-radius: 5px; }
.daily-error { padding: 16px 0; color: var(--rust); font-size: 12px; }
.weekly-workspace { --section-accent: #b27c54; position: relative; margin: 10px 0 38px; padding: var(--space-6) 28px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); scroll-margin-top: 20px; }
.weekly-controls { display: grid; grid-template-columns: auto minmax(190px, 250px) auto minmax(12px, 1fr) auto; gap: 10px; align-items: end; margin: 18px 0 10px; }
.weekly-controls label { display: grid; min-width: 0; gap: 5px; font-size: 11px; color: var(--muted); }
.weekly-controls input { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line); padding: 9px; background: var(--paper); border-radius: 5px; color: var(--ink); }
.weekly-controls #weekly-current { grid-column: 5; justify-self: end; white-space: nowrap; }
.weekly-note { font-size: 13px; line-height: 1.8; color: var(--muted); }
.weekly-workspace .plan-subtitle { margin-top: 24px; }
.weekly-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.weekly-metric { min-width: 0; padding: 15px 16px; background: #f3f3ec; border-bottom: 2px solid #d9dfcc; }
.weekly-metric strong, .weekly-metric span { display: block; }
.weekly-metric strong { color: var(--ink); font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.weekly-metric:first-child strong { color: var(--sage); }
.weekly-metric span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.weekly-estimate-note { margin: 8px 0 18px; color: var(--muted); font-size: 12px; }
.weekly-chart { margin: 8px 0 24px; }
.weekly-chart-y-title { margin: 6px 0 2px 44px; color: var(--muted); font-size: 10px; }
.weekly-chart-plot-row, .weekly-chart-x-axis { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: stretch; }
.weekly-chart-y-ticks { position: relative; min-width: 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.weekly-chart-y-ticks span { position: absolute; right: 6px; transform: translateY(-50%); white-space: nowrap; }
.weekly-line-svg { display: block; width: 100%; height: auto; overflow: visible; }
.weekly-line-grid { stroke: #e5e6dd; stroke-width: 1; }
.weekly-line-axis { stroke: #aeb5a5; stroke-width: 1.2; }
.weekly-line-area { fill: #879575; fill-opacity: .12; }
.weekly-line-path { fill: none; stroke: #637552; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.weekly-line-point { fill: #fffefb; stroke: #637552; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.weekly-line-point-max { fill: #b27c54; stroke: #fffefb; stroke-width: 2; }
.weekly-chart-x-title { padding-top: 2px; color: var(--muted); font-size: 10px; }
.weekly-chart-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0; }
.weekly-chart-day { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 1px; }
.weekly-chart-value { max-width: 100%; color: var(--ink); font-size: 11px; font-weight: 500; white-space: nowrap; }
.weekly-chart-weekday { color: var(--ink); font-size: 12px; }
.weekly-chart-date { color: var(--muted); font-size: 10px; }
.weekly-goal { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.weekly-goal .status-badge { margin-left: 10px; }
.weekly-goal progress { width: 100%; height: 6px; accent-color: var(--sage); }
.weekly-feedback, .weekly-record { padding: 16px 0; font-size: 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.weekly-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#weekly-workspace {
  max-width: none;
  margin: 0 0 48px;
  padding: 42px 18px 36px;
  border: 0;
  background: transparent;
}
.progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.progress-heading > div { min-width: 0; }
.progress-heading > div > p:first-child { color: var(--sage); font-size: 12px; }
.progress-heading h2 { margin: 4px 0 5px; font-size: clamp(28px, 3vw, 38px); line-height: 1.35; letter-spacing: -.5px; }
#weekly-range { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.progress-week-controls {
  grid-template-columns: auto minmax(190px, 250px) auto 1fr auto;
  margin: 18px 0 28px;
}
.progress-week-story {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .65fr);
  gap: 44px;
  align-items: end;
  padding: 30px 32px;
  border-left: 3px solid var(--sage);
  border-radius: 12px;
  background: #edf3ef;
}
.progress-week-story span { color: #557267; font-size: 11px; }
.progress-week-story h3 { max-width: 720px; margin: 7px 0 9px; font-size: clamp(20px, 2.2vw, 29px); font-weight: 600; line-height: 1.45; }
.progress-week-story div > p { max-width: 720px; color: var(--muted); font-size: 13px; line-height: 1.8; }
#weekly-strongest-day { padding-left: 18px; border-left: 1px solid #c6d8cf; color: #45655a; font-size: 12px; line-height: 1.8; }
.progress-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.progress-metric { min-width: 0; padding: 20px 22px 18px; border-right: 1px solid var(--line); }
.progress-metric:last-child { border-right: 0; }
.progress-metric > span, .progress-metric strong, .progress-metric small { display: block; }
.progress-metric > span { color: var(--muted); font-size: 11px; }
.progress-metric strong { margin: 3px 0 4px; color: var(--ink); font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.progress-metric:first-child strong { color: var(--sage); }
.progress-metric small { color: #71817a; font-size: 10px; }
.progress-data-note { margin: 10px 0 0; font-size: 11px; }
#weekly-content { margin-top: 12px; }
#weekly-workspace .progress-section-title { margin: 34px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
#weekly-workspace .weekly-chart { margin-top: 14px; }
.progress-goal-list { border-top: 1px solid var(--line); }
.weekly-goal {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr);
  column-gap: 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.weekly-goal-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.weekly-goal-heading strong { font-size: 15px; font-weight: 600; }
.weekly-goal .status-badge { margin-left: 0; }
.weekly-goal-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.weekly-goal-progress-label { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 5px; color: var(--muted); font-size: 11px; text-align: right; }
.weekly-goal progress { grid-column: 2; grid-row: 2; align-self: start; width: 100%; height: 6px; margin-top: 7px; accent-color: var(--sage); }
.weekly-goal-next { grid-column: 1 / -1; margin-top: 14px; padding: 9px 11px; border-radius: 8px; background: #f2f6f3; color: #45655a; font-size: 12px; line-height: 1.7; }
.progress-empty { padding: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
#weekly-workspace .weekly-feedback { padding: 18px 0; }
#weekly-workspace .weekly-feedback strong { font-size: 14px; }
#weekly-workspace .plan-history { margin-top: 22px; }
#weekly-workspace .plan-history > summary { color: #49675d; font-size: 12px; cursor: pointer; }
#weekly-workspace .weekly-actions { justify-content: flex-end; padding-top: 22px; border-top: 1px solid var(--line); }
.overview-workspace { padding: 42px 0 40px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.cockpit-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:8px 0 34px; }
.cockpit-intro { padding-top:0; }
.cockpit-intro p:last-child { color:var(--muted); font-size:14px; }
.cockpit-intro .button { flex:0 0 auto; min-height:48px; border-radius:999px; padding-inline:24px; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; margin-bottom: 24px; background: #e9ece1; border-left: 3px solid var(--sage); border-radius: 6px; }
.overview-heading h1 { margin: 7px 0 4px; font-size: 32px; line-height: 1.35; }
.overview-description { color: var(--muted); font-size: 14px; }
.overview-heading .button { flex: 0 0 auto; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.overview-metric { display: block; min-width: 0; padding: 18px 20px; color: inherit; text-decoration: none; background: #ecefe4; border: 0; border-radius: 14px; transition: background .15s, transform .15s; }
.overview-metric:hover { background: #e4e9da; transform: translateY(-2px); }
.overview-metric:nth-child(2) { border-top-color: #b27c54; }
.overview-metric:nth-child(3) { border-top-color: #8d9b87; }
.overview-metric:nth-child(4) { border-top-color: #c4a574; }
.overview-metric span, .overview-metric strong, .overview-metric small { display: block; }
.overview-metric span { color: var(--muted); font-size: 12px; }
.overview-metric strong { margin-top: 5px; color: var(--ink); font-size: 25px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.overview-metric:nth-child(2) strong { color: var(--rust); }
.overview-metric small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.overview-ai { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(245px, .7fr); gap: 18px; margin-bottom: 24px; overflow: hidden; border: 0; border-radius: 18px; background: transparent; }
.overview-ai-main { min-width: 0; padding: 30px; border: 0; border-radius: 18px; background: linear-gradient(145deg,#fffefb,#f3f6ed); box-shadow: 0 16px 40px #47553a0b; }
.overview-ai-main { min-height: 390px; display:flex; flex-direction:column; justify-content:center; }
.overview-ai-main .overview-ai-diagnosis { max-width: 760px; font-size: 26px; line-height:1.55; }
.overview-ai-main .overview-section-heading h2 { font-size: 26px; letter-spacing:-.02em; }
.overview-ai-shortcuts .button { border-radius:999px; padding-inline:16px; }
.overview-focus-side { border:0; border-radius:18px; background:transparent; }
.overview-focus-side .overview-today { border-radius:18px; background:#fffefb; box-shadow:0 16px 40px #47553a0b; }
.overview-ai-status { margin: 16px 0 7px; color: var(--muted); font-size: 11px; }
.overview-ai-diagnosis { max-width: 850px; font: 19px/1.7 var(--display-font); color: #3f4939; white-space: pre-wrap; overflow-wrap: anywhere; }
.overview-ai-meta { margin-top: 8px; color: var(--muted); font-size: 11px; }
.overview-ai-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 17px 0 0; list-style: none; }
.overview-ai-plan li { min-width: 0; padding: 11px 12px; border: 1px solid #e0ded2; border-radius: 5px; background: #faf8f2; }
.overview-ai-plan strong, .overview-ai-plan span { display: block; overflow-wrap: anywhere; }
.overview-ai-plan strong { font-size: 12px; line-height: 1.55; }
.overview-ai-plan span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.overview-ai-empty { padding: 12px 0 2px; }
.overview-ai-empty strong { display: block; color: #465240; font-size: 16px; }
.overview-ai-empty p { max-width: 680px; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.overview-ai-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.overview-ai-shortcuts .button { min-height: 36px; padding: 7px 12px; font-size: 11px; }
.overview-ai-guard { margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.overview-focus-side { min-width: 0; border-left: 1px solid var(--line); background: #f4f2e9; }
.overview-focus-side .overview-today { padding: 22px 20px; border: 0; border-radius: 0; background: transparent; }
.overview-today-integrated h3 { font-size: 16px; font-weight: 600; }
.overview-ai-evidence { min-width: 0; padding: 22px; border: 0; border-radius: 18px; background: #eef2e8; }
.overview-ai-evidence h3 { margin: 5px 0 15px; font-size: 16px; font-weight: 600; }
.overview-ai-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.overview-ai-evidence-item { min-width: 0; padding: 9px; border-radius: 5px; background: #fffdf7; border: 1px solid #e5e1d5; }
.overview-ai-evidence-item strong, .overview-ai-evidence-item span { display: block; }
.overview-ai-evidence-item strong { color: #4b5a42; font-size: 18px; font-variant-numeric: tabular-nums; }
.overview-ai-evidence-item span { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.overview-ai-profile { margin-top: 13px; padding-top: 11px; border-top: 1px dashed #d7d4c7; color: var(--muted); font-size: 10px; line-height: 1.6; }
.goal-ai-details { margin: 15px 0 4px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.followup-summary { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 0 20px; color: var(--muted); font-size: 13px; }
.followup-summary strong { margin-left: 8px; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.followup-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.followup-tabs button { min-height: 42px; min-width: 110px; padding: 9px 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.followup-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sage); font-weight: 600; }
.followup-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) auto; gap: 10px; align-items: center; }
.followup-search input, .followup-search select { min-width: 0; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 13px; }
.followup-row { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.followup-row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.followup-row-heading h3 { font-size: 17px; line-height: 1.6; margin: 4px 0; }
.followup-state { flex-shrink: 0; color: var(--rust); font-size: 12px; }
.followup-answer { margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--sage); color: var(--muted); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.followup-history { margin-top: 12px; font-size: 13px; }
.followup-history summary { color: var(--muted); cursor: pointer; }
.followup-modal .modal-heading h2 { font-size: 22px; }
.followup-modal .modal-description { margin-bottom: 14px; overflow-wrap: anywhere; }
.review-cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-cycle span { padding: 10px 4px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-cycle .is-complete { color: var(--sage); font-weight: 600; }
.task-followup-actions { margin-top: 6px; gap: 14px; }
#question-source { margin-top: 18px; color: var(--muted); font-size: 13px; }
#question-source-content { display: grid; gap: 6px; padding-top: 10px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .followup-search { grid-template-columns: minmax(0, 1fr) auto; }
  .followup-search input { grid-column: 1 / -1; }
  .followup-row-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .review-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.goal-ai-details summary { color: #59664f; font-size: 13px; font-weight: 500; cursor: pointer; }
.goal-ai-details[open] summary { margin-bottom: 8px; }
.goal-ai-details .plan-hint { margin: 4px 0 10px; font-size: 11px; }
.ai-modal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ai-modal-row input { width: 100px; }
.ai-modal-row > span { margin-left: -5px; color: var(--muted); font-size: 12px; }
.ai-modal-row .button { margin-left: auto; min-height: 37px; padding: 8px 12px; font-size: 11px; }
.ai-run-status { margin: 12px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ai-plan-result { max-height: 35vh; overflow: auto; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ai-result-title { margin: 0 0 6px; font-size: 16px; }
.ai-result-description, .ai-result-summary { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ai-result-summary { color: var(--ink); font-weight: 600; }
.ai-result-tasks { margin: 8px 0 0; padding-left: 24px; }
.ai-result-task { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ai-result-task strong { font-size: 13px; }
.ai-result-task p { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.overview-lower { display: block; }
.overview-trend, .overview-today { min-width: 0; }
.overview-trend, .overview-today { padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.overview-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.overview-section-heading h2 { font-size: 19px; font-weight: 500; }
.overview-section-heading .text-button { flex: 0 0 auto; font-size: 12px; }
.overview-today-summary { margin-top: 17px; color: var(--muted); font-size: 12px; }
.overview-today-list { margin-top: 8px; }
.overview-task { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.overview-task-status { grid-row: span 2; color: var(--sage); font-size: 11px; }
.overview-task.is-overdue .overview-task-status { color: var(--rust); }
.overview-task-content { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.overview-task-goal { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.overview-today-empty { padding: 12px 0; color: var(--muted); font-size: 13px; }
.data-workspace { --section-accent: var(--sage); }
.analytics-workspace { --section-accent: #738f67; }
.ai-form-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 14px; }
.ai-output { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #faf9f5; }
.ai-answer-paragraph { white-space: pre-wrap; line-height: 1.8; }
.ai-next-steps, .ai-citations { padding-left: 22px; line-height: 1.8; }
.ai-uncertainty { margin: 18px 0; padding: 14px 16px; border-left: 3px solid #b49566; background: #f2eee5; }
.ai-uncertainty p { margin: 5px 0 0; }
.ai-plan-proposal { margin-top: 18px; padding: 16px; border: 1px solid #c8c1af; border-radius: 6px; background: #f5f2e9; }
.ai-plan-proposal .button { margin-top: 8px; }
.quiz-workspace { --section-accent: #98734d; }
.quiz-card { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fbfaf6; }
.quiz-attempt-form { display: grid; gap: 14px; margin-top: 18px; }
.quiz-attempt-form label { display: grid; gap: 6px; }
.quiz-attempt-form .button { justify-self: start; }
.quiz-score { color: var(--sage); font-size: 24px; }
.quiz-wrong { margin-top: 12px; padding: 12px 14px; border-left: 3px solid #ad6045; border-radius: 0 8px 8px 0; background: #f6ebe6; }
.quiz-wrong p { margin: 6px 0; }
.quiz-mastery { margin: 14px 0; padding: 12px 14px; border-radius: var(--radius-control); background: #eef1e9; }
.quiz-mastery p { margin: 5px 0; }
.quiz-create { margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line); }
.quiz-create form { display: grid; gap: 14px; margin-top: 16px; }
.quiz-create label { display: grid; gap: 6px; }
.quiz-create .button { justify-self: start; }
.reminder-permission-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:18px 0; }
.reminder-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:18px; border:1px solid var(--line); border-radius:6px; background:#fbfaf6; }
.reminder-settings fieldset { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:18px; border:0; padding:0; }
.reminder-settings legend { font-weight:700; margin-bottom:10px; }
.reminder-settings .button { align-self:end; }
.reminder-list { display:grid; gap:10px; margin-top:16px; }
.reminder-card { padding:14px 16px; border:1px solid var(--line); border-radius:6px; background:#fbfaf6; }
.reminder-card p { margin:5px 0 0; }
.reminder-overdue { border-left:4px solid #ad6045; }
.ai-panel-kicker { color:#6d8061; font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; }
.ai-output, #coach-output { border:1px solid #d6dfcf; border-radius:16px; background:#fffef9; padding:22px; box-shadow:0 12px 30px #63715810; }
.coach-evidence { border-radius:12px; border-color:#dbe4d5; background:#f8faf5; }
.coach-resource-guidance { margin: 20px 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: var(--radius-card); background: var(--surface); }
.coach-resource-guidance > p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.coach-resource-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 12px; }
.coach-resource-actions .button { min-height: 40px; }
.coach-source-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.coach-source-link { text-align: left; overflow-wrap: anywhere; }
.coach-actions li { border-left:0; border:1px solid #e0e7db; border-radius:12px; background:#fff; box-shadow:0 5px 15px #6371580d; }
.ai-context-strip { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:14px 16px; border-radius:14px; background:#edf1e7; }
.ai-context-strip span,.ai-context-strip strong { display:block; }
.ai-context-strip span { color:#7b8673; font-size:10px; }
.ai-context-strip strong { margin-top:3px; color:#4c5c43; font-size:12px; font-weight:500; }
.ai-suggested-prompts { grid-column:1; display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.ai-suggested-prompts > span { width:100%; color:#7b8673; font-size:11px; }
.ai-suggested-prompts button { border:1px solid #dce3d4; border-radius:999px; padding:6px 10px; color:#59694e; background:#f7f9f3; font-size:11px; }
.ai-suggested-prompts button:hover { background:#e9efe1; }
#ai-output:empty { display:none; }
.coach-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-4); margin:16px 0; }
.coach-evidence { padding:14px; border-radius:6px; background:#fff; }
.coach-actions { display:grid; gap:10px; padding:0; list-style:none; }
.coach-actions li { padding:14px; border-left:3px solid var(--sage); border-radius:10px; background:#fff; }
.task-assessment { margin:18px 0; padding:14px; border:1px solid var(--line); border-radius:10px; background:#f8f8f3; }
.task-assessment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
@media(max-width:520px) { .task-assessment-grid { grid-template-columns:1fr; } }
.submission-card { margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.submission-review { margin-top:8px; padding:10px; border-radius:8px; background:#eef1e9; }
@media(max-width:700px) { .coach-columns { grid-template-columns:1fr; } }
@media(max-width:700px) { .ai-context-strip { grid-template-columns:1fr; } .ai-suggested-prompts { display:block; } .ai-suggested-prompts button { margin:4px 4px 0 0; } }
@media(max-width:700px) { .cockpit-intro { display:block; padding-bottom:24px; } .cockpit-intro h1 { font-size:32px; } .cockpit-intro .button { width:100%; margin-top:18px; } }
@media(max-width:520px) { .modal.form-drawer[open] { top:auto !important; right:0 !important; bottom:0 !important; left:0 !important; width:100vw !important; height:92dvh !important; max-height:92dvh !important; border-radius:14px 14px 0 0; } }
@media(max-width:700px) { .reminder-settings { grid-template-columns:1fr; } .reminder-settings fieldset { flex-direction:column; gap:10px; } .reminder-permission-row { align-items:flex-start; flex-direction:column; } }
.activity-calendar { display: grid; grid-template-columns: repeat(14, minmax(10px, 1fr)); gap: 5px; margin: 14px 0; }
.activity-cell { aspect-ratio: 1; min-height: 12px; border-radius: 3px; background: #eceee8; border: 1px solid rgba(61,75,55,.08); }
.activity-cell.level-1 { background: #d9e4d2; }
.activity-cell.level-2 { background: #b9cfad; }
.activity-cell.level-3 { background: #8fb17f; }
.activity-cell.level-4 { background: #5f8551; }
.analytics-milestone { padding: 13px 0; border-bottom: 1px solid var(--line); }
.analytics-milestone-heading { display: flex; justify-content: space-between; gap: 15px; }
.analytics-milestone small { color: var(--muted); }
.analytics-progress { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 6px; background: #e8e9e3; }
.analytics-progress span { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.data-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.data-actions > * { max-width: 100%; }
.backup-upload { display: grid; gap: 8px; padding: 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 5px; }
.backup-upload input { max-width: 100%; min-width: 0; font-size: 12px; }
.trash-heading { margin-top: 28px; }
.trash-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.backup-filename { font-size: 11px; max-width: 100%; }
.danger-text { color: var(--rust); }
.restore-table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 13px; }
.restore-table th, .restore-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
#weekly-copy-label { display: block; margin-top: 18px; font-size: 12px; color: var(--muted); }
#weekly-copy-text { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
@media (max-width: 600px) {
  .form-columns { grid-template-columns: 1fr; gap: 0; }
  .daily-workspace { padding: 20px 18px; }
  .daily-summary { gap: 12px 20px; }
  .daily-metric { gap: 5px; }
  .daily-metric strong { font-size: 25px; }
  .daily-task { align-items: flex-start; flex-direction: column; gap: 10px; }
  .daily-task > .button { align-self: flex-end; }
  .weekly-workspace { padding: 20px 18px; }
  .weekly-workspace .section-heading { align-items: center; gap: 10px; }
  .weekly-workspace .section-heading h2 { font-size: 21px; }
  .weekly-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .weekly-metric { padding: 12px; }
  .weekly-metric strong { font-size: 18px; }
  .weekly-chart-y-title { margin-left: 37px; }
  .weekly-chart-plot-row, .weekly-chart-x-axis { grid-template-columns: 37px minmax(0, 1fr); }
  .weekly-chart-y-ticks { font-size: 9px; }
  .weekly-chart-y-ticks span { right: 4px; }
  .weekly-chart-x-title { font-size: 9px; }
  .weekly-chart-labels { gap: 1px; padding: 0; }
  .weekly-chart-value { font-size: 9px; }
  .weekly-chart-weekday { font-size: 11px; }
  .weekly-chart-date { font-size: 8px; }
  .weekly-controls { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: end; }
  .weekly-controls #weekly-current { grid-column: 3; justify-self: end; }
  .weekly-controls .button { padding: 8px 10px; }
  #weekly-workspace { padding: 28px 14px 24px; }
  .progress-heading { align-items: center; }
  .progress-week-controls { grid-template-columns: auto minmax(0, 1fr) auto; }
  .progress-week-controls #weekly-current { grid-column: 3; }
  .progress-week-story { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 23px 20px; }
  #weekly-strongest-day { padding: 12px 0 0; border-top: 1px solid #c6d8cf; border-left: 0; }
  .progress-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-metric { padding: 15px 14px; }
  .progress-metric:nth-child(2) { border-right: 0; }
  .progress-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .progress-metric strong { font-size: 21px; }
  .weekly-goal { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .weekly-goal-progress-label { grid-column: 1; grid-row: auto; margin: 8px 0 0; text-align: left; }
  .weekly-goal progress { grid-column: 1; grid-row: auto; margin-top: 0; }
  .weekly-goal-next { grid-column: 1; }
  .overview-workspace { padding: 28px 0 30px; }
  .overview-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .overview-heading { padding: 17px 16px; margin-bottom: 18px; }
  .overview-heading h1 { font-size: 27px; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
  .overview-metric { padding: 12px; }
  .overview-metric strong { font-size: 21px; }
  .ai-plan-result { max-height: 40vh; }
  .overview-ai { grid-template-columns: 1fr; }
  .overview-ai-main { padding: 18px 16px; }
  .overview-focus-side { border-top: 1px solid var(--line); border-left: 0; }
  .overview-focus-side .overview-today { padding: 18px 16px; }
  .overview-ai-evidence { padding: 18px 16px; border-top: 1px solid var(--line); border-left: 0; }
  .overview-ai-plan { grid-template-columns: 1fr; }
  .overview-ai-shortcuts .button { flex: 1 1 145px; }
  .overview-trend, .overview-today { padding: 15px 14px; }
  .activity-calendar { grid-template-columns: repeat(7, minmax(10px, 1fr)); gap: 4px; }
  .ai-form-row { grid-template-columns: 1fr; }
  .modal-actions .button { flex: 1 1 130px; }
}

/* 学习时间：沿用纸张、鼠尾草绿和暖色标记。 */
.time-layout { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.time-timer,.time-budget { padding:24px; background:var(--paper, #faf9f5); border:1px solid #dedfd6; border-radius:12px; }
.time-timer { border-left:4px solid #64816d; }
.timer-clock { display:block; font-size:clamp(24px,3vw,36px); font-variant-numeric:tabular-nums; margin:12px 0 20px; font-weight:500; }
.time-budget input { width:130px; padding:10px; border:1px solid #dedfd6; border-radius:6px; background:transparent; font:inherit; }
.time-budget label { display:block; font-size:13px; margin-bottom:10px; }
.task-time-panel { border-bottom:1px solid #dedfd6; padding-bottom:20px; margin-bottom:20px; }
.time-record { padding:16px 0; border-top:1px solid #e4e4dc; }
.time-record strong { font-size:14px; }
.time-week-days { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin:18px 0; }
.time-week-day { padding:12px 8px; background:#efeee7; border-radius:6px; font-size:12px; }
.time-week-day span,.time-week-day strong { display:block; margin-bottom:4px; }
@media(max-width:700px) { .time-layout { grid-template-columns:1fr; } .time-week-days { grid-template-columns:repeat(2,1fr); } .time-timer,.time-budget { padding:18px; } }

.revision-modal { width:min(780px,calc(100vw - 32px)); max-width:780px; }
.revision-step { background:#f5f4ee; border:1px solid #dedfd6; border-left:3px solid #748a6e; border-radius:8px; padding:18px; margin:18px 0; }
.revision-step-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.revision-field { display:block; }
.revision-weekdays { border:1px solid #dedfd6; border-radius:8px; display:flex; flex-wrap:wrap; gap:14px; padding:16px; margin:20px 0 8px; }
.revision-weekdays label { display:flex; align-items:center; gap:5px; margin:0; }
.modal .revision-weekdays input[type=checkbox] { width:18px; height:18px; margin:0; }
.revision-removed-row,.revision-removal-note { font-size:13px; padding:12px; background:#f2e9de; border-radius:6px; margin:10px 0; }
.revision-preview-list { padding-left:24px; }
.revision-preview-list li { padding:10px 0; border-bottom:1px solid #dedfd6; }
#revision-preview { border-top:1px solid #dedfd6; margin-top:22px; }
@media(max-width:500px) { .revision-step-heading { align-items:flex-start; flex-direction:column; gap:4px; } .revision-step { padding:12px; } }

.revision-modal .modal-heading { position:sticky; top:0; background:var(--surface); z-index:2; border-bottom:1px solid #dedfd6; padding:8px 0 14px; }
.revision-modal .modal-heading h2 { font-size:24px; }
.modal .revision-weekdays input[type=checkbox] { min-height:18px; padding:0; accent-color:#73865e; }
.modal .revision-weekdays label { min-height:36px; margin:0; }

.organization-section { --section-accent: var(--sage); position: relative; margin-top: 32px; padding: 30px; border: 1px solid var(--line); background: var(--paper, #fff); border-radius: 6px; }
.search-filters { display: grid; gap: 10px; margin: 18px 0 12px; }
.search-primary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.search-more { border: 1px solid #e1e4d7; border-radius: 5px; background: #fafaf6; }
.search-more summary { cursor: pointer; padding: 9px 12px; color: #5f6c52; font-size: 13px; }
.search-more-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 0 12px 12px; }
.search-filters label { margin: 0; min-width: 0; }
.search-task, .milestone-card { padding: 18px 0; border-bottom: 1px solid #e5e6dc; overflow-wrap: anywhere; }
.search-task h3 { margin: 8px 0; }
.search-task button { margin-right: 14px; }
.milestone-section { padding: 18px 0; border-bottom: 1px solid #e5e6dc; }
.organization-checks { max-height: 280px; overflow-y: auto; border: 1px solid #d6ddcc; border-radius: 8px; padding: 12px; margin: 18px 0; }
.organization-checks label { display: flex; align-items: start; gap: 10px; margin: 8px 0; overflow-wrap: anywhere; }
.organization-checks input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.organization-modal .modal-heading { position: sticky; top: -1px; z-index: 2; background: #fff; }
.organization-modal .modal-heading h3 { overflow-wrap: anywhere; }
@media(max-width:600px) { .search-primary-row, .search-more-grid { grid-template-columns: 1fr; } .search-primary-row .button { justify-self: start; } .organization-section { padding: 22px 18px; } }

.search-filters input, .search-filters select { width: 100%; min-width: 0; box-sizing: border-box; display: block; margin-top: 7px; padding: 11px 12px; border: 1px solid #d6ddcc; border-radius: 8px; background: #fafaf6; color: #353f2e; font: inherit; }
.search-filters button { align-self: end; justify-self: start; }
.organization-modal .task-completed-label { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; }

.organization-modal .organization-checks input { min-height: 18px; padding: 0; }
.organization-modal .organization-checks label { display: flex; margin: 8px 0; }
.organization-modal .modal-heading h2 { overflow-wrap: anywhere; }

.transfer-workspace { --section-accent: #9aab84; }
.transfer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin: 26px 0; }
.transfer-pane { background: #faf9f4; border: 1px solid #e8e6dd; border-radius: 6px; padding: 23px; min-width: 0; }
.transfer-pane .section-heading { align-items: center; gap: 10px; }
.transfer-pane .data-actions { flex-wrap: wrap; }
.template-card { border-bottom: 1px solid #dfe3d5; padding: 17px 0; overflow-wrap: anywhere; }
.template-card strong { font: 17px/1.5 var(--display-font); }
.template-card .data-actions { margin-top: 10px; }
.transfer-pane label, .transfer-export label { color: #536047; font-size: 13px; }
.transfer-pane textarea, .transfer-pane input { width: 100%; box-sizing: border-box; padding: 10px 12px; margin: 8px 0 14px; border: 1px solid #d5ddce; border-radius: 5px; background: #fffef9; }
.transfer-pane textarea { resize: vertical; }
.transfer-file { display: inline-flex; margin-top: 15px; }
.transfer-export { border-top: 1px solid #e1e4d6; padding: 21px 0 4px; }
.transfer-goals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; max-height: 280px; overflow-y: auto; margin: 17px 0; }
.transfer-goals label { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #dbe2d4; border-radius: 5px; overflow-wrap: anywhere; min-width: 0; }
.transfer-goals input { flex: 0 0 16px; width: 16px; height: 16px; }
.transfer-modal .modal-heading { position: sticky; top: -1px; z-index: 2; background: var(--surface); }
.template-step { display: grid; grid-template-columns: minmax(0,1fr) 94px 54px; gap: 9px; border-bottom: 1px solid #e1e4d6; padding: 13px 0; }
.template-step input:first-child, .template-step textarea { grid-column: 1 / -1; }
.template-step input[type=number] { grid-column: 2; }
.template-step button { grid-column: 3; }
.transfer-decisions { max-height: 230px; overflow-y: auto; border-top: 1px solid #e1e4d6; border-bottom: 1px solid #e1e4d6; padding: 12px 12px 12px 30px; }
.transfer-decisions li { margin: 7px 0; overflow-wrap: anywhere; }
#transfer-preview-content .form-error { display: block; margin: 8px 0; }
@media(max-width:800px) { .transfer-grid { grid-template-columns: 1fr; } .transfer-goals { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .transfer-pane { padding: 17px; } .transfer-goals { grid-template-columns: 1fr; } .transfer-pane .section-heading { align-items: flex-start; flex-direction: column; } }

/* The teacher's conversation and the learner's work share one quiet space. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.button-primary { background: var(--accent-primary); border-color: var(--accent-primary); color: white; }
.button-primary:not(:disabled):hover { background: #185343; border-color: #185343; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #388a73; }
input, textarea, select { accent-color: var(--sage); }
select { color-scheme: light; }
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-height: 42px;
  border: 1px solid #cbd9d1 !important;
  border-radius: 10px !important;
  padding-left: 12px !important;
  padding-right: 38px !important;
  background-color: #fbfdfb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Crect width='28' height='28' rx='7' fill='%23E6F0EA'/%3E%3Cpath d='m10.5 12.25 3.5 3.5 3.5-3.5' stroke='%23216957' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 28px;
  box-shadow: 0 1px 2px rgba(25, 44, 43, .04);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
select:not([multiple]):not(:disabled):hover {
  border-color: #8eaa9b !important;
  background-color: #f6faf7;
  box-shadow: 0 3px 10px rgba(33, 105, 87, .08);
}
select:not([multiple]):focus {
  border-color: #5f9079;
  box-shadow: 0 0 0 1px rgba(56, 138, 115, .14);
}
select:disabled {
  cursor: not-allowed;
  color: #8a9890;
  background-color: #f1f4f2;
  opacity: .72;
}
select option { color: var(--ink); background: #fbfdfb; }
select[multiple] {
  border: 1px solid #cbd9d1;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #a5b9ae transparent;
}
select[multiple] option { padding: 7px 10px; border-radius: 4px; }
select[multiple] option:checked { color: #174f40; background: #dfebe4 linear-gradient(#dfebe4, #dfebe4); }
.custom-select {
  position: relative;
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 6px 6px 6px 12px;
  border: 1px solid #cbd9d1;
  border-radius: 10px;
  background: #fbfdfb;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(25, 44, 43, .04);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.custom-select-trigger::after {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #e6f0ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='m10.5 12.25 3.5 3.5 3.5-3.5' stroke='%23216957' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: transform .16s ease, background-color .16s ease;
}
.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-trigger:hover {
  border-color: #8eaa9b;
  background: #f6faf7;
  box-shadow: 0 3px 10px rgba(33, 105, 87, .08);
}
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  outline: 0;
  border-color: #5f9079;
  box-shadow: 0 0 0 1px rgba(56, 138, 115, .14);
}
.custom-select.is-open .custom-select-trigger::after { transform: rotate(180deg); }
.custom-select-trigger:disabled {
  cursor: not-allowed;
  color: #8a9890;
  background: #f1f4f2;
  opacity: .72;
}
.custom-select-popover {
  position: fixed;
  z-index: 3000;
  box-sizing: border-box;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #cbd9d1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 53, 42, .18), 0 3px 10px rgba(25, 53, 42, .08);
  scrollbar-width: thin;
  scrollbar-color: #a5b9ae transparent;
  animation: custom-select-enter .13s ease-out;
}
.custom-select-popover[hidden] { display: none; }
.custom-select-option {
  position: relative;
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 34px 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #31483f;
  font: 13px/1.45 var(--body-font);
  text-align: left;
  cursor: pointer;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: 0;
  background: #edf4ef;
  color: #174f40;
}
.custom-select-option[aria-selected="true"] {
  background: #e2eee6;
  color: #185c49;
  font-weight: 600;
}
.custom-select-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  color: #216957;
  font-size: 13px;
  transform: translateY(-50%);
}
.custom-select-option:disabled { color: #9ca8a1; cursor: not-allowed; }
.modal .custom-select,
.followup-search .custom-select,
.search-filters .custom-select,
.conversation-history .custom-select,
.ai-form-row .custom-select,
.task-assessment-grid .custom-select,
.learner-profile .custom-select,
.quiz-create .custom-select { width: 100%; }
.modal .custom-select { display: block; }
@keyframes custom-select-enter {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .custom-select-popover { animation: none; }
  .custom-select-trigger::after { transition: none; }
}
.sidebar { width: 208px; background: #f0f4f1; border-color: var(--line); padding: 28px 16px 20px; overflow-y: auto; }
.brand { gap: 10px; margin: 0 10px 10px; letter-spacing: 1px; font-size: 24px; }
.brand-subtitle { margin: 0 10px 34px; font-size: 11px; color: var(--muted); }
.nav-item { min-height: 42px; padding: 10px 12px; color: #4b625a; font-size: 13px; border-radius: 7px; }
.nav-item.current { background: #deebe3; color: #195c49; }
.nav-item:hover { background: #e6eee8; }
.nav-item.nav-ai { margin-top: 0; color: #305d4c; background: transparent; }
.nav-item.nav-ai.current { background: #deebe3; }
.nav-symbol { font-size: 20px; }
.session-nav-label { margin-top: 28px; letter-spacing: 0; font-size: 11px; }
.nav-more { margin-top: 14px; }
.nav-more .nav-subitem { font-size: 12px; padding-left: 42px; }
.recent-learning { padding: 2px 0 0 36px; }
.recent-goal { display: block; width: 100%; border: 0; background: transparent; color: var(--muted); text-align: left; padding: 7px 4px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-goal:hover { color: var(--sage); }
.sidebar-note { margin: auto 12px 30px; padding-top: 32px; }
.sidebar-note p { font: 13px/1.9 var(--body-font); color: var(--muted); }
.note-line { background: #83a18e; }
.profile { font-size: 11px; }
.profile small { font-size: 9px; }
.avatar { background: #dce8df; color: var(--sage); }
.main-shell { margin-left: 208px; }
.topbar { height: 64px; padding: 0 40px; border-bottom-color: var(--line); }
.breadcrumb { color: var(--muted); }
main { padding: 0 40px; max-width: 1560px; }
.learning-home { max-width: none; margin: 0; padding: clamp(40px, 6vh, 80px) 18px 36px; }
.home-intro { margin-bottom: 28px; }
.teacher-mark { display: block; color: var(--sage); font-size: 34px; line-height: 1; margin-bottom: 22px; }
.home-intro > p:first-of-type { color: var(--sage); font-size: 12px; margin-bottom: 10px; }
.home-intro h1 { font: 600 clamp(28px, 3vw, 40px)/1.4 var(--body-font); letter-spacing: -.8px; margin: 0 0 12px; }
.home-description { color: var(--muted); font-size: 14px; line-height: 1.85; }
.home-composer { background: white; border: 1px solid #c9d9cf; border-radius: 16px; padding: 18px 20px 14px; box-shadow: 0 8px 26px #214d3610; }
.home-composer:focus-within { border-color: #60967d; }
.home-composer textarea, .session-composer textarea { border: 0; background: transparent; padding: 8px 10px; resize: vertical; width: 100%; min-height: 78px; font-size: 14px; line-height: 1.85; border-radius: 10px; color: var(--ink); }
.home-composer textarea::placeholder, .session-composer textarea::placeholder { color: #84958c; }
.home-composer textarea:focus, .session-composer textarea:focus { box-shadow: none; }
.home-composer-footer, .composer-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.composer-context { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.composer-context select, .composer-footer select { max-width: 240px; border-color: transparent !important; background-color: #f0f5f1; padding: 7px 36px 7px 11px; font-size: 12px; color: #426653; min-height: 34px; }
.composer-context .custom-select, .composer-footer .custom-select { max-width: 240px; }
.composer-context .custom-select-trigger, .composer-footer .custom-select-trigger { min-height: 34px; padding: 3px 4px 3px 11px; border-color: transparent; background: #f0f5f1; color: #426653; font-size: 12px; }
.composer-context .custom-select-trigger::after, .composer-footer .custom-select-trigger::after { width: 26px; height: 26px; flex-basis: 26px; background-size: 26px; }
.home-composer .button { border-radius: 9px; padding: 9px 16px; font-size: 12px; min-height: 38px; }
.home-starters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.home-starters button { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; background: transparent; color: #526b5c; font-size: 12px; }
.home-starters button:hover { background: #eaf2eb; }
.home-continuity { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.home-continuity .overview-section-heading h2 { font: 600 14px var(--body-font); }
.home-continuity .overview-today { padding: 0; background: transparent; border: 0; border-radius: 0; }
.home-continuity .overview-ai-status { color: #74857a; margin: 12px 0; font-size: 11px; }
.home-continuity .overview-ai-diagnosis { font-size: 13px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-continuity .overview-ai-empty { padding: 0; background: transparent; border: 0; }
.home-continuity .overview-ai-empty strong { font-size: 13px; font-weight: 500; }
.home-continuity .overview-ai-empty p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.home-continuity .overview-ai-meta { font-size: 11px; color: var(--muted); margin-top: 10px; }
.home-continuity .overview-ai-plan { display: none; }
.home-continuity .home-next, .home-continuity .overview-today-integrated { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.home-next-actions { display: flex; gap: 18px; margin-top: 15px; }
.home-next-actions .text-button { font-size: 12px; }
.home-evidence { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.home-evidence summary { cursor: pointer; }
.home-evidence .overview-ai-evidence-grid { margin-top: 15px; grid-template-columns: repeat(5, 1fr); }
.overview-metrics { margin: 24px 0; }
.overview-metric { background: #f5f8f5; border-color: var(--line); border-radius: 6px; }
.progress-chart { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.progress-chart summary { cursor: pointer; }
.learning-session.ai-workspace { display: block; margin: 26px 0 0; padding: 0; overflow: visible; background: transparent; border: 0; }
.session-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.session-heading h1 { font: 600 26px/1.4 var(--body-font); margin: 0; }
.session-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.session-controls label { min-width: 0; }
.session-controls select { min-height: 38px; background-color: white; border: 1px solid var(--line); border-radius: 8px; padding: 7px 38px 7px 11px; max-width: 230px; font-size: 12px; }
.session-controls .custom-select { max-width: 230px; }
.session-controls .custom-select-trigger { min-height: 38px; border-radius: 8px; background: white; font-size: 12px; }
.session-controls .button { font-size: 12px; min-height: 38px; padding: 8px 13px; border-radius: 7px; }
.session-goal-picker { flex: 0 1 auto; }
.session-goal-refresh { flex: 0 0 auto; font-size: 11px; }
.session-goal-context-disclosure { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.session-goal-context-disclosure[hidden] { display: none; }
.session-goal-context-disclosure > summary { display: flex; width: fit-content; align-items: baseline; flex-wrap: wrap; gap: 9px; cursor: pointer; list-style: none; }
.session-goal-context-disclosure > summary::-webkit-details-marker { display: none; }
.session-goal-context-disclosure > summary::before { content: "+"; color: var(--sage); font-size: 15px; line-height: 1; }
.session-goal-context-disclosure[open] > summary::before { content: "−"; }
.session-goal-context-disclosure > summary span { color: var(--ink); font-weight: 600; }
.session-goal-context-disclosure > summary small { color: var(--muted); font-size: 11px; }
.session-goal-context-body { max-width: 760px; padding: 14px 0 0 20px; }
.session-context-footnote { margin: 16px 0 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.session-journey { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; color: #7c8c82; font-size: 11px; }
.session-journey span + span::before { content: "·"; margin-right: 20px; color: #a6b7aa; }
.session-journey .journey-current { color: var(--sage); }
.session-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); height: min(820px, max(590px, calc(100vh - 220px))); align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.teacher-conversation { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 22px; border-right: 1px solid var(--line); }
.conversation-thread { flex: 1 1 0; height: auto; min-height: 0; max-height: 48vh; overflow-y: auto; overscroll-behavior: contain; padding: 24px 4px 16px; scrollbar-width: thin; }
.conversation-message { padding: 0 0 24px; overflow-wrap: anywhere; }
.message-author { color: #577663; font-size: 11px; font-weight: 600; }
.message-content { margin-top: 8px; color: #30473b; font-size: 13px; line-height: 1.95; white-space: pre-wrap; }
.message-user { margin: 0 0 24px 24px; padding: 12px 15px; background: #f1f5f2; border-radius: 10px 10px 2px 10px; }
.message-user .message-author { color: #7d8a80; }
.message-user .message-content { margin-top: 4px; }
.message-failed { display: block; margin-top: 10px; color: #a94c32; font-size: 11px; }
.conversation-message .button { margin-top: 12px; font-size: 12px; }
.teacher-conversation .ai-suggested-prompts { display: flex; gap: 6px; margin: 14px 0 10px; }
.teacher-conversation .ai-suggested-prompts button { border-color: #e2e9e2; border-radius: 6px; background: white; font-size: 11px; color: #5c7361; }
.session-composer { background: #fafcfb; border: 1px solid #d6e2d9; border-radius: 10px; padding: 14px; }
.session-composer .button { min-height: 34px; padding: 7px 13px; border-radius: 7px; font-size: 12px; }
.request-status { color: var(--sage); font-size: 12px; padding: 8px 0; }
.learning-canvas { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; background: #f6f9f6; }
.canvas-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 24px 16px; }
.canvas-heading h2 { font: 600 17px/1.5 var(--body-font); margin-top: 0; }
.canvas-goal-label { color: #5a7361; max-width: 48%; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas-tabs { display: flex; border-bottom: 1px solid #dce6dd; padding: 0 24px; gap: 22px; }
.canvas-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 3px 12px; background: transparent; color: #738378; font-size: 12px; }
.canvas-tabs button[aria-selected="true"] { color: var(--sage); border-bottom-color: var(--sage); font-weight: 600; }
.canvas-panel { min-height: 0; padding: var(--space-4) var(--space-6); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.canvas-panel :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) { border-radius: 8px; }
.canvas-empty { padding: 36px 16px 40px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.canvas-empty > span { color: #5a9371; font-size: 46px; line-height: 1; }
.canvas-empty h3 { font-size: 15px; font-weight: 500; margin: 18px 0 10px; }
.canvas-empty p { max-width: 290px; margin: 0 auto; font-size: 12px; line-height: 1.9; color: var(--muted); }
.canvas-note { font-size: 12px; line-height: 1.85; color: var(--muted); padding: 12px 0; }
.canvas-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.canvas-section-heading h3, .session-tasks h3 { font-size: 13px; font-weight: 600; }
.session-tasks { padding-top: 20px; border-top: 1px solid var(--line); }
.session-task { display: flex; align-items: baseline; gap: 9px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: #4a6252; font-size: 12px; }
.session-task > span:nth-child(2) { flex: 1; }
.session-task small { font-size: 10px; color: #758579; }
.session-task:hover { color: var(--sage); }
.canvas-panel #coach-output { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 18px #314a3810; font-size: 12px; }
.canvas-panel .plan-subtitle { font-size: 14px; margin-bottom: 10px; }
.canvas-panel .coach-columns { gap: 12px; }
.canvas-panel .coach-evidence { padding: 14px 16px; border-radius: 12px; background: transparent; }
.canvas-panel .coach-evidence ul { padding-left: 18px; color: var(--muted); }
.canvas-panel .coach-actions li { border: 0; border-left: 2px solid #b9d3bf; border-radius: 0; background: transparent; box-shadow: none; padding: 4px 0 4px 14px; }
.canvas-panel .coach-actions li p { margin-top: 5px; }
.canvas-panel .button { font-size: 12px; }
.canvas-panel .quiz-workspace { padding: var(--space-4); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.canvas-panel .quiz-workspace::before { display: none; }
.canvas-panel .plan-empty { border-radius: 10px; background: #edf3ed; }
.canvas-panel .quiz-workspace .section-heading h2 { font-size: 15px; }
.canvas-panel .quiz-workspace .daily-eyebrow { display: none; }
.canvas-panel .quiz-workspace .section-heading { align-items: center; margin-bottom: 16px; }
.canvas-panel .quiz-workspace .section-heading .button { min-height: 36px; padding: 7px 12px; border-radius: 8px; }
.canvas-panel .quiz-card { margin: 0; padding: 16px 0 4px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.canvas-panel .quiz-card h3 { font-size: 14px; }
.canvas-panel .quiz-adaptive-plan { min-height: 38px; margin: 20px 0 6px; padding: 8px 14px; border-radius: 8px; }
.canvas-panel .quiz-adaptive-plan + .plan-hint { margin: 4px 0 14px; }
.canvas-panel .quiz-workspace .ai-form-row { grid-template-columns: minmax(0, 1fr) 90px; }
.canvas-panel .quiz-workspace textarea { min-width: 0; }
.canvas-panel .quiz-create, .canvas-panel .quiz-workspace > .weekly-note { display: none; }
.practice-start { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.practice-start p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.practice-start button { flex-shrink: 0; }
.practice-history { padding-top: 16px; }
.practice-history summary, .quiz-retry summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 10px 0; }
.practice-history button { display: block; text-align: left; margin-top: 10px; }
.conversation-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.conversation-history { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 0 0 12px; }
.conversation-toolbar { display: flex; align-items: center; gap: 12px; }
.conversation-toolbar > select,
.conversation-toolbar > .custom-select { flex: 0 1 480px; width: min(100%, 480px); min-width: 0; }
.conversation-toolbar > #conversation-clear { flex: 0 0 auto; font-size: 11px; }
.conversation-history label:not(.sr-only) { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.conversation-history select { width: 100%; min-width: 0; border-radius: 8px; font-size: 12px; }
.conversation-history .custom-select-trigger { font-size: 12px; }
.conversation-history [role="status"] { color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.conversation-history button { justify-self: start; }
.teacher-conversation > #conversation-older { margin: 0 20px 10px; align-self: start; }
.request-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 0 20px; }
.request-controls .request-status { padding: 0; margin: 0; }
.request-controls button { white-space: nowrap; }
.conversation-message > button { margin-top: 14px; }
.quiz-feedback[hidden] { display: none; }
.canvas-panel .weekly-note, .canvas-panel .plan-hint { font-size: 11px; }
.canvas-resource, .canvas-submission { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.canvas-resource h4, .canvas-submission h4 { font-size: 13px; font-weight: 600; }
.canvas-resource p, .canvas-submission p { font-size: 12px; line-height: 1.9; white-space: pre-wrap; margin-top: 10px; }
.submission-excerpt { font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; margin-top: 10px; border-radius: 8px; background: #eef3ed; }
.submission-score { display: block; color: var(--sage); font-size: 13px; margin-top: 14px; }
#canvas-results > label { font-size: 12px; color: var(--muted); }
#session-result-task { display: block; width: 100%; margin: 8px 0 14px; font-size: 12px; }
#canvas-results > .custom-select { display: block; width: 100%; margin: 8px 0 14px; }
#canvas-results > .custom-select .custom-select-trigger { font-size: 12px; }
.profile-card { margin: 0 !important; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.profile-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.profile-card-heading h3 { color: var(--ink); font-size: 13px; font-weight: 600; }
.profile-card-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.profile-card form { display: grid; gap: 16px; padding: 18px; }
.profile-card form > label,
.profile-card .ai-form-row > label { display: grid; min-width: 0; gap: 7px; margin: 0; color: var(--muted); font-size: 11px; }
.profile-card .ai-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-card :is(input, textarea, select) { width: 100%; min-width: 0; border: 1px solid #cbd9d1; border-radius: 8px; background: #fbfdfb; color: var(--ink); padding: 9px 11px; }
.profile-card input { min-height: 42px; }
.profile-card textarea { min-height: 78px; resize: vertical; line-height: 1.65; }
.profile-card select[multiple] { min-height: 166px; }
.profile-card .button { justify-self: start; min-height: 38px; margin-top: 2px; }
.profile-workspace .weekly-note { max-width: 820px; margin-bottom: 20px; }
.profile-settings-card { max-width: 920px; }
.session-view .footer { display: none; }
@media (max-width: 1100px) {
  main { padding: 0 24px; }
  .topbar { padding: 0 24px; }
  .session-heading { align-items: flex-start; }
  .session-controls { gap: 7px; }
  .session-controls select { max-width: 180px; }
  .session-controls .custom-select { max-width: 180px; }
  .teacher-conversation { padding: 18px; }
  .canvas-heading, .canvas-panel { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 900px) {
  .sidebar { width: 180px; padding-left: 10px; padding-right: 10px; }
  .main-shell { margin-left: 180px; }
  .session-layout { height: auto; grid-template-columns: minmax(0, 1fr); }
  .teacher-conversation { border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-thread { flex: 0 0 auto; height: 260px; min-height: 220px; max-height: 50vh; }
  .learning-canvas { display: block; min-height: auto; overflow: visible; }
  .canvas-panel { max-height: none; overflow: visible; }
  .home-continuity { gap: 22px; }
  .home-evidence .overview-ai-evidence-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .sidebar { position: static; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 18px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { margin: 0; font-size: 21px; }
  .brand img { width: 29px; height: 29px; }
  .brand-subtitle { margin: 6px 0 14px; }
  .sidebar nav { display: flex; align-items: flex-start; gap: 4px; flex-wrap: wrap; }
  .sidebar .nav-item { width: auto; min-height: 36px; padding: 7px 9px; margin: 0; font-size: 11px; gap: 5px; }
  .sidebar .nav-symbol { flex-basis: 14px; width: 14px; font-size: 14px; }
  .session-nav-label, .recent-learning, .sidebar-note, .profile { display: none; }
  .sidebar .nav-more { margin: 0; }
  .sidebar .nav-more[open] { flex-basis: 100%; }
  .sidebar .nav-more .nav-subitem { display: inline-flex; padding-left: 10px; }
  .main-shell { margin-left: 0; }
  .topbar { height: 42px; padding: 0 20px; }
  main { padding: 0 20px; }
  .learning-home { padding-top: 30px; }
  .home-continuity { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .home-composer { padding: 16px; }
  .composer-context select { max-width: 180px; }
  .composer-context .custom-select { max-width: 180px; }
  .home-composer-footer { align-items: flex-end; }
  .learning-session.ai-workspace { margin-top: 22px; }
  .session-controls { width: 100%; }
  .session-controls select { max-width: 170px; }
  .session-controls .custom-select { max-width: 170px; }
  .session-heading h1 { font-size: 23px; }
  .session-goal-context-body { padding-left: 0; }
  .profile-card .ai-form-row { grid-template-columns: minmax(0, 1fr); }
  .canvas-heading { align-items: flex-start; }
  .session-journey { gap: 10px; font-size: 10px; }
  .session-journey span + span::before { margin-right: 10px; }
  .session-journey { padding: 16px 0; }
  .canvas-panel .quiz-workspace .ai-form-row { grid-template-columns: minmax(0, 1fr); }
}

/* 夜读墨绿：保持原有信息结构，用低眩光层次承载长时间学习。 */
body, .sidebar, .topbar, .modal, .weekly-workspace, .daily-workspace,
.workbench, .home-composer, .teacher-conversation, .learning-canvas {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .sidebar { background: #18231f; border-color: var(--line); }
:root[data-theme="dark"] .brand img { opacity: .95; }
:root[data-theme="dark"] :is(.brand-subtitle, .nav-label, .note-caption, .profile small,
  .breadcrumb, .topbar time, .eyebrow, .daily-eyebrow, .plan-hint, .weekly-note,
  .task-meta, .modal-description, .loading-text, .canvas-goal-label,
  .overview-ai-status, .message-author, .session-journey) { color: var(--muted); }
:root[data-theme="dark"] :is(.breadcrumb strong, .sidebar-note p, .profile, .nav-item,
  .nav-more .nav-subitem, .goal-card, .session-task, .message-content) { color: var(--ink); }
:root[data-theme="dark"] :is(.overview-ai-diagnosis, .overview-ai-empty strong,
  .overview-ai-evidence-item strong, .ai-context-strip strong, .goal-ai-details summary,
  .plan-progress strong, .plan-subtitle, .plan-empty, .plan-history summary,
  .plan-confirm label, .plan-edit-card legend, .plan-import-help summary,
  .help-steps li, .modal label, .detail-actions button, .search-more summary,
  .transfer-pane label, .transfer-export label) { color: var(--ink); }
:root[data-theme="dark"] :is(.home-continuity .overview-ai-status, .ai-panel-kicker,
  .ai-context-strip span, .ai-suggested-prompts > span, .delete-modal p,
  .example-row, .detail-empty p, .footer) { color: var(--muted); }
:root[data-theme="dark"] .nav-item:hover { background: #24342d; }
:root[data-theme="dark"] .nav-item.current,
:root[data-theme="dark"] .nav-item.nav-ai.current { background: #294438; color: #c7e5d1; }
:root[data-theme="dark"] .nav-item.nav-ai { color: #b6d5c1; background: transparent; }
:root[data-theme="dark"] .profile { border-color: var(--line); }
:root[data-theme="dark"] .avatar { background: #2a4036; color: #c5e1cf; }
:root[data-theme="dark"] .note-line { background: #789b84; }
:root[data-theme="dark"] .topbar { background: #141d1ae6; border-color: var(--line); }

:root[data-theme="dark"] :is(.weekly-workspace, .daily-workspace, .workbench, .modal,
  .organization-section, .resource-panel, .review-panel, .quiz-card, .reminder-settings,
  .reminder-card, .task-assessment, .submission-card, .transfer-pane, .time-timer,
  .time-budget, .revision-step, .search-more, .ai-output, #coach-output) {
  background: var(--surface); border-color: var(--line); color: var(--ink);
}
:root[data-theme="dark"] .canvas-panel .quiz-card { background: transparent; }
:root[data-theme="dark"] dialog::backdrop { background: #07100cc7; }
:root[data-theme="dark"] :is(.modal.form-drawer .modal-heading,
  .modal.form-drawer .modal-actions, .transfer-modal .modal-heading,
  .revision-modal .modal-heading, .organization-modal .modal-heading) {
  background: var(--surface); border-color: var(--line);
}
:root[data-theme="dark"] :is(.goal-panel, .detail-panel, .overview-focus-side,
  .learning-canvas, .teacher-conversation, .canvas-panel) { border-color: var(--line); }
:root[data-theme="dark"] .learning-canvas { background: #17221e; }
:root[data-theme="dark"] .teacher-conversation { background: #1b2722; }
:root[data-theme="dark"] .home-composer { background: #1d2a24; border-color: #466354; box-shadow: 0 12px 32px #050b084d; }
:root[data-theme="dark"] .home-composer:focus-within { border-color: #91bba0; }
:root[data-theme="dark"] .progress-week-story { background: #233129; border-color: #91bba0; }
:root[data-theme="dark"] .progress-week-story span,
:root[data-theme="dark"] #weekly-strongest-day { color: #b5c7ba; }
:root[data-theme="dark"] #weekly-strongest-day { border-color: #40584a; }
:root[data-theme="dark"] .weekly-goal-next { background: #233129; color: #c4d5c8; }
:root[data-theme="dark"] :is(.home-next, .overview-today-integrated, .overview-metric,
  .overview-ai-plan li, .overview-ai-evidence, .overview-ai-evidence-item,
  .coach-evidence, .coach-actions li, .ai-context-strip, .message-user,
  .session-composer, .canvas-empty, .plan-empty, .quiz-mastery, .submission-review,
  .submission-excerpt, .time-week-day, .revision-removed-row, .revision-removal-note) {
  background: #233129; border-color: var(--line); color: var(--ink); box-shadow: none;
}
:root[data-theme="dark"] .message-user { background: #26372f; }
:root[data-theme="dark"] .message-user .message-author { color: #b6c4b8; }
:root[data-theme="dark"] :is(.ai-uncertainty, .quiz-wrong) { background: #3b2c25; color: #f0d4c7; }
:root[data-theme="dark"] .ai-plan-proposal { background: #2b3028; border-color: #596052; }
:root[data-theme="dark"] .art-card { background: #202d27; border-color: #405047; box-shadow: 0 8px 24px #050b0859; }
:root[data-theme="dark"] .art-card-two { background: #293a31; color: #d5e1d7; }
:root[data-theme="dark"] .orbit { border-color: #435148; }
:root[data-theme="dark"] .art-grid { opacity: .45; filter: invert(1); }
:root[data-theme="dark"] .goal-card:hover { background: #24332c; }
:root[data-theme="dark"] .goal-card.selected { background: #293b32; border-color: #4d6658; }
:root[data-theme="dark"] .goal-panel-bottom { background: #1a2621; border-color: var(--line); }
:root[data-theme="dark"] .status-badge { background: #34452f; color: #c9e1bc; }
:root[data-theme="dark"] .status-completed { background: #29443a; color: #c4e5d7; }
:root[data-theme="dark"] .status-archived { background: #393a35; color: #c5c2b7; }
:root[data-theme="dark"] progress { accent-color: #91bba0; }
:root[data-theme="dark"] .analytics-progress { background: #2b3932; }
:root[data-theme="dark"] .activity-cell { background: #27332e; border-color: #405148; }
:root[data-theme="dark"] .activity-cell.level-1 { background: #344d40; }
:root[data-theme="dark"] .activity-cell.level-2 { background: #456b55; }
:root[data-theme="dark"] .activity-cell.level-3 { background: #639174; }
:root[data-theme="dark"] .activity-cell.level-4 { background: #91bba0; }

:root[data-theme="dark"] :is(input, textarea, select, .custom-select-trigger,
  .custom-select-popover, .search-filters input, .search-filters select,
  .transfer-pane textarea, .transfer-pane input) {
  color: var(--ink); background-color: #18241f; border-color: #44584d !important;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #87978b; }
:root[data-theme="dark"] select { color-scheme: dark; }
:root[data-theme="dark"] select option { color: var(--ink); background: #18241f; }
:root[data-theme="dark"] .custom-select-popover { box-shadow: 0 18px 55px #050b08a6; }
:root[data-theme="dark"] .custom-select-option { color: var(--ink); background: transparent; }
:root[data-theme="dark"] .custom-select-option:hover,
:root[data-theme="dark"] .custom-select-option:focus-visible { background: #293b32; color: #eaf3eb; }
:root[data-theme="dark"] .custom-select-option[aria-selected="true"] { background: #315040; color: #e3f3e7; }
:root[data-theme="dark"] .composer-context .custom-select-trigger,
:root[data-theme="dark"] .composer-footer .custom-select-trigger { background: #293a32; color: #d1e4d7; }
:root[data-theme="dark"] .button-primary { background: #91bba0; border-color: #91bba0; color: #122019; }
:root[data-theme="dark"] .button-primary:not(:disabled):hover { background: #a9ceb4; border-color: #a9ceb4; }
:root[data-theme="dark"] .button-outline { background: transparent; border-color: #52665a; color: #d6e2d8; }
:root[data-theme="dark"] .button-outline:not(:disabled):hover,
:root[data-theme="dark"] .button-quiet:not(:disabled):hover,
:root[data-theme="dark"] .home-starters button:hover { background: #293a32; }
:root[data-theme="dark"] .button-danger { background: #bd755d; color: #fff7f2; }
:root[data-theme="dark"] :is(.text-button, .accent-word, .art-check) { color: var(--sage); }
:root[data-theme="dark"] .connection-error,
:root[data-theme="dark"] :is(.form-error, .daily-error, .message-failed) { color: #efb39c; }
:root[data-theme="dark"] :is(.home-starters button, .ai-suggested-prompts button,
  .teacher-conversation .ai-suggested-prompts button) {
  background: transparent; border-color: var(--line); color: #c6d8ca;
}
:root[data-theme="dark"] ::selection { background: #456f5a; color: #f4faf5; }

@media(max-width:700px) {
  .topbar { padding-left: 20px; padding-right: 20px; }
  .topbar-actions { gap: 10px; }
}
@media(prefers-reduced-motion: reduce) {
  body, .sidebar, .topbar, .modal, .weekly-workspace, .daily-workspace,
  .workbench, .home-composer, .teacher-conversation, .learning-canvas { transition: none; }
}
