
/* Shared surface refinements. Study photos, print pages and focus scene stay scoped. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--radius:var(--ui-radius)}

.topbar{gap:20px}
.topbar .breadcrumb{font-size:12px}
.topbar .date-label{font-size:12px;color:var(--muted)}
.top-actions{gap:12px}
.top-actions .btn{min-height:44px;font-size:13px;padding:10px 16px;white-space:nowrap}
.top-actions .language-btn{min-height:44px;min-width:44px}

.sidebar .brand strong{font-size:22px;letter-spacing:0}
.sidebar .brand small{font-size:10px;letter-spacing:2.4px}
.sidebar nav{gap:6px}
.sidebar .nav-item{min-height:48px;border-radius:12px;font-size:14px;gap:12px;transition:background-color var(--ui-motion),color var(--ui-motion)}
.sidebar .nav-item .icon{width:20px;height:20px}
.sidebar .nav-item.active{background:#e7ebe2;color:#30483d;font-weight:600}
.sidebar .workspace-label{font-size:11px;letter-spacing:1px}
.sidebar .sidebar-art{opacity:.6}
.sidebar .side-motto{font-size:11px;line-height:1.8}
.sidebar .help-btn{font-size:12px;min-height:44px}
.sidebar .local-status{font-size:11px}
.sidebar-bottom>small{font-size:10px}

.btn{border-radius:10px;min-height:44px;font-size:13px;padding:11px 17px;font-weight:550;gap:9px;transition:background-color var(--ui-motion),border-color var(--ui-motion),box-shadow var(--ui-motion),transform var(--ui-motion)}
.btn-small{min-height:40px;padding:9px 14px;font-size:12px}
.btn-primary{background:var(--red);color:var(--panel)}
.btn-outline{border-color:var(--line);background:var(--panel)}
.btn-dark{background:var(--ink);color:var(--panel)}
.btn:active:not(:disabled){transform:translateY(1px)}
.icon-btn{min-width:44px;min-height:44px;border-radius:10px}
.text-link{font-size:13px;line-height:1.7}
.icon{flex-shrink:0}

/* Brief, local motion: no scroll listeners, loops or per-card search animations. */
@keyframes ui-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 html:not([data-care-theme=memorial]) .print-selection-bar:not([hidden]){animation:ui-enter 180ms cubic-bezier(.2,.7,.3,1)}
 .question-choice>label{transition:background-color var(--ui-motion),color var(--ui-motion)}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 html:not([data-care-theme=memorial]) .question-card{transition:border-color var(--ui-motion),box-shadow var(--ui-motion)}
}
html[data-care-theme=memorial] .btn{transition:none;transform:none}

