/* the unified shell: layout only; colours and type come from ui-theme tokens, components from their own css */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.45 var(--f-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); padding: env(safe-area-inset-top, 0px) 0 calc(70px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
main, #top { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter, 16px); }
#top { display: flex; align-items: baseline; justify-content: space-between; padding-block: 12px 4px; }
#top h1 { margin: 0; font-family: var(--f-display, var(--f-he)); color: var(--gold); font-size: 28px; font-weight: normal; }
#top .sub { color: var(--mute); font-size: 13px; }
.loading { text-align: center; color: var(--mute); padding: 40px 0; }
.today-head { color: var(--gold); font-size: 13px; margin: 10px 0 4px; }
.owed { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-sm, 10px); background: var(--chipbg); color: var(--accent); text-decoration: none; margin: 10px 0; font-size: 14px; }
.lim { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; }
.lim .ck { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: none; font-size: 18px; color: var(--ok, var(--targ)); cursor: pointer; }
.lim.done .ck { border-color: var(--ok, var(--targ)); background: color-mix(in srgb, var(--ok, var(--targ)) 14%, transparent); }
.lim .nm { font-family: var(--f-display, var(--f-he)); font-size: 19px; color: var(--accent); }
.lim .pt { color: var(--ink-2, var(--ink)); font-size: 14px; margin-top: 2px; }
.lim .fine { margin: 2px 0 0; }
.lim .btn.open { white-space: nowrap; }
.lim.off { opacity: .6; }
.prog { display: flex; align-items: center; gap: 10px; }
.prog .qbar { flex: 1; }
.cm-host { padding: 4px 0; }
.hl-sheet .kinds { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.hl-sheet .kinds button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--chipbg); color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.hl-sheet .kinds button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hl-sheet .kinds i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hl-sheet blockquote { font-family: var(--f-he); font-size: 18px; margin: 4px 0 10px; color: var(--ink-2, var(--ink)); }
.place-row select { max-width: 60%; }
.lib-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.lib-row:first-of-type { border-top: 0; }
.lib-row .nm { flex: 1; font-family: var(--f-display, var(--f-he)); font-size: 18px; color: var(--accent); }
.lib-row .pct { color: var(--mute); font-size: 13px; min-width: 3.5em; text-align: end; }
#tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; }
.nb-sub { margin: 10px 0 2px; font-size: 13px; color: var(--mute); font-weight: normal; } .nb-sub:empty { display: none; }
