:root {
  font-family: system-ui, sans-serif; color: #23252c; background: white; color-scheme: light;
  --split: 52.0833%; --primary: #009dff; --primary-rim: #35c3ff; --on-primary: white;
  --line: #dfdfdf; --muted: #757b87; --faint: #a3a8b1; --ink: #444653; --hover: #f4f4f4;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: white; }
[hidden] { display: none !important; }

/* Header: 80 px incl. border, 30 px side padding, 44 px buttons 10 px apart */
header { flex: none; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: white; border-bottom: 1px solid var(--line); }
/* Logo plus breadcrumb with the open document */
.brand { display: flex; align-items: baseline; min-width: 0; }
h1 { flex: none; font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.5px; white-space: nowrap; }
h1 span { color: var(--primary); font-weight: 400; }
.actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Header icons as large as the rail icons. */
.actions button svg { width: 20px; height: 16px; }
#status { font-size: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#count { font-size: 16px; color: var(--faint); white-space: nowrap; margin-right: 34px; }
#count:not(:empty)::before { content: "·"; margin-right: 8px; }
/* Dot: grey = unsaved or PDF not yet rebuilt, green = saved and PDF current, red = error. */
#status::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #c4c8ce; vertical-align: 1px; }
#status[data-state="done"]::before { background: #1fa851; }
#status[data-state="error"] { color: #a82232; }
#status[data-state="error"]::before { background: #d13c4b; }

/* Buttons never cast a shadow. */
button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--primary); font: inherit; cursor: pointer; flex: none; box-shadow: none; }
/* Font Awesome icons (inline SVG): filled with the text colour. Boxes are 1.25 : 1
   (Font Awesome "fixed width"), so wide icons like user-plus keep the same height. */