.page-heading{margin-top:10px;margin-bottom:28px}
.page-heading h1{font-size:30px;line-height:1.35;font-weight:650;letter-spacing:-.5px}
.page-heading p{font-size:14px;line-height:1.8;max-width:55em}
.eyebrow{font-size:10px;letter-spacing:2px}
.heading-count{font-size:13px;background:#e7ebe2;border-radius:8px}
.section-head h2{font-size:19px;letter-spacing:-.2px}
.section-head p{font-size:13px;line-height:1.8}
.small-note,.info-note{line-height:1.8}
.app-footer{font-size:10px;letter-spacing:0;flex-wrap:wrap}

.filter-bar{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:10px;gap:8px}
.filter-bar .search-field{border-color:transparent;background:transparent}
.search-field input{font-size:14px;padding:12px 0}
.filter-bar select{border:1px solid var(--line);font-size:13px;min-height:44px;border-radius:9px;background:var(--panel);padding:10px 12px}
.result-count{font-size:12px;margin:20px 0 14px}
.notebook-grid{gap:18px}
.question-card{border-radius:16px;padding:24px;box-shadow:0 2px 8px #292e2903;transition:border-color var(--ui-motion),box-shadow var(--ui-motion),transform var(--ui-motion)}
.question-card:hover{border-color:#a6b49e;box-shadow:0 5px 18px #292e2908}
.question-card .card-title{font-size:17px;line-height:1.6;font-weight:600;letter-spacing:0}
.question-card .card-reason{font-size:13px;line-height:1.8}
.question-card .subject-tag,.question-card .badge{font-size:11px}
.question-card .card-footer{font-size:11px;gap:12px}
.question-card .due-label{font-size:11px}
.question-card .card-top{gap:12px;flex-wrap:wrap}
.badge{border-radius:6px;font-weight:500}
.question-choice{border-radius:16px}
.question-choice>label{font-size:13px;min-height:44px;padding:10px 16px}
.print-selection-bar{border-radius:12px;padding:14px 18px;gap:14px;font-size:13px}
.print-selection-bar>div{display:flex;flex-wrap:wrap;gap:8px}

.empty-state{border-radius:16px;background:var(--panel);border:1px dashed #c5cebf;min-height:300px}
.empty-state h3{font-size:18px;line-height:1.6}
.empty-state p{font-size:14px;line-height:1.9}
.empty-actions{gap:10px}
.empty-actions .btn{min-height:44px}
.review-banner{border-radius:18px;background:var(--review-surface);color:var(--review-ink);padding:30px;gap:24px}
.review-banner strong{font-variant-numeric:tabular-nums;letter-spacing:-2px}
.review-banner span{font-size:14px}
.review-today{font-size:13px;color:var(--review-muted)}
.review-banner>div>span{color:var(--review-muted)}
.review-banner .review-today b{color:var(--review-ink)}
.review-orbit{font-size:42px;color:var(--review-muted)}
.review-explainer{border-radius:14px}
.review-explainer strong{font-size:14px}
.review-explainer span{font-size:12px}

.settings-card{border-radius:16px;padding:28px}
.settings-card h2{font-size:19px}
.settings-card>p{font-size:14px;line-height:1.9}
.settings-card .section-index{font-size:11px}
.settings-card .interval-fields label{font-size:13px}
.settings-card input{font-size:15px}
.settings-grid{gap:20px}
.data-meta{font-size:12px}
.my-shortcuts{gap:10px}
.my-shortcuts .btn{min-height:44px}
.storage-warning{border-radius:12px;font-size:14px;line-height:1.8}
.account-workspace-banner{font-size:14px}
.account-workspace-banner small{font-size:12px}
.account-panel,.family-evidence{border-radius:16px}
.account-panel .btn{font-size:14px}
.account-shell{font-size:15px}
.account-shell .account-field input{min-height:48px}

dialog:not(.photo-erase-dialog){border-radius:18px}
.modal-header h2{font-size:24px;line-height:1.5}
.modal-header>div>span{font-size:11px}
.field>span{font-size:13px;line-height:1.8}
.field input,.field textarea,.field select{font-size:15px;border-color:var(--line);border-radius:10px;padding:12px 14px}
.field input,.field select{min-height:46px}
.modal-actions{gap:10px}
.modal-actions .btn{min-height:46px}
.content-label{font-size:12px}
.question-content>p,.answer-block>p,.reflection-grid p{font-size:15px;line-height:1.9}
.history{font-size:13px}
.result-btn{border-radius:12px;min-height:82px}
.result-btn strong{font-size:14px}
.result-btn small{font-size:12px}
.progress-summary{border-radius:16px;gap:20px;padding:24px}
.progress-summary h2{font-size:18px}
.progress-summary p{font-size:13px;line-height:1.9}
.care-home-entry{margin-top:24px}

/* Original card language: one graphic hero, clear actions and reusable cards. */
.home-overview{--home-gap:20px;--home-radius:18px;padding-top:12px}
.home-overview .home-hero{min-height:300px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);border-radius:var(--home-radius);background:#e9e9df;border-color:#dce0d2}
.home-hero .hero-content{padding:32px 36px}
.home-hero h1{font-size:36px;line-height:1.4;letter-spacing:.5px;margin:16px 0 14px;white-space:normal}
.home-hero p{font-size:13px;line-height:1.9;width:auto;max-width:32em;margin:0;color:#626b5d}
.home-hero .eyebrow{font-size:11px;letter-spacing:.2px;line-height:1.6}
.home-hero .geometry{min-height:300px;transform:none;opacity:1}
.home-hero .geo-grid{top:26px;right:12%;height:245px;opacity:.4}
.home-hero .geo-circle{width:170px;height:170px;top:32px;right:20%}
.home-hero .geo-circle span{font-size:94px}
.home-hero .geo-blue{width:110px;height:110px;top:157px;right:9%}
.home-hero .geo-yellow{width:100px;height:72px;top:202px;right:39%}
.home-hero .geo-line{top:250px;right:12%;width:220px;opacity:.7}
.home-hero-action{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:22px}
.home-hero-action .btn{margin:0;min-height:48px;padding:12px 20px;font-size:13px;border-radius:10px}
.home-hero-action .btn .icon{margin-left:4px}
.home-hero-action>span{font-size:11px;color:#626b5d;line-height:1.8}
.home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--home-gap);margin-top:var(--home-gap)}
.home-action-card{display:flex;align-items:center;gap:18px;min-height:100px;padding:22px 26px;background:var(--panel);border:1px solid var(--line);border-radius:14px;cursor:pointer;text-align:left;color:var(--ink);font:inherit;transition:border-color var(--ui-motion),background-color var(--ui-motion)}
.home-action-card>span:nth-child(2){flex:1;min-width:0}
.home-action-card strong,.home-action-card small{display:block;overflow-wrap:anywhere}
.home-action-card strong{font-size:18px;font-weight:600;line-height:1.6}
.home-action-card small{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.8}
.home-action-card>.icon{width:18px;height:18px;color:var(--muted)}
.home-action-icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:#f6e7df;color:var(--red);flex-shrink:0}
.home-action-icon .icon{width:24px;height:24px}
.home-print .home-action-icon{background:#e9edf9;color:var(--blue)}
.home-overview .home-stats{gap:16px;margin:20px 0 28px}
.home-stats .stat{border-radius:14px;padding:18px 22px}
.home-stats .stat-label{font-size:12px;gap:8px}
.home-stats .stat-value{font-size:30px;line-height:1.4;letter-spacing:0;margin-top:9px}
.home-stats .stat-value small{font-size:11px;display:inline;margin-left:8px}
.home-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.home-recent{min-width:0}
.home-recent .recent-list{grid-template-columns:1fr;gap:14px}
.home-recent .question-card{border-radius:14px;padding:22px}
.home-recent .card-title{font-size:17px}
.home-recent .card-reason{font-size:13px;min-height:0;-webkit-line-clamp:1}
.home-recent .section-head{margin-bottom:20px}
.home-recent .section-head h2{font-size:20px;line-height:1.5}
.home-recent .empty-state{min-height:292px;border-style:solid;border-radius:14px;background:var(--panel)}
.home-side-panel .progress-summary{display:flex;flex-direction:column;align-items:flex-start;padding:24px;border-radius:14px;margin:0 0 20px;gap:18px}
.home-side-panel .progress-summary .eyebrow{font-size:10px;letter-spacing:1px}
.home-side-panel .progress-summary h2{font-size:18px;line-height:1.6;margin:6px 0 12px}
.home-side-panel .progress-summary p{font-size:13px;line-height:1.9;margin:0}
.home-tool-card{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:14px}
.home-tool-card .section-head{margin-bottom:18px}
.home-tool-card .section-head h2{font-size:17px}
.home-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-tool-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:90px;font-size:12px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);transition:background-color var(--ui-motion),border-color var(--ui-motion)}
.home-tool-grid .icon{width:22px;height:22px;color:var(--green)}
.home-record-note{font-size:11px;line-height:1.9;color:var(--muted);margin:18px 4px}
.home-overview button:active:not(:disabled),.home-action-card:active{opacity:.85}
@media(hover:hover){.home-action-card:hover,.home-tool-grid a:hover{border-color:#a8b39f;background:#fafbf5}.question-card:hover{transform:none}}
html[data-care-theme=memorial] .home-overview .home-hero{background:#e8e8e8;border-color:#ccc}
html[data-care-theme=memorial] .home-action-icon{background:#e5e5e5;color:#333}
html[data-care-theme=memorial] .home-hero p,html[data-care-theme=memorial] .home-hero-action>span{color:#555}
@media(max-width:1150px){.home-lower-grid{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.home-hero h1{font-size:32px}.home-hero .hero-content{padding:30px}.home-stats .stat{padding:17px}.home-stats .stat-label{font-size:11px}}
@media(max-width:900px){.home-lower-grid{grid-template-columns:1fr}.home-side-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.home-side-panel .progress-summary{margin:0}.home-record-note{grid-column:1/-1;margin:0 4px}.home-action-card{padding:20px}.home-action-card strong{font-size:16px}.home-action-card small{font-size:11px}}
@media(max-width:760px){.home-overview{--home-gap:14px;padding-top:18px}.home-overview .home-hero{min-height:276px;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}.home-hero .hero-content{padding:25px 0 25px 22px}.home-hero h1{font-size:27px;line-height:1.5;letter-spacing:0;margin:14px 0 12px;white-space:nowrap}.home-hero p{font-size:11px;max-width:27em;width:220px}.home-hero .eyebrow{font-size:9px;white-space:nowrap}.home-hero .geometry{min-height:276px;opacity:.85;overflow:hidden}.home-hero .geo-circle{width:123px;height:123px;right:-20px;top:41px}.home-hero .geo-circle span{font-size:72px}.home-hero .geo-blue{width:70px;height:88px;right:6px;top:155px}.home-hero .geo-yellow{width:63px;height:51px;right:63px;top:199px}.home-hero .geo-grid{width:149px;height:221px;right:-15px;top:28px;background-size:32px 32px}.home-hero .geo-line{width:160px;right:-10px;top:223px}.home-hero-action{gap:9px;margin-top:20px;align-items:flex-start;flex-direction:column}.home-hero-action .btn{font-size:12px;min-height:46px;padding:11px 16px}.home-hero-action>span{font-size:10px}.home-action-card{padding:18px 14px;gap:12px;min-height:104px}.home-action-card>.icon{display:none}.home-action-icon{width:36px;height:36px;border-radius:10px}.home-action-icon .icon{width:20px;height:20px}.home-action-card strong{font-size:15px}.home-action-card small{font-size:10px;line-height:1.7}.home-overview .home-stats{gap:10px;margin:16px 0 26px}.home-stats .stat{padding:13px 10px;border-radius:12px}.home-stats .stat-label{font-size:10px;line-height:1.6;white-space:normal;min-height:32px;align-items:flex-start}.home-stats .stat-label .icon{display:none}.home-stats .stat-value{font-size:26px;line-height:1.3;margin-top:5px}.home-stats .stat-value small{display:block;font-size:10px;margin:3px 0 0}.home-stats .stat-accent{top:14px;bottom:14px}.home-recent .section-head h2{font-size:19px}.home-recent .section-head p{font-size:12px}.home-recent .question-card{padding:20px}.home-recent .card-title{font-size:16px}.home-recent .card-reason{font-size:12px}.home-side-panel{grid-template-columns:1fr;gap:18px}.home-side-panel .progress-summary{flex-direction:row;align-items:center;flex-wrap:wrap;padding:22px;gap:16px}.home-side-panel .progress-summary h2{margin-bottom:8px}.home-tool-card{padding:22px}.home-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.home-tool-grid a{font-size:10px;gap:10px;min-height:84px}.home-tool-grid .icon{width:20px;height:20px}.home-lower-grid{gap:22px}}
@media(max-width:350px){.home-hero .hero-content{padding-left:18px}.home-hero h1{font-size:24px}.home-hero p{width:200px;font-size:10px}.home-hero .geo-circle{right:-42px}.home-action-card{gap:8px;padding:15px 10px}.home-action-card strong{font-size:14px}.home-action-card small{font-size:10px}.home-action-icon{width:30px;height:34px}.home-overview .home-stats{gap:7px}.home-stats .stat{padding:12px 8px}.home-stats .stat-label{font-size:9px}.home-stats .stat-value{font-size:24px}.home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[lang=en] .home-hero h1{font-size:36px;line-height:1.3;letter-spacing:-.5px;width:auto}
html[lang=en] .home-hero .hero-content{padding-right:12px}
@media(max-width:1150px){html[lang=en] .home-hero h1{font-size:32px}}
@media(max-width:760px){html[lang=en] .home-hero h1{font-size:28px;line-height:1.25;white-space:normal;width:240px}html[lang=en] .home-hero p{font-size:10px;width:230px}html[lang=en] .home-hero .geometry{opacity:.45}html[lang=en] .home-action-card strong{font-size:14px}html[lang=en] .home-stats .stat-label{font-size:9px}}
@media(max-width:350px){html[lang=en] .home-hero h1{font-size:25px;width:210px}html[lang=en] .home-hero p{width:210px}}
html[data-care-theme=memorial] .sidebar .nav-item.active{background:#e7e7e7;color:#333}
html[data-care-theme=memorial] .review-banner{--review-surface:#333;--review-ink:#fff;--review-muted:#ddd}

@media(max-width:760px){.sidebar .nav-item{font-size:10px;min-height:56px;gap:4px;border-radius:0}
.sidebar .nav-item.active{background:transparent;color:var(--red)}
.sidebar .nav-item .icon{width:21px;height:21px}
.topbar{min-height:70px;padding:0;gap:8px}
.top-actions{gap:6px}
.top-actions .btn{font-size:12px;min-height:44px;padding:9px 12px}
.topbar .breadcrumb{font-size:0;white-space:nowrap;min-width:0;gap:0;flex:1;overflow:hidden}
.topbar .breadcrumb>strong{overflow:hidden;text-overflow:ellipsis;font-size:17px;font-weight:600;line-height:1.5;display:block}
.topbar .top-actions .top-add{font-size:0;width:44px;min-width:44px;padding:9px}
.topbar .top-add .icon{width:20px;height:20px}
.top-actions .language-btn{min-height:44px;min-width:44px}
.page-heading{align-items:flex-start;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.page-heading h1{font-size:27px}
.page-heading p{font-size:13px}
.page-heading .notebook-actions{width:100%;max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.notebook-actions .btn{font-size:12px;min-height:44px;padding:10px 12px;white-space:nowrap;min-width:0}
.notebook-actions .btn:last-child{grid-column:1/-1}
.filter-bar{display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:8px}
.filter-bar .search-field{grid-column:1/-1;min-width:0;padding:0 6px}
.filter-bar select{max-width:none;width:100%;font-size:13px}
.filter-bar select:last-child{grid-column:1/-1}
.notebook-grid{grid-template-columns:1fr;gap:14px}
.question-card{padding:21px}
.question-card .card-title{font-size:16px}
.question-card .card-reason{font-size:13px}
.question-card .card-footer,.question-card .due-label{font-size:11px}
.question-card .subject-tag,.question-card .badge{font-size:11px}
.print-selection-bar{align-items:flex-start;padding:14px;flex-direction:column}
.print-selection-bar>div{width:100%;gap:6px}
.print-selection-bar .btn{flex:1;min-height:44px}
.empty-state{padding:28px 18px}
.empty-state h3{font-size:17px}
.empty-state p{font-size:13px}
.review-banner{padding:24px 20px;gap:16px}
.review-banner strong{font-size:48px}
.review-banner span{font-size:13px}
.review-today{font-size:12px}
.review-explainer{gap:14px}
.review-explainer strong{font-size:13px}
.settings-grid{grid-template-columns:1fr;gap:16px}
.settings-card{padding:23px}
.settings-card h2{font-size:18px}
.settings-card>p{font-size:13px}
.settings-card .backup-buttons{gap:8px}
.settings-card .btn{min-height:44px}
.field input,.field textarea,.field select{font-size:16px}
.modal-header h2{font-size:22px}
.result-btn strong{font-size:13px}
.result-btn small{font-size:11px}
.progress-summary{padding:21px;gap:18px}
.progress-summary h2{font-size:17px}
.progress-summary p{font-size:13px}
.app-footer{font-size:10px;gap:12px}
.reading-mode .topbar{display:none}
}

@media(prefers-reduced-motion:reduce){.btn,.nav-item,.question-card{transition:none!important;transform:none!important}
}


.hero{border-radius:18px}
.hero h1{letter-spacing:-.6px}
.hero .btn{min-height:48px;font-size:14px;padding:13px 20px}
.stats{gap:16px}
.stat{border-radius:12px}
.stat-value{font-variant-numeric:tabular-nums}
.progress-summary{border-radius:16px}
.care-home-entry{border-radius:14px}

@media(max-width:760px){.hero h1{font-size:28px;line-height:1.35}
.stats{gap:8px}
.stat{padding:16px 10px}
.stat-value{font-size:26px}
.hero .btn{min-height:48px}
.hero{min-width:0}
}



/* Search focus stays on the complete control, without clipping the keyboard ring. */
.search-field:focus-within{box-shadow:0 0 0 2px var(--blue);border-radius:9px}
.search-field input:focus-visible{outline:none}
.filter-bar select:focus-visible{outline-offset:2px}

@media(hover:hover){.btn-outline:hover{background:#f1f2eb;border-color:#a6b49e}
}


@media(max-width:760px){.topbar .breadcrumb>span{display:none}
.top-actions{flex-shrink:0}
}


.question-choice.chosen>label{background:#eaf0e5;color:var(--green)}
html[data-care-theme=memorial] .question-choice.chosen>label{background:#e7e7e7;color:#333}

/* Notebook pilot: retain the original cards and palette. No scene or export styles. */
.notebook-workspace{--notebook-muted:var(--ui-text-secondary)}
.notebook-heading{align-items:center;gap:24px;margin-bottom:28px}
.notebook-heading h1{display:flex;align-items:center;gap:14px;font-size:32px;letter-spacing:-.5px}
.notebook-heading .heading-count{margin:0;min-width:32px;height:30px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-variant-numeric:tabular-nums}
.notebook-heading p{margin-top:10px;color:var(--notebook-muted)}
.notebook-heading .notebook-actions{display:flex;gap:10px;flex-shrink:0}
.notebook-heading .btn{min-height:48px;font-size:14px;padding:12px 20px;border-radius:var(--ui-radius-control)}
.notebook-actions [aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--panel)}
.notebook-workspace .notebook-filters{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(115px,145px));align-items:center;gap:12px;padding:16px;border-radius:var(--ui-radius-card);box-shadow:0 2px 4px #292e2902}
.notebook-filters .search-field{min-width:0;min-height:54px;padding:0 12px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--paper)}
.notebook-filters .search-field:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #58745b20}
.notebook-filters .search-field input{min-width:0;width:100%;font-size:14px;background:transparent}
.notebook-filters .search-field input::placeholder{color:var(--notebook-muted);opacity:1}
.notebook-filter{display:flex;flex-direction:column;gap:4px;min-width:0}
.notebook-filter>span{font-size:12px;color:var(--notebook-muted);padding-left:10px;line-height:1.5}
.notebook-filters .notebook-filter select{width:100%;min-width:0;max-width:none;min-height:36px;border-color:transparent;padding:5px 10px;font-size:14px;background-color:transparent;border-radius:6px;cursor:pointer}
.notebook-filter:focus-within>span{color:var(--green)}
.notebook-workspace :is(button,a,select,input):focus-visible{outline:2px solid var(--green);outline-offset:3px}
.notebook-workspace input[type=search]:focus-visible{outline:0}
.notebook-library-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px}
.notebook-library-bar .result-count{margin:0;color:var(--notebook-muted);font-size:13px;flex-shrink:0;font-variant-numeric:tabular-nums}
.notebook-utilities{display:flex;gap:20px;align-items:center}
.notebook-utilities .text-link{display:inline-flex;gap:7px;align-items:center;min-height:44px;font-size:13px;color:var(--notebook-muted);padding:0;background:transparent;white-space:normal;text-align:left}
.notebook-utilities .icon{width:15px;height:15px}
.notebook-workspace .notebook-grid{gap:20px}
.notebook-workspace .question-card{padding:var(--ui-space-large);border-radius:var(--ui-radius-card);min-height:224px;box-shadow:0 2px 5px #292e2902}
.notebook-workspace .card-top{align-items:center;gap:12px}
.notebook-workspace .subject-tag{font-size:13px;color:var(--notebook-muted);gap:8px}
.notebook-workspace .badge{font-size:12px;padding:5px 8px;line-height:1.5;border-radius:6px}
.notebook-workspace .card-title{font-size:18px;font-weight:600;line-height:1.65;margin-top:20px;margin-bottom:10px;-webkit-line-clamp:3}
.notebook-workspace .card-reason{font-size:14px;color:var(--notebook-muted);line-height:1.85;-webkit-line-clamp:2}
.notebook-workspace .card-footer{margin-top:24px;padding-top:16px;font-size:12px;color:var(--notebook-muted)}
.notebook-workspace .due-label{font-size:12px;font-variant-numeric:tabular-nums;color:var(--notebook-muted)}
.notebook-workspace .due-label.expired{color:var(--red)}
.notebook-workspace .question-choice{border-radius:var(--ui-radius-card);overflow:hidden}
.notebook-workspace .question-choice.chosen{border-color:var(--green)}
.notebook-workspace .question-choice>label{padding:12px 20px;min-height:48px;font-size:14px;gap:10px}
.notebook-workspace .question-choice input{width:18px;height:18px;accent-color:var(--green)}
.notebook-workspace .print-selection-bar{margin-top:16px;border-radius:var(--ui-radius-control);background:var(--panel)}
.notebook-workspace .print-selection-bar .btn{min-height:44px}
@media(hover:hover){.notebook-workspace .question-card:hover{border-color:var(--green);box-shadow:0 4px 12px #292e2906;transform:none}.notebook-utilities .text-link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}}
@media(max-width:1100px){.notebook-workspace .notebook-filters{grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,.6fr));gap:8px}.notebook-heading{flex-wrap:wrap}}
@media(max-width:760px){
 .notebook-heading{margin-top:10px;margin-bottom:22px;gap:20px}
 .notebook-heading h1{font-size:28px;gap:12px}.notebook-heading p{font-size:13px;margin-top:8px}
 .notebook-heading .notebook-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
 .notebook-heading .notebook-actions .btn{font-size:14px;min-height:48px;padding:12px 8px;grid-column:auto}
 .notebook-workspace .notebook-filters{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;gap:12px 4px;border-radius:14px}
 .notebook-filters .search-field{grid-column:1/-1;min-height:48px;padding:0 10px}
 .notebook-filters .search-field input{font-size:16px;padding:10px 0}
 .notebook-filter>span{font-size:11px;padding-left:8px}.notebook-filters .notebook-filter select{font-size:13px;padding:4px 5px;min-height:38px}
 .notebook-library-bar{gap:8px;min-height:66px}.notebook-library-bar .result-count{font-size:12px}
 .notebook-utilities{gap:14px}.notebook-utilities .text-link{font-size:12px;gap:5px}.notebook-utilities .icon{display:none}
 .notebook-workspace .notebook-grid{gap:16px}.notebook-workspace .question-card{padding:22px;min-height:224px}
 .notebook-workspace .card-title{font-size:17px;margin-top:18px}.notebook-workspace .card-reason{font-size:14px}
 .notebook-workspace .subject-tag{font-size:12px}.notebook-workspace .badge{font-size:11px}
 .notebook-workspace .print-selection-bar{padding:14px}.notebook-workspace .print-selection-bar>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.notebook-workspace .print-selection-bar .btn:last-child{grid-column:1/-1}
}
html[data-care-theme=memorial] .notebook-workspace{--notebook-muted:#555;--green:#444;--red:#333}
html[data-care-theme=memorial] .notebook-actions [aria-pressed=true]{background:#333;border-color:#333}
html[data-care-theme=memorial] .notebook-workspace .search-field:focus-within{box-shadow:0 0 0 3px #4442}

/* Review and question detail: same original surface system as the notebook. */
.review-workspace{--review-text:var(--ui-text-secondary)}
.review-workspace .page-heading{align-items:center;gap:20px}
.review-workspace .review-paper-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--review-text)}
.review-workspace .review-paper-link .icon{width:16px;height:16px}
.review-workspace .review-banner{display:flex;align-items:center;justify-content:space-between;gap:28px;border-radius:var(--ui-radius-card);padding:30px 32px;margin-bottom:30px;background:var(--review-surface);border-color:var(--review-surface)}
.review-workspace .review-plan{display:block;min-width:0}
.review-workspace .review-plan>span{font-size:13px;line-height:1.7;margin:0;color:var(--review-muted)}
.review-workspace .review-due-count{display:flex;align-items:baseline;gap:14px;margin:12px 0}
.review-workspace .review-due-count strong{font-size:58px;font-weight:550;letter-spacing:-1px;line-height:1.1}
.review-workspace .review-due-count>span{font-size:15px;color:var(--review-ink)}
.review-workspace .review-plan>p{font-size:13px;line-height:1.8;color:var(--review-muted);margin:0}
.review-workspace .review-start{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:200px}
.review-workspace .review-start .btn{min-height:50px;font-size:15px;justify-content:space-between;padding:13px 20px}
.review-workspace .review-start>span{font-size:12px;line-height:1.7;color:var(--review-muted);text-align:center;margin:0}
.review-workspace .review-start b{font-variant-numeric:tabular-nums;font-weight:600;color:var(--review-ink);margin:0 3px}
.review-list-heading{margin-bottom:18px;gap:16px;align-items:center}
.review-list-heading h2{font-size:20px;font-weight:600}.review-list-heading p{color:var(--review-text);font-size:13px;margin-top:6px;line-height:1.8}
.review-workspace .question-card{border-radius:var(--ui-radius-card);padding:24px;min-height:224px}
.review-workspace .card-title{font-size:18px;line-height:1.65;margin-top:18px;margin-bottom:10px}
.review-workspace .card-reason{font-size:14px;color:var(--review-text)}
.review-workspace .subject-tag{font-size:13px;color:var(--review-text)}.review-workspace .badge{font-size:12px;line-height:1.5}
.review-workspace .card-footer,.review-workspace .due-label{font-size:12px}
.review-workspace .review-guide{border-top:1px solid var(--line);margin-top:32px;padding-top:26px}
.review-guide>h2{font-size:17px;font-weight:600;line-height:1.7}
.review-workspace .review-explainer{border:0;padding:0;margin:18px 0;gap:16px}
.review-workspace .review-explainer>div{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px 10px;align-items:center;background:var(--panel);border:1px solid var(--line);padding:18px;border-radius:12px}
.review-explainer .icon{grid-row:1/3;color:var(--green);width:22px;height:22px}
.review-workspace .review-explainer strong{font-size:14px;font-weight:550;line-height:1.5}
.review-workspace .review-explainer span{font-size:12px;color:var(--review-text);margin:0;grid-column:2;line-height:1.5}
.review-guide>p{font-size:13px;color:var(--review-text);line-height:1.9;max-width:60em}
.question-detail{max-width:790px;width:calc(100% - 40px)}
.question-detail .modal-inner{padding:30px}
.question-detail .modal-heading{margin-bottom:20px;gap:18px}
.question-detail .modal-heading .eyebrow{font-size:13px;letter-spacing:0;color:var(--green)}
.question-detail .modal-heading h2{font-size:25px;font-weight:600;line-height:1.55;margin-top:9px}
.question-detail .detail-meta{font-size:13px;gap:12px;margin:0 0 24px;color:var(--ui-text-secondary)}
.question-detail .detail-meta .badge{font-size:12px;line-height:1.6;padding:5px 9px}
.question-detail .content-label{font-size:14px;line-height:1.6;font-weight:600;margin:0;letter-spacing:0;text-transform:none;color:var(--ink)}
.question-detail .question-content{border:1px solid var(--line);background:var(--paper);border-radius:var(--ui-radius-card);padding:24px;margin:0 0 22px}
.question-detail .question-content p,.question-detail .answer-block p,.question-detail .reflection-grid p{font-size:16px;line-height:1.95;margin-top:12px;margin-bottom:0;max-width:70ch}
.question-detail .detail-photo{border-radius:10px;margin-top:16px}
.question-detail .retry-intro{font-size:14px;color:var(--ui-text-secondary);line-height:1.85;margin:0 0 14px}
.question-detail .reveal-btn{min-height:50px;font-size:15px;border-radius:var(--ui-radius-control);margin:0 0 24px}
.question-detail .answer-block{padding:24px;background:var(--review-surface);border:0;border-radius:var(--ui-radius-card);color:var(--review-ink)}
.question-detail .answer-block .content-label{color:var(--review-ink)}
.question-detail .reflection-grid{gap:16px;padding:18px 0 26px}
.question-detail .reflection-grid>section{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.question-detail .reflection-grid p{font-size:14px;color:var(--ui-text-secondary);line-height:1.9}
.question-detail .review-results{gap:10px;margin:0 0 26px}
.question-detail .result-heading{grid-column:1/-1;margin-bottom:6px}
.question-detail .result-heading h3{font-size:18px;line-height:1.6;font-weight:600;margin:0}
.question-detail .result-heading p{font-size:13px;color:var(--ui-text-secondary);line-height:1.8;margin:7px 0 0}
.question-detail .result-btn{min-height:110px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:12px;padding:18px 10px;box-shadow:none}
.question-detail .result-btn .icon{width:22px;height:22px;color:var(--green)}
.question-detail .result-btn strong{font-size:14px;font-weight:600;line-height:1.7}
.question-detail .result-btn small{font-size:12px;line-height:1.6;color:var(--ui-text-secondary)}
.question-detail .result-independent{border-color:var(--line);background:var(--panel)}
.question-detail .result-note{grid-column:1/-1;font-size:12px;color:var(--ui-text-secondary);line-height:1.9;margin:6px 0 0}
.question-detail .ai-entry{border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:var(--panel);margin:0 0 24px;gap:14px}
.question-detail .ai-entry b{font-size:14px}.question-detail .ai-entry small{font-size:12px;color:var(--ui-text-secondary);line-height:1.7}
.question-detail .history{font-size:14px;padding:0;border-color:var(--line)}
.question-detail .history summary{padding:18px 0;line-height:1.7;min-height:56px}
.question-detail .history-note,.question-detail .history>p{font-size:13px;line-height:1.85;color:var(--ui-text-secondary);padding:0 0 16px;margin:0}
.question-detail .history li{font-size:13px;line-height:1.8;padding:16px 0;gap:6px 12px}
.question-detail .history li b{font-weight:550}.question-detail .history li small{font-size:12px}
.question-detail .detail-actions{flex-wrap:wrap;gap:10px;margin-top:24px}
.question-detail .detail-actions .btn{min-height:46px;font-size:13px}.question-detail .detail-actions .danger-text{min-height:44px;margin-left:auto;display:inline-flex;align-items:center;font-size:13px}
.review-workspace :is(a,button):focus-visible,.question-detail :is(button,summary):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(hover:hover){.question-detail .result-btn:hover{border-color:var(--green);filter:none;box-shadow:0 2px 8px #292e2908}}
@media(max-width:760px){
 .review-workspace .page-heading{gap:10px;margin-bottom:22px}.review-workspace .page-heading h1{font-size:26px;line-height:1.5}
 .review-workspace .page-heading>div{width:100%}.review-workspace .review-paper-link{font-size:13px}
 .review-workspace .review-banner{padding:24px;align-items:stretch;flex-direction:column;gap:22px;margin-bottom:26px}
 .review-workspace .review-due-count strong{font-size:54px}.review-workspace .review-start{gap:12px;width:100%;min-width:0}
 .review-workspace .review-start .btn{font-size:15px;min-height:48px}.review-workspace .review-start>span{text-align:left}
 .review-list-heading h2{font-size:18px}.review-list-heading p{font-size:12px}.review-list-heading .text-link{font-size:12px;flex-shrink:0}
 .review-workspace .question-card{padding:22px}.review-workspace .card-title{font-size:17px}.review-workspace .badge{font-size:11px}
 .review-workspace .review-explainer{grid-template-columns:1fr;gap:10px}.review-workspace .review-explainer>div{grid-template-columns:24px 1fr auto;padding:16px;gap:10px}
 .review-workspace .review-explainer .icon{grid-row:1}.review-workspace .review-explainer span{grid-column:3}.review-workspace .review-guide{margin-top:26px}
 .question-detail{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:16px}
 .question-detail .modal-inner{padding:22px 20px}.question-detail .modal-heading h2{font-size:21px}.question-detail .detail-meta{font-size:12px;gap:10px;line-height:1.7}
 .question-detail .question-content,.question-detail .answer-block{padding:20px;border-radius:14px}.question-detail .question-content p,.question-detail .answer-block p{font-size:16px}
 .question-detail .reflection-grid{grid-template-columns:1fr;gap:12px;padding-bottom:24px}.question-detail .reflection-grid>section{padding:18px}
 .question-detail .review-results{grid-template-columns:1fr;gap:10px}.question-detail .result-heading{margin-bottom:8px}
 .question-detail .result-btn{display:grid;grid-template-columns:22px 1fr auto;gap:12px;align-items:center;text-align:left;padding:16px;min-height:64px}
 .question-detail .result-btn strong{font-size:14px}.question-detail .result-btn small{font-size:12px;margin:0}
 .question-detail .ai-entry{padding:16px;flex-wrap:wrap}.question-detail .ai-entry .btn{min-height:44px}
 .question-detail .detail-actions .btn{flex:1;min-width:135px}.question-detail .detail-actions .danger-text{margin-left:0;width:100%;justify-content:flex-end}
}
@media(max-width:350px){.question-detail .modal-inner{padding:20px 16px}.question-detail .result-btn{grid-template-columns:22px 1fr;gap:6px 10px}.question-detail .result-btn small{grid-column:2}.question-detail .result-btn .icon{grid-row:1/3}}
html[data-care-theme=memorial] .review-workspace{--review-surface:#333;--review-muted:#ddd;--review-ink:#fff;--review-text:#555;--green:#444}
html[data-care-theme=memorial] .question-detail{--green:#444;--ui-text-secondary:#555;--ui-result-independent:#eee;--review-surface:#333;--review-ink:#fff}
html[data-care-theme=memorial] .question-detail .result-independent{border-color:var(--line)}
@media print{.review-workspace .review-banner,.review-workspace .review-guide,.question-detail .retry-intro,.question-detail .result-note{display:none!important}}

/* Progress + mine: extend the original card system, not a separate visual theme. */
.progress-page,.mine-workspace{--surface-muted:var(--ui-text-secondary)}
.progress-page .page-heading{align-items:center;gap:20px}
.progress-page .week-nav{display:flex;align-items:center;gap:12px;padding:18px 20px;margin:0 0 26px;border:1px solid var(--line);border-radius:var(--ui-radius-card);background:var(--panel)}
.progress-page .week-range{flex:1;min-width:0;text-align:center}
.progress-page .week-range strong{display:block;font-size:15px;line-height:1.7;font-weight:600;font-variant-numeric:tabular-nums}
.progress-page .week-range>span{display:block;font-size:12px;color:var(--surface-muted);line-height:1.7;margin-top:3px}
.progress-page .week-nav .btn{min-height:44px;font-size:13px;padding:10px 14px;flex-shrink:0}
.progress-page .week-nav .text-link{min-height:44px;font-size:12px;margin-left:8px;flex-shrink:0}
.progress-page .progress-workspace{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);align-items:start;gap:26px;margin:0}
.progress-page .progress-content{min-width:0}
.progress-page .progress-metrics{gap:16px;margin:0 0 22px}
.progress-page .progress-metrics article{padding:22px;border-radius:var(--ui-radius-card);min-height:166px}
.progress-page .progress-metrics article>span{display:block;font-size:14px;color:var(--surface-muted);line-height:1.7}
.progress-page .progress-metrics strong{font-size:42px;font-weight:550;line-height:1.35;margin:10px 0 7px;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.progress-page .progress-metrics article>p{font-size:12px;line-height:1.8;margin:0;color:var(--surface-muted)}
.progress-page .settings-card{padding:24px;border-radius:var(--ui-radius-card);margin-bottom:22px}
.progress-page .settings-card h2,.progress-page .card-preview-heading h2{font-size:18px;line-height:1.6;font-weight:600;margin:0}
.progress-page .progress-achievements .section-head{margin:0 0 12px;gap:12px;align-items:center}
.progress-page .progress-achievements .text-link{flex-shrink:0;min-height:44px;display:inline-flex;align-items:center;font-size:12px}
.progress-page .settings-card>p{font-size:14px;color:var(--surface-muted);line-height:1.9;margin:12px 0 0}
.progress-page .progress-rules{padding:0 0 22px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.progress-rules summary{font-size:14px;line-height:1.8;min-height:44px;padding:10px 0;cursor:pointer}
.progress-rules p{font-size:13px;color:var(--surface-muted);line-height:1.95;margin:10px 0 0}
.progress-page .card-options .field{margin:22px 0}
.progress-page .card-options .field>span{font-size:13px;color:var(--surface-muted);line-height:1.8;margin-bottom:8px}
.progress-page .card-options .field input,.progress-page .card-options .field select{font-size:16px;min-height:48px}
.progress-page .checkbox-line{gap:12px;font-size:14px;line-height:1.8;min-height:44px;margin:12px 0;flex-wrap:wrap;align-items:center}
.progress-page .checkbox-line input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0}
.progress-page .checkbox-line small{font-size:12px;color:var(--surface-muted);margin-left:auto}
.progress-page .card-options .progress-privacy-note{font-size:12px;padding-top:18px;border-top:1px solid var(--line);line-height:1.9}
.progress-page .card-preview-wrap{position:sticky;top:24px;align-self:start;min-width:0;background:var(--panel);border:1px solid var(--line);padding:24px;border-radius:var(--ui-radius-card);max-width:none}
.card-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.card-preview-heading>span{font-size:11px;color:var(--surface-muted);font-variant-numeric:tabular-nums}
.progress-page .card-preview-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:3/4;border-radius:12px;border-color:var(--line);box-shadow:0 4px 16px #292e2906;background:var(--paper)}
.card-export-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:20px}
.card-export-actions .btn{min-height:48px;font-size:14px}
.card-export-actions .text-link{font-size:13px;min-height:44px}
.progress-page #card-status{font-size:12px;color:var(--surface-muted);line-height:1.85;margin:8px 0 0}
.progress-page #card-status .text-link{display:inline-flex;align-items:center;min-height:44px}
.mine-workspace .my-space{display:flex;align-items:center;gap:22px;padding:28px;border:1px solid var(--line);border-radius:var(--ui-radius-card);background:var(--panel);margin-bottom:24px}
.my-space-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;flex-shrink:0;background:var(--ui-space-bg,#eaf0e5);border-radius:16px;color:var(--green)}
.my-space-icon .icon{width:28px;height:28px}
.my-space-copy{flex:1;min-width:0}
.my-space-label{font-size:12px;line-height:1.8;color:var(--surface-muted)}
.my-space-copy h2{font-size:21px;font-weight:600;line-height:1.6;margin:5px 0 8px;overflow-wrap:anywhere}
.my-space-copy p{font-size:13px;color:var(--surface-muted);line-height:1.9;max-width:46em;margin:0}
.my-space .btn{flex-shrink:0;min-height:48px;font-size:13px}
.mine-workspace .my-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 28px}
.mine-workspace .my-shortcuts .btn{padding:16px 10px;min-height:60px;font-size:13px;border-radius:12px;white-space:normal;text-align:center;line-height:1.7}
.mine-workspace .settings-grid{gap:20px}
.mine-workspace .settings-card{padding:26px;border-radius:var(--ui-radius-card)}
.mine-workspace .settings-card .section-index{display:none}
.mine-workspace .settings-card h2{font-size:19px;line-height:1.7;margin-top:0}
.mine-workspace .settings-card>p{font-size:14px;line-height:1.9;color:var(--surface-muted)}
.mine-workspace .data-meta{font-size:13px;line-height:1.8}
.mine-workspace .privacy-card{background:var(--ui-space-bg,#eaf0e5)}
.mine-workspace .founder-shortcut{margin-top:24px}
.progress-page :is(button,select,input,summary,a):focus-visible,.mine-workspace :is(button,a,input):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:1100px){.progress-page .progress-workspace{grid-template-columns:minmax(0,1fr) minmax(290px,.9fr);gap:20px}.progress-page .progress-metrics article{padding:18px}.progress-page .card-preview-wrap{padding:20px}.mine-workspace .my-space{flex-wrap:wrap}.my-space .btn{margin-left:82px}}
@media(max-width:850px){.progress-page .progress-workspace{grid-template-columns:1fr}.progress-page .card-preview-wrap{position:static;width:100%;max-width:540px;justify-self:center}.mine-workspace .my-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .progress-page .page-heading{gap:14px}.progress-page .page-heading h1{font-size:27px}.progress-page .page-heading .btn{font-size:13px;min-height:44px}
 .progress-page .week-nav{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px 8px;padding:18px 16px;margin-bottom:20px}
 .progress-page .week-range{grid-column:1/-1;grid-row:1;text-align:left}.progress-page .week-range strong{font-size:15px;width:auto}.progress-page .week-range>span{font-size:12px}
 .progress-page .week-nav .btn{font-size:12px;padding:10px 8px;min-width:0}.progress-page .week-nav .text-link{font-size:12px;margin:0}
 .progress-page .progress-metrics{gap:12px}.progress-page .progress-metrics article{padding:18px 16px;min-height:160px}
 .progress-page .progress-metrics article>span{font-size:13px;min-height:42px}.progress-page .progress-metrics strong{font-size:37px;margin:6px 0}.progress-page .progress-metrics article>p{font-size:11px}
 .progress-page .settings-card{padding:22px}.progress-page .settings-card h2{font-size:17px}.progress-page .settings-card>p{font-size:13px}
 .progress-page .card-preview-wrap{padding:20px}.progress-page .card-preview-heading h2{font-size:17px}.progress-page .card-preview-heading>span{font-size:10px}
 .mine-workspace .my-space{padding:22px;gap:16px;align-items:flex-start}.my-space-icon{width:46px;height:46px;border-radius:12px}.my-space-icon .icon{width:24px;height:24px}
 .my-space-copy h2{font-size:19px}.my-space-copy p{font-size:12px}.my-space .btn{width:100%;margin:4px 0 0;min-height:46px;justify-content:space-between}
 .mine-workspace .my-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mine-workspace .my-shortcuts .btn{font-size:13px;min-height:54px}
 .mine-workspace .my-shortcuts .btn:last-child{grid-column:1/-1}.mine-workspace .settings-card{padding:22px}.mine-workspace .data-meta{font-size:12px}
}
html[data-care-theme=memorial] .progress-page,html[data-care-theme=memorial] .mine-workspace{--surface-muted:#555;--ui-space-bg:#eee;--green:#444}
@media print{.progress-page .card-options,.progress-page .week-nav,.progress-page .card-export-actions,.mine-workspace .my-space{display:none!important}}

/* Home: preserve the original geometric card; make the next learning action explicit. */
.home-polish .home-context{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px}
.home-polish .home-profile{display:flex;align-items:center;gap:12px;min-width:0;min-height:52px;color:var(--ink);border-radius:var(--ui-radius-control)}
.home-profile>.icon{width:22px;height:22px;color:var(--green);flex-shrink:0}
.home-profile>span{min-width:0}.home-profile small,.home-profile strong{display:block;overflow-wrap:anywhere}
.home-profile small,.home-subject>span{color:var(--ui-text-secondary);font-size:12px;line-height:1.6}
.home-profile strong{font-size:16px;line-height:1.6;font-weight:600}
.home-polish .home-subject{display:flex;align-items:center;gap:12px;flex-shrink:0}
.home-subject select{appearance:none;-webkit-appearance:none;height:46px;min-height:46px;min-width:145px;max-width:100%;font:inherit;font-size:14px;color:var(--ink);padding:10px 32px 10px 14px;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23626b5d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center;border:1px solid var(--line);border-radius:var(--ui-radius-control)}
.home-plan-status{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:var(--green)}
.home-plan-status strong{font-size:36px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.home-plan-status>span{font-size:13px;line-height:1.6}
.home-polish .home-hero h1{margin-top:17px}.home-polish .home-hero-action>span{max-width:28em}
.home-polish .home-scope-note{font-size:12px;color:var(--ui-text-secondary);line-height:1.8;margin:22px 0 0}
.home-polish .home-stats{margin-top:12px}.home-polish .home-stats .stat-value{font-variant-numeric:tabular-nums}
.home-polish .home-recent .section-head{align-items:flex-start;gap:16px}.home-polish .home-recent .section-head p{max-width:32em;line-height:1.8}
.home-polish .home-recent .section-head>.text-link{min-height:44px;flex-shrink:0;display:flex;align-items:center;gap:6px}
.home-polish .home-filter-empty{padding:28px;min-height:220px}.home-filter-empty .empty-actions{flex-wrap:wrap;gap:12px}
.home-polish .home-profile:focus-visible,.home-polish select:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.home-unavailable{padding:28px;border:1px solid var(--line);border-radius:var(--ui-radius-card);background:var(--panel)}
.home-unavailable h1{font-size:24px}.home-unavailable p{line-height:1.8;color:var(--ui-text-secondary);max-width:42em}.home-unavailable .btn{margin:12px 12px 0 0}
html[data-care-theme=memorial] .home-plan-status,html[data-care-theme=memorial] .home-profile>.icon{color:#444}
@media(max-width:760px){
 .home-polish .home-context{gap:16px;margin-bottom:16px;align-items:center}.home-profile strong{font-size:14px}.home-profile small,.home-subject>span{font-size:11px}
 .home-polish .home-profile{gap:8px}.home-profile>.icon{width:19px;height:19px}
 .home-polish .home-subject{display:block;max-width:47%}.home-subject>span{display:block;margin-bottom:4px}.home-subject select{min-width:0;width:100%;padding-left:10px;font-size:14px}
 .home-plan-status{gap:7px}.home-plan-status strong{font-size:30px}.home-plan-status>span{font-size:11px}
 .home-polish .home-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.home-polish .home-stats .stat{padding:16px 18px}
 .home-polish .home-stats .stat-label{min-height:0;font-size:12px}.home-polish .home-stats .stat-value{font-size:29px;display:flex;align-items:baseline;gap:7px}
 .home-polish .home-stats .stat-value small{display:inline;margin:0;font-size:11px}.home-polish .home-action-card{min-height:110px}
 .home-polish .home-recent .section-head h2{font-size:19px}.home-polish .home-recent .section-head p{font-size:12px}
 .home-polish .home-filter-empty{padding:22px}.home-polish .home-filter-empty .btn{min-height:44px}
}
