/* One reading-first system for books, editing, accounts and administration. */
:root {
  color-scheme: light;
  --paper: #fff; --surface: #f5f5f7; --hover: #ededf0; --ink: #1d1d1f;
  --muted: #6e6e73; --line: #e5e5e8; --control-line: #d2d2d7;
  --accent: #0066cc; --focus: #0071e3; --danger: #b42318; --success: #287247;
  --radius: 10px; --radius-lg: 18px; --ease: cubic-bezier(.2,.7,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
  background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button { cursor: pointer; border: 1px solid transparent; background: transparent; border-radius: var(--radius); padding: 9px 13px; font-size: 13px; line-height: 1.35; font-weight: 550; transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
button:hover { background: var(--hover); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
button:disabled:hover { transform: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: #d9eaff; color: #1d1d1f; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { text-wrap: balance; }
h1 { margin-bottom: 16px; font-size: clamp(32px,4vw,48px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.note, .dialog-description, .dialog-explanation { color: var(--muted); font-size: 14px; line-height: 1.6; }
.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: 8px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.ti { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.primary-button, .small-primary, .account-page form > button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 11px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-button:hover, .small-primary:hover, .account-page form > button[type=submit]:hover { background: #38383b; border-color: #38383b; }
.primary-button .ti, .small-primary .ti { filter: brightness(0) invert(1); width: 18px; height: 18px; }
.outlined-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid var(--control-line); background: var(--paper); color: var(--ink); text-decoration: none; border-radius: 9px; font-size: 13px; font-weight: 550; }
.outlined-button:hover { border-color: #a8a8ad; background: var(--surface); }
.danger-button { color: var(--danger); border-color: #e8c8c5; background: #fff; }
.danger-button:hover { background: #fff1f0; }
.danger-button.filled { color: #fff; background: var(--danger); border-color: var(--danger); }
form { display: grid; gap: 8px; }
label { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; font-weight: 600; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 9px; background: var(--paper); font-size: 15px; line-height: 1.5; transition: border-color .16s, box-shadow .16s; }
input:hover, textarea:hover, select:hover { border-color: #a6a6ac; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px #0071e324; }
input[aria-invalid=true] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: #8a8a90; opacity: 1; }
input[type=file] { font-size: 13px; padding: 8px; }
input::file-selector-button { padding: 7px 10px; margin-right: 10px; border: 0; border-radius: 5px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
textarea { resize: vertical; }
form > button[type=submit] { justify-self: start; margin-top: 16px; }
.form-status { display: block; min-height: 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.form-status:not(:empty) { margin-top: 12px; padding: 10px 12px; background: var(--surface); border-radius: 8px; }
.form-status[data-state=error] { color: var(--danger); background: #fff2f0; }
.form-status[data-state=success] { color: var(--success); background: #edf7f0; }
.optional { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 5px; }
/* App chrome */
.site-header { min-height: 72px; padding: 12px max(24px,calc((100vw - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex: none; }
.brand-symbol { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.brand-name { font-size: 19px; font-weight: 650; letter-spacing: -.045em; }
.header-note { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.header-actions a { color: var(--muted); text-decoration: none; }
.header-actions a:hover { color: var(--ink); }
.header-user { color: var(--muted); }
.account-menu, .book-more { position: relative; }
.account-menu summary, .book-more summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-radius: 9px; list-style: none; cursor: pointer; padding: 8px 10px; font-size: 13px; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .book-more summary:hover, details[open] > .more-toggle { background: var(--surface); }
.account-menu summary .ti { width: 18px; height: 18px; }
.more-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 240px; padding: 6px; display: grid; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 40px #00000015,0 2px 6px #0000000a; animation: menu-in .16s var(--ease); }
.more-menu button, .more-menu a { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 11px; border-radius: 6px; font-size: 13px; font-weight: 450; text-decoration: none; color: var(--ink); }
.more-menu a:hover { background: var(--surface); }
.more-menu .ti { width: 17px; height: 17px; opacity: .75; }
.more-menu .trash-toggle { color: var(--danger); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 6px 6px; }
.menu-identity { display: block; padding: 8px 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.library-root { min-height: calc(100vh - 135px); }
.site-footer { padding: 22px 24px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 20px; color: var(--muted); font-size: 11px; }
.site-footer a { color: inherit; }
.readiness { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.readiness button { padding: 4px 8px; }
.library-loading { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.library-loading h1 { font-size: 26px; color: var(--ink); }
.loading-glyph { display: flex; animation: turn 1.1s linear infinite; }
.library-home { max-width: 1168px; margin: 0 auto; padding: 64px 24px 96px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.library-heading h1 { font-size: clamp(34px,4vw,46px); margin: 0 0 9px; }
.library-intro { color: var(--muted); font-size: 15px; margin: 0; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 38px 0 26px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.shelf-heading h2 { margin: 0; font-size: 14px; letter-spacing: 0; }
.shelf-heading h2 span { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.library-filter { width: 240px; min-height: 36px; padding: 7px 11px; background: var(--surface); border-color: transparent; font-size: 13px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 36px 28px; }
.book-tile { min-width: 0; }
.book-cover { container-type: inline-size; position: relative; isolation: isolate; width: 100%; aspect-ratio: .69; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; text-align: left; border: 1px solid #00000008; border-radius: 6px; color: #fff; background: #397bbf; box-shadow: 0 2px 5px #0000000a; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
button.book-cover:hover { transform: translateY(-4px); box-shadow: 0 12px 22px -12px #0006; }
.book-cover.theme-blue { background: #3d78b4; }.book-cover.theme-green { background: #456e58; }.book-cover.theme-orange { background: #a65e36; }.book-cover.theme-magenta { background: #a04f70; }.book-cover.theme-violet { background: #796aa0; }.book-cover.theme-black { background: #303136; }.book-cover.theme-white { background: #f0efeb; color: #303136; border-color: #deddd8; }
.cover-top { font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.cover-middle { display: grid; gap: 12px; }
.cover-title { font-size: clamp(16px,13cqw,30px); font-weight: 650; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cover-subtitle { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cover-foot { font-size: 11px; line-height: 1.4; }
.book-tile-meta { padding-top: 12px; color: var(--muted); font-size: 12px; }
.book-cover .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.book-cover.has-cover-art { color: #fff; background: #252528; }
.book-cover.has-cover-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0009,#0009 40%,#000b); }
.empty-shelf { grid-column: 1/-1; padding: 72px 24px; text-align: center; border-radius: 14px; background: var(--surface); }
.empty-shelf > .ti { width: 36px; height: 36px; opacity: .55; margin-bottom: 16px; }
.empty-shelf h3 { margin-bottom: 8px; font-size: 22px; }.empty-shelf p { color: var(--muted); font-size: 14px; }
/* Modal surfaces */
.book-dialog { width: min(560px,calc(100vw - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 32px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #0000000d; border-radius: var(--radius-lg); background: #fff; color: #1d1d1f; box-shadow: 0 24px 100px #0003,0 3px 12px #0000000c; }
.book-dialog[open] { animation: dialog-in .2s var(--ease); }
.book-dialog::backdrop { background: #13131b55; backdrop-filter: blur(6px); }
.book-dialog h2 { font-size: 26px; margin: 0 28px 18px 0; letter-spacing: -.03em; outline: none; }
.book-dialog .eyebrow { margin-bottom: 8px; }
.dialog-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; color: var(--muted); background: var(--surface); }
.dialog-close .ti { width: 16px; height: 16px; opacity: .65; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dialog-actions button { margin: 0; min-height: 40px; }
.confirm-dialog { width: min(440px,calc(100vw - 32px)); }
.settings-dialog { width: min(640px,calc(100vw - 40px)); }
.settings-tabs { display: flex; gap: 4px; margin: 24px 0; padding: 4px; background: var(--surface); border-radius: 10px; }
.settings-tabs button { flex: 1; font-size: 13px; border-radius: 7px; padding: 8px; }
.settings-tabs [aria-selected=true] { background: #fff; box-shadow: 0 1px 4px #00000012; }
.settings-section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.settings-section:first-child { border: 0; margin: 0; padding: 0; }
.settings-section h3 { margin-bottom: 8px; }.settings-section p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.settings-section form { margin-top: 16px; }
#public-book-link { display: block; margin-bottom: 16px; font-size: 13px; }
#public-book-link .ti { width: 14px; height: 14px; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.member-row button { color: var(--danger); }
.danger-zone { border-top: 1px solid #eed7d4; }
.cover-setting { display: flex; gap: 24px; align-items: flex-start; }
.cover-setting-preview { width: 110px; flex: none; }.cover-setting-preview .book-cover { padding: 10px; gap: 8px; }.cover-setting-preview .cover-title { font-size: 10px; line-height: 1.15; }.cover-setting-preview .cover-top { font-size: 5px; }.cover-setting-preview .cover-foot { font-size: 6px; }.cover-setting-preview .cover-subtitle { display: none; }
.cover-setting-controls { min-width: 0; flex: 1; }
.cover-setting-controls input { margin: 12px 0; }
.history-dialog { width: min(660px,calc(100vw - 40px)); }
.revision-item, .trash-row { padding: 18px 0; border-top: 1px solid var(--line); }
.revision-head, .trash-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.revision-head strong, .trash-row strong { font-size: 15px; font-weight: 600; }
.revision-head time { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.revision-details { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.revision-details summary { cursor: pointer; }.revision-details pre { padding: 16px; background: var(--surface); border-radius: 8px; max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.search-dialog { width: min(640px,calc(100vw - 40px)); }
#book-search-form { display: flex; gap: 10px; }#book-search-form input { flex: 1; }#book-search-form button { margin: 0; }
.search-results { margin-top: 20px; max-height: 48vh; overflow: auto; }
.search-result { display: grid; width: 100%; text-align: left; gap: 6px; padding: 16px 12px; border-radius: 8px; border-bottom: 1px solid var(--line); }
.search-result strong { font-size: 15px; font-weight: 600; }.search-result span { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.export-dialog p { color: var(--muted); font-size: 14px; }
.export-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.export-options button { display: grid; justify-items: start; text-align: left; gap: 7px; padding: 20px; border-radius: 12px; }
.export-options strong { font-size: 18px; letter-spacing: -.025em; }.export-options span { color: var(--muted); font-size: 12px; font-weight: 400; }
#export-result:not(:empty) { margin-top: 20px; }
/* Book navigation */
.book-open .site-header, .book-open .site-footer { display: none; }
.book-workspace { min-height: 100vh; background: var(--paper); }
.book-main { min-width: 0; min-height: 100vh; background: var(--paper); }
.book-sidebar { display: none; }
.book-workspace.toc-open .book-sidebar { display: flex; position: fixed; z-index: 35; inset: 0 auto 0 0; width: 300px; padding: 26px 20px; overflow-y: auto; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); }
.book-workspace.toc-open .book-main { margin-left: 300px; }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.sidebar-head h2 { font-size: 20px; margin: 3px 0 8px; overflow-wrap: anywhere; }
#close-toc { padding: 7px; display: flex; }.sidebar-subtitle { color: var(--muted); font-size: 12px; margin: 0 0 26px; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li { display: flex; align-items: center; gap: 2px; min-width: 0; border-radius: 8px; }
.entry-list li:has(.is-selected) { background: var(--surface); }
.toc-select { display: flex; flex: 1; min-width: 0; align-items: baseline; gap: 10px; text-align: left; font-size: 13px; font-weight: 450; padding: 12px 8px; }
.toc-select.is-selected { font-weight: 650; }.toc-number { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }.toc-title { overflow-wrap: anywhere; }.toc-section .toc-title { font-weight: 650; }
.toc-movement { display: flex; opacity: 0; }.entry-list li:hover .toc-movement, .entry-list li:focus-within .toc-movement { opacity: 1; }
.move-entry { padding: 5px 2px; border-radius: 4px; }.move-entry .ti { width: 14px; height: 14px; }
.new-entry-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.new-entry-details summary { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; cursor: pointer; }
.new-entry-details summary .ti { width: 16px; height: 16px; }.new-entry-details form { margin-top: 14px; }.new-entry-details input,.new-entry-details select,.new-entry-details textarea { font-size: 13px; }.new-entry-details label { font-size: 12px; }
.sidebar-end { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 32px; font-size: 11px; color: var(--muted); }
.book-toolbar { position: sticky; top: 0; z-index: 20; min-height: 64px; padding: 10px 24px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.book-toolbar-left { display: flex; align-items: center; gap: 5px; flex: none; }.top-icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; }.top-icon .ti { width: 19px; height: 19px; opacity: .75; }
.toolbar-location { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 12px; }
.toolbar-location button { padding: 6px 4px; min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-location span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.toolbar-separator .ti { width: 13px; height: 13px; opacity: .4; }
.book-actions { display: flex; align-items: center; gap: 5px; flex: none; }.book-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 11px; font-size: 12px; }
.book-actions > .edit-toggle { background: var(--ink); color: var(--paper); padding-inline: 15px; }.book-actions > .edit-toggle:hover { opacity: .85; }
.book-actions .search-toggle { width: 36px; padding: 0; font-size: 0; }.search-toggle .ti { width: 18px; height: 18px; }
.book-actions .reading-theme-toggle { width: 36px; padding: 0; }.reading-theme-toggle .ti { width: 18px; height: 18px; }
.reader-login { padding: 8px 12px; font-size: 13px; color: var(--ink); text-decoration: none; }
.book-page { max-width: 1168px; min-height: calc(100vh - 65px); margin: 0 auto; padding: 64px 32px 88px; }
.book-overview { display: grid; grid-template-columns: minmax(180px,260px) minmax(0,1fr); column-gap: 64px; align-items: start; }
.overview-intro { display: contents; }#overview-cover { grid-row: 1 / span 2; grid-column: 1; }.overview-heading { grid-row: 1; grid-column: 2; }
.overview-heading h1 { font-size: clamp(30px,3.2vw,44px); margin: 2px 0 12px; }.overview-subtitle { margin-bottom: 10px; font-size: 18px; color: var(--muted); line-height: 1.5; }.overview-subtitle:empty { display: none; }.overview-author { font-size: 14px; margin-bottom: 12px; }.overview-count { font-size: 12px; color: var(--muted); margin: 0; }
.reading-resume { margin-top: 22px; max-width: 100%; white-space: normal; text-align: left; }
.overview-content { grid-row: 2; grid-column: 2; min-width: 0; margin-top: 38px; }
.overview-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.overview-controls h2 { font-size: 16px; margin: 0; }.overview-controls-right { display: flex; align-items: center; gap: 12px; }.add-page-button { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); padding: 7px 8px; }
.view-switch { display: flex; gap: 2px; padding: 3px; background: var(--surface); border-radius: 8px; }.view-switch button { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 5px; padding: 0; }.view-switch .ti { width: 16px; height: 16px; opacity: .65; }.view-switch [aria-pressed=true] { background: var(--paper); box-shadow: 0 1px 4px #00000016; }.view-switch [aria-pressed=true] .ti { opacity: 1; }
.reorder-hint { margin: 0 0 18px; font-size: 11px; color: var(--muted); }
.overview-entries.view-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 16px; }
.page-card { min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.page-card:hover { background: transparent; }.page-card-sheet { position: relative; display: flex; flex-direction: column; height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--paper); box-shadow: 0 2px 3px #00000003; transition: border-color .18s,transform .18s; }
.page-card:hover .page-card-sheet { border-color: #a7a7ae; transform: translateY(-2px); }
.page-card-index { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; margin-bottom: 16px; }.page-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }.page-card-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; font-size: 11px; line-height: 1.6; margin-top: 10px; color: var(--muted); overflow: hidden; overflow-wrap: anywhere; }.page-card-label { display: block; margin-top: 9px; font-size: 11px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }.page-card-section .page-card-sheet { background: var(--surface); justify-content: center; }.page-card-section .page-card-index { position: absolute; top: 16px; }
.view-list .page-card { display: block; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
.view-list .page-card-sheet { height: auto; min-height: 56px; display: grid; grid-template-columns: 32px minmax(0,1fr) 20px; align-items: center; gap: 8px; border: 0; box-shadow: none; padding: 12px 8px; border-radius: 6px; }.view-list .page-card-index { position: static; margin: 0; }.view-list .page-card-excerpt,.view-list .page-card-label { display: none; }.view-list .page-card:hover .page-card-sheet { transform: none; background: var(--surface); }
.overview-empty { padding: 32px; border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--muted); text-align: center; }
.entry-drag-handle { display: flex; width: 16px; flex: none; cursor: grab; opacity: .4; }.entry-drag-handle .ti,.page-card-grip .ti { width: 14px; height: 14px; }.page-card-grip { position: absolute; top: 12px; right: 8px; opacity: .35; }.page-card:hover .page-card-grip { opacity: .85; }.view-list .page-card-grip { position: static; grid-column: 3; }.is-dragging { opacity: .4; }.page-card[draggable=true] { cursor: grab; }.page-card[draggable=true]:active { cursor: grabbing; }.entry-list li.drop-before,.view-list .page-card.drop-before { box-shadow: inset 0 3px var(--focus); }.entry-list li.drop-after,.view-list .page-card.drop-after { box-shadow: inset 0 -3px var(--focus); }.view-grid .page-card.drop-before .page-card-sheet { box-shadow: inset 3px 0 var(--focus); }.view-grid .page-card.drop-after .page-card-sheet { box-shadow: inset -3px 0 var(--focus); }
/* Reading and editing share a measure and rhythm. */
.reading-page,.editor-page { max-width: 740px; margin: 0 auto; }
.reading-page > h1 { font-size: clamp(32px,4vw,44px); margin: 0 0 36px; }.page-kicker { display: block; margin-bottom: 14px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.prose :is(h1,h2,h3,h4) { color: inherit; letter-spacing: -.025em; line-height: 1.3; margin: 1.7em 0 .7em; }.prose h1 { font-size: 30px; }.prose h2 { font-size: 25px; }.prose h3 { font-size: 21px; }.prose > :first-child { margin-top: 0; }.prose p { margin: 0 0 1.15em; }.prose ul,.prose ol { padding-left: 1.5em; margin: 0 0 1.2em; }.prose li + li { margin-top: .3em; }.prose li p { margin-bottom: .3em; }.prose img { max-width: 100%; height: auto; border-radius: 6px; }.prose a { color: var(--accent); }.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--control-line); color: var(--muted); }.prose blockquote p:last-child { margin-bottom: 0; }.prose pre { padding: 20px; overflow: auto; background: var(--surface); border-radius: 10px; font: 13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; }.prose code { padding: .15em .3em; border-radius: 4px; background: var(--surface); font: .85em ui-monospace,SFMono-Regular,Consolas,monospace; }.prose pre code { background: none; padding: 0; }.prose table { display: block; border-collapse: collapse; max-width: 100%; overflow-x: auto; margin: 1.5em 0; font-size: 14px; }.prose th,.prose td { border: 1px solid var(--line); padding: 10px 14px; }.prose th { background: var(--surface); text-align: left; }.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.picture-page .prose img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--surface); }.picture-caption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 16px !important; }.section-description,.empty-page { color: var(--muted); }
.page-navigation:empty { display: none; }
.page-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 20px; }.page-nav-button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; font-size: 14px; }.page-nav-button.next { grid-column: 2; text-align: right; justify-content: flex-end; }.page-nav-copy { display: grid; gap: 4px; min-width: 0; }.page-nav-copy small { color: var(--muted); font-size: 11px; font-weight: 400; }.page-nav-copy strong { font-size: 13px; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; }.page-nav-button .ti { width: 18px; height: 18px; }
.editor-page > .eyebrow { margin-bottom: 18px; }.editor-title { display: block; resize: none; overflow: hidden; min-height: 0; font-size: clamp(32px,4vw,44px); line-height: 1.2; letter-spacing: -.045em; font-weight: 650; border: 0; border-radius: 0; padding: 0 0 24px; margin: 0; background: transparent; }.editor-title:focus-visible { box-shadow: none; outline: none; }.editor-title:focus { color: var(--ink); }
.editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.editor-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; min-height: 34px; padding: 8px; border-radius: 6px; font-size: 12px; }.editor-tools .ti { width: 17px; height: 17px; }.editor-tools [aria-pressed=true] { background: var(--surface); color: var(--accent); }.editor-tools [data-insert][aria-pressed=true] { background: #e8f1fc; box-shadow: inset 0 0 0 1px #0066cc22; }.tool-separator { height: 20px; width: 1px; margin: 0 5px; background: var(--line); }
.editor-options { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; }.editor-options button { padding: 6px 9px; font-size: 11px; min-height: 32px; color: var(--muted); }.editor-options [aria-pressed=true] { color: var(--ink); background: var(--surface); }
.editor-mode-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }.editor-mode-note:empty { display: none; }
#edit-markdown { width: 100%; min-height: 46vh; border: 0; border-radius: 0; outline: 0; box-shadow: none; padding: 28px 0; background: transparent; font: 15px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace; }
#visual-editor { min-height: 46vh; padding: 28px 0; }.rich-editor-content { position: relative; min-height: 38vh; outline: 0; white-space: pre-wrap; font-variant-ligatures: none; }.rich-editor-content:focus-visible { outline: none; }.rich-editor-content > p:only-child:has(> br.ProseMirror-trailingBreak:only-child)::before { content: "Начните писать…"; float: left; height: 0; color: #909096; pointer-events: none; }.rich-editor-content .selectedCell { background: #e7f0ff; }.rich-editor-content .ProseMirror-selectednode { outline: 2px solid var(--focus); outline-offset: 3px; }
.rich-editor-content [contenteditable=false] { white-space: normal; }
.rich-editor-content [contenteditable=false] [contenteditable=true],.rich-editor-content pre { white-space: pre-wrap; }
.rich-editor-content img.ProseMirror-separator { display: inline; border: 0; margin: 0; width: 0; height: 0; }
.rich-editor-content .ProseMirror-gapcursor { display: none; position: absolute; pointer-events: none; margin: 0; }
.rich-editor-content.ProseMirror-focused .ProseMirror-gapcursor { display: block; }
.rich-editor-content .ProseMirror-gapcursor::after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid var(--ink); }
.rich-editor-content.ProseMirror-hideselection *::selection { background: transparent; }
.rich-editor-content.ProseMirror-hideselection * { caret-color: transparent; }
.draft-preview { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 20px; }
.editor-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
#save-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }#save-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); flex: none; }#save-status[data-state=dirty]::before { background: #b88024; }#save-status[data-state=saving]::before { background: var(--focus); animation: breathe 1s ease-in-out infinite; }#save-status[data-state=error],#save-status[data-state=conflict] { color: var(--danger); }#save-status[data-state=error]::before,#save-status[data-state=conflict]::before { background: var(--danger); }
.editor-utilities { display: flex; gap: 6px; flex-wrap: wrap; }.editor-utilities button { font-size: 12px; color: var(--accent); }.word-count { margin-left: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.picture-editor { display: grid; gap: 12px; margin-top: 16px; }.picture-editor img { max-width: 100%; max-height: 440px; object-fit: contain; border-radius: 8px; background: var(--surface); }.picture-editor button { justify-self: start; }
#workspace-status { display: block; margin: 0; color: var(--danger); font-size: 13px; }#workspace-status:not(:empty) { padding: 16px 24px; }
#library-root.editor-focus .book-toolbar,#library-root.editor-focus .book-sidebar { display: none; }#library-root.editor-focus .book-main { margin-left: 0; }#library-root.editor-focus .book-page { padding-top: 40px; }
/* A complete dark reading surface, including navigation, menus and headings. */
.dark-reading { color-scheme: dark; --paper: #1c1c1e; --surface: #29292c; --hover: #353538; --ink: #ededf0; --muted: #a3a3aa; --line: #39393d; --control-line: #55555c; --accent: #91c2ff; --danger: #ff8e85; color: var(--ink); }
.dark-reading .ti { filter: invert(1); }.dark-reading .book-actions > .edit-toggle { background: #ededf0; color: #1c1c1e; }.dark-reading .more-menu { border-color: var(--line); }.dark-reading .page-card-sheet { background: var(--paper); }
/* Accounts */
.account-page .frame { width: min(100%,480px); margin: 0 auto; padding: 40px 24px 80px; }
.account-page .frame.wide { width: min(100%,1000px); }
.account-brand { margin-bottom: 76px; }.account-page .back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 56px; color: var(--muted); font-size: 13px; text-decoration: none; }.account-page .back .ti { width: 16px; height: 16px; }
.account-page h1 { font-size: clamp(30px,4vw,38px); margin-bottom: 14px; }.account-page .note { margin-bottom: 0; }.account-page form { margin-top: 26px; }.account-page form > button[type=submit] { width: 100%; margin-top: 18px; min-height: 44px; }
.account-page .wide form { max-width: 440px; }.account-page .wide form > button[type=submit] { width: auto; }
.account-help { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.account-help summary { cursor: pointer; }.account-help p { margin: 10px 0 0; line-height: 1.6; }.account-help a { display: inline-block; margin-top: 12px; }
.account-page .note + .back { margin: 24px 0 0; color: var(--accent); }
.password-field { position: relative; }.password-field input { padding-right: 48px; }.password-toggle { position: absolute; inset: 2px 3px 2px auto; display: grid; place-items: center; width: 40px; min-height: 38px; padding: 8px; margin: 0; border: 0; background: transparent; }.password-toggle .ti { width: 18px; height: 18px; opacity: .65; }
.rule { height: 1px; background: var(--line); margin: 40px 0 26px; }
.user-list { list-style: none; padding: 0; margin: 0; }.user-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }.user-list strong { font-size: 15px; font-weight: 600; }.user-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }.user-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }.user-actions button { font-size: 11px; background: var(--surface); padding: 8px 10px; }.user-actions button:hover { background: var(--hover); }.issued-link { display: block; padding: 12px; background: var(--surface); border-radius: 8px; margin-top: 12px; overflow-wrap: anywhere; font-size: 12px; }.copy-link-button { justify-self: start; font-size: 12px; color: var(--accent); }
.app-notice { position: fixed; z-index: 80; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #1d1d1f; box-shadow: 0 8px 35px #0002; font-size: 13px; }.app-notice[data-state=error] { border-color: #efd0cc; }.app-notice button { display: flex; padding: 5px; }.app-notice .ti { width: 16px; height: 16px; }
.noscript-note { padding: 32px; text-align: center; }
@keyframes turn { to { transform: rotate(360deg); } }@keyframes breathe { 50% { opacity: .35; } }@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .book-overview { gap: 36px; grid-template-columns: 210px minmax(0,1fr); }.overview-entries.view-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.book-workspace.toc-open .book-main { margin-left: 0; }.book-workspace.toc-open .book-sidebar { box-shadow: 20px 0 60px #0002; }.header-user { display: none; } }
@media (max-width: 650px) {
  .site-header { min-height: 64px; padding: 12px 20px; gap: 12px; }.header-actions { gap: 8px; }.header-actions > a { font-size: 12px; }.account-menu summary .account-label { display: none; }.brand-name { font-size: 18px; }.library-home { padding: 36px 20px 64px; }.library-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; }.library-heading h1 { font-size: 34px; }.library-intro { font-size: 14px; }.shelf-heading { margin-top: 30px; gap: 12px; }.library-filter { width: 180px; }.book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }.book-cover { padding: 16px; gap: 14px; }.cover-title { font-size: clamp(15px,13cqw,24px); }.cover-subtitle { font-size: 11px; }.cover-top { font-size: 7px; }.cover-foot { font-size: 10px; }.site-footer { font-size: 10px; flex-wrap: wrap; gap: 12px; }
  .book-toolbar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }.book-toolbar-left { gap: 0; }.toolbar-location { order: 3; flex-basis: 100%; padding: 0 8px 4px; font-size: 11px; }.toolbar-location button { max-width: 65%; font-size: 11px; }.book-actions { margin-left: auto; gap: 1px; }.book-actions > button,.top-icon,.book-more summary { min-height: 40px; }.book-actions > .edit-toggle { padding-inline: 12px; }.more-menu { width: min(250px,calc(100vw - 32px)); }.book-page { padding: 32px 20px 64px; }.book-overview { display: block; }.overview-intro { display: grid; grid-template-columns: minmax(100px,32%) minmax(0,1fr); gap: 22px; align-items: start; }#overview-cover,.overview-heading { grid-column: auto; grid-row: auto; }#overview-cover .book-cover { padding: 12px; }#overview-cover .cover-title { font-size: 13px; }#overview-cover .cover-subtitle { display: none; }#overview-cover .cover-foot { font-size: 8px; }.overview-heading h1 { font-size: clamp(25px,6vw,32px); margin: 0 0 9px; }.overview-subtitle { font-size: 14px; }.overview-author { font-size: 12px; }.overview-count { font-size: 11px; }.reading-resume { margin-top: 12px; padding: 8px 10px; font-size: 11px; }.overview-content { margin-top: 32px; }.overview-controls-right { gap: 5px; }.add-page-button { font-size: 12px; }.overview-entries.view-grid { gap: 20px 14px; }.page-card-sheet { height: 175px; padding: 14px; }.page-card-title { font-size: 14px; }.reorder-hint { font-size: 11px; }
  .reading-page > h1 { font-size: 32px; margin-bottom: 28px; }.prose { font-size: 17px; line-height: 1.7; }.prose h1 { font-size: 27px; }.prose h2 { font-size: 23px; }.prose h3 { font-size: 20px; }.page-navigation { gap: 12px; margin-top: 40px; }.page-nav-button { padding: 10px 0; gap: 7px; }.page-nav-copy strong { font-size: 12px; }
  .editor-tools { gap: 0; }.editor-tools button { min-width: 38px; min-height: 40px; padding: 9px; }.tool-separator { margin-inline: 2px; }.editor-options { flex-wrap: wrap; justify-content: flex-start; }.editor-options button { min-height: 36px; }.editor-title { font-size: 32px; }.editor-bottom { align-items: flex-start; }.editor-utilities { width: 100%; order: 3; }.word-count { margin-left: 0; }.editor-page > .eyebrow { font-size: 10px; }
  .book-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 28px 22px; border-radius: 16px; }.book-dialog h2 { font-size: 24px; }.dialog-close { top: 12px; right: 12px; }.dialog-actions button { flex: 1; min-height: 44px; }.settings-tabs { margin-top: 20px; }.settings-tabs button { padding: 9px 5px; font-size: 12px; }.cover-setting { gap: 16px; }.cover-setting-preview { width: 84px; }.export-options { gap: 10px; }.export-options button { padding: 16px; }.revision-head,.trash-row { align-items: flex-start; }.revision-head strong,.trash-row strong { font-size: 14px; }.search-result { padding-inline: 4px; }.search-dialog #book-search-form { gap: 8px; }
  .account-page .frame { padding: 28px 24px 60px; }.account-brand { margin-bottom: 52px; }.account-page .back { margin-bottom: 40px; }.account-page h1 { font-size: 32px; }.user-list li { display: block; }.user-actions { justify-content: flex-start; margin-top: 12px; }.user-actions button { min-height: 38px; }.user-meta { font-size: 12px; }input,textarea,select { font-size: 16px; }.toc-movement { opacity: 1; }.new-entry-details input,.new-entry-details select,.new-entry-details textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { button,a,input,textarea,select,.page-card-sheet,.book-cover { border: 1px solid ButtonText; }.ti { filter: none !important; } }

.file-picker { max-width: 100%; margin-block: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The cover studio uses the same SVG as the reader and exports. */
.book-cover.generated-cover { padding: 0 !important; aspect-ratio: 3/4; background: var(--surface-soft,#f4f4f4); }
.book-cover.generated-cover > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-designer { width: min(920px,calc(100vw - 40px)); }
.cover-designer > h2 { margin-bottom: 8px; }
.cover-studio { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0,1.3fr); gap: 38px; margin-top: 28px; align-items: start; }
.cover-studio-preview { position: sticky; top: 0; background: #f5f5f7; border-radius: 12px; padding: 28px 22px 16px; }
.cover-preview-frame { aspect-ratio: 3/4; background: #e9e9ec; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 26px -14px #0005; }
.cover-preview-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-preview-frame img[hidden] { display: none; }
.cover-preview-caption,.preview-status { font-size: 12px; color: #68686d; line-height: 1.5; margin: 16px 0 0; display: block; }
.cover-studio-controls { min-width: 0; }
.cover-designer fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.cover-designer legend { font-size: 13px; font-weight: 650; padding: 0; margin-bottom: 10px; }
.cover-designer input[type=radio] { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.cover-mode { display: flex; gap: 4px; padding: 4px !important; background: #f0f0f2; border-radius: 9px; }
.cover-mode label { flex: 1; text-align: center; padding: 9px 5px; border-radius: 6px; font-size: 12px; font-weight: 550; cursor: pointer; margin: 0; }
.cover-mode label:has(:checked) { background: #fff; box-shadow: 0 1px 3px #0001; }
.cover-palettes,.cover-patterns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.cover-palette,.cover-pattern { position: relative; cursor: pointer; margin: 0 !important; text-align: center; font-size: 10px !important; line-height: 1.3; border: 1px solid transparent; border-radius: 7px; padding: 5px; }
.palette-swatch { height: 38px; border-radius: 4px; display: flex; gap: 5px; align-items: center; justify-content: center; margin-bottom: 6px; border: 1px solid #0000000a; }
.palette-swatch i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.cover-pattern img { width: 100%; height: 32px; object-fit: cover; border-radius: 3px; display: block; margin-bottom: 6px; }
.cover-palette:has(:checked),.cover-pattern:has(:checked) { border-color: #252525; background: #f5f5f7; }
.cover-mode label:has(:focus-visible),.cover-palette:has(:focus-visible),.cover-pattern:has(:focus-visible) { outline: 3px solid var(--focus,#2475ff); outline-offset: 3px; }
.cover-custom { margin-top: 20px; border-top: 1px solid #e9e9ed; padding-top: 16px; }
.cover-custom summary { font-size: 13px; font-weight: 550; cursor: pointer; }
.cover-colors { display: flex; gap: 12px; margin: 12px 0; }
.cover-colors label { flex: 1; font-size: 12px; }
.cover-colors input[type=color] { display: block; width: 100%; height: 38px; padding: 3px; margin-top: 6px; cursor: pointer; }
.cover-reset,.cover-reload { font-size: 12px; padding: 6px 0; color: #1761b6; background: none; border: 0; display: block; text-decoration: underline; text-underline-offset: 3px; }
.cover-replace-note { margin-top: 16px; }
.cover-image-name { overflow-wrap: anywhere; font-size: 12px; }
.cover-studio-footer { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid #e9e9ed; }
.cover-studio-footer .form-status { margin: 0; flex: 1; }
.cover-studio-footer > button { flex-shrink: 0; }
@media (max-width: 640px) {
 .cover-designer { padding: 26px 18px; }
 .cover-studio { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .cover-studio-preview { position: static; padding: 16px; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
 .cover-preview-caption { margin: 0; }.preview-status { grid-column: 1/-1; margin: 0; }
 .cover-studio-footer { align-items: stretch; flex-direction: column; gap: 12px; }
 .cover-palette,.cover-pattern { font-size: 11px !important; }.palette-swatch { height: 44px; }
}
@media (forced-colors: active) { .cover-palette:has(:checked),.cover-pattern:has(:checked),.cover-mode label:has(:checked) { outline: 2px solid Highlight; } }

.export-options button[data-export-format="epub"] { grid-column: 1 / -1; }
@media(max-width:540px) { .export-options { grid-template-columns:1fr; } }

/* Trash actions stay separate from long titles at every viewport width. */
.trash-description { min-width: 0; flex: 1; }
.trash-description strong { display: block; overflow-wrap: anywhere; }
.trash-date { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.trash-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.trash-actions button { font-size: 13px; min-height: 40px; }
@media (max-width: 640px) {
 .trash-row { flex-direction: column; align-items: stretch; }
 .trash-actions { justify-content: flex-start; }
}
