/* App chrome on top of tokens.css + components.css.
   The design's .desk is a fixed 1280px artboard. Real pages use .app. */

[hidden] { display: none !important; }

/* Follow the OS until data-mode is set by the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    color-scheme: dark;
    --c-paper: #191714;
    --c-surface: #211e1a;
    --c-sunken: #2b2823;
    --c-scrim: rgba(0, 0, 0, .6);
    --c-ink: #ece6da;
    --c-ink-muted: #aaa293;
    --c-border: #3d3931;
    --c-border-strong: #7f786b;
    --c-accent: #9dbbe0;
    --c-accent-hover: #b6cde9;
    --c-on-accent: #191714;
    --c-accent-soft: #26303b;
    --c-danger: #ec9b8c;
    --c-success: #9cc9a4;
  }
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
}
.app > .side { grid-row: 1 / span 2; min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow: auto; }
.app > .top { grid-column: 2; position: sticky; top: 0; z-index: 15; min-width: 0; }
.app > .main { grid-column: 2; min-width: 0; }

.scrim { position: fixed; inset: 0; background: var(--c-scrim); z-index: 28; }
.nav-toggle { display: none; }

.tabbar { display: none; }

.books { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.shelf { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }

.pagehead { flex-wrap: wrap; align-items: center; }
.pagehead h1 { min-width: 0; }
.crumbs ol { flex-wrap: wrap; padding: 0; }
.crumbs button, .crumbs a { background: none; border: 0; padding: 2px 4px; min-height: 24px; display: inline-flex; align-items: center; color: var(--c-accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.crumbs button[disabled] { color: var(--c-ink); text-decoration: none; cursor: default; }

.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.seg button + button { border-left: var(--line) solid var(--c-border-strong); }
.seg button[aria-pressed="true"] { background: var(--c-accent-soft); color: var(--c-accent); font-weight: var(--fw-semibold); }

.menu button {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.menu button:hover { background: var(--c-sunken); }

.banner {
  border: var(--line) solid var(--c-danger);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  color: var(--c-danger);
  background: var(--c-surface);
  font-size: var(--fs-sm);
}
.banner.ok { border-color: var(--c-success); color: var(--c-success); }

.token {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  word-break: break-all;
  background: var(--c-sunken);
  border-radius: var(--radius-xs);
  padding: var(--sp-3);
  margin: 0;
}
.row-form { display: inline; }
.row-form button { margin: 0; }
.side-name { margin-top: 6px; }
.menu-who { padding: 6px 10px; }
.token-form { width: min(32rem, 100%); align-self: flex-start; }
.token-form > .btn { align-self: flex-start; }

.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--sp-7) var(--sp-4) var(--sp-9); }
.authbox { width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--sp-3); }
.authbox h1 { text-align: center; }
.authbox .lead { text-align: center; margin: 0 auto; }

.book-item { position: relative; min-width: 0; }
.book-item .select-check {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  background: var(--c-surface);
  border: var(--line) solid var(--c-border-strong);
  border-radius: var(--radius-xs);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
}
input[data-select] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  accent-color: var(--c-accent);
}
.book-item.selected .book .cover { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.book-item.drop-target .cover, .folder-card.drop-target, .crumbs button.drop-target {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.cover img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.cover.has-photo::before { display: none; }

.folder-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.folder-card .cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  background: var(--c-sunken);
  color: var(--c-ink);
  border: var(--line) dashed var(--c-border-strong);
  outline: none;
  align-items: flex-start;
}
.folder-card .cover::before { display: none; }
.folder-actions { display: flex; gap: 6px; flex-wrap: wrap; }

#library-drop { width: 100%; max-width: 100%; }
#list-wrap { max-width: 100%; overflow-x: auto; }
.drop:focus-within { outline: var(--focus-width) solid var(--c-focus); outline-offset: var(--focus-offset); }
.library-table .title-cell { display: flex; gap: 10px; align-items: center; min-width: 0; }
.library-table .mini {
  width: 32px;
  height: 46px;
  flex: none;
  padding: 4px;
}
.library-table .mini .ct { font-size: 8px; }
.library-table .mini .ca, .library-table .mini .rule { display: none; }
.library-table tr.selected td { background: var(--c-accent-soft); }

.bulk { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; padding: var(--sp-3); }
.bulk .selectwrap { width: min(240px, 100%); }

.format-list { display: flex; flex-direction: column; gap: 6px; }
.folder-link {
  display: flex;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--radius-xs);
  padding: 4px 2px;
  color: var(--c-ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm);
}
.folder-link[aria-current="true"] { color: var(--c-accent); font-weight: var(--fw-semibold); }
.folder-link:hover { background: var(--c-sunken); }

.detail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.detail .cover.hero-cover { aspect-ratio: 2 / 3; width: 100%; height: auto; }
.detail .actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }

.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }
.issue-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.article-row .grow { min-width: 0; }
.article-row a.title-link { color: var(--c-ink); font-weight: var(--fw-semibold); }

.toast.show { display: flex; }

.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.storage-note { margin: 0; }

.reader-app { height: 100vh; display: flex; flex-direction: column; background: var(--c-paper); }
.reader-app .reader { width: 100%; height: 100%; margin: 0; max-width: none; }
.reader-stage { flex: 1; min-height: 0; display: flex; justify-content: center; background: var(--c-paper); }
#viewer { width: min(100%, calc(var(--measure) + 48px)); height: 100%; }
.toc-panel {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 92vw);
  background: var(--c-surface);
  border-right: var(--line) solid var(--c-ink);
  overflow: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.toc-panel ul { list-style: none; display: flex; flex-direction: column; }
.toc-panel a, .toc-panel button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--c-ink);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: var(--line) solid var(--c-border);
  font: inherit;
  cursor: pointer;
}
.toc-panel a:hover, .toc-panel button.linkish:hover { color: var(--c-accent); }
.font-panel { min-width: 220px; padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.rbottom input[type="range"] { accent-color: var(--c-accent); }

.add-page { max-width: 32rem; margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-9); display: flex; flex-direction: column; gap: var(--sp-3); }
#excerpt { margin: 0; }

.organize .topics-section {
  position: sticky;
  top: var(--topbar-h);
  z-index: 8;
  background: var(--c-paper);
  padding-bottom: var(--sp-3);
  border-bottom: var(--line) solid var(--c-border);
}
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--sp-3); }
.topic-container {
  background: var(--c-surface);
  border: var(--line) dashed var(--c-border-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  cursor: pointer;
}
.topic-container:hover { border-color: var(--c-ink); }
.topic-container.filter-on { border-style: solid; border-color: var(--c-accent); background: var(--c-accent-soft); }
.topic-container.filter-invert { border-style: solid; border-color: var(--c-danger); }
.topic-container.drag-over { border-style: solid; border-color: var(--c-accent); background: var(--c-paper); }
.topic-container.duplicate { border-style: solid; border-color: var(--c-danger); }
.topic-header { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.topic-filter {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.topic-actions { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topic-title { font-family: var(--font-serif); font-weight: var(--fw-semibold); flex: 1; min-width: 0; }
.topic-count, .topic-filter-badge {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-accent);
}
.topic-delete { margin-left: auto; }
.topic-drop-hint { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-ink-muted); }
.topic-container.duplicate .topic-drop-hint { color: var(--c-danger); }
.articles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--sp-3); }
.article-card {
  background: var(--c-surface);
  border: var(--line) solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  min-width: 0;
}
.article-drag { cursor: grab; }
.article-card.dragging { opacity: 0.45; }
.article-card .btn { margin-top: 10px; }
.article-title { font-family: var(--font-serif); font-weight: var(--fw-semibold); margin: 0 0 6px; overflow-wrap: anywhere; }
.article-topics-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.article-topic-badge { font-size: var(--fs-2xs); border: var(--line) solid var(--c-border-strong); border-radius: var(--radius-xs); padding: 3px 6px; }
.article-meta, .article-date { font-size: var(--fs-xs); color: var(--c-ink-muted); margin: 0; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 6px;
  margin-left: 8px;
  border: var(--line) solid var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: var(--radius-xs);
  padding: 2px 4px 2px 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.filter-chip.invert { border-color: var(--c-danger); color: var(--c-danger); }
.filter-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-width: 24px;
  min-height: 24px;
}
.organize-toolbar { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.organize-toolbar .searchbox, .organize-toolbar .selectwrap { min-width: min(220px, 100%); }
.organize .topics-head { margin-bottom: 12px; flex-wrap: wrap; align-items: flex-end; }
.organize .add-topic-form { margin: 0; flex-wrap: wrap; min-width: 0; }
.organize .add-topic-form .input { width: min(220px, 100%); }
.organize .articles-section { margin-top: 20px; }
.organize .organize-toolbar h2 { margin: 0; }
.organize .side-note { margin-top: 6px; }
.top-search { min-width: 0; }
.error-text { color: var(--c-danger); font-size: var(--fs-sm); margin: 0; }
.cover.mag.card-cover { height: 96px; margin: 12px 0; }
.cover.mag.issue-cover { height: 140px; }
.cover.mag .ca.gap { margin-top: 4px; }
.issue-layout { display: flex; gap: var(--sp-3); align-items: flex-start; flex-wrap: wrap; }
.issue-layout > .list { flex: 1 1 16rem; min-width: 0; }
.issue-aside { width: min(260px, 100%); flex: 1 1 12rem; }
.magazine-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.status-message {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--c-ink);
  color: var(--c-surface);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 50;
  font-size: var(--fs-sm);
  text-align: center;
}
.status-message.show { display: block; }
.status-message.error { background: var(--c-danger); color: var(--c-paper); }
.status-message.success { background: var(--c-ink); color: var(--c-surface); }

#status.error { color: var(--c-danger); }
#status.success { color: var(--c-success); }
#preview.visible { display: flex; flex-direction: column; gap: var(--sp-3); }

/* More menu sits above the fixed tab bar. Tokens follow light/dark theme. */
.tab-more-menu {
  right: 8px;
  left: auto;
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 26;
  min-width: 200px;
}
.tab-more-menu a[aria-current="page"] {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: var(--fw-semibold);
}

