/* Shared personal-space components; brand tokens remain the source of truth. */
.space-page{padding-bottom:48px}.space-settings{max-width:1000px}.space-settings>.button{margin:0 12px 16px 0}.space-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.space-choice-grid label{min-height:48px;align-items:center}.space-settings .personal-panel>h2{margin-bottom:22px}.space-error{color:#efb6ad;min-height:1.5em;margin:12px 0}.space-status{color:var(--gold);line-height:1.6;margin-top:12px}.space-report-tools{padding:28px;margin:30px 0;border:1px solid #d7b88455;border-radius:12px;background:var(--panel)}.space-report-tools h3{font-size:34px;margin:14px 0}.space-report-tools>p{font-size:18px;line-height:1.7;max-width:900px}.space-report-tools .tool-actions{margin-top:22px;gap:16px;flex-wrap:wrap}.space-dialog{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;position:fixed;background:var(--panel);color:var(--ink);border:1px solid #d7b88480;border-radius:14px;padding:30px}.space-dialog::backdrop{background:#090812c9}.space-dialog h2{font-size:38px;padding-right:48px;margin-bottom:18px}.space-dialog>p{font-size:17px;line-height:1.6;margin:12px 0 22px}.space-dialog-close{position:sticky;float:right;top:0;width:48px;height:48px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:8px;font-size:28px;z-index:2}.space-dialog label,.space-case-create label,#case-note label,#case-outcome label,.space-practice details label{display:block;font-size:17px;margin:16px 0}.space-dialog :is(input:not([type=checkbox]),textarea,select),.space-case-create :is(input,select),#case-note textarea,#case-outcome textarea,.space-practice textarea{width:100%;min-height:48px;padding:12px 14px;margin-top:8px;background:var(--bg);border:1px solid var(--line);color:var(--ink);border-radius:8px;font:inherit;line-height:1.5}.space-case-create{max-width:850px}.space-case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.space-case-link{margin:0;display:block}.space-case-link h2{font-size:32px;margin:16px 0;overflow-wrap:anywhere}.space-case-link strong{display:block;margin-top:20px;color:var(--gold)}.space-timeline{margin:26px 0;padding-left:22px;border-left:1px solid #d7b88460}.space-timeline time{font-size:14px;color:var(--muted)}.space-timeline h2{font-size:32px;margin:15px 0}.space-timeline p{white-space:pre-line}.space-entry-cards{display:flex;gap:12px;overflow:auto;margin:22px 0;padding-bottom:10px}.space-entry-cards figure{margin:0;flex:0 0 88px}.space-entry-cards img{width:88px;aspect-ratio:167/300;object-fit:contain;border-radius:4px}.space-entry-cards figcaption{font-size:12px;line-height:1.5;margin-top:8px}.space-remove-entry{display:block;margin:20px 0 0;min-height:44px;color:var(--muted)}.space-own-note{border-left:2px solid var(--gold);padding-left:16px;margin:18px 0}.space-practice{border-top:1px solid var(--line);padding:18px 0}.space-practice>.tool-check{align-items:flex-start;font-size:18px;line-height:1.6}.space-practice>small{display:block;color:var(--muted);margin:8px 0 0 36px}.space-practice summary{padding:14px 0;cursor:pointer;color:var(--gold);min-height:44px}.space-theme-options,.space-decks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.space-theme-options{margin-bottom:20px}.space-option{display:flex;gap:12px;align-items:center;min-height:70px;padding:16px;border:1px solid #d7b88460;border-radius:10px;color:#eee5d4;cursor:pointer}.space-option input{width:20px;height:20px;accent-color:#d7b884}.space-theme-night{background:#14141d}.space-theme-plum{background:#2d2034}.space-theme-indigo{background:#162437;color:#edf1f7}.space-decks{grid-template-columns:repeat(2,minmax(0,1fr))}.space-deck-option{border:1px solid var(--line);padding:18px;border-radius:10px;display:block}.space-deck-option>span{display:flex;align-items:center;gap:10px;font-size:18px;min-height:44px}.space-deck-preview{display:flex;align-items:center;justify-content:center;gap:8px;margin:15px 0}.space-deck-preview img{width:clamp(45px,6vw,82px);aspect-ratio:167/300;object-fit:contain}.space-deck-option small{font-size:14px;line-height:1.6;color:var(--muted);display:block}.space-topic-links{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.space-topic-links a{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px}.space-today-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:-18px 0 30px}.space-primary-tip{border-left:3px solid var(--gold);padding:20px 24px;margin-bottom:24px;background:var(--panel)}.space-primary-tip h2{font-size:29px;margin-bottom:12px}.space-primary-tip p{font-size:18px;line-height:1.7}.space-locked{border:1px dashed #d7b88460;padding:20px;border-radius:10px}.space-locked h3{font-size:26px;margin:10px 0}.space-locked p{margin:12px 0}
html[data-space-theme=plum]{--bg:#201824;--panel:#2c2231;--ink:#f5eefa;--muted:#c4b7cb;--gold:#e2be91;--line:#e2be912b}html[data-space-theme=indigo]{--bg:#141d2b;--panel:#1c293b;--ink:#edf1f7;--muted:#b5bdcb;--gold:#e0c593;--line:#e0c59330}
@media(max-width:700px){.space-choice-grid,.space-case-list,.space-decks{grid-template-columns:minmax(0,1fr)}.space-theme-options{gap:8px}.space-option{padding:12px 8px;gap:7px;font-size:14px}.space-report-tools{padding:22px 18px}.space-report-tools h3{font-size:29px}.space-report-tools .tool-actions{align-items:stretch;flex-direction:column}.space-report-tools .tool-actions button{min-height:48px;text-align:center}.space-timeline{padding-left:10px}.space-dialog{padding:20px}.space-dialog h2{font-size:32px}.space-deck-preview img{width:80px}.space-today-actions{margin-top:0}}
@media(prefers-reduced-motion:reduce){.space-page *{scroll-behavior:auto}}

.space-today .page-heading{padding-top:30px;padding-bottom:28px}.space-today .page-heading h1{font-size:clamp(38px,4.7vw,62px)}.space-day-card h3{font-size:27px;margin:22px 0 12px}.space-day-card .text-link{display:block;margin-top:18px}.space-today .today-grid{align-items:start}.space-one-column{grid-template-columns:minmax(0,1fr)}.space-one-column .today-card{max-width:960px}.space-topics h2{font-size:31px;margin-bottom:18px}.space-day-plan{border-top:1px solid var(--line);padding:18px 0}.space-day-plan h3{font-size:26px}

.space-choice-grid .tool-check{margin:0!important;padding:8px 0}.space-option input{flex:none}.space-deck-option input{width:20px;height:20px;accent-color:var(--gold)}

.space-page .tool-check,.space-today .tool-check,.space-dialog .tool-check{display:flex;align-items:center;gap:12px;min-height:44px}.space-practice>.tool-check{align-items:flex-start}#case-outcome label.tool-check{display:flex}

.space-option input[type=radio],.space-deck-option input[type=radio]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;width:21px;height:21px;min-width:21px;flex:0 0 21px;border:1px solid #d7b88485;border-radius:50%;background:var(--bg);padding:0}.space-option input[type=radio]:checked,.space-deck-option input[type=radio]:checked{border-color:var(--gold)}.space-option input[type=radio]:checked::before,.space-deck-option input[type=radio]:checked::before{content:"";width:11px;height:11px;border-radius:50%;background:var(--gold)}.space-option input:focus-visible,.space-deck-option input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
