/* Endpaper app — flat, quiet, one accent. */
:root {
  --bg: #FBFAF7; --surface: #FFFFFF; --sunk: #F3F1EC; --ink: #1C1B19; --ink-2: #4A4842; --muted: #6E6B63; --line: #E7E4DC; --line-2: #D9D5CB;
  --accent: #2F54C8; --accent-ink: #FFFFFF; --accent-soft: #E8EDFB; --danger: #B42318;
  --s-draft: #B5B1A7; --s-revising: #D9922E; --s-done: #2E8B57;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Literata, Georgia, "Times New Roman", serif;
  --r: 10px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --surface: #1B1B19; --sunk: #222220; --ink: #ECE9E2; --ink-2: #C9C5BC; --muted: #9C988F; --line: #2C2B28; --line-2: #3A3935;
    --accent: #8EA6FF; --accent-ink: #10172E; --accent-soft: #1F2742; --danger: #FF8A80; --s-draft: #6E6B63;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --surface: #1B1B19; --sunk: #222220; --ink: #ECE9E2; --ink-2: #C9C5BC; --muted: #9C988F; --line: #2C2B28; --line-2: #3A3935;
  --accent: #8EA6FF; --accent-ink: #10172E; --accent-soft: #1F2742; --danger: #FF8A80; --s-draft: #6E6B63;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.boot { padding: 40px; color: var(--muted); }
.grow { flex: 1; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--sunk); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger.ghost { background: none; color: var(--danger); border-color: transparent; }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunk); color: var(--ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink-2); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.icon-btn.xs { width: 26px; height: 26px; }
.icon-btn.xs .ic { width: 16px; height: 16px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, select { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 9px 11px; font-size: 15px; font-weight: 400; color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select { padding: 6px 10px; font-size: 14px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.bar.thin { height: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }

.demo-bar { background: var(--ink); color: var(--bg); text-align: center; font-size: 13px; padding: 7px 12px; }
.demo-bar a { color: inherit; font-weight: 600; margin-left: 6px; }

/* ---------- library ---------- */
.lib { max-width: 1120px; margin: 0 auto; padding: 0 24px 48px; }
.lib-top { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.today { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: center; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0 40px; }
.t-main { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.t-main .bar { width: 100%; }
.t-num { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.t-num small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.t-week { display: flex; gap: 8px; height: 76px; align-items: stretch; }
.wk { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.wk i { width: 100%; max-width: 22px; background: var(--line-2); border-radius: 4px; }
.wk.hit i { background: var(--accent); }
.wk.now span { color: var(--ink); font-weight: 600; }
.t-streak { display: flex; flex-direction: column; align-items: center; padding-left: 28px; border-left: 1px solid var(--line); }
.t-streak strong { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.t-streak span { font-size: 13px; color: var(--muted); margin-top: 4px; }

.shelf-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.shelf-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.card.new { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 500; color: var(--muted); }
.card.new:hover .ghost { border-color: var(--accent); color: var(--accent); }
.c-link { display: block; transition: transform .2s var(--ease); }
.c-link:hover { transform: translateY(-3px); }
.c-meta { display: flex; flex-direction: column; gap: 4px; padding-right: 28px; }
.c-title { font-weight: 600; text-decoration: none; line-height: 1.3; }
.c-sub { font-size: 13px; color: var(--muted); }
.c-meta .bar { margin-top: 6px; }
.c-menu { position: absolute; right: -6px; bottom: 10px; }

.cover { aspect-ratio: 2 / 3; width: 100%; border-radius: 3px 8px 8px 3px; background: var(--cb, #1F3A5F); color: var(--cf, #fff); display: flex; flex-direction: column; padding: 14% 12% 10%; overflow: hidden; font-family: var(--serif); box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06); }
.cover .cv-t { font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cover .cv-t::after { content: ""; display: block; width: 26px; height: 2px; background: currentColor; margin-top: 12px; opacity: .8; }
.cover .cv-s { font-size: 12px; line-height: 1.35; margin-top: 10px; opacity: .85; font-style: italic; }
.cover .cv-a { margin-top: auto; font: 500 11px/1.3 var(--sans); letter-spacing: .04em; opacity: .9; }
.cover.img { padding: 0; }
.cover.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.ghost { background: none; border: 1.5px dashed var(--line-2); box-shadow: none; display: grid; place-items: center; color: var(--muted); transition: border-color .15s, color .15s; }
.cover.ghost .ic { width: 28px; height: 28px; }
.cover.mini { width: 40px; padding: 6px 5px; border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 0 rgba(0,0,0,.12); }
.cover.mini > span { display: none; }
.cover.mini .cv-t { display: block; font-size: 5px; -webkit-line-clamp: 3; }
.cover.mini .cv-t::after { display: none; }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: 14px; }
.empty h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.empty p { max-width: 460px; margin: 0 auto 22px; }
.lib > .fine { margin-top: 48px; text-align: center; }

/* ---------- book: outline + desk ---------- */
.app { height: 100%; }
.desk-wrap { height: 100%; display: grid; grid-template-columns: 290px 1fr; grid-template-rows: 56px 1fr; }
.demo-bar + .desk-wrap { height: calc(100% - 34px); }
.bar-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); min-width: 0; transition: opacity .25s; }
.bt-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-left: 4px; }
.bt-title strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#save { font-size: 12px; color: var(--muted); white-space: nowrap; }
#save[data-s="save"] { color: var(--danger); }
.bt-words { font-size: 13px; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.only-sm { display: none; }

.outline { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.ol-head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; }
.ol-head > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.ol-head strong { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ol-head .muted { font-size: 13px; }
.ol-search { margin: 0 12px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.ol-search:focus { outline: none; border-color: var(--accent); }
.ol-list { list-style: none; margin: 0; padding: 4px 8px; overflow-y: auto; flex: 1; }
.oi { position: relative; display: flex; align-items: center; border-radius: 7px; }
.oi a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 7px 8px; text-decoration: none; min-width: 0; font-size: 14px; color: var(--ink-2); }
.oi:hover { background: var(--sunk); }
.oi.on { background: var(--accent-soft); }
.oi.on a { color: var(--ink); font-weight: 500; }
.oi .icon-btn { opacity: 0; margin-right: 2px; }
.oi:hover .icon-btn, .oi.on .icon-btn, .oi .icon-btn:focus-visible { opacity: 1; }
.oi-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oi-w, .ol-hit { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ol-hit { background: var(--accent-soft); color: var(--accent); padding: 0 6px; border-radius: 99px; }
.oi.t-part { margin-top: 10px; }
.oi.t-part a { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.oi.t-part:first-child { margin-top: 0; }
.oi.dragging { opacity: .4; }
.oi.drop-b::before, .oi.drop-a::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--accent); border-radius: 2px; }
.oi.drop-b::before { top: -1px; }
.oi.drop-a::after { bottom: -1px; }
.oi[draggable="true"] a { cursor: grab; }
.ol-none { padding: 12px 8px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--s-draft); }
.dot.s-revising { background: var(--s-revising); }
.dot.s-done { background: var(--s-done); }
.ol-ic { display: grid; place-items: center; width: 8px; }
.ol-ic .ic { width: 14px; height: 14px; color: var(--muted); }
.ol-add { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ol-add .btn { flex: 1; justify-content: center; padding: 0 6px; }
.ol-goal { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 16px; font-size: 13px; }
.scrim { display: none; }

.desk { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; scroll-padding-top: 80px; }
.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 40px 32px 24px; flex: 1; }
.pg-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 30px; }
.kind { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border: 1px solid var(--line); border-radius: 99px; }
.status select { border: 0; background: none; padding: 4px 8px 4px 0; font-size: 13px; }
.status select:focus { box-shadow: none; }
.pg-title { width: 100%; border: 0; background: none; resize: none; overflow: hidden; font: 600 38px/1.15 var(--serif); letter-spacing: -.015em; padding: 0; margin: 0 0 18px; color: var(--ink); }
.pg-title:focus { outline: none; }
.pg-title::placeholder { color: var(--line-2); }
.t-part .pg-title { text-align: center; margin-top: 12vh; }

.notes { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 18px; }
.notes summary { cursor: pointer; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 6px; }
.notes summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.notes[open] summary::before { transform: rotate(45deg); }
.notes summary::-webkit-details-marker { display: none; }
.notes textarea { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 14px 12px; font-size: 14px; line-height: 1.55; resize: vertical; color: var(--ink-2); border-radius: 0 0 var(--r) var(--r); field-sizing: content; min-height: 44px; }
.notes textarea:focus { outline: none; }

.tools { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 6px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tools button { display: grid; place-items: center; width: 34px; height: 32px; flex: none; border: 0; background: none; border-radius: 7px; cursor: pointer; color: var(--ink-2); }
.tools button:hover { background: var(--sunk); color: var(--ink); }
.tools button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.tools .small-h .ic { width: 14px; height: 14px; }
.tools .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: none; }

.prose { font: 400 19px/1.75 var(--serif); color: var(--ink); outline: none; min-height: 50vh; padding: 12px 0 30vh; overflow-wrap: break-word; }
.prose:has(> p:only-child > br:only-child)::before, .prose:empty::before { content: attr(data-placeholder); color: var(--muted); opacity: .7; position: absolute; pointer-events: none; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 1.45em; font-weight: 600; line-height: 1.25; margin: 1.6em 0 .55em; letter-spacing: -.01em; }
.prose h3 { font-size: 1.15em; font-weight: 600; margin: 1.4em 0 .4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.1em; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose hr { border: 0; text-align: center; margin: 2em 0; height: 1em; }
.prose hr::after { content: "* * *"; color: var(--muted); letter-spacing: .4em; }
.prose code { font: .85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--sunk); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--sunk); padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .8em; }
.prose figure { margin: 1.6em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 0 auto; }
.prose figcaption { font: 400 14px/1.5 var(--sans); color: var(--muted); text-align: center; margin-top: 8px; }
.part-sub { text-align: center; font-style: italic; color: var(--ink-2); min-height: 4em; padding-bottom: 10vh; }
.part-sub:has(> p:only-child > br:only-child)::before { left: 0; right: 0; }
.t-part .prose::before { left: 0; right: 0; text-align: center; }

.pic-drop { border: 1.5px dashed var(--line-2); border-radius: 12px; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; cursor: pointer; color: var(--ink-2); margin-bottom: 14px; transition: border-color .15s, background .15s; }
.pic-drop .ic { width: 32px; height: 32px; color: var(--muted); }
.pic-drop:hover, .pic-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.pic-drop.has { border: 0; padding: 0; min-height: 0; background: none; }
.pic-drop.has img { max-width: 100%; max-height: 64vh; border-radius: 6px; display: block; }
.t-picture .row { margin-bottom: 18px; }

.pg-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 24px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13px; color: var(--muted); }
.pg-foot .ell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* focus mode */
body.focus .outline { display: none; }
body.focus .desk-wrap { grid-template-columns: 1fr; }
body.focus .bar-top { opacity: 0; }
body.focus .bar-top:hover, body.focus .bar-top:focus-within { opacity: 1; }
body.focus .notes, body.focus .pg-foot, body.focus .pg-meta { display: none; }
body.focus .tools { opacity: 0; transition: opacity .25s; }
body.focus .tools:hover, body.focus .tools:focus-within { opacity: 1; }
body.focus .page { padding-top: 12vh; }

/* ---------- dialogs, popovers, toast ---------- */
.dlg { border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink); animation: dlg-in .18s var(--ease); position: fixed; }
.dlg.wide { width: min(780px, calc(100vw - 32px)); }
.dlg.out { animation: dlg-out .14s ease forwards; }
.dlg::backdrop { background: rgba(20, 20, 18, .45); }
.dlg h2 { font-size: 20px; font-weight: 600; margin: 0 0 16px; letter-spacing: -.01em; padding-right: 32px; }
.dlg h2 + .muted { margin: -8px 0 18px; }
.dlg-x { position: absolute; top: 16px; right: 16px; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(4px) scale(.99); } }

.tpls { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpls legend { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.tpl { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.tpl:hover { background: var(--sunk); }
.tpl:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-c { width: 34px; height: 46px; flex: none; border-radius: 2px 5px 5px 2px; background: var(--cb); color: var(--cf); display: grid; place-items: center; }
.tpl-c .ic { width: 16px; height: 16px; }
.tpl-t { display: flex; flex-direction: column; gap: 2px; }
.tpl-t strong { font-size: 14px; font-weight: 600; }
.tpl-t small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.exp { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; }
.ex { display: flex; align-items: center; gap: 20px; padding: 16px 18px; }
.ex + .ex { border-top: 1px solid var(--line); }
.ex > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ex .muted { font-size: 13.5px; }
.ex .btn { min-width: 150px; justify-content: center; }

.set-grid { display: grid; grid-template-columns: 200px 1fr; gap: 28px; }
.set-cover { display: flex; flex-direction: column; gap: 12px; }
.set-cover .cover .cv-t { font-size: 22px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sw { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line-2); background: var(--cb); cursor: pointer; }
.sw.on { outline: 2px solid var(--accent); outline-offset: 2px; }

.hist { display: grid; grid-template-columns: 220px 1fr; gap: 20px; height: min(60vh, 560px); }
.hist-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; border-right: 1px solid var(--line); padding-right: 12px; }
.hist-list button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; font-size: 14px; }
.hist-list button:hover { background: var(--sunk); }
.hist-list button.on { background: var(--accent-soft); }
.hist-list .muted { font-size: 12.5px; }
.hist-view { display: flex; flex-direction: column; min-height: 0; gap: 12px; }
.hist-view .prose { flex: 1; overflow-y: auto; min-height: 0; padding: 0 8px 0 0; font-size: 16px; }

.pop { position: fixed; z-index: 50; min-width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); display: flex; flex-direction: column; animation: dlg-in .12s var(--ease); }
.pop > button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.pop > button:hover, .pop > button:focus-visible { background: var(--sunk); outline: none; }
.pop > button.danger { color: var(--danger); }
.pop.rs { gap: 8px; padding: 14px; width: 230px; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: none; padding: 7px; cursor: pointer; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--bg); padding: 10px 12px 10px 16px; border-radius: 10px; font-size: 14px; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100vw - 32px); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast button { border: 0; background: none; color: inherit; font-weight: 600; cursor: pointer; padding: 4px 6px; text-decoration: underline; }

/* ---------- reader ---------- */
.reader { --rbg: #FBFAF7; --rink: #1E1D1A; --rmuted: #6E6B63; --rline: #E7E4DC; min-height: 100%; background: var(--rbg); color: var(--rink); }
.reader[data-rt="sepia"] { --rbg: #F4ECD8; --rink: #3B2F22; --rmuted: #7C6A55; --rline: #E3D7BC; }
.reader[data-rt="night"] { --rbg: #121211; --rink: #D9D5CC; --rmuted: #8B877E; --rline: #2A2926; }
.reader .btn.ghost, .reader .icon-btn { color: var(--rmuted); }
.reader .btn.ghost:hover, .reader .icon-btn:hover { background: var(--rline); color: var(--rink); }
.r-prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 5; }
.r-prog i { display: block; height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.r-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--rbg); border-bottom: 1px solid var(--rline); }
.r-book { font-size: 14px; color: var(--rmuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-page { max-width: 680px; margin: 0 auto; padding: 64px 24px 48px; font: 400 var(--rs, 20px)/1.7 var(--serif); animation: page-in .3s var(--ease); }
.reader[data-rf="sans"] .r-page { font-family: var(--sans); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.r-page h1 { font-size: 2em; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 1.1em; }
.r-kicker { display: block; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rmuted); margin-bottom: 14px; }
.r-prose p { margin: 0 0 1em; }
.r-prose h2 { font-size: 1.35em; margin: 1.7em 0 .5em; line-height: 1.25; }
.r-prose h3 { font-size: 1.1em; margin: 1.5em 0 .4em; }
.r-prose blockquote { margin: 1.4em 0; padding-left: 1.1em; border-left: 2px solid var(--rline); font-style: italic; }
.r-prose a { color: var(--accent); }
.r-prose hr { border: 0; text-align: center; margin: 2em 0; }
.r-prose hr::after { content: "* * *"; color: var(--rmuted); letter-spacing: .4em; }
.r-prose img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 0 auto; }
.r-prose figure { margin: 1.6em 0; }
.r-prose figcaption, .r-pic figcaption { font: 400 14px/1.5 var(--sans); color: var(--rmuted); text-align: center; margin-top: 10px; }
.r-prose code { font-size: .85em; background: var(--rline); padding: .1em .35em; border-radius: 4px; }
.r-title { text-align: center; }
.r-cover { width: 220px; margin: 0 auto 40px; }
.r-cover .cv-t { font-size: 22px; }
.r-sub { font-style: italic; color: var(--rmuted); margin: -.6em 0 1em; }
.r-by { font-family: var(--sans); font-size: 15px; letter-spacing: .04em; }
.r-desc { color: var(--rmuted); font-size: .9em; max-width: 480px; margin: 2em auto 0; }
.r-part { text-align: center; padding-top: 16vh; min-height: 50vh; }
.r-part .r-prose { font-style: italic; color: var(--rmuted); }
.r-pic { margin: 0; text-align: center; }
.r-pic img { max-width: 100%; max-height: 76vh; border-radius: 4px; }
.r-noimg { padding: 80px; border: 1px dashed var(--rline); border-radius: 12px; color: var(--rmuted); font: 14px var(--sans); }
.r-nav { display: flex; justify-content: space-between; gap: 12px; max-width: 680px; margin: 0 auto; padding: 0 24px 80px; font-family: var(--sans); }
.r-nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--rink); border: 1px solid var(--rline); border-radius: 12px; padding: 14px 16px; max-width: 48%; transition: background .15s; }
.r-nav a:hover { background: var(--rline); }
.r-prev { color: var(--rmuted) !important; font-size: 14px; }
.r-prev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-next { margin-left: auto; display: grid !important; grid-template-columns: 1fr auto; text-align: right; column-gap: 12px; font-weight: 500; }
.r-next small { grid-column: 1; font-weight: 400; color: var(--rmuted); font-size: 13px; }
.r-next span { grid-column: 1; }
.r-next .ic { grid-column: 2; grid-row: 1 / 3; }
.r-toc { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--rbg); border-left: 1px solid var(--rline); padding: 16px 16px 24px 20px; overflow-y: auto; z-index: 6; animation: toc-in .2s var(--ease); font-family: var(--sans); }
@keyframes toc-in { from { transform: translateX(16px); opacity: 0; } }
.r-toc ol { list-style: none; padding: 0; margin: 14px 0 0; }
.r-toc a { display: block; padding: 7px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; color: var(--rink); }
.r-toc a:hover { background: var(--rline); }
.r-toc li.part a { font-weight: 600; margin-top: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rmuted); }
.r-toc li.on a { background: var(--rline); }