@media (max-width: 900px) {
  .home-grid, .detail, .grid2, .grid3 { grid-template-columns: 1fr; }
  .detail .cover.hero-cover { max-width: 220px; }
}

@media (max-width: 800px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .app > .side {
    display: none;
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 88vw);
    height: auto;
    min-height: 0;
  }
  .app > .side.open { display: flex; }
  .app > .top, .app > .main { grid-column: 1; }
  .app > .main { padding: var(--sp-4) var(--sp-4) 96px; }
  .nav-toggle { display: inline-flex; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; }
  .top { padding: 0 var(--sp-3); gap: var(--sp-2); }
  .top .kbd, .top .add-label, .top .theme-label { display: none; }
  /* Label hidden here, so show an icon instead of an empty box. */
  .top [data-theme-toggle] { width: 36px; min-height: 36px; padding: 0; }
  .top [data-theme-toggle] .theme-icon.moon { display: block; }
  .top [data-theme-toggle][aria-pressed="true"] .theme-icon.moon { display: none; }
  .top [data-theme-toggle][aria-pressed="true"] .theme-icon.sun { display: block; }
  .top .btn.primary.add-btn { width: 36px; padding: 0; }
  .pagehead h1 { flex-basis: 100%; }
  .reader-app .rtop { flex-wrap: nowrap; padding: 8px 6px; gap: 2px; }
  .reader-app .rtitle {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .reader-app #reader-back,
  .reader-app #reader-toc-btn,
  .reader-app #reader-bookmark {
    width: 36px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .rbottom { padding: var(--sp-3); }
  .status-message { bottom: 88px; }
}

