/* 3.3 — a working application: readable type, explicit groups, direct actions. */
:root { --ink:#242424; --muted:#606060; --accent:#ae2b21; --line:#dedede; --paper:#fff; }
body { font-size:16px; color:#242424; background:#fff; }
::selection { background:#eedbd7; color:#242424; }
button,input,select,textarea { font-family:MiSans,'Microsoft YaHei',sans-serif; }
button:focus-visible,a:focus-visible,select:focus-visible { outline:2px solid #ae2b21; outline-offset:3px; }
input:focus-visible,textarea:focus-visible { outline-color:#ae2b21; }
.button { min-height:42px; padding:9px 15px; font-size:15px; border-radius:5px; letter-spacing:0; }
.button.primary { background:#ae2b21; border-color:#ae2b21; color:#fff; }
.button.primary:hover { background:#8e2119; border-color:#8e2119; }
.button.outline { border-color:#cfcfcf; color:#383838; }
.button.outline:hover { background:#f6f6f6; border-color:#969696; }
.button.text-button { font-size:14px; color:#555; min-height:36px; padding:6px 8px; }
.button.text-button:hover { color:#9b291e; }
.icon-button { width:40px; height:40px; color:#595959; }
.icon-button:hover { background:#eee; color:#9b291e; }

/* Fixed, horizontal labels. Primary tools are always one click away. */
.app>.sidebar { position:fixed; inset:0 auto 0 0; width:232px; height:100dvh; min-height:0; margin:0; padding:20px 14px 14px; display:flex; flex-direction:column; gap:0; background:#f5f5f5; border-right:1px solid #ddd; overflow-y:auto; transform:none; z-index:30; }
.brand { margin:0; padding:0 8px 17px; gap:11px; flex-shrink:0; }
.brand-seal { width:32px; height:43px; flex-shrink:0; display:flex; align-items:center; justify-content:center; writing-mode:vertical-rl; color:#fff; background:#ae2b21; font-size:15px; letter-spacing:4px; padding-top:4px; border-radius:3px; }
.brand strong { font-size:18px; letter-spacing:0; font-weight:600; color:#252525; }
.brand small { font-size:12px; color:#626262; margin-top:6px; letter-spacing:0; max-width:none; }
.workspace-label { padding:0 4px; margin:0 0 12px; flex-shrink:0; }
.sidebar-write.button { width:100%; min-height:42px; padding:9px 14px; font-size:16px; font-weight:500; letter-spacing:0; border-radius:5px; background:#ae2b21; border-color:#ae2b21; }
.sidebar-write.button:hover { background:#8e2119; border-color:#8e2119; }
.sidebar nav { display:flex; flex-direction:column; gap:8px; padding:0; flex:0 0 auto; }
.nav-group { min-width:0; }
.nav-group-title { font-size:13px; font-weight:500; letter-spacing:0; color:#646464; margin:7px 12px 5px; line-height:1.4; }
.sidebar nav .nav-item,.sidebar nav .nav-item:nth-child(7) { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; width:100%; gap:11px; min-height:39px; margin:0; padding:8px 12px; border:0; border-radius:5px; color:#414141; background:transparent!important; box-shadow:none; font-size:16px; letter-spacing:0; }
.sidebar nav .nav-item::before,.sidebar nav .nav-item::after { display:none!important; }
.sidebar nav .nav-item>span { writing-mode:horizontal-tb; text-orientation:mixed; font-size:16px; line-height:1.5; letter-spacing:0; text-decoration:none!important; }
.sidebar nav .nav-item>svg { display:block; width:19px; height:19px; color:currentColor; stroke-width:1.7; }
.sidebar nav .nav-item>small { position:static; margin-left:auto; padding:1px 7px; background:#e8e8e8!important; color:#555!important; font-size:12px; line-height:1.5; border-radius:4px; }
.sidebar nav .nav-item.active { background:#eee3e0!important; color:#92281e; font-weight:600; box-shadow:inset 3px 0 #ae2b21; }
.sidebar nav .nav-item.active>svg { color:#92281e; }
.sidebar nav .nav-item:hover { background:#e9e9e9!important; color:#333; transform:none; }
.sidebar-bottom { margin-top:auto; padding:12px 0 0; min-height:0; flex-shrink:0; }
.sidebar-bottom .nav-item { border-top:1px solid #d9d9d9; padding:12px; min-height:42px; font-size:14px; color:#555; gap:10px; }
.sidebar-bottom .nav-item svg { width:18px; height:18px; color:#555; }
.sidebar-landscape,.sidebar-bottom>p { display:none; }
.app>main { margin-left:232px; min-width:0; background:#fff; }
.topbar { height:68px; width:100%; max-width:none; margin:0; padding:0 30px; background:#fff; border-top:0; border-bottom:1px solid #e2e2e2; position:sticky; top:0; z-index:20; gap:18px; }
.search { background:#f6f6f6; border:1px solid #e0e0e0; border-radius:6px; max-width:650px; width:65%; min-width:0; padding:0 12px; height:42px; }
.search:focus-within { background:#fff; border-color:#a8a8a8; }
.search input { font-size:15px; color:#333; letter-spacing:0; }
.search input::placeholder { color:#666; }
.search kbd { font-size:12px; color:#666; background:#fff; }
.topbar-right { gap:15px; }
.connection,.topbar .sync-indicator { font-size:13px; color:#555; }
.connection i { background:#ae2b21; width:6px; height:6px; }
.mobile-menu { display:none; }
.sync-panel { top:75px; right:24px; font-size:14px; }
.sync-panel h2 { font-size:18px; }
.sync-panel p,.sync-panel small { font-size:14px; color:#555; }
.content { max-width:1460px; padding:26px 30px 38px; min-height:calc(100dvh - 150px); }

/* Compact opening: work is visible without scrolling past a poster. */
.hero { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:0 24px; margin:0 0 18px; padding:0; border:0; min-height:0; background:none; }
.hero-intro { grid-column:1; grid-row:1; padding:0; align-self:start; }
.hero .eyebrow,.hero-description,.hero .hero-start,.hero-footnote,.hero-stilllife figcaption { display:none; }
.hero h1 { color:#242424; font-size:30px; font-weight:500; letter-spacing:1px; line-height:1.4; margin:0 0 17px; }
.hero h1>span { display:inline; }
.hero-stilllife { grid-column:2; grid-row:1/3; width:190px; max-width:none; margin:0; align-self:start; }
.hero-stilllife img { display:block; width:100%; height:126px; object-fit:cover; border-radius:3px; }
.creative-principle { grid-column:1; grid-row:2; display:flex; flex-direction:row; justify-content:flex-start; align-items:center; gap:16px; padding:0 0 17px; margin:0; border:0; min-width:0; }
.principle-text { display:flex; flex-direction:column; gap:5px; align-items:flex-start; min-width:0; }
.principle-text>span { writing-mode:horizontal-tb; font-size:13px; letter-spacing:0; color:#636363; margin:0; }
.principle-text>strong { writing-mode:horizontal-tb; font-size:17px; font-weight:400; line-height:1.6; letter-spacing:0; max-width:none; height:auto; max-height:none; color:#343434; overflow-wrap:anywhere; }
.creative-principle .button { font-size:14px; min-height:38px; opacity:1; flex-shrink:0; }
.quick-capture { grid-column:1/-1; margin-top:12px; border:1px solid #d9d9d9; background:#fafafa; border-radius:6px; min-height:60px; padding:8px 10px 8px 16px; gap:14px; }
.capture-label { font-size:15px; font-weight:500; letter-spacing:0; padding-right:14px; border-right:1px solid #ddd; flex-shrink:0; color:#333; }
.quick-capture input { flex:1; min-width:0; font-size:16px; color:#333; }
.quick-capture input::placeholder { color:#6c6c6c; }
.quick-capture .button.primary { background:#ae2b21; border:1px solid #ae2b21; color:#fff; border-radius:5px; min-height:42px; font-size:15px; padding:8px 14px; }
.quick-capture .button.primary:hover { background:#8e2119; }
.quick-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0; margin:0 0 27px; border:0; }
.quick-action { display:flex; align-items:center; justify-content:flex-start; gap:12px; min-height:76px; padding:13px 15px; margin:0!important; border:1px solid #ddd; border-radius:6px; background:#fff!important; color:#333!important; text-align:left; text-decoration:none!important; }
.quick-action::before,.quick-action::after { display:none!important; }
.quick-actions>.quick-action:last-child { grid-column:auto; }
.quick-action svg { display:block; width:23px; height:23px; stroke-width:1.7; color:#a3352a; flex-shrink:0; }
.quick-action>span { min-width:0; display:flex; flex-direction:column; gap:4px; }
.quick-action strong { font-size:16px; line-height:1.5; font-weight:500; color:#333; }
.quick-action small { font-size:13px; color:#626262; line-height:1.5; }
.quick-action:hover { background:#faf5f3!important; border-color:#c69d95; transform:none; }
.home-grid { grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr); gap:27px; align-items:start; }
.home-grid>.panel { border:1px solid #ddd; border-radius:6px; padding:20px; background:#fff; box-shadow:none; }
.home-grid>.panel:nth-child(2) { padding:20px; background:#f7f7f7; }
.home-grid>.panel:nth-child(2)::before { display:none; }
.home-grid .section-head { border:0; border-bottom:1px solid #ddd; padding:0 0 12px; margin:0 0 4px; gap:10px; }
.home-grid .section-head h2 { font-size:19px; font-weight:600; color:#303030; letter-spacing:0; }
.home-grid .section-head h2::before { display:none; }
.home-grid .section-head .button { font-size:14px; color:#555; flex-shrink:0; }
.recent-row { padding:15px 0; gap:12px; min-height:77px; border-color:#e7e7e7; background:none; }
.recent-row:hover { background:#f8f8f8; }
.recent-row .journal-index { font-family:MiSans,sans-serif; width:24px; color:#737373; font-size:13px; flex-shrink:0; }
.recent-row strong { font-size:16px; font-weight:500; color:#303030; letter-spacing:0; line-height:1.65; }
.recent-row span { font-size:13px; color:#626262; margin-top:5px; }
.recent-row small { font-size:12px; color:#666; }
.todo-row { padding:15px 0; border-radius:0; border-color:#dedede; gap:11px; }
.todo-open strong { font-size:15px; line-height:1.6; color:#303030; font-weight:500; }
.todo-open span { font-size:13px; color:#616161; }
.todo-row input[type=checkbox] { width:20px; height:20px; accent-color:#ae2b21; flex-shrink:0; }
.todo-meta,.priority { font-size:12px; color:#616161; }
.priority.important { background:#eaeaea; color:#454545; }
.priority.urgent,.overdue { color:#a12c21; }
.home-grid .wide { min-height:40px; font-size:14px; margin-top:12px; border:1px solid #ccc; }
.account-progress { padding:16px 0; gap:13px; border-color:#e3e3e3; }
.account-progress .account-avatar { width:38px; height:40px; font-size:17px; border:1px solid #c8c8c8; border-radius:4px; color:#555!important; background:#f4f4f4!important; }
.account-progress strong { font-size:16px; font-weight:500; color:#333; }
.account-progress span { font-size:13px; color:#616161; }
.home-grid .quotes-panel .quote { padding:15px 0; border-color:#e3e3e3; }
.quote strong { font-size:15px; line-height:1.9; color:#414141; }
.quote small { font-size:13px; color:#656565; }
.quote>span { color:#ae2b21; }
.page-footer { margin:0 30px; padding:20px 0; border-top:1px solid #e3e3e3; font-size:12px; color:#646464; letter-spacing:0; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.footer-imprint { color:#a12c21; font-size:16px; display:flex; align-items:center; gap:14px; }
.footer-imprint small { font-size:13px; color:#656565; }

/* Working pages: title + primary action, account selector, then actual content. */
.page-heading { margin:0 0 22px; padding:0; gap:20px; border:0; align-items:center; }
.page-heading .eyebrow { display:none; }
.page-heading h1 { font-size:28px; font-weight:600; letter-spacing:0; color:#282828; margin:0 0 8px; }
.page-heading p { font-size:15px; line-height:1.7; color:#606060; max-width:700px; margin:0; }
.page-heading>.primary { min-height:44px; font-size:16px; flex-shrink:0; }
.account-workspace { border:1px solid #dedede!important; border-radius:6px; padding:18px 20px; margin:0 0 20px; background:#f8f8f8; }
.mobile-account-picker { display:none; }
.account-toolbar { gap:16px; margin-bottom:12px; align-items:center; }
.account-toolbar h2 { font-size:16px; letter-spacing:0; font-weight:600; color:#353535; margin-right:12px; }
.account-toolbar span { font-size:13px; color:#606060; }
.account-toolbar>.button { font-size:14px; min-height:38px; padding:7px 11px; color:#9b291e; border:1px solid #c9aaa3; border-radius:4px; }
.account-tabs { gap:8px; border:0; padding:0; }
.account-tabs>.button,.account-tab { border:1px solid #d5d5d5!important; border-radius:5px; background:#fff; color:#454545; min-height:40px; font-size:15px; }
.account-tabs>.button { padding:8px 12px; }
.account-tab.selected,.account-tabs>.selected { background:#f1e5e2; color:#92281e; border:1px solid #b55b4f!important; }
.account-tab-select { min-height:40px; font-size:15px; letter-spacing:0; padding:8px 12px; }
.account-workspace .account-tab .account-tab-select { font-size:15px; }
.account-workspace .account-tab { max-width:100%; min-width:0; }
.account-workspace .account-tab .account-tab-select { min-width:0; white-space:normal; overflow-wrap:anywhere; text-align:left; line-height:1.5; }
.account-workspace .account-tab .account-tab-edit { min-width:40px; min-height:40px; flex-shrink:0; }
.account-tab-edit { margin:0; width:37px; min-height:36px; color:#686868; border-left:1px solid #ddd; }
.account-tab-edit svg { width:17px; height:17px; }
.account-tab .account-tab-edit:hover { background:#f2f2f2!important; color:#9b291e!important; }
.account-context { display:flex; border:0; padding:12px 0 0; gap:10px; }
.account-context strong { color:#454545; font-size:14px; font-weight:500; }
.account-context span { color:#626262; font-size:13px; }
.month-bar { padding:0 0 16px; margin:0 0 18px; border:0; border-bottom:1px solid #ddd; background:none; gap:14px; }
.month-control strong { font-family:MiSans,sans-serif; font-size:19px; font-weight:500; color:#333; letter-spacing:0; }
.month-control input { font-size:14px; color:#505050; min-height:36px; }
.month-counts { gap:16px; font-size:14px; color:#555; }
.month-counts b { color:#a12c21; font-size:16px; font-weight:500; }
.filter-heading { margin-bottom:10px; gap:14px; flex-wrap:wrap; }
.filter-heading h2 { font-size:18px; font-weight:500; letter-spacing:0; }
.filter-heading h2 small { font-size:14px; color:#555; padding:2px 7px; background:#eee; }
.filters { gap:9px; flex-wrap:wrap; }
.filters select { font-size:14px; color:#4e4e4e; border:1px solid #ccc; border-radius:4px; min-height:38px; padding:7px 10px; }
.view-switch { border:1px solid #ccc; border-radius:4px; padding:2px; gap:2px; background:#f5f5f5; }
.view-switch .button { min-height:32px; padding:4px 10px; font-size:14px; border-radius:3px; }
.view-switch .selected { background:#fff; color:#9b291e; border:0; }
.draft-list { border-top:1px solid #ddd; }
.draft-row { padding:18px 6px; gap:16px; border-color:#e0e0e0; }
.draft-row:hover { background:#f8f8f8; }
.draft-icon { width:35px; height:42px; border:1px solid #d2d2d2; border-radius:4px; color:#666; background:#fafafa; }
.draft-open strong { font-size:17px; font-weight:500; letter-spacing:0; color:#292929; line-height:1.65; }
.draft-open span { font-size:14px; color:#616161; margin-top:5px; }
.draft-date { font-size:14px; color:#666; }
.star-button { min-width:36px; min-height:36px; color:#6c6c6c; }
.star-button.on { color:#ae2b21; }
.star-button.on svg { fill:#edd4ce; }
.cards { gap:20px; }
.content-card,.note-card,.reference-card,.collection-card { border:1px solid #ddd; border-radius:6px; padding:22px; background:#fff; box-shadow:none; }
.content-card:hover,.note-card:hover,.reference-card:hover { border-color:#aaa; transform:none; box-shadow:none; }
.card-meta .type,.status { font-size:13px; color:#606060; }
.card-open h3,.note-card h2,.reference-card h2 { font-size:20px; color:#333; line-height:1.6; font-weight:500; }
.card-open p,.note-open p,.reference-open p,.collection-body p { font-size:15px; line-height:1.85; color:#555; }
.tag-row button,.tag-cloud .button { font-size:14px; padding:5px 9px; color:#575757; background:#f0f0f0; border-radius:4px; }
.content-card footer,.note-card footer,.reference-card footer { font-size:13px; color:#626262; }
.tabs .button,.tabs button,.filter-chips button { font-size:15px; min-height:40px; }
.tabs .selected,.filter-chips .selected { background:#f0e5e2; color:#92281e; border-color:#c5978e; }
.reference-intro,.note-intro,.notes-intro { background:#f7f7f7; border-color:#ccc; border-radius:5px; font-size:15px; }
.reference-intro p,.note-intro p,.notes-intro p { font-size:15px; color:#555; }
.collection-card { padding:0; overflow:hidden; }
.collection-cover { background:#f3f3f3!important; color:#333!important; }
.collection-cover h2 { font-size:23px; font-weight:500; letter-spacing:0; }
.collection-cover>span { font-size:13px; }
.collection-body { padding:20px; }
.collection-body .section-head>span { font-size:14px; }
.settings-grid { gap:28px; }
.settings-grid h2 { font-size:20px; font-weight:500; color:#333; }
.settings-grid p { font-size:16px; color:#555; }
.settings-grid small,.settings-grid .info-row { font-size:14px; color:#555; }
.todo-summary { border:1px solid #ddd; background:#f7f7f7; border-radius:6px; }
.todo-summary strong { font-size:28px; color:#333; }
.todo-summary span { font-size:15px; }
.empty-state h2,.empty-state h3 { font-size:21px; }
.empty-state p,.mini-empty,.muted { font-size:15px; color:#626262; }

/* Editors retain the proven scrolling / sync layout; only type and controls change. */
.modal-backdrop:has(.document-editor) { padding:0 0 0 232px; }
.modal.document-editor { border-radius:0; box-shadow:none; border-left:1px solid #ddd; }
.document-editor .modal-header { padding:14px 25px; gap:12px; }
.document-editor .modal-header h2 { font-size:15px; font-weight:500; max-width:240px; color:#444; }
.document-editor .modal-header .actions { gap:7px; }
.document-editor .modal-header .button { font-size:14px; min-height:40px; padding:8px 11px; }
.document-editor .modal-header .button.outline { font-size:14px; }
.document-editor .modal-header .actions>.button { font-size:14px; }
.document-editor .modal-header .properties-toggle { font-size:14px!important; }
.document-editor .modal-header .history-toggle { font-size:14px!important; }
.document-editor:not(.focus-writing) .modal-body { padding:32px clamp(24px,4vw,80px) 40px; }
.document-editor:not(.focus-writing) .title-input { font-size:29px; font-weight:500; letter-spacing:0; color:#303030; }
.document-editor:not(.focus-writing) .title-input::placeholder { color:#727272; }
.document-editor:not(.focus-writing) .field>span { font-size:15px; color:#5d5d5d; letter-spacing:0; margin-bottom:9px; }
.document-editor:not(.focus-writing) .modal-body>label textarea { font-size:18px; line-height:1.9!important; color:#333; }
.document-editor:not(.focus-writing) .modal-body>label textarea::placeholder { color:#707070; }
.document-editor .word-count { font-size:13px; color:#626262; }
.document-editor .save-state,.document-editor .editor-sync-status { font-size:13px; color:#606060; }
.document-editor .modal-footer { padding:11px 25px; }
.document-editor .modal-footer .button { font-size:14px; min-height:40px; }
.modal-header h2 { font-size:21px; color:#333; }
.field>span { font-size:15px; color:#575757; }
.field input,.field textarea,.field select { font-size:16px; color:#333; border-color:#ccc; min-height:42px; }
.field input::placeholder,.field textarea::placeholder { color:#6d6d6d; }
.modal-header .eyebrow { font-size:13px; }
.modal-footer .button { font-size:15px; }
.history-panel p,.history-panel small { font-size:14px; color:#626262; }
.history-panel h2 { font-size:19px; }
.history-panel article strong { font-size:17px; }
.history-panel .button { font-size:14px; }
.checkbox-label { font-size:16px; }
.checkbox-label input { width:19px; height:19px; accent-color:#ae2b21; }
.background-option strong { font-size:15px; }
.background-option small { font-size:13px; }
.background-option.selected { border-color:#ae2b21; box-shadow:0 0 0 1px #ae2b21; }
.background-option.selected strong { color:#ae2b21; }
.background-picker p { font-size:14px; }
.modal-backdrop.immersive-backdrop:has(.document-editor) { padding:0; }
.focus-writing .focus-save-state { font-size:13px; }
.focus-writing .modal-header .button { font-size:15px; }
.login-card img { filter:none; }
.login-card h2 { font-size:26px; }
.login-card p { font-size:16px; }
.login-card input { font-size:17px; min-height:46px; }
.login-card .button { font-size:17px; min-height:46px; }
.subtitle-controls,.subtitle-settings,.subtitle-header,.subtitle-footer { font-size:15px; }
.subtitle-controls label,.subtitle-settings label { font-size:15px; }
.subtitle-presets .selected { border-color:#ae2b21; color:#ae2b21; background:#f4e8e4; }
.subtitle-columns textarea { font-size:17px; }
.mobile-bottom { background:#fff; border-color:#ddd; }
.mobile-bottom button.active,.mobile-bottom button.active svg { color:#a32b20; }

@media(min-width:1450px) { .quick-actions { grid-template-columns:repeat(5,minmax(0,1fr)); } .quick-action { padding:13px 12px; gap:10px; } .quick-action small { font-size:12px; } }
@media(max-width:1100px) and (min-width:801px) {
 .app>.sidebar { width:208px; padding:18px 10px 12px; }
 .app>main { margin-left:208px; }
 .brand { gap:8px; padding-left:4px; padding-right:4px; } .brand strong { font-size:17px; } .brand small { font-size:12px; }
 .topbar { padding:0 22px; gap:12px; } .topbar-right { gap:8px; } .search { width:65%; } .search kbd { display:none; }
 .content { padding:23px 22px 30px; }
 .hero { grid-template-columns:minmax(0,1fr) 145px; gap:0 16px; } .hero-stilllife { width:145px; } .hero-stilllife img { height:106px; } .hero h1 { font-size:27px; }
 .quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } .quick-action:last-child { grid-column:1/-1; }
 .home-grid { grid-template-columns:1fr; gap:24px; }
 .page-heading p { font-size:14px; } .account-toolbar span { display:none; }
 .modal-backdrop:has(.document-editor) { padding-left:208px; }
 .document-editor .modal-header { padding:12px 18px; } .document-editor .modal-header h2 { max-width:130px; } .document-editor .modal-header .button { font-size:13px; padding:7px; } .document-editor .modal-header .history-toggle { font-size:13px!important; }
 .page-footer { margin:0 22px; }
}
@media(max-width:800px) {
 .app>.sidebar { width:280px; max-width:calc(100vw - 40px); padding:22px 16px; transform:translateX(-100%); z-index:80; }
 .app>.sidebar.show { transform:translateX(0); }
 .sidebar nav .nav-item { min-height:44px; } .sidebar nav .nav-item>span { font-size:17px; }
 .nav-group-title { font-size:14px; margin-top:10px; }
 .app>main { margin-left:0; }
 .topbar { height:64px; padding:0 20px; gap:10px; }
 .mobile-menu { display:flex; flex-shrink:0; width:40px; height:44px; }
 .search { flex:1; width:auto; min-width:0; max-width:none; padding:0 10px; } .search input { font-size:15px; min-width:0; } .search kbd { display:none; }
 .topbar-right { gap:0; } .topbar-right>.icon-button { display:none; }
 .topbar .sync-indicator { display:flex; font-size:12px; max-width:78px; min-width:0; white-space:nowrap; overflow:hidden; }
 .content { padding:22px 22px 30px; }
 .hero { grid-template-columns:1fr; gap:0; } .hero-stilllife { display:none; } .hero h1 { font-size:28px; margin-bottom:15px; } .creative-principle { padding-bottom:10px; }
 .principle-text { flex-direction:row; gap:12px; align-items:baseline; } .principle-text>span { font-size:14px; white-space:nowrap; } .principle-text>strong { font-size:16px; }
 .quick-capture { margin-top:8px; }
 .quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:24px; gap:10px; }
 .quick-action { min-height:76px; gap:10px; padding:12px; } .quick-action strong { font-size:16px; } .quick-action small { font-size:13px; }
 .quick-actions>.quick-action:last-child { grid-column:1/-1; min-height:64px; }
 .home-grid { grid-template-columns:1fr; gap:22px; }
 .page-heading { gap:16px; } .page-heading h1 { font-size:26px; } .page-heading p { font-size:14px; }
 .account-toolbar { gap:10px; } .account-toolbar span { display:none; }
 .month-bar { flex-wrap:wrap; } .month-counts { font-size:13px; }
 .cards,.note-grid,.reference-grid { grid-template-columns:1fr; }
 .page-footer { margin:0 22px; padding:15px 0 95px; flex-wrap:wrap; font-size:12px; }
 .mobile-bottom { min-height:67px; padding:6px 7px calc(7px + env(safe-area-inset-bottom)); }
 .mobile-bottom button { font-size:13px; min-height:48px; color:#555; }
 .mobile-bottom svg { width:21px; height:21px; }
 .modal-backdrop:has(.document-editor) { padding:0; }
 .document-editor .modal-header { padding:10px 14px; }
 .document-editor .modal-header h2 { max-width:115px; }
 .document-editor:not(.focus-writing) .modal-body { padding:28px 24px 36px; }
 .document-editor .modal-footer { padding:10px 18px calc(10px + env(safe-area-inset-bottom)); }
 .sync-panel { top:70px; right:15px; }
}
@media(max-width:520px) {
 .account-workspace .account-tabs,.account-workspace .account-context { display:none; }
 .mobile-account-picker { display:flex; gap:9px; align-items:center; }
 .mobile-account-picker select { flex:1; min-width:0; width:0; font-size:16px; height:44px; padding:8px; border:1px solid #bbb; border-radius:4px; color:#333; background:#fff; }
 .mobile-account-picker .button { min-height:44px; font-size:14px; flex-shrink:0; padding:8px 10px; }
 .month-control>label>strong { display:none; }
 .month-control input { width:142px; max-width:40vw; min-height:42px; font-size:16px!important; }
 .month-control { gap:7px; }
 .month-control .icon-button { width:32px; min-width:32px; }
 .month-control .text-button { padding:6px; }
 .topbar { padding:0 12px; gap:5px; } .search { padding:0 8px; gap:7px; } .search input { font-size:14px; } .search input::placeholder { font-size:14px; } .search svg { width:16px; }
 .topbar .sync-indicator { font-size:12px; max-width:66px; gap:4px; }
 .content { padding:20px 16px 27px; }
 .hero h1 { font-size:27px; letter-spacing:0; } .creative-principle { gap:8px; align-items:flex-start; } .principle-text { flex-direction:column; gap:4px; } .principle-text>span { font-size:13px; } .principle-text>strong { font-size:16px; } .creative-principle .button { margin-left:auto; font-size:14px; padding:4px; }
 .quick-capture { flex-wrap:wrap; padding:12px; gap:8px; } .capture-label { width:100%; border:0; padding:0; font-size:14px; } .quick-capture input { width:0; font-size:16px; min-height:42px; padding:7px 0; } .quick-capture input::placeholder { font-size:15px; } .quick-capture .button.primary { font-size:14px; padding:8px 11px; }
 .quick-action { padding:12px 10px; gap:8px; min-height:88px; } .quick-action svg { width:20px; height:20px; } .quick-action strong { font-size:15px; } .quick-action small { font-size:12px; }
 .home-grid>.panel,.home-grid>.panel:nth-child(2) { padding:17px 15px; }
 .home-grid .section-head h2 { font-size:18px; } .home-grid .section-head .button { font-size:14px; padding:5px 0; }
 .recent-row { gap:9px; } .recent-row .journal-index { display:none; } .recent-row strong { font-size:16px; } .recent-row span { font-size:13px; } .recent-row small { font-size:12px; }
 .todo-open strong { font-size:15px; } .todo-meta { font-size:12px; }
 .page-heading { flex-wrap:wrap; gap:13px; margin-bottom:20px; } .page-heading>div { flex:1; min-width:150px; } .page-heading h1 { font-size:26px; } .page-heading p { font-size:14px; max-width:none; } .page-heading>.primary { font-size:15px; min-height:42px; padding:9px 12px; }
 .account-workspace { padding:16px 14px; margin-bottom:18px; } .account-toolbar h2 { font-size:16px; } .account-toolbar>.button { font-size:14px; } .account-tabs { gap:8px; } .account-tab-select { font-size:15px; padding:8px 10px; } .account-tab-edit { width:36px; min-height:40px; } .account-context strong { font-size:14px; } .account-context span { display:none; }
 .month-control strong { font-size:18px; } .month-control input { font-size:14px; } .month-counts { width:100%; gap:14px; padding:4px 0 0; font-size:13px; } .month-bar { margin-bottom:15px; padding-bottom:14px; }
 .filter-heading { display:block; } .filter-heading h2 { font-size:18px; margin-bottom:12px; } .filters { gap:8px; } .filters select { font-size:14px; max-width:none; min-height:40px; } .filters .button.text-button { font-size:14px; }
 .draft-row { gap:10px; padding:17px 0; } .draft-icon { width:29px; height:37px; } .draft-open strong { font-size:16px; } .draft-open span { font-size:13px; } .draft-date { display:none; }
 .content-card,.note-card,.reference-card { padding:19px; } .card-open h3,.note-card h2,.reference-card h2 { font-size:19px; }
 .document-editor .modal-header { flex-wrap:wrap; gap:8px; padding:10px 13px; min-height:98px; }
 .document-editor .modal-header>div:first-child { width:100%; } .document-editor .modal-header h2 { max-width:calc(100vw - 30px); font-size:15px; }
 .document-editor .modal-header .actions { flex-wrap:wrap; gap:6px; width:100%; justify-content:flex-start; }
 .document-editor .modal-header .button { font-size:14px; min-height:38px; padding:6px 8px; } .document-editor .modal-header .history-toggle { font-size:14px!important; } .document-editor .modal-header .icon-button { width:32px; margin-left:auto; padding:6px; }
 .document-editor .modal-header .save-state { display:none; }
 .document-editor:not(.focus-writing) .modal-body { padding:25px 20px 32px; }
 .document-editor:not(.focus-writing) .title-input { font-size:26px; margin-bottom:20px; padding-bottom:20px; }
 .document-editor:not(.focus-writing) .modal-body>label textarea { font-size:18px; } .document-editor:not(.focus-writing) .field>span { font-size:15px; }
 .document-editor .modal-footer { padding:9px 12px calc(9px + env(safe-area-inset-bottom)); } .document-editor .modal-footer .actions { gap:5px; } .document-editor .modal-footer .button { font-size:14px; min-height:40px; padding:7px; } .document-editor .modal-footer .editor-sync-status { font-size:12px; padding:3px; }
 .focus-writing .modal-header { min-height:64px; display:flex; flex-wrap:nowrap; align-items:center; } .focus-writing .modal-header .actions { width:auto; margin-left:auto; justify-content:flex-end; } .focus-writing .modal-header .focus-exit { flex-shrink:0; } .focus-writing .focus-heading { display:none; }
 .focus-writing .modal-header .button { font-size:14px; } .focus-writing .focus-save-state { font-size:12px; }
 .history-panel { top:100px; }
 .page-footer { margin:0 16px; } .footer-imprint { gap:12px; } .footer-imprint small { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
