/* Focus 2: calm workspace, clear emphasis, touch-friendly navigation. */
:root{--ink:#27243e;--muted:#68677b;--accent:#6952d9;--line:#e6e4ee}
body{background:#f5f5f9;color:var(--ink)}
button,a,input,select,textarea{outline-offset:4px}
:focus-visible{outline:3px solid #9885ee}
button{touch-action:manipulation}
[hidden]{display:none!important}
.sidebar{padding:32px 18px;border-color:var(--line)}
.brand-mark{background:linear-gradient(145deg,#8365ed,#5841c0);box-shadow:0 5px 12px #6952d926}
.workspace{font-size:11px;letter-spacing:.14em;color:#767387}
nav a{min-height:48px;color:#605d72}
nav a.active{background:#ede8ff;color:#5840be;box-shadow:inset 3px 0 #7257db}
.topbar{gap:20px;height:84px;border-color:var(--line);padding:0 36px}
#breadcrumb{font-size:13px;white-space:nowrap;color:var(--muted)}
.search-box{display:flex;align-items:center;gap:8px;background:#f5f5f9;border:1px solid transparent;border-radius:12px;padding:0 12px;min-width:140px;max-width:350px;flex:1}
.search-box:focus-within{border-color:#aa99e6;background:white}
.search-box>span{font-size:24px;color:#7c748e}
.search-box input{background:none;border:0;width:100%;padding:12px 0;font-size:14px;outline:none;min-width:0;color:var(--ink)}
.top-actions{gap:10px;flex-shrink:0}
.dark{background:#302746;box-shadow:0 3px 7px #30274614}
.button,.icon-button{min-height:42px}
.content{max-width:1400px;padding:36px}
.page-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}
.page-title{font-size:34px;line-height:1.16;letter-spacing:-1.15px;margin-bottom:12px}
.page-title span{color:#7962bd}
.edition{font-size:11px;letter-spacing:.16em;color:#81788f;border:1px solid #ddd7e8;border-radius:7px;padding:8px;margin-top:8px}
.eyebrow{color:#706a80;font-size:13px}
.subtitle{color:var(--muted);margin-bottom:27px}
.layout{grid-template-columns:minmax(0,1fr) 280px;gap:25px}
.section-head h2{font-size:17px}
.small-muted{color:#777185}
.focus-card{padding:22px;border:1px solid var(--line);box-shadow:0 4px 16px #34265403;margin-bottom:13px;border-radius:18px}
.focus-card.featured{border-left:4px solid #7758d6;padding-left:19px;background:linear-gradient(110deg,#fdfbff,#fff 65%)}
.card-kicker{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:#706486;letter-spacing:.035em;margin-bottom:8px}
.card-kicker span{font-size:12px;color:#a192bd;font-weight:500}
.card-title{font-size:18px;color:var(--ink);line-height:1.45;overflow-wrap:anywhere}
.card-description{font-size:14px;color:var(--muted)}
.card-bottom{margin-top:16px;margin-left:45px}
.check{width:32px;height:32px;border-radius:10px;border-color:#d8d1e5;font-size:17px}
.check:hover{border-color:#8066d4;box-shadow:0 0 0 3px #8066d412}
.check.checked{background:#7356d5;border-color:#7356d5}
.tag{font-size:12px;color:#6f5b9f;background:#f2eef9;padding:5px 8px;white-space:nowrap}
.tag.urgent{color:#9c4e27;background:#fff0e6}
.tag.done{color:#287657;background:#e9f5ef}
.tag.codex{color:#4a64a5;background:#edf0fb}
.date-meta{font-size:12px;color:#706b7d}
.date-meta.overdue{color:#ab6241}
.detail-link{color:#716184;white-space:nowrap}
.panel{border-color:var(--line);border-radius:18px;padding:22px}
.panel h3{line-height:1.5;font-size:16px}
.day-progress{background:#302744;color:white;box-shadow:0 12px 28px #30274416;border:0}
.panel-overline{font-size:11px;letter-spacing:.15em;margin-bottom:15px;color:#bdb0d7}
.progress-number{color:#fff;font-size:46px;line-height:1.3;letter-spacing:-1px}
.progress-number span{color:#d6cce6;font-size:14px;letter-spacing:0}
.progress-label{color:#eee7f6;font-size:14px;margin-top:5px}
.day-progress .form-hint{color:#baadc9;font-size:12px;line-height:1.6;margin:19px 0 0}
.project-cycle{gap:8px;margin:15px 0}
.project-name{font-size:14px;color:#555063}
.mini-select{font-size:12px;min-height:38px;color:#665180;max-width:128px}
.capture-panel{background:#eeebfa;border-color:#e3dcf3}
.capture-panel .panel-overline{color:#7d6a98}
.capture-panel h3{font-size:21px;letter-spacing:-.4px;line-height:1.4;margin:13px 0}
.capture-panel .rail-button{background:white;color:#6046ae;margin:0 0 8px}
.capture-panel .detail-link{display:inline-block;margin-top:6px}
.secondary-section{margin-top:28px}
.secondary-section>summary,.smart-fields>summary{cursor:pointer;font-size:16px;font-weight:600;padding:10px 0 17px;color:#524760}
.secondary-section>summary span{color:#8b7d9b;margin-left:10px;font-weight:400}
.task-row{gap:13px;padding:16px 18px}
.row-title{font-size:15px;color:#494156;overflow-wrap:anywhere}
.row-title small{display:block;font-size:12px;color:#797284;margin-top:5px}
.empty{color:var(--muted);line-height:1.8}
.day-column{padding:18px;border-color:var(--line)}
.day-task{align-items:start}
.day-task button:last-child{overflow-wrap:anywhere;color:#4f475b}
.day-task small{color:#766b88}
.project-card{transition:transform .15s,border-color .15s;border-color:var(--line)}
.project-card:hover{transform:translateY(-2px);border-color:#b3a2dc}
.project-card p{color:var(--muted)}
.field{font-size:14px;color:#665d76}
.field input,.field select,.field textarea{font-size:16px;border-color:#ded9e9;background:#faf9fc}
.field textarea{line-height:1.65}
.smart-fields{background:#f7f4fc;padding:8px 15px;border-radius:12px;margin:18px 0}
.smart-fields>summary{font-size:14px;padding:9px 0}
.smart-fields>summary span{color:#8c7e9c;font-weight:400;font-size:12px;margin-left:6px}
.smart-fields .field textarea{min-height:85px}
.smart-guide{max-width:680px;margin-top:20px}
.smart-guide p{color:var(--muted);line-height:1.7}
.step input{width:22px;height:22px;flex-shrink:0;accent-color:#7356d5}
.step span{overflow-wrap:anywhere}
.step:has(input:checked) span{text-decoration:line-through;color:#8d8499}
.dialog-actions{flex-wrap:wrap;position:sticky;bottom:-30px;background:#fff;padding:14px 0;margin-bottom:-10px;border-top:1px solid #f1eef5}
.dialog-top h2{font-size:23px}
.conflict-box,.network-banner{background:#fff2df;color:#774c1f;line-height:1.6;padding:15px 20px;font-size:14px}
.conflict-box{border-radius:10px;margin:12px 0}
.conflict-box button{display:block;margin-top:10px}
.network-banner button{border:0;border-bottom:1px solid;background:none;color:inherit;margin-left:12px}
.network-banner{position:sticky;top:0;z-index:7}
.search-heading{font-size:18px;margin-top:30px}
.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.note-card{text-align:left;border:1px solid #e4dff0;border-radius:17px;background:#fff;padding:22px;color:var(--ink);min-width:0;transition:transform .15s}
.note-card:hover{transform:translateY(-2px);border-color:#b1a0d5}
.note-card.idea{background:#f1edff;border-color:#e2d9fa}
.note-card.book{background:#fff8e9;border-color:#efe3c9}
.note-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#77658a}
.note-card h3{font-size:19px;line-height:1.45;letter-spacing:-.3px;margin:18px 0 10px;overflow-wrap:anywhere}
.note-card p{font-size:15px;line-height:1.7;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;color:#655a75;overflow-wrap:anywhere;margin:0}
.note-source{border-top:1px solid #b9a7d333;margin-top:20px;padding-top:12px;font-size:12px;color:#82748f;overflow-wrap:anywhere}
.notes-empty{grid-column:1/-1;border:1px dashed #d5cce6;border-radius:20px;padding:60px 25px;text-align:center;background:#fbfaff}
.notes-empty>span{font-size:35px;color:#9472d2}
.notes-empty h2{font-size:23px;letter-spacing:-.6px}
.notes-empty p{font-size:15px;color:var(--muted);line-height:1.7}
.note-editor{min-height:230px!important}
.toolbar{flex-wrap:wrap}
.filter{min-height:42px;color:#655a76}
#toast{max-width:calc(100vw - 28px);display:flex;align-items:center;gap:20px;line-height:1.5;background:#302744;box-shadow:0 5px 25px #30274422}
#toast.visible{pointer-events:auto}
#toast button{border:0;background:#ffffff20;border-radius:7px;color:#fff;padding:9px 12px;white-space:nowrap;font-weight:600}
body.busy button[type=submit],body.busy [data-complete]{pointer-events:none;opacity:.5}
@media(max-width:1200px){#breadcrumb{display:none}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.layout{grid-template-columns:1fr}.right-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.capture-panel{grid-column:1/-1}.page-title{font-size:30px}}
@media(max-width:700px){.shell{display:block}.sidebar{width:100%;height:auto;position:static;padding:18px 20px;border:0;background:#f5f5f9}.brand{font-size:24px}.brand-mark{height:30px;width:30px;font-size:25px}.workspace,.side-bottom{display:none}main{padding-bottom:95px}#nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:8px 5px calc(8px + env(safe-area-inset-bottom));margin:0;border-top:1px solid #e2dceb;background:#fffffff5;backdrop-filter:blur(15px);overflow:visible}#nav a{display:flex;flex-direction:column;gap:5px;padding:7px 1px;font-size:11px;min-height:53px;white-space:nowrap;border-radius:10px}#nav .nav-icon{font-size:21px;width:auto;line-height:1}#nav a.active{box-shadow:none}.topbar{height:auto;padding:0 18px 16px;border:0;background:none;flex-wrap:wrap;gap:12px}.search-box{order:2;flex-basis:100%;max-width:none;background:white;border-color:var(--line)}.search-box input{font-size:16px}.top-actions{position:absolute;top:14px;right:18px}.content{padding:18px}.page-title{font-size:29px}.edition{display:none}.layout{gap:22px}.focus-card{padding:18px}.focus-card.featured{padding-left:15px}.card-title{font-size:17px}.card-bottom{margin-left:0;gap:7px;align-items:flex-end}.meta{gap:6px}.card-kicker{font-size:12px}.detail-link{font-size:12px}.check{width:34px;height:34px}.right-rail{grid-template-columns:1fr}.capture-panel{grid-column:auto}.notes-grid,.week-grid,.project-grid{grid-template-columns:1fr}.task-row{padding:15px 13px;gap:11px}.task-row .tag{max-width:95px;white-space:normal;font-size:11px}.field-row{grid-template-columns:1fr}.panel{padding:21px}.notes-empty{padding:36px 20px}dialog{padding:22px;width:calc(100vw - 20px);max-height:calc(100dvh - 35px);border-radius:18px}.dialog-actions{bottom:-22px}.goal-amount{font-size:36px}#toast{bottom:calc(84px + env(safe-area-inset-bottom));font-size:14px;gap:12px;width:max-content}.note-toolbar{gap:7px}.note-toolbar .filter{padding:9px 11px;font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