@media (max-width: 520px) {
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-top { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
  .pub-top nav { display: none; }
  .pub-top.keep-nav { flex-wrap: wrap; }
  .pub-top.keep-nav nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-sm); }
}

/* Settings: sub-tabs, Send to Kindle */
.settings-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.banner.info { border-color: var(--c-border-strong); color: var(--c-ink); }
.kindle-form { width: min(32rem, 100%); }
.copybox { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; background: var(--c-sunken); border-radius: var(--radius-xs); padding: var(--sp-2) var(--sp-3); align-self: flex-start; max-width: 100%; }
.copybox code { font-family: var(--font-mono); font-size: var(--fs-sm); word-break: break-all; user-select: all; }
.steps, .setup-list { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.kindle-note { font-size: var(--fs-xs); color: var(--c-ink-muted); }
/* Generated issue covers are 2:3 portraits: show them whole, not cropped. */
.cover.mag.card-cover.has-photo { height: auto; width: 120px; aspect-ratio: 2 / 3; padding: 0; }
.cover.mag.issue-cover.has-photo { height: auto; width: min(180px, 100%); aspect-ratio: 2 / 3; padding: 0; align-self: center; }

/* Theme toggle icons are only shown where the text label is hidden. */
.theme-icon { display: none; }

/* ---- Daily News setup (/news/setup) ---- */
.news-tabs { margin-bottom: var(--sp-4); }
.news-summary { margin: var(--sp-2) 0 var(--sp-4); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-5); align-items: start; }
.news-main { gap: var(--sp-4); min-width: 0; }
.news-grid .card > h2.overline { margin-bottom: 0; }
.add-feed, .add-section, .opml-form { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.add-feed .input.grow, .add-section .input.grow, .opml-form .input.grow { flex: 1 1 240px; width: auto; }
.add-sec { width: 140px; }
.add-max { width: 108px; }
.feed-list, .section-list { list-style: none; margin: 0; padding: 0; }
.feed-row { flex-wrap: wrap; align-items: flex-start; }
.feed-info { flex: 1 1 220px; }
.feed-info p { margin: 0; }
.feed-title { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.feed-url { overflow-wrap: anywhere; }
.feed-error { margin-top: 4px !important; }
.feed-err { border-color: var(--c-danger); color: var(--c-danger); cursor: default; }
.feed-edit { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.feed-sec { width: 130px; }
.feed-max { width: 96px; }
.feed-on { min-height: 30px; }
.feed-actions { display: flex; gap: var(--sp-2); align-items: center; }
.section-row { flex-wrap: wrap; }
.section-name { flex: 1 1 120px; overflow-wrap: anywhere; }
.section-actions { display: flex; gap: var(--sp-2); align-items: center; margin-left: auto; }
.check input.switch { width: 34px; height: 20px; accent-color: auto; }
details.rename { position: relative; }
details.rename > summary { list-style: none; }
details.rename > summary::-webkit-details-marker { display: none; }
.rename-form { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); min-width: 220px; right: 0; }
.delivery-card { position: sticky; top: var(--sp-4); }
.delivery-form { gap: var(--sp-4); }
fieldset.plain { border: none; padding: 0; margin: 0; gap: var(--sp-2); }
fieldset.plain > legend { font-size: var(--fs-sm); font-weight: var(--fw-medium); margin-bottom: 6px; padding: 0; }
.days { gap: 6px; }
.tag.day { min-height: 32px; min-width: 44px; justify-content: center; }
.tag.day:has(input:checked) { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent); font-weight: var(--fw-semibold); }
.tag.day:has(input:focus-visible) { outline: var(--focus-width) solid var(--c-focus); outline-offset: var(--focus-offset); }
.switch-row { align-items: flex-start; }
.switch-row .switch { margin-top: 2px; }
.btn .i { flex: none; }
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .delivery-card { position: static; }
}
@media (max-width: 520px) {
  .add-sec, .add-max { width: calc(50% - var(--sp-2)); }
  .add-feed .btn { width: 100%; }
  .feed-edit { width: 100%; }
  .feed-sec { flex: 1 1 auto; }
}

