:root{--green:#48574f;--accent:#48574f;--accent-hover:#39483f;--page:#f7f7f3;--sidebar:#eef0eb;--soft:#f0f3ed;--selected:#e1e7df;--border:#dfe4dc;--muted:#657164;--focus:#617568;--matte:#788179;--text:#303831;font-size:16px;background:var(--page);color:var(--text)}
:root[data-theme="blue"]{--green:#4e5e70;--accent:#4e5e70;--accent-hover:#3e4e60;--page:#f5f6f7;--sidebar:#ebeff2;--soft:#eef1f4;--selected:#dfe6ec;--border:#dce2e7;--muted:#626e7a;--focus:#657b92;--matte:#7a8390;--text:#303941}
:root[data-theme="rose"]{--green:#765b64;--accent:#765b64;--accent-hover:#644b54;--page:#faf6f5;--sidebar:#f1eae9;--soft:#f6eeed;--selected:#ebdddf;--border:#e5dbdc;--muted:#79686d;--focus:#96777e;--matte:#a08b8e;--text:#3e3337}
:root[data-theme="olive"]{--green:#686b50;--accent:#686b50;--accent-hover:#55593e;--page:#f8f7f1;--sidebar:#f0efe5;--soft:#f2f2e9;--selected:#e6e6d6;--border:#e1e1d4;--muted:#70735f;--focus:#828768;--matte:#a09d83;--text:#363a2d}
:root[data-theme="charcoal"]{--green:#505450;--accent:#505450;--accent-hover:#3f4440;--page:#f6f5f2;--sidebar:#eeede9;--soft:#f1f0ec;--selected:#e2e2dc;--border:#dedfd8;--muted:#6d736b;--focus:#727c70;--matte:#73736f;--text:#343934}
:root[data-font-size="small"]{font-size:14px}:root[data-font-size="normal"]{font-size:16px}:root[data-font-size="large"]{font-size:18px}:root[data-font-size="xlarge"]{font-size:20px}
body{background:var(--page);color:var(--text)}.sidebar,.lock-story{background:var(--sidebar)}.primary,#toast,#update-banner{background:var(--accent)}.primary:hover{background:var(--accent-hover)}.secondary,.row-copy,.row-initial,.entry-password,.detail-field input,.appearance-preview{background:var(--soft)}.secondary:hover,.site-link:hover{background:var(--selected)}.nav-item.active,.bottom-nav .active,.group-chip.chosen{background:var(--selected);color:var(--accent)}.nav-item,.sidebar-bottom p,.sidebar-bottom>span,.hint,.local-note,.local-note small,.lock-story p,.lock-story>small,.eyebrow,.required{color:var(--muted)}.lock-story h1,.generated,.row-initial,.restore-locked summary,.section-icon,.detail-url,#update-banner button{color:var(--accent)}.generated{background:var(--soft);border-color:var(--border)}.search span,.entry-password>span{color:var(--muted)}.entry-row,.rule-option,.group-setting-row,.bottom-nav,.topbar,.secondary,.notice,.field input,.field textarea,.field select,.input-actions input{border-color:var(--border)}.lock-button{border-color:var(--border)}.bottom-nav{background:var(--page)}.group-chip.chosen{border-color:var(--matte)}.group-dot{box-shadow:0 0 0 3px var(--page)}.site-missing,.site-missing:hover{color:var(--muted);background:var(--soft)}
.brand,.mobile-brand{gap:10px}.brand-mark{width:44px;height:44px;object-fit:contain;flex:none;border-radius:12px}.brand-wordmark-wrap{display:flex;flex-direction:column;min-width:0}.brand-wordmark{width:138px;height:44px;object-fit:contain;display:block}.brand-wordmark-wrap small{font-size:.7rem;margin-top:0;white-space:nowrap}.brand{font-size:1rem}.lock-illustration{margin:36px 0 16px;text-align:center}.lock-illustration img{width:220px;max-width:70%;height:auto;border-radius:26%}.lock-story h1{font-size:2.1rem}.theme-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0 28px}.theme-choice{border:1px solid var(--border);padding:16px 8px;border-radius:14px;background:var(--page);display:flex;align-items:center;flex-direction:column;gap:8px;min-height:130px;justify-content:flex-start;font-weight:500;line-height:1.5}.theme-choice.selected{outline:2px solid var(--accent);outline-offset:2px}.theme-choice img{object-fit:contain}.theme-choice span{font-size:.8125rem;overflow-wrap:anywhere}.theme-choice small{font-size:.6875rem;color:var(--accent)}.appearance-preview{padding:20px;border-radius:12px;margin:20px 0}.appearance-preview p{margin:8px 0 0}.device-state{padding:14px 18px;background:var(--soft);border-radius:12px}.device-unlock{margin-top:24px}.unlock-divider{font-size:.8125rem;text-align:center;margin:16px 0;color:var(--muted)}.row-tools{flex-wrap:wrap}.rule-option{flex-wrap:wrap}button{overflow-wrap:anywhere}
@media(max-width:1100px){.sidebar .brand-wordmark{width:122px}.sidebar .brand-mark{width:38px;height:38px}.sidebar .brand{gap:8px}.sidebar .brand-wordmark-wrap small{font-size:.625rem}}
@media(max-width:800px){.mobile-brand .brand-mark{height:36px;width:36px;border-radius:10px}.mobile-brand .brand-wordmark{width:114px;height:36px}.mobile-brand{gap:8px}.lock-story .brand-wordmark{width:155px}.theme-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:420px){.theme-options{gap:10px}.theme-choice{padding:14px 6px;min-height:132px}.theme-choice img{width:44px;height:44px}.topbar{padding-left:18px;padding-right:18px}.lock-button{padding:8px 14px}.list-controls{flex-wrap:wrap}.list-controls>label{min-width:130px}.row-tools{gap:6px}}
:root[data-font-size="xlarge"] .page-heading{display:block}:root[data-font-size="xlarge"] .page-heading>.primary{margin-top:20px}:root[data-font-size="xlarge"] .theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}:root[data-font-size="xlarge"] .list-controls>label{flex-basis:100%}:root[data-font-size="xlarge"] .group-setting-row{flex-wrap:wrap}
@media print{:root{font-size:16px}body{background:#fff;color:#000}}

.help-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px}.help-shortcut h2{margin-bottom:4px}.help-shortcut p{margin:0;font-size:.875rem}.help-section{padding:0;overflow:hidden}.help-section summary{cursor:pointer;font-size:1rem;font-weight:600;min-height:60px;padding:18px 24px;color:var(--accent);overflow-wrap:anywhere}.help-body{padding:0 24px 22px;line-height:1.9}.help-body p,.help-body li{font-size:.9375rem;color:var(--text)}.help-body ol{padding-left:1.4em}.help-body li+li{margin-top:10px}.help-body p:last-child{margin-bottom:0}@media(max-width:540px){.help-shortcut{flex-direction:column;align-items:stretch}.help-section summary{padding:18px 20px}.help-body{padding:0 20px 20px}}

.license-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0;margin:14px 0;font-size:.8125rem;color:var(--muted)}.license-banner strong{font-weight:500}.license-banner button{font-size:.8125rem}.license-state{padding:16px;background:var(--soft);border-radius:12px}.activation-code{font-family:ui-monospace,monospace;letter-spacing:.05em}

.import-review{width:min(440px,calc(100% - 32px));border:1px solid var(--border);border-radius:18px;padding:28px;color:var(--text);background:var(--page)}.import-review::backdrop{background:#24332a66}.import-review .button-row{justify-content:flex-end}
