/* LCARS: curved structural rails, quiet reading surfaces, amber and violet controls. */
:root {
  color-scheme: light;
  --wb-bg: #eef0f7;
  --wb-surface: #ffffff;
  --wb-surface-strong: #ffffff;
  --wb-surface-soft: #f4f4fa;
  --wb-line: #cbd0e0;
  --wb-line-strong: #727697;
  --wb-text: #202338;
  --wb-muted: #555c75;
  --wb-faint: #646c82;
  --wb-accent: #805023;
  --wb-accent-2: #6447a0;
  --wb-amber: #f1b778;
  --wb-violet: #c5b2ef;
  --wb-blue: #9fc9ee;
  --wb-on-color: #242138;
  --wb-danger: #a22642;
  --wb-error-bg: #fff0f2;
  --wb-success: #246444;
  --wb-success-bg: #edf8f1;
  --wb-shadow: 0 14px 40px #22243c16;
  --wb-radius-md: 12px;
  --wb-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wb-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --wb-bg: #0b101b;
  --wb-surface: #131b2a;
  --wb-surface-strong: #192335;
  --wb-surface-soft: #1b2638;
  --wb-line: #35425b;
  --wb-line-strong: #8993b7;
  --wb-text: #f1f0f8;
  --wb-muted: #b0b9ce;
  --wb-faint: #a1acc4;
  --wb-accent: #ffbc78;
  --wb-accent-2: #c6b1ff;
  --wb-amber: #ffbc78;
  --wb-violet: #b8a5f5;
  --wb-blue: #9ecbfa;
  --wb-danger: #ff9eae;
  --wb-error-bg: #382032;
  --wb-success: #9ed8b5;
  --wb-success-bg: #142d29;
  --wb-shadow: 0 14px 40px #0003;
}
:root[data-theme="sepia"] {
  --wb-bg: #efe5d0; --wb-surface: #fff9ec; --wb-surface-strong: #fff9ec;
  --wb-surface-soft: #f4e8d1; --wb-line: #cabb9e; --wb-line-strong: #907352;
  --wb-text: #382c21; --wb-muted: #6d5845; --wb-faint: #74604b;
  --wb-accent: #825020; --wb-accent-2: #775097;
}
:root[data-theme="matrix"] {
  color-scheme: dark;
  --wb-bg: #010a05; --wb-surface: #06170d; --wb-surface-strong: #0b2414;
  --wb-surface-soft: #0a2214; --wb-line: #28683c; --wb-line-strong: #6acb85;
  --wb-text: #b9ffd0; --wb-muted: #89cf9f; --wb-faint: #80bd94;
  --wb-accent: #72ffa0; --wb-accent-2: #b4f490; --wb-amber: #72ffa0;
  --wb-violet: #9be886; --wb-blue: #68d7a0; --wb-danger: #ffaaaa;
  --wb-error-bg: #352024; --wb-success: #92e9b0; --wb-success-bg: #123420;
  --wb-font: var(--wb-mono);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--wb-bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--wb-bg); color: var(--wb-text); font: 1rem/1.55 var(--wb-font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--wb-violet); color: var(--wb-on-color); }