/* ---- Daily News editions (2b) ---- */
.editions-card { gap: var(--sp-3); }
.editions-card > .row > h2.overline { margin-bottom: 0; }
.preview-form { display: flex; gap: var(--sp-2) var(--sp-3); align-items: center; flex-wrap: wrap; margin: 0; }
.preview-form .hint { flex: 1 1 220px; margin: 0; }
.edition-list { list-style: none; margin: 0; padding: 0; }
.edition { justify-content: space-between; align-items: center; padding: var(--sp-2) 0; border-top: var(--line) solid var(--c-border); }
.edition:first-child { border-top: none; }
.edition-info { flex: 1 1 220px; line-height: 1.4; }
.edition-actions { display: flex; gap: var(--sp-2); }
.edition-failed { color: var(--c-danger); }

/* ---- UI themes: same HTML for e-ink and minimal ----
   The tab bar carries both themes' items; theme-minimal.css flips these. */
.tabbar .tab-min, .tabbar .tl-min { display: none; }
.tabbar { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }

/* Settings > Appearance */
.theme-form { width: min(40rem, 100%); gap: var(--sp-4); }
.theme-choices { display: flex; flex-direction: column; gap: var(--sp-3); }
.theme-choice {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  min-height: 44px;
  border: var(--line) solid var(--c-border-strong);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  cursor: pointer;
}
.theme-choice:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); }
.theme-choice:has(input:focus-visible) { outline: var(--focus-width) solid var(--c-focus); outline-offset: var(--focus-offset); }
.theme-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-accent); }
.theme-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.theme-name { font-weight: var(--fw-semibold); }
.theme-desc { font-size: var(--fs-sm); color: var(--c-ink-muted); }
.theme-swatch { display: flex; flex: none; width: 54px; height: 36px; border-radius: 6px; overflow: hidden; border: var(--line) solid var(--c-border); }
.theme-swatch span { flex: 1; }
.theme-swatch-eink span:nth-child(1) { background: #f7f5ef; }
.theme-swatch-eink span:nth-child(2) { background: #1c1b18; }
.theme-swatch-eink span:nth-child(3) { background: #1f4a7a; }
.theme-swatch-minimal span:nth-child(1) { background: #ffffff; }
.theme-swatch-minimal span:nth-child(2) { background: #111827; }
.theme-swatch-minimal span:nth-child(3) { background: #2563eb; }

/* Minimal phone declutter hooks. None of these show in e-ink (or in Minimal
   at 840px+): theme-minimal.css switches them on below 840px only.
   Folder section icons/counts stay visible in every theme. */
.row-more { display: none; }
.tl-min { display: none; }
.min-only { display: none !important; }
