@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/Inter-400.ttf') format('truetype'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500 800; font-display: swap; src: url('./assets/fonts/Inter-600.ttf') format('truetype'); }
:root {
  color-scheme: dark;
  --bg: #101321;
  --sidebar: #121523;
  --surface: #191d2e;
  --surface-hover: #20253a;
  --text: #edeef6;
  --muted: #a1a6ba;
  --faint: #71798f;
  --accent: #ae99ff;
  --accent-solid: #9c82ff;
  --accent-soft: #a58aff16;
  --border: #ffffff12;
  --green: #74d8b3;
  --warning: #f0c989;
  --shadow: 0 24px 90px #0006;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --sidebar: #fff;
  --surface: #fff;
  --surface-hover: #f0eef8;
  --text: #222239;
  --muted: #62687d;
  --faint: #71768b;
  --accent: #6745d1;
  --accent-solid: #b6a1ff;
  --accent-soft: #7852dd0e;
  --border: #24234316;
  --green: #237e60;
  --warning: #90601f;
  --shadow: 0 24px 90px #25234722;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .5; }
button, a, input, select { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button, input, select, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button:hover, a:hover { transition: background .15s, color .15s; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 20; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 10px; }
.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; min-width: 0; padding: 34px 20px 22px; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 12px 44px; width: fit-content; }
.brand-icon { display: grid; place-items: center; width: 43px; height: 48px; border: 1px solid #b29eff35; background: var(--accent-soft); color: var(--accent); border-radius: 13px; }
.brand-icon .icon { width: 27px; height: 27px; }
.brand-family { display: block; font-size: 9px; font-weight: 700; letter-spacing: 2.8px; line-height: 1.5; color: var(--muted); }
.brand strong { display: block; font-size: 27px; letter-spacing: -.8px; line-height: 1.1; font-weight: 650; }
.brand-dot, .heading-dot { color: var(--accent); }
.sidebar-content { min-height: 0; min-width: 0; overflow-y: auto; flex: 1; }
.section-label { font-size: 10px; letter-spacing: 1.7px; font-weight: 650; color: var(--faint); margin: 0 12px 13px; }
.views { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px; padding: 10px 12px; text-align: left; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 9px; font-size: 13px; }
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); border-color: #a58aff15; }
.nav-item .icon { width: 18px; height: 18px; }
.count { margin-left: auto; min-width: 22px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; background: var(--border); border-radius: 5px; padding: 0 5px; }
.source-heading { display: flex; align-items: center; justify-content: space-between; margin: 35px 0 7px; }
.source-heading .section-label { margin-bottom: 0; }
.source-heading .icon-button { width: 30px; min-height: 30px; }
.source-nav .nav-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-nav-row { position: relative; display: flex; align-items: center; gap: 1px; min-width: 0; border-radius: 8px; }.source-nav-row .nav-item { flex: 1; min-width: 0; }.source-drag-handle { width: 23px; min-height: 36px; color: var(--faint); opacity: .5; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }.source-drag-handle .icon { width: 15px; height: 15px; }.source-nav-row:hover .source-drag-handle, .source-drag-handle:focus-visible { opacity: 1; }.source-nav-row.dragging { opacity: .5; background: var(--accent-soft); }.source-nav-row.dragging .source-drag-handle { cursor: grabbing; }.source-nav-row.drop-before::before, .source-nav-row.drop-after::after { content: ''; position: absolute; left: 5px; right: 5px; height: 2px; background: var(--accent); border-radius: 2px; pointer-events: none; }.source-nav-row.drop-before::before { top: -2px; }.source-nav-row.drop-after::after { bottom: -2px; }
.source-order-controls { display: flex; align-items: center; gap: 1px; }.source-order-controls .icon-button { width: 26px; min-height: 36px; }.source-order-controls .icon-button .icon { width: 16px; }.source-order-controls button:disabled { cursor: default; opacity: .25; }
.source-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 3px; margin: 0 4px; background: var(--accent); }
.source-placeholder { color: var(--faint); margin: 10px 12px 15px; font-size: 12px; }
.add-source { margin-top: 6px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; background: transparent; color: var(--muted); font-size: 12px; }
.add-source:hover { color: var(--accent); }
.add-source .icon { width: 17px; }
.sidebar-note { margin: 36px 12px 25px; display: flex; gap: 8px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.sidebar-note .local-dot { margin-top: 6px; }
.sidebar-note small { display: block; font-size: 10px; color: var(--faint); }
.local-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.startpage-link { display: flex; align-items: center; gap: 10px; padding: 18px 12px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.startpage-link:hover { color: var(--accent); }
.startpage-link .icon { width: 16px; }
.trailing { margin-left: auto; opacity: .5; }
.workspace { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 85% 0%, #8b69e909, transparent 45%); }
.topbar { height: 86px; padding: 0 48px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.today { font-size: 12px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.connection-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.connection-status.offline .local-dot { background: var(--warning); }
.icon-button { min-height: 38px; width: 38px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 8px; flex: 0 0 auto; }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; padding: 10px 16px; min-height: 43px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 550; }
.button:hover { background: var(--surface-hover); }
.button .icon { width: 17px; height: 17px; }
.button.primary { background: var(--accent-solid); color: #17122d; border-color: transparent; }
.button.primary:hover { background: #b6a2ff; }
.button.small { min-height: 34px; padding: 6px 10px; }
.text-button { background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 0; color: var(--muted); font-size: 11px; }
.text-button:hover { color: var(--accent); }
.text-button .icon { width: 15px; height: 15px; }
main { padding: 43px 48px 40px; flex: 1; width: 100%; max-width: 1540px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 650; color: var(--accent); margin: 0 0 10px; }
h1 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -1.3px; margin: 0; overflow-wrap: anywhere; }
.subtitle { color: var(--muted); margin: 10px 0 0; font-size: 13px; }
.toolbar { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 22px; }
.search-field { display: flex; gap: 11px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 0 13px; max-width: 510px; flex: 1; min-width: 0; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; padding: 12px 0; background: transparent; border: 0; color: var(--text); font-size: 12px; }
input::placeholder { color: var(--faint); opacity: 1; }
.search-field:focus-within { border-color: var(--accent); }
.search-field input:focus-visible { outline: none; }
kbd { font: 11px inherit; border: 1px solid var(--border); border-radius: 4px; width: 20px; text-align: center; color: var(--faint); }
.sort-label { margin-left: auto; }
select { border: 0; background: transparent; color: var(--muted); padding: 10px 5px; max-width: 155px; font-size: 12px; }
select option { background: var(--surface); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 63px; }
.results-bar p { color: var(--faint); font-size: 11px; }
.empty-state { text-align: center; max-width: 650px; margin: 15px auto 0; padding: 25px 15px 45px; }
.empty-art { position: relative; width: 235px; height: 188px; margin: 0 auto 25px; }
.empty-art::before { content: ''; position: absolute; inset: -20px -50px; background: radial-gradient(ellipse, #9c82ff15, transparent 68%); }
.paper { position: absolute; width: 167px; height: 133px; border: 1px solid #a58aff30; border-radius: 13px; }
.paper-back { left: 47px; top: 19px; transform: rotate(11deg); background: var(--accent-soft); }
.paper-front { left: 29px; top: 38px; transform: rotate(-7deg); background: var(--surface); padding: 19px; box-shadow: 0 12px 40px #0001; }
.paper-top { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 7px; font-weight: 700; letter-spacing: 1px; margin-bottom: 13px; }
.paper-top .icon { width: 13px; height: 13px; }
.paper-top i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-left: auto; }
.paper-line { display: block; height: 5px; background: var(--muted); opacity: .25; border-radius: 2px; margin: 8px 0; }
.paper-line.medium { width: 83%; }.paper-line.short { width: 55%; }
.paper-footer { display: flex; justify-content: space-between; margin-top: 12px; }
.paper-footer span { background: var(--accent-soft); border: 1px solid #a58aff25; width: 29px; height: 8px; border-radius: 3px; }
.paper-footer span:last-child { width: 10px; }
.art-plus { position: absolute; right: 6px; bottom: 8px; border: 5px solid var(--bg); border-radius: 50%; background: var(--accent-solid); color: #211837; width: 45px; height: 45px; font-size: 28px; line-height: 32px; font-weight: 300; }
.empty-state h2 { font-size: 29px; line-height: 1.25; letter-spacing: -.8px; font-weight: 580; margin: 10px 0 14px; }
.empty-state > p:not(.eyebrow) { max-width: 410px; margin: 0 auto 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.empty-features { margin: 38px auto 0; display: flex; justify-content: center; gap: 22px; color: var(--faint); font-size: 10px; }
.empty-features span { display: flex; align-items: center; gap: 6px; }
.empty-features .icon { width: 14px; height: 14px; }
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article { display: flex; flex-direction: column; padding: 23px; min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; transition: border-color .15s; }
.article:hover { border-color: #a58aff45; }
.article-image { width: calc(100% + 46px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; margin: -23px -23px 20px; border-radius: 11px 11px 0 0; background: var(--border); }
.articles.list .article-image { width: 170px; height: 100px; object-fit: cover; border-radius: 7px; margin: 0 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; margin-bottom: 15px; font-size: 10px; color: var(--muted); }
.article-source { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.article time { margin-left: auto; font-size: 10px; }
.article h2 { font-size: 18px; font-weight: 570; line-height: 1.45; letter-spacing: -.3px; margin: 0 0 12px; overflow-wrap: anywhere; }
.article-title { background: transparent; padding: 0; text-align: left; line-height: inherit; font: inherit; color: inherit; }
.article-title:hover { color: var(--accent); }
.article-summary { font-size: 12px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 20px; overflow-wrap: anywhere; }
.article.read h2 { color: var(--muted); }
.article-actions { display: flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--border); }
.article-actions a { margin-left: auto; padding: 8px 0 8px 8px; }
.article-actions .icon-button { width: 34px; min-height: 34px; }
.icon-button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.articles.list { grid-template-columns: 1fr; gap: 10px; }
.articles.list .article { padding: 20px 24px; }
.articles.list .article-summary { -webkit-line-clamp: 2; margin-bottom: 10px; }
.articles.list .article-meta { margin-bottom: 8px; }
.load-more { margin: 28px auto 0; display: flex; }
footer { border-top: 1px solid var(--border); margin: 0 48px; padding: 18px 0 max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 10px; }
footer .text-button { font-size: 10px; }
.notice { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #e7b76c30; background: #e7b76c09; border-radius: 8px; color: var(--warning); font-size: 12px; }
.workspace > .notice { margin: 18px 48px 0; }
.notice .text-button { color: inherit; margin-left: 10px; }
.magic-feed { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 24px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.magic-feed-info { flex: 1 1 240px; min-width: 0; }
.magic-feed-info .eyebrow { margin: 0 0 8px; }
#magic-description { font-size: 13px; margin: 0 0 8px; line-height: 1.6; }
#magic-url { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 11px; }
.magic-feed-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
dialog { width: min(590px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 28px; border: 1px solid var(--border); border-radius: 17px; background: var(--sidebar); color: var(--text); box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #060813ad; backdrop-filter: blur(6px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; margin: 0 0 5px; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.muted { color: var(--muted); }
dialog > p { font-size: 13px; }
form { margin-top: 23px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
form label { display: block; font-size: 12px; margin-bottom: 14px; }
form input { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; }
.form-message { font-size: 12px; color: var(--warning); margin: 8px 0 12px; }
.form-message:empty { display: none; }
.managed-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 20px 0 10px; }
.managed-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
.managed-heading span { font-size: 11px; }
.managed-source { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding: 13px 0; }
.managed-source-info { min-width: 0; flex: 1; }
.managed-source-info strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.managed-source-info small { display: block; color: var(--muted); font-size: 11px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.managed-source input { accent-color: var(--accent); width: 17px; height: 17px; cursor: pointer; flex-shrink: 0; }
.managed-source .text-button { color: var(--muted); min-height: 40px; }
.dialog-footnote { font-size: 11px; color: var(--faint); margin-top: 23px; line-height: 1.8; }
.reader-dialog { width: min(740px, calc(100% - 32px)); padding: 35px; }
.reader-dialog h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.3; letter-spacing: -.7px; margin: 15px 0 24px; overflow-wrap: anywhere; }
.reader-summary { font-size: 16px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.reader-image { width: 100%; max-height: 380px; object-fit: cover; border-radius: 9px; margin: 0 0 20px; }
.reader-byline { font-size: 12px; }
.reader-content { font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.reader-content p { margin: 0 0 1.3em; }
.reader-content h2, .reader-content h3, .reader-content h4 { font-size: 23px; margin: 1.4em 0 .7em; line-height: 1.4; }
.reader-content img { max-width: 100%; height: auto; display: block; border-radius: 5px; }
.reader-content figure { margin: 20px 0; }.reader-content figcaption { font-size: 12px; color: var(--muted); }
.reader-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reader-content blockquote { margin: 20px 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.reader-content pre { white-space: pre-wrap; padding: 15px; background: var(--bg); border-radius: 8px; font-size: 13px; }
.reader-content table { display: block; max-width: 100%; overflow: auto; font-size: 13px; border-collapse: collapse; }.reader-content td, .reader-content th { padding: 8px; border: 1px solid var(--border); }
.reader-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.toast { position: fixed; bottom: max(25px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 12px 22px; background: var(--text); color: var(--bg); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; }
.noscript { position: fixed; inset: auto 15px 15px; padding: 20px; background: var(--surface); border: 1px solid var(--accent); }
.recommendations { margin-top: 24px; }
.source-tabs { display: flex; gap: 6px; margin-top: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.source-tabs .chip { flex: 1; padding: 9px 5px; font-size: 12px; }
.source-tabs [aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: #a58aff40; }
.recommendations h3 { font-size: 13px; margin: 0 0 4px; }
.recommendations > p { font-size: 11px; color: var(--muted); margin: 0 0 14px; }
.recommendation-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); padding: 5px 10px; font-size: 11px; }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: #a58aff40; }
.recommendation { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 7px; }
.recommendation > div { min-width: 0; flex: 1; }
.recommendation strong { display: block; font-size: 12px; }
.recommendation p { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.recommendation .icon-button { border: 1px solid var(--border); }
.recommendation .icon-button:disabled { cursor: default; opacity: .65; }
.discovery-search { display: flex; align-items: center; gap: 8px; margin: 17px 0 13px; }.discovery-search .search-field { min-width: 0; }.discovery-search select { max-width: 130px; font-size: 11px; }.discovery-search input { font-size: 12px; }.recommendation-count { color: var(--faint); font-size: 11px; margin: 10px 0; }.recommendation-topic { display: block; color: var(--faint); font-size: 9px; margin-top: 5px; }.recommendations > #recommendations { max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }#recommendation-more { width: 100%; margin-top: 8px; }.recommendation-empty { color: var(--muted); font-size: 12px; padding: 20px 8px; text-align: center; }
@media (max-width: 540px) { .discovery-search { flex-wrap: wrap; }.discovery-search .search-field { flex-basis: 100%; }.discovery-search input { font-size: 16px; }.recommendations > #recommendations { max-height: 35vh; }.recommendation-filters { gap: 5px; }.recommendation-filters .chip { font-size: 10px; padding: 5px 8px; } }
@media (min-width: 1550px) { .articles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-shell { grid-template-columns: 235px minmax(0, 1fr); } main { padding: 35px 30px; } .topbar { padding: 0 30px; } footer { margin: 0 30px; } }
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding: 20px 22px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0 0 23px; }
  .brand strong { font-size: 23px; }.brand-icon { width: 37px; height: 41px; }.brand-family { font-size: 8px; }
  .sidebar-content { overflow: visible; }
  .sidebar-content > .section-label, .sidebar-note, .source-heading { display: none; }
  .views { display: flex; gap: 6px; }
  .nav-item { width: auto; }
  .views .nav-item { flex: 1; min-width: 0; justify-content: center; padding: 10px 6px; font-size: 12px; gap: 7px; }
  .views .count { margin-left: 0; }
  .source-nav { display: flex; overflow-x: auto; margin: 8px -5px; gap: 2px; }
  .source-nav .nav-item { flex-shrink: 0; font-size: 11px; min-height: 35px; padding: 6px 9px; max-width: 230px; }
  .source-nav-row { flex: 0 0 auto; max-width: 260px; }.source-nav-row .nav-item { max-width: 220px; }.source-drag-handle { width: 25px; opacity: .65; }.source-nav-row.drop-before::before, .source-nav-row.drop-after::after { top: 3px; bottom: 3px; width: 2px; height: auto; }.source-nav-row.drop-before::before { left: -2px; right: auto; }.source-nav-row.drop-after::after { right: -2px; left: auto; }
  .source-placeholder { margin: 5px 12px; font-size: 11px; }
  .add-source { position: absolute; right: 22px; top: 28px; margin: 0; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 11px; }
  .startpage-link { display: none; }
  .topbar { height: 57px; }.topbar-actions { gap: 10px; }
  main { padding-top: 29px; }
  .page-heading { margin-bottom: 25px; }
  .empty-state { margin-top: 0; padding-top: 10px; }
  .empty-art { height: 171px; transform: scale(.9); margin-bottom: 20px; }
}
@media (max-width: 540px) {
  .sidebar { padding: max(18px, env(safe-area-inset-top)) 16px 0; }
  .views .nav-item { font-size: 11px; gap: 5px; }.views .icon { width: 15px; }.count { font-size: 10px; min-width: 18px; padding: 0 3px; }
  .add-source { right: 16px; top: 23px; }.add-source .icon { display: none; }
  .topbar { padding: 0 20px; }.today { font-size: 10px; }.connection-status { font-size: 10px; }.topbar-actions { gap: 5px; }.topbar-actions .small { font-size: 10px; padding: 6px; }.topbar-actions .small .icon { display: none; }
  main { padding: 26px 20px 28px; }.eyebrow { font-size: 8px; letter-spacing: 1.3px; } h1 { font-size: 29px; }.subtitle { font-size: 12px; max-width: 250px; }
  .page-heading { gap: 10px; }.page-heading > .button { padding: 10px; align-self: flex-start; margin-top: 23px; }.page-heading > .button span { display: none; }.page-heading > .button::after { content: none; }
  .toolbar { flex-wrap: wrap; gap: 8px; padding-bottom: 15px; }.search-field { flex-basis: 100%; max-width: none; }.search-field input { font-size: 16px; }.search-field kbd { display: none; }.sort-label { margin-left: 0; }.layout-button { margin-left: auto; }
  .results-bar { min-height: 54px; }.results-bar .text-button { font-size: 10px; max-width: 160px; text-align: right; }
  .articles { grid-template-columns: 1fr; gap: 12px; }.article { padding: 21px; }.article h2 { font-size: 19px; }.article-image { width: calc(100% + 42px); margin: -21px -21px 18px; }
  .empty-state { padding: 10px 0 25px; }.empty-state h2 { font-size: 26px; }.empty-state > p:not(.eyebrow) { font-size: 12px; }.empty-features { gap: 11px; font-size: 9px; }.empty-features .icon { width: 12px; }
  footer { margin: 0 20px; flex-wrap: wrap; gap: 5px 12px; } footer > span { order: 3; flex-basis: 100%; } footer > button { margin-left: auto; }
  dialog, .reader-dialog { padding: 22px; }.reader-summary { font-size: 15px; } form input { font-size: 16px; }.workspace > .notice { margin: 12px 20px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
