/* style.css — the page around the plugin. The plugin's own stylesheet
   (plugin.css) is written for Obsidian's variables; the block below gives
   them their values here, per theme and accent colour. */
:root {
  --bg: #1e1e1e; --bg2: #262626; --bg3: #303030; --line: #3a3a3a; --text: #dcdcdc; --muted: #a6a6a6; --faint: #747474;
  --accent: #8a7af5; --accent-ink: #ffffff; --warn: #e0a243; --err: #e5606c; --ok: #5cbf78;
  --font: -apple-system, "Segoe UI", Inter, Roboto, sans-serif; --mono: "Cascadia Mono", Consolas, "SF Mono", monospace;
  --color-orange-rgb: 224, 162, 67; --color-red-rgb: 229, 96, 108; --color-green-rgb: 92, 191, 120; --color-yellow-rgb: 224, 190, 67; --color-blue-rgb: 86, 156, 240;
}
:root[data-theme="light"] { --bg: #ffffff; --bg2: #f5f5f4; --bg3: #eaeae8; --line: #dcdcda; --text: #232323; --muted: #5e5e5e; --faint: #9a9a9a; --warn: #b3741a; --err: #c8384a; --ok: #2f8f52; }
:root[data-accent="azul"] { --accent: #4a9cf5; } :root[data-accent="verde"] { --accent: #3fae6b; }
:root[data-accent="ambar"] { --accent: #d99a2b; --accent-ink: #1e1e1e; } :root[data-accent="rosa"] { --accent: #e0609a; }
:root[data-theme="light"][data-accent="violeta"] { --accent: #6a55e0; } :root[data-theme="light"][data-accent="azul"] { --accent: #2478d8; }
:root {
  --background-primary: var(--bg); --background-primary-alt: var(--bg2); --background-secondary: var(--bg2); --background-secondary-alt: var(--bg3);
  --background-modifier-hover: color-mix(in srgb, var(--text) 8%, transparent); --background-modifier-border: var(--line); --background-modifier-border-hover: var(--faint);
  --background-modifier-error: var(--err); --background-modifier-error-hover: var(--err); --background-modifier-success: color-mix(in srgb, var(--ok) 22%, transparent);
  --background-modifier-form-field: var(--bg);
  --text-normal: var(--text); --text-muted: var(--muted); --text-faint: var(--faint); --text-accent: var(--accent); --text-accent-hover: var(--accent);
  --text-error: var(--err); --text-success: var(--ok); --text-warning: var(--warn); --text-on-accent: var(--accent-ink);
  --interactive-accent: var(--accent); --interactive-accent-hover: color-mix(in srgb, var(--accent) 85%, white); --interactive-normal: var(--bg3); --interactive-hover: var(--line);
  --color-red: var(--err); --color-green: var(--ok); --color-orange: var(--warn); --color-yellow: #e0be43; --color-blue: #569cf0; --color-accent: var(--accent);
  --font-ui-smaller: 12px; --font-ui-small: 13px; --font-ui-medium: 15px; --font-ui-large: 18px; --font-monospace: var(--mono); --font-interface: var(--font); --font-text: var(--font);
  --shadow-s: 0 2px 10px rgba(0, 0, 0, .28); --shadow-l: 0 10px 40px rgba(0, 0, 0, .4); --radius-s: 4px; --radius-m: 8px; --radius-l: 12px;
  --size-4-1: 4px; --size-4-2: 8px; --size-4-3: 12px; --size-4-4: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
button { font: inherit; font-size: 13px; color: var(--text); background: var(--bg3); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; border-color: var(--line); }
button.mod-cta, button.cta { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.mod-warning { background: var(--err); border-color: var(--err); color: #fff; }
button.icon, .clickable-icon { background: none; border: 1px solid transparent; padding: 2px 7px; color: var(--muted); font-size: 16px; line-height: 1.2; }
button.icon:hover { color: var(--text); background: var(--background-modifier-hover); }
button.link { background: none; border: none; padding: 0; color: var(--accent); font-size: 12px; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
a { color: var(--accent); }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* login */
.login { display: grid; place-items: center; height: 100%; }
.login-box { display: grid; gap: 12px; width: min(340px, 90vw); padding: 28px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }
.login-box h1 { margin: 0 0 6px; font-size: 20px; }
.login-box label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.err { color: var(--err); min-height: 1.2em; margin: 0; font-size: 13px; }

/* the window */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100%; }
body.has-right .app { grid-template-columns: 264px minmax(0, 1fr) minmax(360px, 36vw); }
.left { background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.left-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); } .live.is-off { background: var(--faint); }
.left-actions { display: flex; gap: 6px; padding: 4px 10px 8px; }
.left-actions button:not(.icon) { flex: 1; }
.side { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.side-tabs { display: flex; padding: 0 8px; border-bottom: 1px solid var(--line); }
.side-tab { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 6px 2px; color: var(--muted); font-size: 12px; }
.side-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.side-pane { flex: 1; overflow: auto; min-height: 0; padding: 8px 6px 12px; }
.filter { width: calc(100% - 8px); margin: 0 4px 8px; font-size: 13px; }
.tree { font-size: 13px; }
.tree details > summary { list-style: none; cursor: pointer; padding: 3px 6px; border-radius: 4px; color: var(--muted); }
.tree details > summary::-webkit-details-marker { display: none; }
.tree details > summary::before { content: "›"; display: inline-block; width: 12px; transition: transform .1s; }
.tree details[open] > summary::before { transform: rotate(90deg); }
.tree details details { margin-left: 10px; }
.tree-file { display: flex; gap: 6px; align-items: baseline; padding: 3px 6px 3px 18px; border-radius: 4px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; }
.tree-name { flex: none; } .tree-title, .tree-kind { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.tree-file:hover, .tree summary:hover { background: var(--background-modifier-hover); }
.tree-file.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.left-foot { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.me { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.scrim { display: none; }

/* calendar */
.cal-head { display: flex; align-items: center; gap: 4px; padding: 0 4px 8px; }
.cal-title { flex: 1; text-align: center; font-weight: 600; font-size: 13px; text-transform: capitalize; }
.cal-today { font-size: 12px; padding: 2px 8px; }
.cal-grid { display: grid; grid-template-columns: 30px repeat(7, 1fr); gap: 2px; padding: 0 4px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--faint); padding-bottom: 2px; }
.cal-week { display: grid; place-items: center; font-size: 11px; color: var(--faint); text-decoration: none; border-radius: 4px; }
.cal-week.has-note { color: var(--accent); } .cal-week.has-note:hover { background: var(--background-modifier-hover); }
.cal-day { position: relative; background: none; border: 1px solid transparent; border-radius: 6px; padding: 5px 0 9px; font-size: 13px; color: var(--text); }
.cal-day.is-out { color: var(--faint); }
.cal-day.is-today { border-color: var(--accent); font-weight: 600; }
.cal-day.has-note::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; border: 1px solid var(--accent); }
.cal-day.is-closed::after { background: var(--accent); }
.cal-legend { padding: 10px 6px 0; font-size: 11px; color: var(--faint); }

/* tabs */
.center { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: flex-end; background: var(--bg2); border-bottom: 1px solid var(--line); }
.nav-btn { display: none; margin: 4px; }
.tabs { display: flex; gap: 2px; padding: 6px 8px 0; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.tab { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; cursor: pointer; white-space: nowrap; color: var(--muted); font-size: 13px; max-width: 220px; }
.tab-name { overflow: hidden; text-overflow: ellipsis; }
.tab.is-active { background: var(--bg); border-color: var(--line); color: var(--text); }
.tab-x { background: none; border: none; padding: 0 4px; color: var(--faint); font-size: 15px; } .tab-x:hover { color: var(--text); }
.tab-dirty { color: var(--warn); } .tab-kind { color: var(--accent); }
.view { flex: 1; position: relative; min-height: 0; }
.view > * { position: absolute; inset: 0; }
.empty { display: grid; place-content: center; gap: 12px; text-align: center; color: var(--muted); }
.empty h2 { margin: 0; font-size: 18px; font-weight: 500; } .empty-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* a base */
.base { display: flex; flex-direction: column; }
.base-tabs { display: flex; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; }
.base-tab { background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 4px 10px 7px; color: var(--muted); white-space: nowrap; }
.base-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.base-host { flex: 1; overflow: auto; min-height: 0; padding: 10px 14px 24px; }
.base-table h3 { font-size: 14px; margin: 18px 0 6px; }

/* a note */
.note { display: flex; flex-direction: column; background: var(--bg); }
.note-bar { display: flex; gap: 8px; align-items: center; padding: 7px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; flex: none; }
.note-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .note-path .sep { margin: 0 5px; color: var(--faint); } .note-path .leaf { color: var(--text); }
.note-flag { font-size: 12px; color: var(--warn); } button.note-flag.is-warn { border-color: var(--warn); }
.note-body { flex: 1; overflow: auto; min-height: 0; }
.note-gone { padding: 40px; color: var(--muted); text-align: center; }
.reading { padding: 26px max(22px, calc((100% - 780px) / 2)) 80px; }
.note.is-compact .reading { padding: 16px 18px 60px; }
.note-head { margin-bottom: 10px; }
.inline-title { font-size: 1.7em; line-height: 1.25; margin: 0; font-weight: 650; }
.note.is-compact .inline-title { font-size: 1.3em; }
.note-id { color: var(--muted); font-family: var(--mono); font-size: 13px; margin-top: 2px; }
.reading h1 { font-size: 1.45em; margin: 1.3em 0 .4em; } .reading h2 { font-size: 1.22em; margin: 1.2em 0 .4em; } .reading h3 { font-size: 1.08em; margin: 1.1em 0 .3em; }
.reading h4, .reading h5, .reading h6 { font-size: 1em; margin: 1em 0 .3em; color: var(--muted); }
.reading p { margin: .55em 0; } .reading ul, .reading ol { margin: .4em 0; padding-left: 1.5em; } .reading li { margin: .15em 0; }
.reading code { font-family: var(--mono); font-size: .9em; background: var(--bg3); padding: 1px 5px; border-radius: 4px; }
.reading pre { background: var(--bg2); border: 1px solid var(--line); padding: 10px 12px; border-radius: 6px; overflow: auto; font-size: 13px; }
.reading pre code { background: none; padding: 0; }
.reading blockquote { margin: .6em 0; padding: 2px 14px; border-left: 3px solid var(--accent); color: var(--muted); }
.reading hr { border: none; border-top: 1px solid var(--line); margin: 1.4em 0; }
.reading mark { background: color-mix(in srgb, var(--color-yellow) 40%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
.table-wrap { overflow-x: auto; margin: .6em 0; }
.reading table, .base-table table, .dataview table { border-collapse: collapse; font-size: 14px; min-width: 50%; }
.reading th, .reading td, .base-table th, .base-table td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; vertical-align: top; }
.reading th, .base-table th { background: var(--bg2); font-weight: 600; font-size: 13px; }
.dataview { overflow-x: auto; margin: .6em 0; } .dv-none { color: var(--faint); font-size: 13px; padding: 4px 0; } .dv-empty { color: var(--faint); }
.dv-error { color: var(--warn); font-size: 13px; border: 1px dashed var(--line); border-radius: 6px; padding: 6px 10px; }
a.internal-link, .ctx-link { color: var(--accent); text-decoration: none; cursor: pointer; } a.internal-link:hover { text-decoration: underline; }
a.external-link::after { content: " ↗"; font-size: .8em; }
a.tag { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 10px; padding: 0 7px; font-size: .9em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.task-list-item { list-style: none; margin-left: -1.4em; } .task-list-item input { margin-right: 4px; accent-color: var(--accent); }
.task-list-item.is-checked > span { color: var(--muted); text-decoration: line-through; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 7%, transparent); margin: .7em 0; }
.callout-title { display: flex; gap: 8px; align-items: baseline; padding: 6px 12px; font-weight: 600; cursor: default; list-style: none; }
details.callout > .callout-title { cursor: pointer; } details.callout > .callout-title::-webkit-details-marker { display: none; }
details.callout > .callout-title::after { content: "›"; margin-left: auto; color: var(--faint); transition: transform .1s; } details.callout[open] > .callout-title::after { transform: rotate(90deg); }
.callout-content { padding: 0 12px 6px; } .callout-content > :first-child { margin-top: 0; }
.callout[data-callout="warning"], .callout[data-callout="danger"] { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.excalidraw-paper { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; overflow: auto; }
.excalidraw-svg { max-width: none; display: block; }

/* properties */
.props { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px 8px; margin: 10px 0 18px; background: var(--bg2); font-size: 13.5px; }
.props-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0 4px; }
.prop { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: center; padding: 2px 0; }
.prop-key { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-val { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 28px; }
.prop-val input[type="text"], .prop-val input[type="number"], .prop-val select { flex: 1; min-width: 120px; padding: 3px 7px; background: transparent; border-color: transparent; }
.prop-val input:hover, .prop-val select:hover, .prop-val input:focus { border-color: var(--line); background: var(--bg); }
.prop-val input.prop-add { flex: 0 1 110px; min-width: 80px; font-size: 12px; }
.prop-hint { color: var(--muted); font-size: 12px; }
.pill { background: var(--bg3); border-radius: 10px; padding: 0 8px; font-size: 12.5px; white-space: nowrap; } .pill-x { margin-left: 4px; color: var(--faint); cursor: pointer; } .pill-x:hover { color: var(--err); }
.note.is-compact .prop { grid-template-columns: 120px minmax(0, 1fr); }

/* the editor */
.ed { position: relative; margin: 0 auto; max-width: 860px; padding: 0; min-height: 100%; }
.ed-hl, .ed-ta { margin: 0; border: none; border-radius: 0; font: 14px/1.65 var(--mono); padding: 22px 26px 160px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; tab-size: 4; letter-spacing: 0; }
.ed-hl { min-height: 100%; pointer-events: none; color: var(--text); background: none; }
.ed-ta { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: var(--text); outline: none !important; }
.ed-mirror { position: absolute; left: 0; top: 0; right: 0; visibility: hidden; }
.h-fm, .h-dim { color: var(--faint); } .h-key { color: var(--accent); } .h-val { color: var(--muted); }
.h-head { color: var(--text); font-weight: 700; } .h-quote { color: var(--muted); } .h-bullet { color: var(--accent); } .h-box { color: var(--warn); }
.h-code { color: var(--ok); } .h-link { color: var(--accent); } .h-tag { color: var(--color-blue); } .h-strong { font-weight: 700; } .h-mark { color: var(--warn); }
.ed-pop { position: absolute; z-index: 5; width: 300px; max-height: 260px; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-s); padding: 4px; }

/* right: a card beside the board, or what links to a note */
.right { display: none; background: var(--bg); border-left: 1px solid var(--line); min-height: 0; flex-direction: column; }
body.has-right .right { display: flex; }
.peek-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--bg2); flex: none; }
.peek-count { flex: 1; color: var(--muted); font-size: 12px; }
.peek-body { flex: 1; position: relative; min-height: 0; } .peek-body > .note { position: absolute; inset: 0; }
.panel { padding: 12px 14px; overflow: auto; } .panel + .panel { border-top: 1px solid var(--line); }
.panel h3 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ctx-link { display: block; padding: 2px 0; font-size: 13px; } .ctx-sub { color: var(--faint); margin-left: 6px; }
.ctx-h2 { padding-left: 10px; } .ctx-h3 { padding-left: 20px; } .ctx-h4 { padding-left: 30px; }

/* what stands in for Obsidian's own widgets: modal, setting rows, menu, notices */
.modal-container { position: fixed; inset: 0; z-index: 40; display: grid; place-items: start center; padding: 8vh 12px 12px; overflow: auto; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); }
.modal { position: relative; width: min(640px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l); padding: 18px 20px; }
.modal-close-button { position: absolute; top: 8px; right: 12px; font-size: 20px; color: var(--faint); cursor: pointer; line-height: 1; } .modal-close-button:hover { color: var(--text); }
.modal-title { font-size: 17px; font-weight: 600; margin: 0 24px 10px 0; } .modal-title:empty { display: none; }
.modal-content h3 { font-size: 14px; margin: 16px 0 4px; } .modal-content p { margin: 6px 0; }
.setting-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.setting-item:first-child, .setting-item-heading { border-top: none; }
.setting-item-info { flex: 1 1 45%; min-width: 0; } .setting-item-name { font-size: 14px; } .setting-item-name:empty, .setting-item-description:empty { display: none; }
.setting-item-description { color: var(--muted); font-size: 12.5px; }
.setting-item-control { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex: 1 1 55%; flex-wrap: wrap; }
.setting-item-control input[type="text"], .setting-item-control textarea, .setting-item-control select { width: 100%; }
.setting-item-control textarea { min-height: 64px; resize: vertical; }
.setting-item-info:has(.setting-item-name:empty):has(.setting-item-description:empty) { display: none; }
.checkbox-container { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .12s; }
.checkbox-container::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .12s; }
.checkbox-container.is-enabled { background: var(--accent); } .checkbox-container.is-enabled::after { left: 19px; }
.menu { position: fixed; z-index: 60; min-width: 200px; max-width: min(420px, 94vw); max-height: 80vh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-l); padding: 4px; }
.menu-item { padding: 6px 10px; border-radius: 5px; font-size: 13.5px; cursor: pointer; } .menu-item:hover { background: var(--background-modifier-hover); }
.menu-item.is-disabled, .menu-item.is-label { color: var(--faint); cursor: default; background: none; } .menu-item.is-checked .menu-item-title::before { content: "✓ "; color: var(--accent); }
.menu-separator { height: 1px; background: var(--line); margin: 4px 2px; }
.notice-container { position: fixed; top: 12px; right: 12px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: min(440px, 92vw); }
.notice { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-s); padding: 9px 14px; font-size: 13.5px; cursor: pointer; }

/* the page's own dialogs */
.dlg-input { width: 100%; } textarea.dlg-input { min-height: 90px; } .dlg-hint { color: var(--muted); font-size: 13px; }
.dlg-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal.mod-pick { padding: 10px; } .modal.mod-pick .modal-close-button, .modal.mod-pick .modal-title { display: none; }
.pick-input { width: 100%; font-size: 16px; padding: 9px 12px; }
.pick-list { max-height: 56vh; overflow: auto; margin-top: 8px; }
.pick-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.pick-item.is-selected { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.pick-label { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-detail { grid-column: 1; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-aside { grid-column: 2; grid-row: 1; color: var(--faint); font-size: 12px; white-space: nowrap; }
.pick-empty { color: var(--faint); padding: 10px; font-size: 13px; }

/* narrow screens: the files slide over, the card takes the screen */
@media (max-width: 900px) {
  .app, body.has-right .app { grid-template-columns: minmax(0, 1fr); }
  .left { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 30; transform: translateX(-100%); transition: transform .16s; }
  body.nav-open .left { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(0, 0, 0, .5); }
  .nav-btn { display: block; }
  body.has-right .right { position: fixed; inset: 0; z-index: 20; }
  .reading { padding: 18px 14px 80px; } .prop { grid-template-columns: 110px minmax(0, 1fr); }
  .ed-hl, .ed-ta { padding: 14px 12px 120px; }
  .modal-container { padding-top: 3vh; } .setting-item { flex-direction: column; align-items: stretch; gap: 6px; }
  .setting-item-control { justify-content: flex-start; }
}
@media print { .left, .right, .topbar, .note-bar { display: none !important; } .app { display: block; } .view > * { position: static; } }