/* embed (landing page) */
.embed .demo-bar { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .today { grid-template-columns: 1fr auto; }
  .t-week { grid-column: 1 / -1; grid-row: 2; }
  .t-streak { border: 0; padding: 0; }
  .tpls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .desk-wrap { grid-template-columns: 1fr; }
  .outline { position: fixed; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); z-index: 20; transform: translateX(-102%); transition: transform .22s var(--ease); }
  .app.ol-open .outline { transform: none; }
  .app.ol-open .scrim { display: block; position: fixed; inset: 0; background: rgba(20,20,18,.35); z-index: 19; }
  .only-sm { display: inline-grid; }
  .bar-top .btn span, .bt-words, #save { display: none; }
  .bar-top .btn { padding: 0 10px; }
  .page { padding: 24px 16px 16px; }
  .pg-title { font-size: 30px; }
  .prose { font-size: 18px; }
  .pg-foot { padding: 8px 12px; }
  .pg-foot .btn span { display: none; }
  .pg-foot [data-pagewords] { white-space: nowrap; }
  .lib { padding: 0 16px 40px; }
  .lib-top .btn span { display: none; }
  .lib-top .btn { padding: 0 10px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .grid2, .set-grid, .hist { grid-template-columns: 1fr; }
  .hist { height: auto; }
  .hist-list { border-right: 0; max-height: 160px; }
  .hist-view .prose { max-height: 40vh; }
  .tpls { grid-template-columns: 1fr; }
  .ex { flex-direction: column; align-items: stretch; gap: 10px; }
  .set-cover { max-width: 180px; }
  .dlg { padding: 22px 18px; }
  .r-page { padding: 40px 18px 32px; }
  .r-nav { padding: 0 16px 56px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .bar-top, .outline, .tools, .pg-foot, .notes { display: none !important; } }

/* ---------- contents grid ---------- */
.ol-head .icon-btn { margin-left: auto; align-self: flex-start; }
.ol-head .icon-btn.on { background: var(--accent-soft); color: var(--accent); }
.gridview { width: 100%; max-width: 1100px; margin: 0 auto; padding: 36px 32px 64px; }
.gv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.gv-head h1 { font: 600 32px/1.15 var(--serif); letter-spacing: -.015em; margin: 6px 0; }
.gv-head p { margin: 0; font-size: 14px; }
.gv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.gc { position: relative; }
.gc a { display: flex; flex-direction: column; gap: 8px; aspect-ratio: 3 / 4; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s var(--ease); cursor: grab; }
.gc a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.gc-k { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gc strong { font: 600 17px/1.2 var(--serif); }
.gc-x { flex: 1; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; font: 400 12.5px/1.55 var(--serif); color: var(--ink-2); }
.gc-x em { color: var(--muted); }
.gc-f { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.gc.t-part a { justify-content: center; align-items: center; text-align: center; background: var(--sunk); }
.gc.t-part strong { font-size: 20px; }
.gc.t-picture a { padding: 10px 10px 12px; }
.gc.t-picture img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 6px; }
.gc-noimg { flex: 1; display: grid; place-items: center; border: 1.5px dashed var(--line-2); border-radius: 6px; color: var(--muted); }
.gc.t-picture strong { font-size: 14px; padding: 0 4px; }
.gc.dragging { opacity: .4; }
.gc.drop-b::before, .gc.drop-a::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 3px; background: var(--accent); border-radius: 2px; }
.gc.drop-b::before { left: -11px; }
.gc.drop-a::after { right: -11px; }

/* ---------- trash ---------- */
.ol-trash { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 7px 8px; border: 0; background: none; border-radius: 7px; color: var(--muted); font-size: 13px; cursor: pointer; }
.ol-trash[hidden] { display: none; }
.ol-trash:hover { background: var(--sunk); color: var(--ink); }
.ol-trash .ic { width: 15px; height: 15px; }
.trash { list-style: none; padding: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; max-height: 50vh; overflow-y: auto; }
.trash li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.trash li + li { border-top: 1px solid var(--line); }
.trash li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.trash strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trash .muted { font-size: 12.5px; }
.trash .ol-ic { width: 18px; }

/* ---------- settings: accent colour and custom CSS ---------- */
.themes { border: 0; padding: 0; margin: 0; }
.themes legend { padding: 0; margin-bottom: 8px; }
.th { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--t); cursor: pointer; }
.th.on { outline: 2px solid var(--t); outline-offset: 3px; }
.adv { border: 1px solid var(--line); border-radius: 10px; }
.adv summary { cursor: pointer; padding: 9px 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.adv textarea { display: block; width: calc(100% - 24px); margin: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); resize: vertical; }
.adv .fine { margin: 8px 12px 12px; }