:focus-visible { outline: 3px solid var(--wb-accent-2); outline-offset: 4px; }
a { color: var(--wb-accent-2); text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 999px; background: var(--wb-amber); color: var(--wb-on-color); font-size: .875rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover, .btn:hover { background: var(--wb-violet); color: var(--wb-on-color); text-decoration: none; }
button.secondary, .btn.secondary { background: var(--wb-surface); border-color: var(--wb-line); color: var(--wb-text); }
button.secondary:hover, .btn.secondary:hover { background: var(--wb-surface-soft); border-color: var(--wb-accent-2); }
button.danger, .btn.danger { background: var(--wb-error-bg); border-color: var(--wb-danger); color: var(--wb-danger); }
button:disabled { opacity: .5; cursor: not-allowed; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) { width: 100%; min-width: 0; min-height: 46px; padding: .7rem .85rem; border: 1px solid var(--wb-line); border-radius: 10px; background: var(--wb-surface); color: var(--wb-text); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--wb-accent-2); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--wb-faint); opacity: 1; }
input[type="checkbox"] { accent-color: var(--wb-accent-2); }
textarea { min-height: 200px; resize: vertical; line-height: 1.65; }
label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 650; }
form { margin: 0; }
.field { margin-bottom: 1.25rem; min-width: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1, h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
img { max-width: 100%; }
.meta { color: var(--wb-muted); font-size: .875rem; margin: .4rem 0 .7rem; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 2000; background: var(--wb-amber); color: var(--wb-on-color); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 28px; }
.app-header { position: relative; padding: 0 0 20px 84px; border-left: 20px solid var(--wb-amber); border-bottom: 14px solid var(--wb-amber); border-radius: 0 0 0 58px; margin-bottom: 36px; }
.masthead { min-height: 66px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.brand-link { display: inline-flex; gap: 12px; align-items: center; color: var(--wb-text); text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-name { display: flex; flex-direction: column; font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; line-height: 1.15; }
.brand-name small { color: var(--wb-muted); margin-top: 5px; font: 600 .75rem/1.2 var(--wb-font); letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { display: grid; gap: 5px; width: 29px; }
.brand-mark i { display: block; height: 9px; background: var(--wb-violet); border-radius: 9px 0 0 9px; }
.brand-mark i:last-child { width: 21px; background: var(--wb-blue); }
.header-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; max-width: 100%; margin-left: auto; }
.lcars-band { position: absolute; bottom: -14px; right: 0; width: 57%; height: 14px; display: flex; gap: 7px; background: var(--wb-bg); padding-left: 7px; }
.lcars-band span { flex: 2; background: var(--wb-violet); }
.lcars-band span:nth-child(2) { flex: 1; background: var(--wb-blue); }
.lcars-band span:nth-child(3) { flex: 4; background: var(--wb-amber); }
.lcars-band span:last-child { flex: 0 0 22px; border-radius: 0 12px 12px 0; }
.app-menu { position: static; }
.app-menu > summary { display: flex; align-items: center; gap: .5rem; list-style: none; min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--wb-line); border-radius: 999px; font-size: .875rem; font-weight: 650; cursor: pointer; }
.app-menu > summary::-webkit-details-marker { display: none; }
.app-menu[open] > summary { background: var(--wb-surface-soft); border-color: var(--wb-accent-2); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 40px)); padding: 20px; z-index: 100; border: 1px solid var(--wb-line); border-top: 5px solid var(--wb-violet); border-radius: 18px; background: var(--wb-surface-strong); box-shadow: var(--wb-shadow); }
.menu-panel nav { display: grid; margin: 16px 0; }
.menu-panel nav a { padding: .7rem .5rem; color: var(--wb-text); border-radius: 8px; }
.menu-panel nav a:hover, .menu-panel nav a[aria-current] { background: var(--wb-surface-soft); }
.menu-panel form button { width: 100%; }
main { min-width: 0; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 0 22px; }
.page-heading h1 { margin: 0; }
.eyebrow { display: block; color: var(--wb-accent); font: 700 .75rem/1.4 var(--wb-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.library-count { color: var(--wb-muted); font-size: .875rem; white-space: nowrap; }
.panel { background: var(--wb-surface); border: 1px solid var(--wb-line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.search-shell { border: 1px solid var(--wb-line); border-left: 7px solid var(--wb-violet); border-radius: 6px 22px 22px 6px; background: var(--wb-surface); padding: 16px 20px; margin-bottom: 18px; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.search-bar > a { grid-column: 1 / -1; justify-self: start; }
.search-input-shell { position: relative; min-width: 0; flex: 1; }
.search-input-shell input[name="q"]:placeholder-shown { padding-right: .85rem; }
.search-input-shell input[name="q"] { padding-left: 2.7rem; padding-right: 2.9rem; background: var(--wb-surface-soft); }
.wb-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--wb-muted); pointer-events: none; font-size: 1.25rem; }
.wb-search-clear { position: absolute; top: 50%; right: 3px; transform: translateY(-50%); min-width: 40px; min-height: 40px; padding: 0; background: transparent; color: var(--wb-muted); font-size: 1.4rem; }
.advanced-search { margin-top: 14px; }
summary { cursor: pointer; font-size: .875rem; font-weight: 650; }
.advanced-search > summary { color: var(--wb-accent-2); }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filter-grid .field { margin: 0; }
.tag-browser { margin: 0 0 20px; }
.tag-browser summary { color: var(--wb-muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 180px; overflow-y: auto; }
.tag { display: inline-flex; max-width: 100%; align-items: center; min-height: 28px; padding: .2rem .65rem; border: 1px solid var(--wb-line); border-radius: 7px 14px 14px 7px; color: var(--wb-accent-2); background: var(--wb-surface-soft); font-size: .75rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; margin: .15rem .3rem .15rem 0; }
.tag[aria-current] { border-color: var(--wb-accent-2); }
.selection-toolbar, .bulk-actions, .page-actions, .actions, .toolbar, .save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.selection-toolbar { margin-bottom: 14px; }
.selection-count { color: var(--wb-muted); font-size: .875rem; }
.list-panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
.note-row { position: relative; isolation: isolate; display: flex; gap: 20px; align-items: flex-start; padding: 24px; margin-bottom: 14px; border: 1px solid var(--wb-line); border-radius: 18px; background: var(--wb-surface); transition: border-color .15s, background .15s; }
.note-row:hover, .note-row:focus-within { border-color: var(--wb-accent-2); background: var(--wb-surface-soft); }
/* Extend the real title link across the card, retaining native link behavior. */
.note-row .note-title::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.note-row .tag, .note-row .note-selector { position: relative; z-index: 2; }
/* Bulk selection should not navigate when the space around a checkbox is clicked. */
.list-panel.selecting .note-title::after { content: none; }
.note-row-body { flex: 1; min-width: 0; }
.note-title { color: var(--wb-text); font-size: 1.15rem; font-weight: 700; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.note-title:hover { color: var(--wb-accent-2); }
.note-thumb { width: 80px; height: 92px; border-radius: 12px 12px 12px 3px; object-fit: cover; border: 1px solid var(--wb-line); flex: 0 0 auto; }
.note-placeholder { display: grid; place-items: center; background: var(--wb-surface-soft); border-left: 4px solid var(--wb-blue); color: var(--wb-accent-2); font: 600 .75rem var(--wb-mono); }
.note-row .meta { font-size: .8rem; margin: .3rem 0; }
.snippet { color: var(--wb-muted); font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; }
.note-selector { display: none; position: relative; flex: 0 0 auto; margin: 0; padding: 6px; cursor: pointer; }
.note-selector input { position: absolute; opacity: 0; width: 30px; height: 30px; margin: 0; }
.note-check { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--wb-line-strong); border-radius: 9px; color: transparent; }
.note-selector input:checked + .note-check { background: var(--wb-violet); color: var(--wb-on-color); }
.note-selector input:focus-visible + .note-check { outline: 3px solid var(--wb-accent-2); outline-offset: 3px; }
.list-panel.selecting .note-selector { display: block; }
.note-row.is-selected { background: var(--wb-surface-soft); }
.empty-state { padding: 40px 12px; text-align: center; color: var(--wb-muted); }
.empty-state strong { display: block; font-size: 1.4rem; color: var(--wb-text); margin-bottom: 10px; }
.empty-state p { max-width: 480px; margin: 0 auto 20px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; font-size: .875rem; }
.pager a { padding: .65rem 1rem; border: 1px solid var(--wb-line); border-radius: 999px; text-decoration: none; }
.page-actions { margin-bottom: 20px; }
.note-header h1 { margin: 0 0 12px; }
.note-header { border-bottom: 1px solid var(--wb-line); padding-bottom: 18px; margin-bottom: 24px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 1rem/1.8 var(--wb-font); color: var(--wb-text); margin: 0 0 28px; }
.editor-details { padding: 18px 20px; margin: 20px 0; border: 1px solid var(--wb-line); border-left: 5px solid var(--wb-violet); border-radius: 4px 16px 16px 4px; }
.editor-details > summary { font-size: 1rem; }
.editor-details[open] > summary { margin-bottom: 20px; }
.edit-status { font-size: .875rem; color: var(--wb-muted); }
form[data-dirty="true"] .edit-status { color: var(--wb-accent); }
.section-heading { margin-top: 28px; }
.attachments { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.attachment-card { border: 1px solid var(--wb-line); border-top: 6px solid var(--wb-blue); border-radius: 4px 18px 18px 18px; padding: 20px; min-width: 0; }
.attachment-head { overflow-wrap: anywhere; }
.attachment-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.attachment-source, .attachment-editor { min-width: 0; }
.attachment-source img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: var(--wb-surface-soft); border-radius: 12px; }
.attachment-source > a { display: block; }
.attachment-editor textarea { min-height: 320px; font: .9375rem/1.65 var(--wb-mono); }
.attachment-editor .actions { margin-bottom: 16px; }
.danger-zone { border-top: 1px solid var(--wb-line); margin-top: 32px; padding-top: 20px; }
.danger-zone summary { color: var(--wb-danger); }
.danger-zone form { margin-top: 16px; }
.upload-panel { max-width: 880px; margin: auto; }
.upload-intro { color: var(--wb-muted); margin: 0 0 26px; }
.upload-drop { padding: 22px; border: 1px dashed var(--wb-line-strong); border-radius: 14px; background: var(--wb-surface-soft); }
input[type="file"] { cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; padding: .4rem .8rem; margin-right: 10px; border: 0; border-radius: 999px; background: var(--wb-violet); color: var(--wb-on-color); cursor: pointer; }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 16px 0; }
.upload-preview figure { margin: 0; min-width: 0; }
.upload-preview img { width: 100%; height: 110px; object-fit: contain; background: var(--wb-surface); border: 1px solid var(--wb-line); border-radius: 10px; }
.upload-preview figcaption { font-size: .75rem; overflow-wrap: anywhere; margin-top: 6px; }
.upload-feedback { font-size: .875rem; color: var(--wb-muted); }
.upload-feedback.error { color: var(--wb-danger); }
.save-actions { margin-top: 20px; }
.flash { position: relative; padding: 16px 20px; margin-bottom: 20px; border: 1px solid var(--wb-line); border-radius: 12px; background: var(--wb-surface); overflow-wrap: anywhere; }
.flash.error { border-color: var(--wb-danger); color: var(--wb-danger); background: var(--wb-error-bg); }
.flash.ok { border-color: var(--wb-success); color: var(--wb-success); background: var(--wb-success-bg); }
.login-card { width: min(100%, 460px); margin: 64px auto; border-top: 8px solid var(--wb-violet); }
.login-card button { width: 100%; }
.storage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.storage-card { border-left: 6px solid var(--wb-blue); }
.storage-card div { margin-top: 8px; color: var(--wb-muted); }
.trash-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid var(--wb-line); }
.trash-row-body { min-width: 0; overflow-wrap: anywhere; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 0 70px; margin-top: 30px; border-top: 7px solid var(--wb-line); color: var(--wb-muted); font-size: .75rem; }
.footer-label { font-family: var(--wb-mono); text-transform: uppercase; letter-spacing: .08em; }
.worker-details { max-width: 100%; }
.worker-details summary { font-size: .75rem; }
.status-bar { display: grid; gap: 8px; padding: 14px 0; overflow-wrap: anywhere; }
.status-error { color: var(--wb-danger); }
/* Progressive enhancements */
kbd { font: .75rem var(--wb-mono); border: 1px solid var(--wb-line); border-radius: 5px; padding: 3px 5px; color: var(--wb-muted); }
.wb-copy-block { position: relative; }
.wb-copy-block > pre { padding-top: 54px; }
.wb-copy-button { position: absolute; top: 0; right: 0; }
.wb-command-button { width: 100%; margin-top: 12px; border-color: var(--wb-line-strong); background: var(--wb-surface-strong); color: var(--wb-text); }
.wb-command-button span { font-size: .875rem; }
.wb-palette { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding: min(12vh, 90px) 16px 16px; background: #050714b8; }
.wb-palette-panel { width: min(620px, 100%); max-height: 80dvh; overflow: auto; border: 1px solid var(--wb-line); border-top: 8px solid var(--wb-violet); border-radius: 6px 22px 22px 22px; padding: 14px; background: var(--wb-surface-strong); box-shadow: var(--wb-shadow); }
.wb-palette-list { max-height: 58dvh; overflow-y: auto; padding-top: 12px; }
.wb-command { display: flex; width: 100%; text-align: left; justify-content: start; border-radius: 10px; background: transparent; color: var(--wb-text); box-shadow: none; border: 1px solid transparent; padding: 12px; }
.wb-command:hover, .wb-command[aria-selected="true"] { background: var(--wb-surface-soft); color: var(--wb-text); border-color: var(--wb-line); }
.wb-command-icon { width: 30px; color: var(--wb-accent-2); font-size: 1.1rem; }
.wb-command-copy { flex: 1; }
.wb-command-copy strong, .wb-command-copy small { display: block; }
.wb-command-copy small { color: var(--wb-muted); font-size: .8rem; font-weight: 400; margin-top: 3px; }
.wb-palette-empty { color: var(--wb-muted); padding: 24px; text-align: center; }
.wb-toast-stack { position: fixed; right: 20px; bottom: 80px; z-index: 1100; width: min(360px, calc(100vw - 40px)); display: grid; gap: 10px; }
.wb-toast { background: var(--wb-surface-strong); color: var(--wb-text); border: 1px solid var(--wb-line-strong); border-left: 5px solid var(--wb-violet); border-radius: 12px; padding: 14px 18px; box-shadow: var(--wb-shadow); }
.wb-progress { position: fixed; top: 0; left: 0; z-index: 1200; height: 3px; background: var(--wb-violet); pointer-events: none; }
.wb-current-card { outline: 2px solid var(--wb-accent-2); outline-offset: -2px; }
.wb-density-compact .note-row { padding-block: 14px; }
.wb-density-compact .note-thumb { width: 58px; height: 66px; }
.wb-density-compact .snippet { -webkit-line-clamp: 1; }
.wb-focus-mode .app-header, .wb-focus-mode .app-footer { display: none; }
.wb-focus-mode .note-sheet { max-width: 920px; margin: auto; }
.wb-focus-exit { position: fixed; left: 20px; bottom: 20px; z-index: 70; box-shadow: var(--wb-shadow); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); padding-top: 20px; }
  .app-header { padding-left: 26px; border-left-width: 10px; border-bottom-width: 10px; border-radius: 0 0 0 36px; margin-bottom: 28px; }
  .lcars-band { height: 10px; bottom: -10px; }
  .brand-mark { display: none; }
  .brand-name { font-size: 1.25rem; }
  .brand-name small { font-size: .65rem; }
  .header-actions { gap: 6px; }
  .header-actions > .btn, .app-menu > summary { padding-inline: .8rem; }
  .masthead { gap: 10px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .search-shell { padding: 14px; }
  .search-bar { flex-wrap: wrap; }
  .search-input-shell { flex-basis: calc(100% - 100px); }
  .list-panel { padding-inline: 0; }
  .note-row { gap: 12px; padding: 20px 16px; }
  .note-thumb { width: 56px; height: 70px; }
  .note-title { font-size: 1.0625rem; }
  .note-row .meta { font-size: .75rem; }
  .note-row.selecting { gap: 8px; }
  .attachment-workspace { grid-template-columns: 1fr; gap: 20px; }
  .attachment-card { padding: 14px; }
  .attachment-source img { max-height: 420px; }
  .editor-details { padding-inline: 14px; }
  .upload-drop { padding: 14px; }
  .app-footer { display: grid; }
}
@media (max-width: 420px) {
  .app-header { padding-left: 14px; }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { letter-spacing: .06em; }
  .header-actions > .btn, .app-menu > summary { padding-inline: .7rem; font-size: .8125rem; }
  .app-menu > summary span { display: none; }
  .page-heading { align-items: start; }
  .filter-grid { grid-template-columns: 1fr; }
  .storage-grid { grid-template-columns: 1fr; }
  .trash-row { align-items: start; flex-direction: column; }
  .list-panel.selecting .note-thumb { display: none; }
  .page-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  :root, :root[data-theme] { color-scheme: light; --wb-bg: #fff; --wb-surface: #fff; --wb-surface-soft: #fff; --wb-text: #111; --wb-muted: #444; --wb-line: #bbb; --wb-accent-2: #111; }
  .app-header, .app-footer, .page-actions, .wb-command-button, .wb-palette, .wb-toast-stack, .wb-progress, .wb-focus-exit, .editor-details, .danger-zone, .attachment-editor .actions, button, .btn, .flash { display: none !important; }
  .wrap { width: 100%; padding: 0; }
  .panel, .attachment-card { border: 0; padding: 0; box-shadow: none; }
  .attachment-card { break-inside: avoid; }
  .attachment-workspace { display: block; }
  textarea { height: auto; border: 0; }
}
