/* Recall console. Builds on recall.css tokens. */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--ivory); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--navy); color: #C9CFDB; }
.side :focus-visible { outline-color: var(--brass); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; color: var(--ivory); }
.side-brand span { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: rgba(243, 238, 227, 0.7); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgba(243, 238, 227, 0.06); color: var(--ivory); } }
.side-nav a[aria-current='page'] { background: rgba(243, 238, 227, 0.09); color: var(--ivory); }
.side-nav a[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brass); }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brass); color: var(--navy); font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.side-foot { margin-top: auto; display: grid; gap: 16px; padding: 0 6px; }
.side-org { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(243, 238, 227, 0.05); font-size: 13px; color: var(--ivory); }
.side-org .muted { color: rgba(243, 238, 227, 0.55); font-size: 12px; }
.org-dot { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brass); color: var(--navy); font-size: 12px; font-weight: 700; }
.side-db { padding-left: 6px; color: rgba(243, 238, 227, 0.75); }

/* Main */
.main { min-width: 0; padding: 14px clamp(16px, 2.6vw, 32px) 32px; }
.demo-banner { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 6px; background: rgba(127, 91, 27, 0.1); color: var(--brass-deep); font-size: 11.5px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.top-kicker { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.top-title { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; }
.asrole { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-2); }
.asrole span { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.asrole select { height: 32px; border: 0; background: transparent; font-weight: 600; font-size: 14px; padding: 0 4px; border-radius: 6px; max-width: 100%; min-width: 0; }
.asrole:focus-within { border-color: var(--ink); }
.asrole select:focus-visible { outline-offset: 1px; }

.view[data-entering] { animation: viewIn 360ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ASK */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: 16px; height: calc(100vh - 150px); min-height: 560px; }
.chat-col { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.thread { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.msg-q { align-self: flex-end; max-width: 80%; display: grid; justify-items: end; gap: 4px; }
.msg-q p { padding: 11px 15px; border-radius: 14px 14px 4px 14px; background: var(--navy); color: var(--ivory); font-size: 15px; line-height: 1.45; }
.msg-q small { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.msg-a { max-width: 92%; display: grid; gap: 10px; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.msg-a[data-enter] { opacity: 0; transform: translateY(6px); }
.a-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.a-status i { width: 7px; height: 7px; border-radius: 50%; background: #5E9A70; }
.a-status[data-state='search'] i { background: var(--brass); animation: pulse 1.1s var(--ease-in-out) infinite; }
.a-status[data-state='none'] i, .a-status[data-state='noaccess'] i { background: var(--brass); }
.a-body { padding: 14px 16px; border-radius: 4px 14px 14px 14px; background: var(--ivory); font-size: 15px; line-height: 1.62; color: var(--ink); }
.a-body b { font-weight: 700; }
.a-body:lang(hi) { font-family: 'Noto Sans Devanagari', var(--font-ui); }
.a-body:lang(te) { font-family: 'Noto Sans Telugu', var(--font-ui); }
.msg-q p:lang(hi) { font-family: 'Noto Sans Devanagari', var(--font-ui); }
.msg-q p:lang(te) { font-family: 'Noto Sans Telugu', var(--font-ui); }
.a-idk .a-body { background: transparent; border: 1px dashed rgba(127, 91, 27, 0.45); }
.a-flag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-deep); }
.a-checked { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
button.cite { cursor: pointer; background: rgba(127, 91, 27, 0.12); color: var(--brass-deep); border-color: rgba(127, 91, 27, 0.4); min-width: 22px; height: 21px; }
button.cite[data-on] { background: var(--navy); color: var(--brass-hi); border-color: var(--navy); }
@media (hover: hover) and (pointer: fine) { button.cite:hover { background: rgba(127, 91, 27, 0.22); } }
.a-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.a-src { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px 6px 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); font-size: 12.5px; text-align: left; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.a-src:active { transform: scale(0.97); }
.a-src .cite { margin: 0; }
.a-src span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-src small { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.a-src[data-on] { border-color: var(--navy); background: var(--ivory); }
@media (hover: hover) and (pointer: fine) { .a-src:hover { border-color: var(--ink-2); } }
.a-super { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.a-super s { text-decoration-color: rgba(88, 99, 122, 0.6); }

.composer { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--paper); }
.sugs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.sug { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ivory); font-size: 13px; white-space: nowrap; transition: border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.sug:active { transform: scale(0.97); }
.sug:lang(hi) { font-family: 'Noto Sans Devanagari', var(--font-ui); }
.sug:lang(te) { font-family: 'Noto Sans Telugu', var(--font-ui); }
.sug.sug-idk { border-style: dashed; }
@media (hover: hover) and (pointer: fine) { .sug:hover { border-color: var(--ink); } }
.ask-form { display: flex; gap: 8px; align-items: center; height: 50px; padding: 0 5px 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.ask-form:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12, 22, 40, 0.07); }
.ask-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; }
.ask-form input::placeholder { color: #737D90; }
.send { flex: none; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: var(--brass-hi); }
.send[disabled] { opacity: 0.5; cursor: default; }
.composer-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Viewer */
.viewer { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); background: var(--navy); color: var(--ivory); overflow: hidden; }
.viewer :focus-visible { outline-color: var(--brass); }
.v-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.v-code { font-size: 11px; color: var(--brass); letter-spacing: 0.04em; }
.v-title { margin-top: 4px; font-family: var(--font-display); font-size: 21px; line-height: 1.2; font-variation-settings: 'opsz' 30; }
.v-close { display: none; color: var(--ivory); }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.icon-btn:active { transform: scale(0.95); }
.v-tabs { display: flex; gap: 6px; padding: 0 18px 12px; flex-wrap: wrap; }
.v-tab { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 5px; border-radius: 8px; border: 1px solid rgba(243, 238, 227, 0.16); font-size: 12px; color: #C9CFDB; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.v-tab .cite { margin: 0; }
.v-tab[aria-selected='true'] { border-color: var(--brass); background: rgba(200, 160, 96, 0.1); color: var(--ivory); }
.v-stage { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 18px; }
.vpage { border-radius: 6px; background: var(--paper); color: #1C2433; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); transition: opacity 260ms ease, transform 420ms var(--ease-out); }
.vpage[data-swap] { opacity: 0; transform: translateX(-10px); transition: none; }
.vpage .pg-body { font-size: 14px; padding: 18px 20px 22px; }
.vpage .pg-body h4 { font-size: 14px; }
.vpage .pg-head { font-size: 10.5px; padding: 11px 16px; }
.vpage .hl::before { transform: none; transition: transform 900ms var(--ease-out) 150ms; }
.vpage[data-swap] .hl::before { transform: scaleX(0); transition: none; }
.vpage .pg-table { font-size: 12px; }
.vpage .pg-empty { padding: 60px 20px; text-align: center; color: #5A6273; font-family: var(--font-ui); }
.v-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(243, 238, 227, 0.1); }
.v-foot span { font-size: 11px; color: #98A3B9; min-width: 0; }
.v-foot .btn { height: 36px; color: var(--ivory); border-color: rgba(243, 238, 227, 0.25); flex: none; }
.viewer-scrim { display: none; }

/* Boxes, tables */
.box { padding: 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.box-head h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; max-width: none; letter-spacing: -0.01em; }
.table-wrap { border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.tbl tbody tr { transition: background-color 600ms ease; }
.tbl tbody tr[data-fresh] { background: rgba(200, 160, 96, 0.14); transition: none; }
.d-name { font-weight: 600; }
.d-code { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.d-folder { white-space: nowrap; color: var(--ink-2); }
.roles { display: flex; flex-wrap: wrap; gap: 4px; }
.role-chip { font-size: 11.5px; padding: 2px 7px; border-radius: 5px; background: var(--ivory-2); color: var(--ink-2); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-ok { color: #2F6B45; }
.st-run { color: var(--brass-deep); }
.st-warn { color: #9A3D1F; }
.st-old { color: var(--muted); }
.st-old::before { background: transparent; border: 1.3px solid currentColor; }
.prog { display: block; width: 110px; height: 5px; margin-top: 6px; border-radius: 999px; background: var(--ivory-2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 400ms var(--ease-out); }

/* Documents */
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.folders { display: grid; gap: 2px; padding: 10px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); position: sticky; top: 16px; }
.folder { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; text-align: left; color: var(--ink-2); transition: background-color var(--t-fast) ease; }
.folder b { margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.folder svg { flex: none; color: var(--muted); }
.folder[aria-pressed='true'] { background: var(--navy); color: var(--ivory); }
.folder[aria-pressed='true'] svg, .folder[aria-pressed='true'] b { color: var(--brass-hi); }
@media (hover: hover) and (pointer: fine) { .folder:not([aria-pressed='true']):hover { background: var(--ivory); } }
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.docs { min-width: 820px; }
.btn-ink svg { flex: none; }

/* Access */
.acc-intro { max-width: 76ch; margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.matrix-tbl { min-width: 760px; }
.matrix-tbl th[scope='col'] { text-align: center; white-space: normal; line-height: 1.3; vertical-align: bottom; }
.matrix-tbl th[scope='row'] { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--line); }
.matrix-tbl th[scope='row'] small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.matrix-tbl tr:last-child th { border-bottom: 0; }
.matrix-tbl td { text-align: center; }
.tog { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; border: 1.4px solid var(--line-2); background: transparent; color: transparent; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.tog:active { transform: scale(0.92); }
.tog[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--brass-hi); }
@media (hover: hover) and (pointer: fine) { .tog:hover { border-color: var(--ink); } }
.acc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.acc-card { padding: 16px 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.acc-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.acc-card p { font-size: 13.5px; color: var(--ink-2); }

/* Log */
.gaps-box { margin-bottom: 16px; }
.gap-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.gap-list li:first-child { border-top: 0; }
.gap-list .g-n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.gap-list .g-own { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--ivory-2); white-space: nowrap; }
.gap-list .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.gap-list li[data-done] .btn { color: #2F6B45; border-color: rgba(47, 107, 69, 0.4); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 500; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip b { font-weight: 500; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.chip[aria-pressed='true'] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.chip[aria-pressed='true'] b { color: var(--brass-hi); }
.log { min-width: 860px; }
.log td { vertical-align: top; }
.log .l-when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.log .l-who { white-space: nowrap; }
.log .l-who small { display: block; font-size: 12px; color: var(--muted); }
.log .l-q { max-width: 34ch; }
.log .l-q:lang(hi), .log .l-q .deva { font-family: 'Noto Sans Devanagari', var(--font-ui); }
.log .l-src { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.r { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.r-ok { background: rgba(47, 107, 69, 0.1); color: #2F6B45; }
.r-none { background: rgba(127, 91, 27, 0.12); color: var(--brass-deep); }
.r-deny { background: var(--ivory-2); color: var(--ink-2); }
.empty { padding: 36px; text-align: center; color: var(--muted); }

.demo-note { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* Toast on this palette */
.toast { background: var(--navy); color: var(--ivory); }

/* Responsive */
@media (max-width: 1180px) {
  .ask-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); }
  .acc-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  body.app { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .side { position: fixed; z-index: 60; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(243, 238, 227, 0.08); }
  .side-brand, .side-foot { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .side-nav a { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; text-align: center; }
  .side-nav a[aria-current='page']::before { left: 30%; right: 30%; top: -6px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .side-badge { position: absolute; top: 2px; right: calc(50% - 26px); min-width: 18px; height: 16px; font-size: 10px; }

  .ask-grid { grid-template-columns: minmax(0, 1fr); height: calc(100svh - 230px); min-height: 480px; }
  .viewer { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: min(86svh, 720px); border-radius: 18px 18px 0 0; transform: translateY(100%); visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s 260ms; box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.4); }
  .viewer[data-open] { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer); }
  .v-close { display: grid; }
  .viewer-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(12, 22, 40, 0.4); opacity: 0; transition: opacity 260ms ease; }
  .viewer-scrim[data-open] { opacity: 1; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .folders { position: static; display: flex; overflow-x: auto; padding: 6px; }
  .folder { flex: none; width: auto; white-space: nowrap; }
  .folder svg { display: none; }
}
@media (max-width: 680px) {
  .main { padding-top: 12px; }
  .top { margin-bottom: 14px; }
  .top-title { font-size: 34px; }
  .asrole { width: 100%; }
  .asrole select { flex: 1; }
  .thread { padding: 16px 14px; }
  .msg-q { max-width: 90%; }
  .msg-a { max-width: 100%; }
  .composer { padding: 10px 12px 12px; }
  .gap-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .gap-list .g-n { grid-column: 1; grid-row: 2; }
  .gap-list .g-own { grid-column: 2; grid-row: 1; justify-self: end; }
  .gap-list .btn { grid-column: 2; grid-row: 2; }
}

/* ---- fixes: close button only on the sheet; answer width; mobile flow ---- */
.icon-btn.v-close { display: none; }
.msg-a { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.a-srcs { min-width: 0; }
.a-src { min-width: 0; }
.a-src small { overflow: hidden; text-overflow: ellipsis; }
.msg-a, .msg-q { scroll-margin-bottom: 24px; }
.matrix-tbl th[scope='row'] { position: sticky; left: 0; z-index: 1; background: var(--paper); }
@media (max-width: 980px) {
  .icon-btn.v-close { display: grid; }
  .ask-grid { height: auto; min-height: 0; }
  .chat-col { overflow: visible; }
  .thread { overflow: visible; }
  .composer { position: sticky; bottom: 64px; z-index: 5; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 -12px 24px -18px rgba(14, 26, 47, 0.35); }
  .msg-a, .msg-q { scroll-margin-bottom: 250px; }
}
@media (max-width: 680px) {
  .docs, .log { min-width: 0; }
  .docs thead, .log thead { display: none; }
  .docs tr, .log tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .docs tr:last-child, .log tr:last-child { border-bottom: 0; }
  .docs td, .log td { display: block; padding: 0; border: 0; }
  .docs td:nth-child(1) { grid-column: 1 / -1; }
  .docs td:nth-child(2) { font-size: 13px; }
  .docs td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .docs td:nth-child(3)::after { content: ' pages'; font-family: var(--font-ui); color: var(--muted); }
  .docs td:nth-child(4) { grid-column: 1; }
  .docs td:nth-child(5) { grid-column: 1 / -1; }
  .docs td:nth-child(6) { grid-column: 2; grid-row: 3; }
  .log td.l-when { grid-column: 2; grid-row: 1; }
  .log td.l-who { grid-column: 1; grid-row: 1; }
  .log td.l-who small { display: inline; margin-left: 6px; }
  .log td.l-q { grid-column: 1 / -1; max-width: none; font-weight: 500; }
  .log td:nth-child(4) { grid-column: 1; }
  .log td.l-src { grid-column: 1 / -1; }
  .log .empty { grid-column: 1 / -1; }
}
.viewer-scrim[hidden] { display: none !important; }