/* ---------- embeds and code ---------- */
.prose .embed, .r-prose .embed { margin: 1.6em 0; position: relative; }
.prose .embed iframe, .r-prose .embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: var(--sunk); }
.prose .embed { outline: 1px solid var(--line); outline-offset: 6px; border-radius: 6px; margin-bottom: 2.8em; }
.prose .embed::after { content: "Video · click beside it and press Backspace to remove"; position: absolute; left: 0; bottom: -30px; font: 12px var(--sans); color: var(--muted); }
.prose pre, .r-prose pre { white-space: pre-wrap; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.r-prose pre { background: var(--rline); }
.r-prose pre code { background: none; padding: 0; font-size: inherit; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-literal { color: #7A3EB1; }
.hljs-string, .hljs-attr, .hljs-template-variable { color: #2E7D4F; }
.hljs-number, .hljs-symbol, .hljs-bullet { color: #B5541C; }
.hljs-comment, .hljs-quote { color: var(--rmuted, #8A867C); font-style: italic; }
.hljs-title, .hljs-section { color: #2F54C8; }
.hljs-type, .hljs-tag, .hljs-name { color: #A23C5C; }
.reader[data-rt="night"] .hljs-keyword, .reader[data-rt="night"] .hljs-selector-tag, .reader[data-rt="night"] .hljs-built_in, .reader[data-rt="night"] .hljs-literal { color: #C9A2F2; }
.reader[data-rt="night"] .hljs-string, .reader[data-rt="night"] .hljs-attr { color: #8FD3A8; }
.reader[data-rt="night"] .hljs-number, .reader[data-rt="night"] .hljs-symbol { color: #F2A77A; }
.reader[data-rt="night"] .hljs-title, .reader[data-rt="night"] .hljs-section { color: #9DB3FF; }
.reader[data-rt="night"] .hljs-type, .reader[data-rt="night"] .hljs-tag, .reader[data-rt="night"] .hljs-name { color: #F0A2BD; }

/* ---------- reader: accent, search, resume, tools, zoom ---------- */
.reader { --accent: var(--acc-l, #2F54C8); }
.reader[data-rt="night"] { --accent: var(--acc-d, #8EA6FF); }
.r-kicker { color: var(--accent); }
.r-prose blockquote { border-left-color: var(--accent); }
.r-resume { margin: 28px auto 0; font-family: var(--sans); }
.reader .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--rbg); }
.reader .btn.r-resume:not(.primary) { background: transparent; border-color: var(--rline); color: var(--rink); }
.r-search { width: 100%; margin: 14px 0 6px; border: 1px solid var(--rline); background: transparent; color: var(--rink); border-radius: 8px; padding: 8px 10px; font: 14px var(--sans); }
.r-search:focus { outline: none; border-color: var(--accent); }
.r-count { font-size: 13px; color: var(--rmuted); margin: 10px 2px 6px; }
.r-res { list-style: none; padding: 0; margin: 0; }
.r-res a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--rink); }
.r-res a:hover { background: var(--rline); }
.r-res strong { font-size: 14px; font-weight: 600; }
.r-res span { grid-column: 1; font-size: 13px; line-height: 1.45; color: var(--rmuted); }
.r-res em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 12px; color: var(--rmuted); }
.reader mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.r-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rline); }
.reader .r-tools .btn { background: transparent; border-color: var(--rline); color: var(--rink); }
.r-page img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(12, 12, 11, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; opacity: 0; transition: opacity .18s; cursor: zoom-out; }
.lightbox.in { opacity: 1; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 4px; }
.lightbox p { color: #E8E5DE; font: 14px var(--sans); margin: 0; text-align: center; max-width: 640px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #E8E5DE; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 760px) {
  .gridview { padding: 22px 16px 48px; }
  .gv { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gv-head .btn span { display: none; }
}

/* ---------- SVG covers ---------- */
.cover.svg { padding: 0; background: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.cover.svg svg { display: block; width: 100%; height: 100%; }
.cover.mini.svg { padding: 0; }
.cover-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 4px; flex: none; transition: transform .15s var(--ease); }
.cover-btn:hover { transform: scale(1.05); }
:root[data-theme="dark"] .cover.svg { box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover.svg { box-shadow: 0 0 0 1px rgba(255,255,255,.1); } }

/* ---------- theme switch ---------- */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); flex: none; }
.theme-switch button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { background: var(--sunk); color: var(--ink); }
.theme-switch .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* ---------- cover designer ---------- */
.dlg.xwide { width: min(1080px, calc(100vw - 32px)); }
.cd { display: grid; grid-template-columns: 300px 1fr; gap: 28px; height: min(640px, calc(100vh - 230px)); min-height: 0; }
.cd > * { min-height: 0; }
.cd-left { display: flex; flex-direction: column; gap: 12px; }
.cd-preview { aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--sunk); }
.cd-preview svg, .cd-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fine.center, .center { text-align: center; }
.cd-panel { overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 22px; transition: opacity .2s; }
.cd-panel.dim > section:not(:last-child) { opacity: .45; }
.cd-panel h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 10px; }
.cd-panel h3 .muted { font-weight: 400; }
.cd-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.cd-style { display: flex; flex-direction: column; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.cd-thumb { display: block; aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .15s var(--ease), box-shadow .15s; }
.cd-thumb svg { display: block; width: 100%; height: 100%; }
.cd-style:hover .cd-thumb { transform: translateY(-2px); }
.cd-style.on .cd-thumb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.cd-name { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 12.5px; font-weight: 500; }
.prem { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; background: #F2C14E; color: #2A2218; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.prem .ic { width: 11px; height: 11px; }
.cd-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-fonts button { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 16px; cursor: pointer; }
.cd-fonts button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cd-pals { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.cd-pals button { position: relative; aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 8px; background: var(--a); cursor: pointer; }
.cd-pals button i { position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--b); box-shadow: 0 0 0 2px var(--a); }
.cd-pals button.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.cd-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.cd-custom label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.cd-custom input[type="color"] { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.cd-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.cd-custom input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.cd-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cd-foot .prem { margin-right: 4px; }
@media (max-width: 760px) {
  .cd { grid-template-columns: 1fr; height: auto; }
  .cd-left { max-width: 220px; margin: 0 auto; }
  .cd-panel { overflow: visible; }
  .cd-pals { grid-template-columns: repeat(6, 1fr); }
  .dlg.xwide { max-height: calc(100vh - 24px); overflow-y: auto; }
}
