/* Daily Reads: same look as the other Gins apps (Plus Jakarta Sans, brand #0B6B4E). Navy #1F3A5F only on the icon tile and avatar. Read covers and charts are content. */
:root {
  --bg: #F4F7F5; --card: #FFFFFF; --line: #E1E8E4; --line2: #EEF2F0; --fg: #0E1C17; --muted: #52625C;
  --brand: #0B6B4E; --brand-fg: #FFFFFF; --hero: #0B3D2E; --hero-2: #072B20; --hero-sub: #CFE6DC; --soft: #E3ECE7;
  --ok-fg: #166534; --ok-bg: #DCFCE7; --warn-fg: #92400E; --warn-bg: #FEF3C7; --bad-fg: #991B1B; --bad-bg: #FEE2E2; --none-fg: #475569; --none-bg: #EEF2F6;
  --input: #C9D4CF; --accent: #1F3A5F; --shadow: 0 1px 2px rgba(7, 43, 32, .06), 0 6px 18px rgba(7, 43, 32, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1310; --card: #121E19; --line: #23332C; --line2: #1A2822; --fg: #E6EFEA; --muted: #9DB2A9;
    --brand: #3CC58F; --brand-fg: #062117; --hero: #0F3B2D; --hero-2: #0A2A20; --hero-sub: #BFDCCF; --soft: #1C2B25;
    --ok-fg: #6EE7A0; --ok-bg: #11291C; --warn-fg: #FCD34D; --warn-bg: #2C220B; --bad-fg: #FCA5A5; --bad-bg: #2E1515; --none-fg: #B4C0CC; --none-bg: #1E2630;
    --input: #33463E; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1310; --card: #121E19; --line: #23332C; --line2: #1A2822; --fg: #E6EFEA; --muted: #9DB2A9;
  --brand: #3CC58F; --brand-fg: #062117; --hero: #0F3B2D; --hero-2: #0A2A20; --hero-sub: #BFDCCF; --soft: #1C2B25;
  --ok-fg: #6EE7A0; --ok-bg: #11291C; --warn-fg: #FCD34D; --warn-bg: #2C220B; --bad-fg: #FCA5A5; --bad-bg: #2E1515; --none-fg: #B4C0CC; --none-bg: #1E2630;
  --input: #33463E; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .04em; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- shell: bottom tabs on a phone, icon rail on iPad, sidebar on desktop ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.main { width: 100%; max-width: 760px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: flex-end;
  background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; min-height: 48px; padding: 4px 0; color: var(--muted);
  font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 12px; }
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav .addic { width: 54px; height: 54px; margin-top: -24px; border-radius: 18px; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(11, 107, 78, .35); }
.nav .addic svg { width: 26px; height: 26px; }
.nav .addbtn { color: var(--fg); }
.nav .brand, .nav .wideonly { display: none; }
@media (min-width: 700px) {
  .main { padding: 24px 28px 40px calc(104px + 28px); max-width: 980px; }
  .nav { top: 0; right: auto; width: 96px; flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px; border-top: 0; border-right: 1px solid var(--line); padding: 18px 0; overflow-y: auto; }
  .nav .phoneonly { display: none; }
  .nav .wideonly { display: flex; }
  .nav .brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
  .nav .brand span:last-child { display: none; }
  .nav .addic { margin-top: 0; width: 48px; height: 48px; border-radius: 16px; }
  .nav a { min-width: 80px; }
}
@media (min-width: 1024px) {
  .main { padding-left: calc(248px + 32px); max-width: none; padding-right: 32px; }
  .main > * { max-width: 1180px; }
  .nav { width: 248px; align-items: stretch; padding: 20px 14px; gap: 4px; }
  .nav a { flex-direction: row; gap: 12px; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--fg); }
  .nav a[aria-current="page"] { background: var(--soft); color: var(--brand); font-weight: 700; }
  .nav .brand { flex-direction: row; gap: 12px; padding: 0 8px 12px; }
  .nav .brand span:last-child { display: flex; flex-direction: column; }
  .nav .brand small { color: var(--muted); font-size: 12px; }
  .nav .addbtn { order: -1; justify-content: center; background: var(--brand); color: var(--brand-fg) !important; font-weight: 700 !important; margin: 0 0 8px; }
  .nav .addbtn .addic { width: auto; height: auto; background: none; box-shadow: none; color: inherit; }
  .nav .addbtn .addic svg { width: 20px; height: 20px; }
  .nav .brand { order: -2; }
}
.tile { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.tile svg { width: 24px; height: 24px; }

/* ---------- headers, banners ---------- */
.top { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.top h1 { flex: 1; font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: flex; flex-direction: column; }
.top h1 .sub { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); display: grid; place-items: center; flex: none; text-decoration: none; }
.iconbtn.bare { border: 0; background: none; }
.iconbtn svg { width: 22px; height: 22px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--none-bg); color: var(--none-fg); font-size: 13px; }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); } .banner.bad { background: var(--bad-bg); color: var(--bad-fg); }
.banner svg { width: 18px; height: 18px; } .banner span { flex: 1; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 32px; color: var(--brand); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

/* ---------- cards, rows ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.card.list { padding: 2px 16px; }
.card.empty, .empty { color: var(--muted); text-align: center; padding: 22px 16px; }
.section { display: flex; flex-direction: column; gap: 8px; }
.section .head h2 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.irow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line2); text-decoration: none; color: inherit; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.card.list > .irow:first-child, .card.list > :first-child .irow { border-top: 0; }
.irow.sel { background: var(--soft); margin: 0 -16px; padding: 11px 16px; width: calc(100% + 32px); }
.irow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.irow .t1 { font-size: 14px; font-weight: 600; } .irow .t2 { font-size: 12px; color: var(--muted); }
.irow .end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.irow .chev { width: 16px; height: 16px; color: var(--muted); }
.logo { width: 36px; height: 36px; border-radius: 12px; background: var(--line2); color: var(--muted); display: grid; place-items: center; flex: none; }
.logo svg { width: 19px; height: 19px; }
.logo.bad { background: var(--bad-bg); color: var(--bad-fg); } .logo.warn { background: var(--warn-bg); color: var(--warn-fg); } .logo.brand { background: var(--soft); color: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok-fg); } .pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill.bad { background: var(--bad-bg); color: var(--bad-fg); } .pill.none { background: var(--none-bg); color: var(--none-fg); }
.pend { font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn-fg); background: var(--warn-bg); padding: 1px 6px; border-radius: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.vchip { padding: 0 14px; min-height: 38px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 13px; }
.vchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.seg { display: inline-flex; gap: 6px; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 13px; }
.seg button[aria-pressed="true"] { border: 1.5px solid var(--brand); background: var(--soft); color: var(--brand); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--none-bg); color: var(--none-fg); font-size: 13px; }
.note.warn { background: var(--warn-bg); color: var(--warn-fg); }
.note svg { width: 18px; height: 18px; margin-top: 1px; }
.badge { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--soft); padding: 4px 10px; border-radius: 99px; text-decoration: none; white-space: nowrap; }

.form { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--input); background: var(--card); font-size: 16px; font-weight: 600; }
.field input:disabled { opacity: .5; }
.field small { font-weight: 400; color: var(--muted); font-size: 12px; min-height: 16px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.toggle span { display: flex; flex-direction: column; font-size: 14px; } .toggle small { color: var(--muted); font-size: 12px; }
.toggle input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--input); position: relative; flex: none; margin: 0; cursor: pointer; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--brand); } .toggle input:checked::after { transform: translateX(20px); }
.paid { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.paid legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.rchip input { position: absolute; opacity: 0; pointer-events: none; }
.rchip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 13px; cursor: pointer; }
.rchip input:checked + span { border: 1.5px solid var(--brand); background: var(--soft); color: var(--brand); }
.rchip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.err { color: var(--bad-fg); font-size: 13px; min-height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--brand); color: var(--brand-fg); } .btn.primary:disabled { opacity: .5; }
.btn.line { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn.block { width: 100%; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }


.spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.wrap { white-space: normal; }
.fold summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.phoneonly { } @media (min-width: 700px) { .phoneonly { display: none !important; } }
.navfoot { display: none; }
@media (min-width: 1024px) { .navfoot { display: block; margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 10px; } }
.nav a:nth-of-type(4) { } /* Settings is a tab on phones too */

/* ---------- Daily Reads: Today ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; text-decoration: none; flex: none; }
.stats3 .stat b { display: flex; align-items: center; gap: 4px; } .stats3 .fl { width: 20px; height: 20px; color: #EA580C; }
.tgrid, .igrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.tgrid .col, .igrid .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1024px) { .tgrid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .igrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--line2); color: var(--muted); white-space: nowrap; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cover { background-size: cover; background-position: center; background-color: var(--soft); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.cover span { font-size: 28px; opacity: .9; } .cover.loaded span { display: none; }
.card.hero { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.herocover { aspect-ratio: 16 / 9; width: 100%; background-color: #fff; background-size: contain; background-repeat: no-repeat; }
.herocover:not(.loaded) { background-size: cover; }
.card.hero .in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.card.hero h2 { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.card.hero p { color: var(--muted); font-size: 14px; }
@media (min-width: 1024px) { .card.hero { flex-direction: row; } .herocover { width: 52%; aspect-ratio: 16 / 9; align-self: center; } .card.hero .in { flex: 1; justify-content: center; } }
.bar { height: 6px; border-radius: 99px; background: var(--line2); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.small { font-size: 12px; }

/* ---------- rows ---------- */
.rrow { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 0; background: none; border: 0; border-top: 1px solid var(--line2); text-align: left; color: inherit; }
.card.list > .rrow:first-child { border-top: 0; }
.rrow.sel { background: var(--soft); margin: 0 -16px; padding: 11px 16px; width: calc(100% + 32px); }
.rrow .thumb { width: 76px; height: 48px; border-radius: 10px; flex: none; background-color: #fff; }
.rrow .thumb span { font-size: 18px; }
.rrow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rrow .t1 { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rrow .t2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.rrow .sv { display: inline-flex; gap: 3px; align-items: center; } .rrow .sv svg { width: 13px; height: 13px; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--line2); color: var(--muted); }
.stars { color: #F5A524; letter-spacing: 1px; font-size: 12px; }

/* ---------- Library ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; min-height: 46px; color: var(--muted); }
.search svg { width: 18px; height: 18px; } .search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--fg); min-height: 44px; }
.fl { gap: 6px; } .fl .vchip { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.wk { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 6px 2px -6px; }
.splitshell .main.mainsplit { padding: 0; max-width: none; display: flex; flex-direction: row; gap: 0; height: 100vh; height: 100dvh; }
@media (min-width: 900px) {
  .splitshell .main.mainsplit { padding-left: 96px; }
  .lp { width: 380px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
  .lphead { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 10px; }
  .lpscroll { flex: 1; overflow: auto; padding: 4px 18px 24px; display: flex; flex-direction: column; gap: 12px; }
  .rp { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
  .rpempty { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .rpempty svg { width: 40px; height: 40px; }
}
@media (min-width: 1024px) { .splitshell .main.mainsplit { padding-left: 248px; } .lp { width: 400px; } }

/* ---------- Reader ---------- */
.readerpage { height: 100vh; height: 100dvh; }
.reader { --fs: 17px; --lh: 1.68; height: 100%; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.reader.sepia { --bg: #F6EFDF; --card: #FFF9EC; --fg: #3B2F22; --muted: #7A6A55; --line: #E7DCC5; --line2: #EFE5CF; --soft: #EFE5CF; background: var(--bg); color: var(--fg); }
.rtop { flex: none; background: var(--bg); padding-top: env(safe-area-inset-top); z-index: 2; }
.rtop .r { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; }
.rstat { font-size: 13px; font-weight: 700; color: var(--muted); }
.rbar { height: 3px; background: var(--line2); } .rbar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.rscroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.rd { max-width: 680px; margin: 0 auto; padding: 8px 20px 130px; }
.rcover { width: 100%; display: block; border-radius: 16px; margin: 6px 0 14px; background: #fff; min-height: 60px; }
.rcover.gen { aspect-ratio: 16 / 9; }
.rd h1 { font-size: 25px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; }
.rd .hook { font-size: calc(var(--fs) - 1px); color: var(--muted); font-style: italic; margin: 8px 0 6px; line-height: 1.5; }
.rd h2 { font-size: calc(var(--fs) + 3px); font-weight: 800; margin: 26px 0 8px; line-height: 1.3; }
.rd h3 { font-size: calc(var(--fs) + 1px); font-weight: 700; margin: 18px 0 6px; }
.rd p, .rd li { font-size: var(--fs); line-height: var(--lh); }
.rd p { margin: 0 0 14px; } .rd ul, .rd ol { margin: 0 0 14px; padding-left: 22px; } .rd li { margin-bottom: 6px; }
.rd a { color: var(--brand); }
.rd figure { margin: 18px 0; } .rd figure img { width: 100%; border-radius: 12px; display: block; background: #fff; min-height: 80px; cursor: zoom-in; }
.rd figure img.noimg { min-height: 0; } .rd figcaption { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 6px; }
.sidebox { display: block; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 0 12px 12px 0; padding: 12px 14px; margin: 16px 0; font-size: calc(var(--fs) - 2px); line-height: 1.55; }
.sidebox b { display: block; margin-bottom: 4px; }
.rd blockquote { margin: 16px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
.rd hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.quiz { margin-top: 10px; } .qcard { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.qq { font-weight: 700; font-size: 15px; }
.qo { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 13px; font-size: 14.5px; font-weight: 600; min-height: 44px; }
.qo.ok { border-color: #12B76A; background: var(--ok-bg); color: var(--ok-fg); } .qo.no { border-color: #F04438; background: var(--bad-bg); color: var(--bad-fg); }
.qo:disabled { cursor: default; } .why { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.srcs ul { padding-left: 20px; } .foot { font-size: 13px !important; color: var(--muted); font-style: italic; }
.endrow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.endrow .linkbtn svg { width: 16px; height: 16px; }
.dock { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 8px; box-shadow: 0 10px 30px rgba(7, 43, 32, .14); z-index: 3; }
.dock .d { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: var(--muted); font-size: 10.5px; font-weight: 700; min-width: 46px; min-height: 44px; justify-content: center; padding: 0 2px; }
.dock .d svg { width: 20px; height: 20px; } .dock .d.on { color: var(--brand); }
.dock .markbtn { min-height: 42px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.dock .markbtn svg { width: 16px; height: 16px; }
@media (max-width: 370px) { .dock .d span { display: none; } }
.ratebig { display: flex; justify-content: center; gap: 6px; margin: 6px 0 14px; }
.ratebig button { font-size: 34px; background: none; border: 0; color: var(--g-line); min-width: 48px; min-height: 48px; } .ratebig button[aria-pressed="true"] { color: #F5A524; }
.ta { width: 100%; box-sizing: border-box; border: 1px solid var(--g-input); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--g-card); color: var(--g-fg); margin-bottom: 10px; }
.tsrow { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 700; font-size: 14px; }
.segs { display: flex; gap: 6px; flex-wrap: wrap; }
.zoom { overflow: auto; max-height: 70vh; } .zoom img { width: 100%; min-width: 600px; display: block; background: #fff; border-radius: 8px; }
.danger-text { color: var(--g-bad) !important; }

/* ---------- Interests ---------- */
.plan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pday { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); min-height: 76px; }
.pday b { font-weight: 700; } .pday .e { font-size: 20px; } .pday em { font-style: normal; color: var(--fg); font-weight: 600; font-size: 10px; text-align: center; line-height: 1.2; overflow: hidden; max-width: 100%; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pday small { font-size: 9px; color: var(--brand); font-weight: 700; }
.cat { display: flex; flex-direction: column; gap: 10px; } .cat.off { opacity: .6; }
.ch { display: flex; align-items: center; gap: 10px; } .ch .em { font-size: 22px; } .ch b { flex: 1; font-size: 15.5px; font-weight: 800; }
.iconbtn.sm { width: 36px; height: 36px; } .iconbtn.sm svg { width: 18px; height: 18px; }
.tg { width: 46px; height: 28px; border-radius: 99px; background: var(--input); border: 0; position: relative; flex: none; padding: 0; }
.tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tg[aria-checked="true"] { background: var(--brand); } .tg[aria-checked="true"]::after { transform: translateX(18px); }
.tps { display: flex; flex-wrap: wrap; gap: 7px; }
.tp { font-size: 13px; font-weight: 600; padding: 0 12px; min-height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.tp.hi { border-color: #F5A524; } .tp.toff { opacity: .45; text-decoration: line-through; } .tp.nx { background: var(--soft); border-color: var(--brand); color: var(--brand); }
.tp.add { color: var(--brand); border-style: dashed; border-color: var(--brand); background: none; }
.newcat { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand); font-weight: 700; border-style: dashed; min-height: 52px; background: none; }
.newcat svg { width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 36px; } .check input { width: 20px; height: 20px; accent-color: var(--brand); }
.erow { display: flex; flex-wrap: wrap; gap: 6px; }
.echip { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--g-line); background: var(--g-card); font-size: 20px; }
.echip[aria-pressed="true"] { border: 2px solid var(--g-brand); background: var(--g-soft); }
.g-sheet .vchip { padding: 0 12px; min-height: 36px; border-radius: 99px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--g-fg); font-weight: 600; font-size: 13px; }
.g-sheet .vchip[aria-pressed="true"] { background: var(--g-brand); border-color: var(--g-brand); color: var(--g-brand-fg); }
.g-sheet .field input { background: var(--g-card); color: var(--g-fg); border-color: var(--g-input); }
.g-sheet .form { gap: 10px; margin-bottom: 8px; } .g-sheet .chips { margin-bottom: 4px; }
.g-sheet small { color: var(--g-muted); font-weight: 500; }
.rp > .reader { flex: 1; min-height: 0; height: auto; }
.section .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.stats3 { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; } .stat small { font-size: 12px; color: var(--muted); }