button svg { width: 22.5px; height: 18px; fill: currentColor; }
button:hover:not(:disabled) { background: var(--hover); }
button.primary { border: 1px solid var(--primary-rim); background: var(--primary); color: var(--on-primary); }
button.primary:hover:not(:disabled) { background: var(--primary); filter: brightness(.94); }
button.wide { width: auto; height: 44px; padding: 0 26px; border-radius: 22px; font-size: 16px; font-weight: 500; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Left: 80 px rail + panel; right: preview. The split line itself is invisible. */
main { display: grid; grid-template-columns: minmax(0, var(--split)) 0 minmax(0, 1fr); flex: 1; min-height: 0; }
.workspace { display: flex; min-width: 0; min-height: 0; }
.rail { flex: none; width: 80px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 0; }
.rail [role="tablist"] { display: flex; flex-direction: column; gap: 10px; }
.rail [role="tab"] svg { width: 20px; height: 16px; }
.rail [role="tab"][aria-selected="true"] { color: #666d71; }

.panel { flex: 1; min-width: 0; display: flex; flex-direction: column; background: white; }
.crumbs { min-width: 0; margin-left: 40px; font-size: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#doc-role { color: var(--faint); }
/* The shortcut overview is not about the open document. */
.meta-label, body[data-tab="tab-keys"] #doc-name, body[data-tab="tab-keys"] #doc-role { display: none; }
body[data-tab="tab-keys"] .meta-label { display: inline; }
#doc-role::before { content: "·"; margin: 0 8px; color: var(--faint); }
#doc-role:empty { display: none; }
/* 28 px top: the first line sits level with the first rail icon. */
.tabpanel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#markdown { flex: 1; min-height: 0; width: 100%; resize: none; border: 0; padding: 28px 40px 40px 41px; font: 17.5px/30px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); background: white; tab-size: 2; }
#markdown:focus-visible { outline: none; }

.options { overflow: auto; padding: 28px 40px 40px; gap: 30px; }
.options fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.options legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.options label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); flex: 1; }
.options label.check { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.options label.check { gap: 12px; }
/* Unchecked: same outline as the inputs. Checked: blue box with white check. */
.options .check input, .files input[type="checkbox"], .tag-list input[type="checkbox"], .password-form input[type="checkbox"] { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: white center / 14px 14px no-repeat; cursor: pointer; }
.options .check input:checked, .files input[type="checkbox"]:checked, .tag-list input[type="checkbox"]:checked, .password-form input[type="checkbox"]:checked { border-color: var(--primary); background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M438 69C449 76 451 91 444 102L180 470C175 476 169 479 162 480C155 480 148 478 143 473L7 337C-2 328 -2 312 7 303C16 294 32 294 41 303L157 419L405 74C412 63 427 61 438 69Z'/%3E%3C/svg%3E"); }
.files input[type="checkbox"]:indeterminate, .tag-list input[type="checkbox"]:indeterminate { border-color: var(--primary); background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M0 256C0 243 11 232 24 232H424C437 232 448 243 448 256C448 269 437 280 424 280H24C11 280 0 269 0 256Z'/%3E%3C/svg%3E"); }
.files input[type="checkbox"]:disabled, .tag-list input[type="checkbox"]:disabled { opacity: .4; cursor: default; }
/* Slightly smaller than in the PDF options. */
.files input[type="checkbox"], .tag-list input[type="checkbox"], .password-form input[type="checkbox"] { width: 20px; height: 20px; padding: 0; border-radius: 5px; background-size: 12px 12px; }
.options .check input:focus-visible, .files input[type="checkbox"]:focus-visible, .tag-list input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.options input:not([type="checkbox"]), .options textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 16px/24px system-ui, sans-serif; color: var(--ink); background: white; }
.options textarea { resize: vertical; }
.options input:focus-visible, .options textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.options input:disabled { color: var(--faint); background: #fafafa; }
.options .row { display: flex; gap: 16px; }
.options .submit { display: flex; align-items: center; gap: 16px; }
#options-state { font-size: 14px; color: var(--muted); }
.help { overflow: auto; padding: 28px 40px 40px; gap: 30px; }
.help h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.help section + h2, .help section:last-child { margin-top: 10px; }
.help section:last-child h2 { margin-bottom: 16px; }
.help h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* Fixed key column so descriptions line up across all groups. */
.help dl { margin: 0; display: grid; grid-template-columns: 230px 1fr; gap: 10px 24px; align-items: center; max-width: 720px; }
.help dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.help dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.help kbd { min-width: 28px; height: 28px; padding: 0 7px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; font: 14px/1 system-ui, sans-serif; color: var(--ink); }
.help .or { margin: 0 4px; font-size: 13px; color: var(--faint); }
.help .syntax { align-items: start; }
.help code { display: block; white-space: pre; font: 14px/22px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); }
.brand .share-button { align-self: center; width: 36px; height: 36px; margin-left: 8px; }
.brand .share-button svg { width: 20px; height: 16px; }
body[data-tab="tab-keys"] .share-button { display: none; }

/* Shared form fields: file list, share dialog, sign-in. */
.files input[type="search"], .share input, .share select, .auth input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 16px/24px system-ui, sans-serif; color: var(--ink); background: white; }
.share select { width: auto; padding: 6px 8px; font-size: 14px; line-height: 20px; }
/* Font Awesome chevron-down, 14 px from the right edge. */
.share select { appearance: none; padding-left: 12px; padding-right: 42px; cursor: pointer; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23757b87' d='M208 409C217 418 232 418 241 409L441 209C451 200 451 184 441 175C432 166 417 166 408 175L225 358L42 175C32 166 17 166 8 175C-2 185 -2 200 8 209L208 409Z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 12px; }
.files input[type="search"]:focus-visible, .share input:focus-visible, .share select:focus-visible, .auth input:focus-visible { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.note { margin: 0; font-size: 14px; color: var(--faint); }
.note:empty { display: none; }

/* Right gap = rail icon edge to content on the left (18 px rail margin + 40 px padding + icon inset). */
.files { overflow: auto; padding: 28px 68px 40px 40px; gap: 24px; }
/* One pill: filter the list while typing; Enter opens the first match, + creates. */
.find-doc { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px 0 14px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.find-doc:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.find-doc > svg { flex: none; width: 20px; height: 16px; fill: var(--faint); }
.files .find-doc input { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.files .find-doc input:focus-visible { outline: none; }
.find-doc input::-webkit-search-cancel-button { cursor: pointer; }
.find-doc { padding-right: 7px; }
.find-doc button { width: 32px; height: 32px; }
.find-doc button svg { width: 17.5px; height: 14px; }
.files h2 { margin: 0 0 4px; padding-left: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* Rows and the selection bar share one grid: checkbox · name · three 36 px icon cells.
   Hover turns the whole row into a grey pill; its icons sit on white. The pill reaches
   8 px left of the content edge, so checkbox and text stay aligned with the headings. */
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-list li, .bulk { display: flex; align-items: center; gap: 4px; min-height: 60px; padding: 0 12px 0 24px; margin-left: -8px; border-radius: 30px; }
.doc-list li:hover { background: var(--hover); }
.doc-list li.selected { background: #eef7ff; }
.doc-list li:hover > button:not(.doc), .doc-list li.selected > button:not(.doc) { background: white; }
.doc-list li.empty { min-height: 0; padding: 8px 16px 8px 24px; font-size: 14px; color: var(--faint); background: none; }
.doc-list .doc { flex: 1; min-width: 0; width: auto; height: auto; padding: 10px 12px; border-radius: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; color: var(--ink); }
.doc-list .doc:hover:not(:disabled) { background: transparent; }
.doc-list .doc strong, .doc-list .doc span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-list .doc strong { font-weight: 500; }
.doc-list .doc span { font-size: 13px; color: var(--faint); }
.doc-list .doc[aria-current="true"] strong { color: var(--primary); }
.doc-list li > button:not(.doc), .bulk button, .slot { flex: none; width: 36px; height: 36px; color: var(--muted); }
.doc-list li > button:not(.doc), .bulk button { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.doc-list li > button:not(.doc) svg, .bulk button svg { width: 20px; height: 16px; }
/* Icon hover: fills blue with a white icon and grows slightly. */
.doc-list li > button:not(.doc):hover, .bulk button:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); transform: scale(1.08); }
.doc-list li > button:not(.doc):active, .bulk button:active:not(:disabled) { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .doc-list li > button:not(.doc), .bulk button { transition: none; }
  .doc-list li > button:not(.doc):hover, .bulk button:hover:not(:disabled), .doc-list li > button:not(.doc):active, .bulk button:active:not(:disabled) { transform: none; }
}
.bulk button:disabled { opacity: .3; }
/* One row below the search: tag filter, or the selection bar while files are ticked. */
.toolrow { min-height: 48px; margin-bottom: -8px; display: flex; align-items: center; }
.toolrow:not(:has(> :not([hidden]))) { display: none; }
.bulk { flex: 1; min-height: 48px; }
.bulk .select { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.bulk .select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk .hint { color: var(--faint); }
/* Clear sits right after the count; tags, share and delete line up with the row icons. */
.bulk #bulk-clear { margin-right: auto; margin-left: 4px; width: 32px; height: 32px; }
.bulk #bulk-clear svg { width: 17.5px; height: 14px; }
.tag-filter { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; }
.tag-filter > svg { flex: none; width: 20px; height: 16px; fill: var(--faint); }
/* No chevron: the grey hover shows it can be clicked. Takes all free width in the row. */
.tag-filter select { flex: 1; appearance: none; min-width: 0; padding: 6px 10px; border: 0; border-radius: 8px; font: 15px/22px system-ui, sans-serif; color: var(--ink); text-overflow: ellipsis; cursor: pointer; background: transparent; }
.tag-filter select:hover { background-color: var(--hover); }
.tag-filter select:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
.tag-filter select.active { color: var(--primary); font-weight: 500; }
.tag-filter button { margin-left: auto; width: 36px; height: 36px; color: var(--muted); }
.tag-filter button svg { width: 20px; height: 16px; }

/* Account popover above the avatar in the rail. */
#account { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.menu { position: fixed; inset: auto auto 84px 18px; margin: 0; min-width: 240px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
.menu p { margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.menu p span { color: var(--muted); }
/* Menu entries: full-width text rows, each separated by a line. */
.menu .item { display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; color: var(--primary); text-align: left; }
.menu .item:hover:not(:disabled) { background: var(--hover); }
.menu .item svg { flex: none; width: 20px; height: 16px; }
.menu .item:focus-visible { outline-offset: -2px; }
.password-form { display: flex; flex-direction: column; gap: 16px; }
.password-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.password-form input:not([type="checkbox"]) { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 16px/24px system-ui, sans-serif; color: var(--ink); }
.password-form input:not([type="checkbox"]):focus-visible { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.password-form .show input { flex: none; margin: 0; padding: 0; }
.password-form .show { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; }
.password-form .wide { align-self: flex-start; }

.share { width: min(520px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.share::backdrop { background: rgb(35 37 44 / .3); }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px -8px 12px 0; }
.share h2 { margin: 0; font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people { list-style: none; margin: 0 0 20px; padding: 0; max-height: 45vh; overflow: auto; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.people .who { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.people .who strong { font-weight: 500; }
.people .who span { font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.people .role { display: flex; align-items: center; gap: 4px; flex: none; font-size: 14px; color: var(--muted); }
.people .role button { width: 32px; height: 32px; color: var(--muted); }
.people .role button svg { width: 17.5px; height: 14px; }
.share-add { display: flex; gap: 8px; margin-bottom: 8px; }
.share-add select { flex: none; }
.share-add select[name="email"] { flex: 1; min-width: 0; text-overflow: ellipsis; }

/* Sign-in covers the whole app until a session exists. */
.auth { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #f7f8fa; }
.auth-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.auth-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.auth-card .wide { width: 100%; }
/* Eye button inside the password field. */
.auth-card .password { position: relative; display: block; }
.auth-card .password input { padding-right: 48px; }
.auth-card .password button { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; color: var(--faint); }
/* No grey hover circle: the eye just turns blue (hover or shown). */
.auth-card .password button:hover:not(:disabled) { background: transparent; }
.auth-card .password button:hover, .auth-card .password button[aria-pressed="true"] { color: var(--primary); }
.auth-card .password button svg { width: 22.5px; height: 18px; }
.auth-card .error { margin: 0; font-size: 14px; color: #a82232; }
.auth-card .error:empty { display: none; }
.auth-card .switch { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-card a { color: var(--primary); }

#splitter { position: relative; z-index: 1; touch-action: none; }
/* 10 px grab area centred on the boundary; a 2 px line appears on hover. */
#splitter::before { content: ""; position: absolute; inset: 0 -5px; cursor: col-resize; }
#splitter::after { content: ""; position: absolute; inset: 0 -1px; background: transparent; pointer-events: none; }
#splitter:hover::after, #splitter:focus-visible::after, body.resizing #splitter::after { background: var(--primary); }
#splitter:focus-visible { outline: none; }
body.resizing { cursor: col-resize; user-select: none; }
/* The iframe would swallow pointer events mid-drag. */
body.resizing iframe, body.dropping iframe { pointer-events: none; }
body.dropping .panel { outline: 3px dashed var(--primary); outline-offset: -3px; }

.preview { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
/* Tag dialog (same frame as the share dialog). */
.sheet .share-head { margin-bottom: 4px; }
.sheet .tag-list { max-height: 50vh; }
.sheet .sub { margin: 0 0 16px; font-size: 13px; line-height: 19px; color: var(--faint); }
.sheet .note { margin-bottom: 12px; color: #a82232; }
.tag-new { display: flex; align-items: center; gap: 8px; height: 48px; margin-bottom: 12px; padding: 0 7px 0 16px; border: 1px solid var(--line); border-radius: 24px; background: white; }
/* Same pill as the file search: + sits inside the field. */
.tag-new:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.tag-new input, .share .tag-new input { flex: 1; min-width: 0; width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; font: 16px/24px system-ui, sans-serif; color: var(--ink); }
.tag-new input:focus-visible, .share .tag-new input:focus-visible { outline: none; }
.tag-new button { width: 32px; height: 32px; }
.tag-new button svg { width: 17.5px; height: 14px; }
.tag-list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.tag-list li { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.tag-list label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.tag-list label:has(input) { cursor: pointer; }
.tag-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.tag-list .count { flex: none; font-size: 13px; color: var(--faint); }
.tag-list button { width: 32px; height: 32px; color: var(--muted); }
/* Pencil and trash closer together than count and pencil. */
.tag-list li > button + button { margin-left: -8px; }
.tag-list button svg { width: 17.5px; height: 14px; }
.tag-list li.empty { padding: 6px 0; font-size: 14px; color: var(--faint); }
.tag-list[aria-busy="true"] { opacity: .6; pointer-events: none; }
/* Inline rename of a tag in the sheet. */
.tag-list .rename { flex: 1; min-width: 0; padding: 4px 8px; margin: -4px 0; border: 1px solid var(--primary); border-radius: 6px; font: 15px/22px system-ui, sans-serif; color: var(--ink); }
.tag-list .rename:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

/* "Datei bearbeiten": name plus tags, saved together. */
.edit-form { display: flex; flex-direction: column; gap: 20px; }
.edit-form > label, .edit-tags .label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.edit-form input:disabled { color: var(--faint); background: #fafafa; }
.edit-tags { display: flex; flex-direction: column; gap: 6px; }
.edit-tags .tag-list { max-height: 40vh; }
.edit-tags .tag-new { margin: 6px 0 0; }
.edit-form .note.error { color: #a82232; }
.edit-form .wide { align-self: flex-start; }
iframe { flex: 1; min-height: 0; width: 100%; border: 0; background: #525659; }

@media (max-width: 760px) {
  body { height: auto; min-height: 100vh; }
  header { padding: 0 16px; }
  #status { margin-right: 6px; }
  #count { display: none; }
  main { grid-template-columns: 1fr; }
  #splitter { display: none; }
  .workspace { height: 70vh; min-height: 420px; border-bottom: 1px solid var(--line); }
  .rail { width: 60px; }
  .crumbs { display: none; }
  #markdown, .options, .help, .files { padding: 20px 16px; }
  .share-add { flex-wrap: wrap; }
  .help dl { grid-template-columns: 1fr; gap: 4px; }
  .help dd { margin-bottom: 8px; }
  .options .row { flex-direction: column; }
  .preview { height: 80vh; min-height: 480px; }
}
