/* Cascade map: shared controls; study-workspace legacy; planner/calendar; responsive; reduced motion.
   .v26-home is still the active workspace.html shell, not unused homepage code. */
/* Shared semantic tokens and click-first study controls; neutral palette 2026-10-12. */
.nav-actions .nav-icon-btn{width:44px;height:44px;min-width:44px;min-height:44px}
.nav-actions .auth-trigger{min-width:44px;min-height:44px}
@media(max-width:380px){.nav-actions{gap:8px}.nav-inner{padding-inline:14px}.nav-actions .auth-float{font-size:0;min-width:50px;padding-inline:12px}.nav-actions .auth-float:after{content:"登录";font-size:13px}}
:root{--space-ink:var(--fg);--space-paper:var(--surface);--space-blue:var(--accent);--space-line:var(--ln-hair);--ln:var(--ln-hair)}
body{font-family:var(--font-sans);color:var(--fg);background:var(--bg);line-height:1.65}button,select,input,textarea{font:inherit}button,summary{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:active{transform:none}a,button{touch-action:manipulation}input[hidden]{display:none!important}
.site-nav,.nav-inner{height:64px;min-height:64px}.nav-item>a{padding:22px 0;font-size:13px}.nav-mega,.mobile-menu{top:64px}.nav-search-btn,.ae-theme-toggle,.nav-burger{min-width:44px;min-height:44px}.nav-inner{max-width:1240px}.nav-logo .site-logo-icon{width:32px;height:32px}.nav-menu{gap:24px}.site-footer{padding-bottom:120px}.page-hero{min-height:320px;padding-top:70px;padding-bottom:60px}.page-hero h1{font-size:clamp(32px,4vw,52px)}.page-art img{opacity:.45}.page-localnav{top:64px}.nr-toolbar button{min-height:44px}.nr-toolbar{max-width:calc(100vw - 20px)}
/* Active study workspace */
.v26-home .learning-space{max-width:1240px;padding:0 32px 130px}.v26-home .space-intro{grid-template-columns:1fr 1fr;gap:48px;padding:40px 0 32px;align-items:center}.v26-home .space-intro h1{font-size:clamp(36px,4vw,52px);line-height:1.22;letter-spacing:-.04em;margin:12px 0 16px}.v26-home .space-intro-copy>p{font-size:17px;line-height:1.8;max-width:34em}.v26-home .space-kicker{font-size:12px;letter-spacing:.03em;color:var(--muted)}.v26-home .space-art{height:285px;border-radius:20px;overflow:hidden;box-shadow:none;background:#e7ebef}.v26-home .space-art img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .4s}.v26-home .space-art:before,.v26-home .space-art:after,.art-caption{display:none}.v26-home .space-intro-links{gap:12px;flex-wrap:wrap}.space-primary,.space-secondary{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:12px;font-size:15px}.space-primary{background:var(--accent-press);color:var(--accent-ink)}.v26-home .space-date{font-size:13px;margin-top:20px;color:var(--muted)}.space-text-link{min-height:44px;padding:9px}.space-section-nav{top:64px;gap:8px;background:var(--nav-bg);backdrop-filter:blur(16px);padding:8px 0;margin:0 0 28px;border-top:0;border-bottom:1px solid var(--ln-hair)}.space-section-nav a{font-size:14px;min-height:44px;padding:10px 16px}.learning-space>section[id]{scroll-margin-top:134px}.v26-home .space-section-head h2{font-size:28px;letter-spacing:-.03em}.v26-home .space-section-head{margin-bottom:18px}.v26-home .space-actions{padding-top:0}.v26-home .task-panel:empty{min-height:500px}.v26-home .tp-head,.v26-home .tp-nav,.v26-home .tp-bottom{display:none}.v26-home .tp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:16px;border:1px solid var(--ln-hair);background:var(--surface);border-radius:16px;margin-bottom:20px}.v26-home .tp-stats>div{padding:4px 16px;min-width:0}.v26-home .tp-stats strong{font-size:27px}.v26-home .tp-stats>div>span,.v26-home .tp-stats small{font-size:12px;color:var(--muted)}.v26-home .tp-stats button{min-height:44px;background:var(--surface-2);border:1px solid var(--ln-hair);color:var(--fg);border-radius:10px}
.v26-home .tp-main{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:20px}.v26-home .tp-focus{position:relative;top:auto;border-radius:20px;background:#171717;box-shadow:none;padding:28px;color:#fff}.v26-home .tp-focus:before{display:none}.v26-home .tp-focus .tp-title{color:#fff;font-size:23px;margin-top:18px}.v26-home .tp-focus p{color:#d5d5d5;line-height:1.8}.v26-home .tp-focus-top small{color:#d5d5d5}.v26-home .tp-clock{width:168px;height:168px;margin:20px auto}.v26-home .tp-focus-buttons{gap:10px;flex-wrap:wrap}.v26-home .tp-focus-buttons button{min-height:48px;border-radius:12px;font-size:14px;flex:1;white-space:nowrap}.v26-home .tp-focus-bottom button{min-height:44px;font-size:13px;color:#d5d5d5;padding:8px}.v26-home .tp-today{border-radius:20px;box-shadow:none;padding:25px;min-width:0}.v26-home .tp-task{grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:8px;padding:10px 0}.tp-check{width:44px;min-height:44px;display:grid;place-items:center}.tp-check input{width:22px;height:22px}.tp-pick{min-height:44px;text-align:left;line-height:1.65;overflow-wrap:anywhere}.tp-defer,.tp-task-menu summary{min-width:44px;min-height:44px}.tp-task-menu>div{top:44px;min-width:180px}.tp-task-menu button{font-size:14px;min-height:44px}.tp-add summary,.tp-edit summary,.tp-deferred summary{min-height:48px;padding:12px 0;font-size:14px}.tp-add form>div{flex-wrap:wrap}.tp-add input,.tp-add select,.tp-edit input,.tp-edit select{min-height:48px;border:1px solid var(--ln-strong);border-radius:10px;padding:8px 12px;background:var(--surface);color:var(--fg)}.tp-add select#tpDuration{width:126px}.tp-edit select{width:100%}.tp-add button,.tp-edit button{min-height:48px;border-radius:10px}.tp-quick-add{margin:10px 0 15px;display:flex;gap:8px;flex-wrap:wrap}.tp-quick-add button{min-height:44px;border:1px solid var(--ln-hair);background:var(--surface-2);color:var(--fg);padding:8px 12px;border-radius:10px;font-size:13px}.tp-quick-add button:hover{background:var(--accent-soft);border-color:var(--accent)}.tp-footer{font-size:12px;padding-top:16px}.tp-undo span{white-space:normal}.tp-undo button{min-height:44px}.study-focus-bar{bottom:22px}.study-focus-dialog{background:var(--surface);border-color:var(--ln-strong)}
.study-planner{padding-top:48px}.planner-heading h2{font-size:28px;line-height:1.4}.planner-heading p{font-size:14px}.planner-toolbar button,.planner-filters button{min-width:44px;min-height:44px}.planner-filters{flex-wrap:wrap}.planner-workspace{border-radius:20px;border:1px solid var(--ln-hair);box-shadow:none;background:var(--surface)}.planner-next-deadline{background:var(--accent-soft);border:1px solid var(--ln-hair);color:var(--fg)}.agenda-item{grid-template-columns:64px minmax(0,1fr) 76px}.agenda-item>button{min-height:44px;min-width:70px;font-size:12px;border-radius:10px}.planner-cell{min-height:80px}.calendar-preview{font-size:10px}.agenda-item summary{min-height:44px}.agenda-footer button{min-height:48px;padding:10px 16px}.sprint-notes{font-size:14px}.sprint-notes summary{min-height:48px}.sprint-notes details p,.sprint-notes li{font-size:14px;line-height:1.8}.v26-home .space-journal{margin-top:48px;border-radius:20px;box-shadow:none;border:1px solid var(--ln-hair);padding:28px}.v26-home .journal-top h2{font-size:28px}.journal-sync button{min-height:44px;font-size:13px}.journal-metrics>div>small{font-size:12px}.journal-review summary{min-height:48px}.journal-review label{font-size:14px}.journal-review textarea{font-size:16px;border-color:var(--ln-strong)}.journal-history{overflow-x:auto;display:flex;gap:6px;min-width:0;padding:4px}.history-day{flex:0 0 45px;border-radius:8px;min-height:76px}.history-detail{white-space:pre-line;font-size:14px}
/* Vocabulary records */
.memo-records{padding-top:28px;margin-top:28px;border-top:1px solid var(--ln-hair)}.memo-head{gap:16px;flex-wrap:wrap}.memo-head h3{font-size:24px}.memo-head button,.memo-controls button,.memo-search-row>button,.memo-pagination button{min-height:44px;padding:9px 14px;border-radius:10px;border:1px solid var(--ln-strong);background:var(--surface);color:var(--fg);font-size:14px}.memo-head>div:last-child{display:flex;gap:8px}.memo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.memo-controls>label{display:flex;align-items:center;gap:12px;font-size:14px}.memo-controls .choice-date-trigger{background:var(--surface-2);font-variant-numeric:tabular-nums}.memo-history{display:flex;gap:8px;overflow:auto;padding:8px 0 16px}.memo-history button{flex:0 0 auto;min-height:44px;border-radius:10px;font-size:13px;padding:8px 14px}.memo-metrics{border:1px solid var(--ln-hair);border-radius:14px;background:var(--surface-2);padding:18px}.memo-metrics strong{font-size:21px}.memo-metrics span,.memo-metrics small{font-size:12px;color:var(--muted)}#memoStatus{font-size:13px;color:var(--muted)}#memoDetails>summary,.memo-help>summary{min-height:48px;padding:12px 0;font-size:15px}.memo-filter-section{display:flex;align-items:flex-start;gap:16px;margin:12px 0}.memo-filter-section>span{flex:0 0 65px;font-size:13px;padding-top:10px;color:var(--muted)}.memo-chips{display:flex;flex-wrap:wrap;gap:8px}.memo-chips button{border:1px solid var(--ln-strong);background:var(--surface);color:var(--fg);border-radius:10px;min-height:44px;padding:8px 12px;font-size:13px}.memo-chips button[aria-pressed=true],.memo-history button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.memo-search-row{display:flex;align-items:end;gap:12px;margin-top:18px}.memo-search-row label{flex:1;font-size:13px;color:var(--muted)}.memo-search input{min-height:48px;font-size:16px;width:100%;border-radius:10px;border:1px solid var(--ln-strong);background:var(--surface);color:var(--fg);padding:10px 12px;margin-top:7px}#memoWordCount{font-size:13px;color:var(--muted);margin:18px 0 10px}.memo-table{max-height:none;overflow:auto;border-radius:12px;border:1px solid var(--ln-hair)}.memo-table table{width:100%;font-size:14px;border-collapse:collapse}.memo-table th{background:var(--surface-2);font-weight:500;color:var(--muted)}.memo-table td,.memo-table th{padding:12px;text-align:left;border-bottom:1px solid var(--ln-hair)}.memo-table td:first-child{font-weight:600;color:var(--fg)}.memo-table tr[data-feedback=FORGET] td:nth-child(3){color:#ac3434}.memo-table tr[data-feedback=VAGUE] td:nth-child(3){color:#8b530f}html[data-theme=dark] .memo-table tr[data-feedback=FORGET] td:nth-child(3){color:#ffabab}html[data-theme=dark] .memo-table tr[data-feedback=VAGUE] td:nth-child(3){color:#f7ca83}.memo-pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:18px 0}.memo-pagination span{font-size:13px}.memo-help{border-top:1px solid var(--ln-hair);font-size:13px;color:var(--muted)}.memo-help p{line-height:1.8}.choice-empty{padding:20px;background:var(--surface-2);border-radius:12px;color:var(--muted);font-size:14px}
/* Accessible date chooser */
.choice-date-trigger{min-height:44px;border:1px solid var(--ln-strong);background:var(--surface);color:var(--fg);border-radius:10px;padding:8px 14px;font-size:14px}.choice-calendar{max-width:calc(100vw - 12px);position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--ln-strong);border-radius:20px;background:var(--surface);color:var(--fg);padding:20px;box-shadow:0 24px 80px #0004}.choice-calendar::backdrop{background:#000000b3;backdrop-filter:blur(4px)}.choice-calendar header{display:flex;align-items:center;justify-content:space-between;gap:12px}.choice-calendar h2{font-size:20px;margin:0}.choice-calendar button{min-width:44px;min-height:44px;border:1px solid var(--ln-hair);border-radius:10px;background:var(--surface-2);color:var(--fg);font-size:16px}.choice-calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:20px 0}.choice-calendar-toolbar label{font-size:12px;color:var(--muted)}.choice-calendar select{display:block;min-height:44px;border:1px solid var(--ln-strong);border-radius:8px;background:var(--surface);color:var(--fg);font-size:14px;max-width:110px}.choice-calendar-week,.choice-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.choice-calendar-week{font-size:12px;text-align:center;color:var(--muted);margin-bottom:8px}.choice-calendar-days button{padding:2px;min-width:0;font-variant-numeric:tabular-nums}.choice-calendar-days button[aria-pressed=true]{background:var(--accent-press);color:var(--accent-ink)}.choice-calendar-days button[aria-current=date]{border:2px solid var(--accent)}.choice-calendar footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.choice-calendar footer button{font-size:14px;padding:8px 16px}
/* Workspace course links */
.v26-home .space-courses,.v26-home .space-tools{content-visibility:visible}.space-course-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.space-course-grid>a{border:1px solid var(--ln-hair);border-radius:16px;background:var(--surface);overflow:hidden}.space-course-grid img{height:155px;object-fit:contain;padding:30px;background:var(--surface-2);box-sizing:border-box}.space-course-grid h3{font-size:20px;line-height:1.6}.space-course-grid span,.space-course-grid p{font-size:13px}.space-tools{gap:20px}.space-tools span{font-size:11px}.space-tools p{font-size:13px}.voice-companion{background:var(--surface);border-color:var(--ln-strong);padding:8px 12px;gap:8px;bottom:20px}.voice-companion small{display:none}.voice-companion button{min-width:44px;min-height:44px;font-size:13px}.voice-companion a{min-width:44px;min-height:44px}.voice-companion strong{font-size:13px}.v26-home .site-top{bottom:95px}html[data-theme=dark] .space-course-grid img{filter:brightness(1.25)}
/* Responsive overrides */
@media(max-width:1000px){.nav-menu{gap:16px}.v26-home .tp-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.space-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.v26-home .learning-space{padding:0 20px 150px}.v26-home .space-intro{grid-template-columns:1fr;gap:20px;padding-top:25px}.v26-home .space-intro h1{font-size:36px}.v26-home .space-intro-copy>p{font-size:15px}.v26-home .space-art{display:block;height:175px}.space-section-nav{top:64px;gap:4px}.space-section-nav a{font-size:13px;padding:10px 12px}.v26-home .tp-main{grid-template-columns:1fr}.v26-home .tp-focus{padding:24px}.v26-home .tp-today{padding:20px}.v26-home .tp-stats>div{padding:2px 8px;border:0}.v26-home .space-journal{padding:22px 18px}.journal-metrics strong{font-size:32px}.journal-top{gap:18px;flex-wrap:wrap}.journal-sync{align-items:flex-start}.planner-workspace{grid-template-columns:1fr}.planner-heading{gap:18px}.planner-heading h2{font-size:25px}.calendar-preview{display:none}.planner-cell{min-height:58px}.agenda-item{grid-template-columns:52px minmax(0,1fr) 70px;gap:8px}.agenda-item summary b{font-size:13px}.agenda-item summary small{font-size:11px}.sprint-notes{padding:18px}.study-focus-bar{bottom:88px;left:12px;width:calc(100vw - 24px)}.memo-filter-section{display:block}.memo-filter-section>span{display:block;margin-bottom:6px;padding-top:0}.memo-metrics{grid-template-columns:1fr;gap:12px}.memo-metrics>div{display:flex;justify-content:space-between;gap:12px}.memo-search-row{align-items:stretch;flex-direction:column}.memo-search-row>button{align-self:flex-start}.memo-table{overflow:visible;border:0}.memo-table table,.memo-table tbody{display:block;min-width:0}.memo-table thead{display:none}.memo-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--ln-hair);border-radius:12px;padding:12px;margin:10px 0;gap:6px;background:var(--surface)}.memo-table td{border:0;display:block;padding:3px 0;font-size:13px;overflow-wrap:anywhere;white-space:normal}.memo-table td:first-child{grid-column:1/-1;font-size:20px;padding-bottom:8px}.memo-table td:not(:first-child):before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:2px}.space-tools{grid-template-columns:1fr 1fr}.voice-companion{bottom:12px;right:12px;left:auto;max-width:calc(100vw - 24px)}.v26-home .site-top{bottom:142px}.page-hero{padding:45px 24px 110px;min-height:330px}}
@media(max-width:420px){.v26-home .learning-space{padding-left:14px;padding-right:14px}.v26-home .tp-task{grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:4px}.tp-check,.tp-defer,.tp-task-menu summary{min-width:44px;width:44px;min-height:44px}.space-course-grid{gap:10px}.space-course-grid span,.space-course-grid h3,.space-course-grid p{margin-left:14px;margin-right:14px}.space-course-grid h3{font-size:17px}.memo-chips button{padding:8px 10px}.choice-calendar{width:calc(100vw - 12px);padding:10px}.choice-calendar-days,.choice-calendar-week{gap:3px}.choice-calendar-days button{min-height:44px}}
/* Reduced motion */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

@media(max-width:350px){.choice-calendar{padding:6px}.choice-calendar-days,.choice-calendar-week{gap:0}.v26-home .tp-today{padding:16px}.choice-calendar-toolbar{gap:4px}.choice-calendar select{max-width:88px}}

/* Theme audit: focus controls use theme surfaces, including light mode. */
.v26-home .tp-focus{background:var(--accent-soft);--fg:inherit;--fg-2:inherit;--muted:inherit;--accent:inherit;--surface:inherit;--ln-hair:inherit;--ln-strong:inherit;color:inherit;border:1px solid var(--ln-hair)}
.v26-home .tp-focus .tp-title,.v26-home .tp-focus p,.v26-home .tp-focus-top small,.v26-home .tp-focus-bottom button{color:var(--fg)}
.v26-home .tp-focus-buttons button:first-child{background:var(--accent-press);border-color:var(--accent-press);color:var(--accent-ink)}
.v26-home .tp-focus-buttons button:last-child{color:var(--fg);border-color:var(--ln-strong)}
.focus-running .tp-focus-top i{background:var(--ok)}
