@charset "UTF-8";
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #292c2a; background: #e9e8e4; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .55; }
button, input, select { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #b36b00; }
a { color: inherit; }
svg.icon { width: 19px; height: 19px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; flex: none; align-items: center; justify-content: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.design-bar { height: 58px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #666a65; font-size: 12px; }
.design-bar > div:first-child { display: flex; align-items: center; gap: 20px; }
.study-label { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: #40463f; }
.device-switch { display: flex; background: #dcded7; border-radius: 6px; padding: 3px; }
.device-switch button { border: 0; background: transparent; padding: 6px 13px; font-size: 11px; border-radius: 4px; }
.device-switch button[aria-pressed="true"] { background: #fbfbf8; box-shadow: 0 1px 3px #252b2410; }
.app-shell { --surface: #fdfdfb; --sidebar: #f5f5f0; --subtle: #f7f7f3; --text: #2b302b; --muted: #72786e; --border: #e7e9e1; --accent: #f8b83c; --accent-soft: #fff1cd; --accent-text: #704b0b; --selection: #f6f4e9; --hover: #f0f1ea; --overlay: #20241f55; position: relative; display: flex; height: calc(100dvh - 58px); min-height: 620px; max-width: 1920px; margin: auto; background: var(--surface); color: var(--text); color-scheme: light; overflow: hidden; box-shadow: 0 0 0 1px #252b2410; }
.app-shell[data-theme="dark"] { --surface: #1e221f; --sidebar: #191d1a; --subtle: #252a25; --text: #e8ebe3; --muted: #a7afa0; --border: #353d33; --accent: #f8b83c; --accent-soft: #44391e; --accent-text: #f3cd79; --selection: #303126; --hover: #2b322a; --overlay: #05070599; color-scheme: dark; }
.skip-link { position: absolute; top: 8px; left: 8px; background: var(--surface); padding: 12px; z-index: 20; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sidebar { display: flex; flex-direction: column; width: 224px; flex: none; background: var(--sidebar); border-right: 1px solid var(--border); padding: 29px 18px 15px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-left: 10px; font-size: 31px; font-weight: 720; letter-spacing: -1.8px; }
.brand-dot { color: #d58912; }
.brand-symbol { display: flex; align-items: center; gap: 3px; transform: rotate(-12deg); height: 25px; }
.brand-symbol i { width: 5px; border-radius: 2px; background: var(--accent); height: 13px; }
.brand-symbol i:nth-child(2) { height: 23px; }
.brand-symbol i:nth-child(3) { height: 18px; }
.brand-caption { margin: 8px 0 30px 10px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.primary, .secondary { border: 0; border-radius: 6px; min-height: 42px; padding: 10px 17px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary { background: var(--accent); color: #3d2e0d; }
.primary:hover { filter: brightness(.96); }
.secondary { background: var(--subtle); border: 1px solid var(--border); color: var(--text); }
.secondary:hover { background: var(--hover); }
.add-source { width: 100%; margin-bottom: 24px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 40px; padding: 9px 10px; border-radius: 5px; font-size: 13px; }
.nav-item > [data-icon] { color: var(--muted); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav-item.active > [data-icon] { color: var(--accent-text); }
.nav-item:not(.active):hover { background: var(--hover); }
.nav-count { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.nav-item.active .nav-count { color: var(--accent-text); }
.section-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .8px; margin: 25px 9px 8px; min-height: 24px; }
.section-label .icon-button { width: 26px; height: 26px; }
.section-label .icon { width: 14px; height: 14px; }
.folder-nav, .source-nav { display: grid; gap: 2px; }
.sources-heading { margin-top: 22px; }
.source-mark { width: 21px; height: 21px; border: 1px solid var(--border); border-radius: 5px; font-size: 10px; font-family: Georgia, serif; display: grid; place-items: center; background: var(--surface); color: var(--text); font-weight: 700; flex: none; }
.source-nav .nav-item { min-height: 36px; font-size: 11px; gap: 9px; }
.source-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-footer { margin-top: auto; padding-top: 28px; }
.local-status { display: flex; width: 100%; align-items: center; gap: 9px; background: none; border: 1px solid var(--border); border-radius: 6px; text-align: left; padding: 12px 9px; font-size: 11px; margin-bottom: 12px; }
.local-status small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.local-status > [data-icon] { margin-left: auto; color: var(--muted); }
.status-dot { width: 6px; height: 6px; background: #7f9276; border-radius: 100%; flex: none; }
.version { display: block; padding: 10px 10px 0; font-size: 9px; color: var(--muted); letter-spacing: .5px; }
.main-area { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.topbar { height: 64px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 26px; gap: 12px; flex: none; }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 11px; min-width: 0; }
.desktop-breadcrumb { color: var(--muted); white-space: nowrap; }
.breadcrumb strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-divider { color: var(--border); font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.updated-at { font-size: 10px; color: var(--muted); margin-right: 7px; white-space: nowrap; }
.icon-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 5px; flex: none; }
.icon-button:hover { background: var(--hover); }
.icon-button.selected { background: var(--accent-soft); color: var(--accent-text); }
.workspace { min-height: 0; display: flex; flex: 1; }
.article-column { width: 402px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--border); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.list-heading { padding: 30px 27px 23px; }
.eyebrow { font-size: 9px; color: var(--muted); letter-spacing: 1.7px; font-weight: 600; margin: 0 0 13px; }
.title-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
h1 { font-size: 23px; font-weight: 650; letter-spacing: -.8px; margin: 0; }
.list-heading > p:last-child { font-size: 11px; margin: 11px 0 0; color: var(--muted); }
.list-controls { display: flex; align-items: center; justify-content: space-between; margin: 0 26px 22px; gap: 8px; }
.segmented { display: flex; background: var(--subtle); padding: 3px; border-radius: 5px; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 3px; padding: 6px 13px; font-size: 11px; }
.segmented button[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px #10170e14; }
.sort-control select { font-size: 10px; border: 0; color: var(--muted); background: var(--surface); padding: 7px 0; max-width: 100%; }
.list-day { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 0 27px 11px; border-bottom: 1px solid var(--border); }
.list-day > span { font-size: 10px; }
.article-list { flex: 1; }
.article-row { position: relative; display: flex; padding-right: 17px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.article-row:hover { background: var(--subtle); }
.article-row.selected { background: var(--selection); border-left-color: var(--accent); }
.article-open { display: block; background: transparent; border: 0; text-align: left; flex: 1; min-width: 0; padding: 19px 9px 19px 24px; }
.article-meta { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.article-meta .source-mark { width: 17px; height: 17px; font-size: 9px; border-radius: 3px; }
.article-meta .time { margin-left: auto; white-space: nowrap; font-size: 9px; }
.article-title { display: block; font-size: 15px; line-height: 1.7; font-weight: 600; margin: 10px 0 6px; letter-spacing: -.15px; }
.article-row.read .article-title { font-weight: 450; }
.article-copy { display: flex; gap: 12px; align-items: flex-start; }
.article-summary { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row > .save-article { align-self: flex-end; margin-bottom: 14px; width: 27px; height: 30px; color: var(--muted); }
.article-row > .save-article .icon { width: 15px; height: 15px; }
.save-article.saved { color: #ad7415; }
.save-article.saved svg { fill: var(--accent-soft); }
.unread-dot { width: 5px; height: 5px; background: #b87915; border-radius: 50%; margin-left: 1px; }
.list-bottom { font-size: 10px; color: var(--muted); padding: 23px; text-align: center; }
.tiny-dot { display: inline-block; width: 4px; height: 4px; background: var(--muted); border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.reader { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.reader-toolbar { height: 58px; display: flex; flex: none; align-items: center; justify-content: space-between; padding: 0 27px; border-bottom: 1px solid var(--border); gap: 12px; }
.reading-label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.reading-label .icon { width: 14px; height: 14px; }
.reader-actions { display: flex; align-items: center; gap: 7px; }
.reader-scroll { overflow-y: auto; padding: 37px 46px 70px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.reader-content { width: 100%; max-width: 680px; margin: auto; }
.reader-meta { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); }
.category-badge { margin-left: auto; color: var(--accent-text); background: var(--accent-soft); padding: 4px 8px; border-radius: 3px; font-size: 9px; }
.reader h2 { font-size: clamp(23px, 2.2vw, 34px); font-weight: 650; line-height: 1.6; letter-spacing: -1px; margin: 20px 0 15px; overflow-wrap: anywhere; }
.reader-byline { font-size: 10px; color: var(--muted); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.reader-byline > span + span::before { content: '·'; margin-right: 8px; }
.reader-intro { font-size: 15px; line-height: 2.1; margin: 0 0 24px; color: var(--text); }
.reader-links { display: flex; justify-content: flex-end; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 27px; }
.original-link { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); text-decoration: none; }
.original-link .icon { width: 13px; height: 13px; }
.original-link:hover { text-decoration: underline; }
.article-body { font-size: 16px; line-height: 2.05; letter-spacing: .1px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 29px 0 13px; }
.article-body p { margin: 0 0 20px; }
.article-body blockquote { font-size: 16px; line-height: 2; border-left: 2px solid var(--accent); margin: 29px 0; padding: 4px 0 4px 20px; }
.source-credit { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; line-height: 1.8; }
.editorial-art { height: 190px; border-radius: 4px; background: #e8bf68; position: relative; overflow: hidden; margin: 0 0 8px; color: #665737; }
.editorial-art .art-sun { position: absolute; width: 77px; height: 77px; border-radius: 50%; background: #f4deae; top: 21px; right: 50px; }
.editorial-art .art-ground { position: absolute; width: 100%; height: 43px; bottom: 0; background: #c89a4c; }
.editorial-art .art-building { position: absolute; bottom: 43px; width: 180px; height: 122px; background: #f2e4c8; left: calc(50% - 85px); box-shadow: 10px 7px 0 #b1894c; }
.editorial-art .art-door { position: absolute; bottom: 0; width: 44px; height: 73px; border-radius: 24px 24px 0 0; left: 28px; background: #ad7d42; }
.editorial-art .art-window { position: absolute; width: 64px; height: 49px; right: 20px; top: 27px; background: repeating-linear-gradient(90deg,#b18d52 0 5px,#eed09b 5px 16px); border: 5px solid #c3a879; }
.editorial-art .art-tree { position: absolute; width: 45px; height: 76px; border-radius: 60% 60% 45% 45%; background: #7b8562; left: 32px; bottom: 36px; transform: rotate(-8deg); }
.editorial-art .art-tree::after { content: ''; position: absolute; width: 3px; height: 40px; background: #59624c; top: 50px; left: 24px; }
.editorial-art .art-caption { position: absolute; font-size: 8px; letter-spacing: 2px; bottom: 14px; right: 16px; }
.art-note { font-size: 9px; color: var(--muted); margin: 0 0 24px; }
.empty-state { padding: 54px 26px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.9; }
.empty-state > [data-icon] { display: flex; width: fit-content; margin: auto auto 16px; }
.empty-state .icon { width: 28px; height: 28px; }
.empty-state h2 { font-size: 16px; color: var(--text); }
.empty-state .secondary { margin-top: 14px; }
.search-area { display: flex; align-items: center; gap: 8px; background: var(--subtle); border: 1px solid var(--border); border-radius: 5px; margin: -5px 26px 20px; padding: 8px 10px; color: var(--muted); }
.search-area input { width: 100%; border: 0; background: transparent; color: var(--text); min-width: 0; font-size: 13px; }
.search-area .icon { width: 16px; height: 16px; }
.utility-page { flex: 1; overflow-y: auto; padding: 48px 48px 70px; }
.utility-container { max-width: 820px; margin: auto; }
.page-eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin: 0 0 16px; }
.utility-page h1 { font-size: 29px; line-height: 1.5; }
.page-description { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 13px 0 32px; }
.discovery-form label { font-size: 12px; display: block; margin-bottom: 10px; }
.url-entry { display: flex; gap: 10px; }
.url-entry input { min-width: 0; flex: 1; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; font-size: 14px; }
.input-hint { font-size: 11px; color: var(--muted); line-height: 1.8; }
.input-hint button { background: transparent; border: 0; padding: 0; text-decoration: underline; color: var(--accent-text); }
.inline-error { color: #b44930; font-size: 12px; margin: 12px 0; line-height: 1.8; }
.discovery-result { border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-top: 27px; }
.result-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.result-heading .source-mark { width: 42px; height: 42px; font-size: 20px; }
.result-heading h2 { margin: 0 0 4px; font-size: 16px; }
.result-heading p { margin: 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.detected-status { margin-left: auto; color: var(--accent-text); background: var(--accent-soft); border-radius: 3px; font-size: 10px; padding: 5px 8px; white-space: nowrap; }
.feed-option { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-top: 1px solid var(--border); cursor: pointer; }
.feed-option input { accent-color: #b87915; }
.feed-option strong { display: block; font-size: 12px; font-weight: 500; }
.feed-option small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.result-footer { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-top: 15px; flex-wrap: wrap; }
.result-footer label { display: block; font-size: 11px; margin-bottom: 8px; color: var(--muted); }
.result-footer select { border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); padding: 11px 30px 11px 12px; font-size: 12px; }
.discovery-help { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-top: 1px solid var(--border); padding-top: 27px; margin-top: 45px; }
.help-item { display: flex; gap: 12px; align-items: flex-start; }
.help-item > [data-icon] { color: var(--muted); margin-top: 3px; }
.help-item h2 { font-size: 12px; font-weight: 600; margin: 0 0 7px; }
.help-item p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.9; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent-text); text-decoration: underline; font-size: 11px; }
.preview-note { font-size: 10px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 35px; padding-top: 15px; line-height: 1.8; }
.settings-section { margin-top: 34px; }
.settings-section > h2 { font-size: 12px; font-weight: 600; margin: 0 0 13px; }
.settings-box { border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px; gap: 18px; }
.setting-row + .setting-row { border-top: 1px solid var(--border); }
.setting-label { display: block; font-size: 13px; margin: 0 0 5px; font-weight: 500; }
.setting-detail { display: block; font-size: 11px; color: var(--muted); line-height: 1.8; }
.setting-row select { border: 1px solid var(--border); border-radius: 5px; padding: 8px 11px; font-size: 11px; background: var(--surface); color: var(--text); }
.plan-overview { display: flex; justify-content: space-between; align-items: center; gap: 22px; background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.plan-overview h2 { margin: 9px 0 7px; font-size: 18px; }
.plan-label { color: var(--accent-text); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.plan-overview p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.switch { position: relative; display: inline-flex; width: 36px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.switch span { background: var(--border); border-radius: 15px; width: 100%; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--surface); left: 3px; top: 3px; border-radius: 50%; box-shadow: 0 1px 2px #0002; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); background: #fffaf0; }
.switch input:focus-visible + span { outline: 2px solid #b36b00; outline-offset: 4px; }
.button-group { display: flex; gap: 7px; flex-wrap: wrap; }
.button-group .secondary { font-size: 11px; min-height: 35px; padding: 8px 11px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; }
.library-heading h2 { font-size: 14px; }
.library-sources .nav-item { min-height: 48px; }
.toast { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 13px 21px; background: var(--text); color: var(--surface); font-size: 12px; border-radius: 7px; box-shadow: 0 5px 25px #0002; z-index: 8; max-width: calc(100% - 30px); text-align: center; width: max-content; }
.dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 28px; max-width: min(440px, calc(100vw - 32px)); width: 440px; box-shadow: 0 20px 90px #10150f30; }
.dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.dialog h2 { margin: 0; font-size: 20px; line-height: 1.7; letter-spacing: -.5px; }
.dialog label { display: block; font-size: 12px; margin-bottom: 10px; }
.dialog input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.sync-illustration { display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--accent-soft); border-radius: 7px; padding: 25px; color: var(--accent-text); margin-bottom: 24px; }
.sync-illustration .icon { width: 40px; height: 40px; stroke-width: 1.2; }
.sync-line { width: 55px; border-bottom: 1px dashed currentColor; }
.sync-dialog > p { color: var(--muted); font-size: 12px; line-height: 2; margin: 13px 0 22px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 14px 0; }
.feature-list [data-icon] { color: var(--accent-text); }
.feature-list .icon { width: 16px; height: 16px; }
.plan-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin-bottom: 17px; }
.full-width { width: 100%; }
.sync-dialog > .dialog-footnote { text-align: center; font-size: 10px; margin: 14px 0 0; }
.mobile-nav, .mobile-brand, .reader-back, .mobile-search { display: none; }
.large-text .article-body, .large-text .reader-intro { font-size: 17px; }
.large-text .article-title { font-size: 16px; }
.compact-list .article-open { padding-top: 12px; padding-bottom: 12px; }
.compact-list .article-summary { -webkit-line-clamp: 1; }
.compact-list .article-title { margin-top: 6px; }
@media (min-width: 1600px) { .article-column { width: 450px; } .reader-scroll { padding: 45px 65px 80px; } .sidebar { width: 240px; } .article-title { font-size: 15px; } }
@media (min-width: 1001px) and (max-width: 1120px) { .sidebar { width: 196px; padding-left: 12px; padding-right: 12px; } .article-column { width: 330px; } .reader-scroll { padding: 28px 26px 55px; } .list-heading { padding-left: 22px; padding-right: 22px; } .article-open { padding-left: 19px; } .reader-toolbar { padding: 0 18px; } .reader h2 { font-size: 24px; } .reader-meta { flex-wrap: wrap; } .category-badge { margin-left: 0; } }
/* Match both a real narrow viewport and the reviewer's explicit phone preview. */
.phone-preview { width: 402px; max-width: calc(100% - 24px); height: min(850px, calc(100dvh - 84px)); min-height: 580px; margin: 0 auto 26px; border-radius: 15px; box-shadow: 0 12px 45px #29322716, 0 0 0 1px #29322725; }
.phone-preview .sidebar { display: none; }
.phone-preview .desktop-breadcrumb, .phone-preview .crumb-divider, .phone-preview .breadcrumb strong, .phone-preview .updated-at { display: none; }
.phone-preview .mobile-brand { display: block; font-size: 25px; font-weight: 700; letter-spacing: -1.4px; }
.phone-preview .mobile-brand > span { color: #c78720; }
.phone-preview .mobile-search { display: inline-flex; }
.phone-preview .topbar { height: 59px; padding: 0 20px; }
.phone-preview .article-column { width: 100%; border-right: 0; }
.phone-preview .reader { display: none; }
.phone-preview.reading .article-column { display: none; }
.phone-preview.reading .reader { display: flex; }
.phone-preview .reader-back { display: flex; }
.phone-preview .reading-label { display: none; }
.phone-preview .reader-toolbar { padding: 0 15px; }
.phone-preview .reader-scroll { padding: 25px 23px 45px; }
.phone-preview .reader h2 { font-size: 26px; }
.phone-preview .reader-meta { flex-wrap: wrap; }
.phone-preview .category-badge { margin-left: auto; }
.phone-preview .mobile-nav { display: flex; flex: none; justify-content: space-around; border-top: 1px solid var(--border); background: var(--surface); padding: 6px 4px max(8px, env(safe-area-inset-bottom)); }
.phone-preview .mobile-nav button { width: 20%; display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 8px 1px; font-size: 9px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; }
.phone-preview .mobile-nav button.active { color: var(--accent-text); background: var(--accent-soft); }
.phone-preview .mobile-nav .icon { width: 20px; height: 20px; }
.phone-preview .utility-page { padding: 30px 22px 40px; }
.phone-preview .utility-page h1 { font-size: 25px; }
.phone-preview .url-entry { flex-direction: column; }
.phone-preview input { font-size: 16px; }
.phone-preview .discovery-help { grid-template-columns: 1fr; gap: 24px; }
.phone-preview .setting-row, .phone-preview .plan-overview { flex-wrap: wrap; padding: 18px; gap: 13px; }
.phone-preview .setting-row > div:first-child { flex: 1; min-width: 130px; }
.phone-preview .setting-row .button-group { width: 100%; }
.phone-preview .result-heading { flex-wrap: wrap; }
.phone-preview .detected-status { margin-left: 0; }
.phone-preview .discovery-result { padding: 17px; }
.phone-preview .toast { bottom: 85px; }
.phone-preview .icon-button { width: 44px; height: 44px; }
.phone-preview .article-row > .save-article { width: 36px; height: 44px; }
.phone-preview .segmented button { min-height: 36px; }
@media (max-width: 1000px) {
  .design-bar { height: 49px; padding: 0 16px; }
  .study-label { font-size: 9px; letter-spacing: 1px; }
  .study-description { display: none; }
  .device-switch { display: none; }
  .app-shell, .phone-preview { height: calc(100dvh - 49px); min-height: 480px; max-width: none; width: 100%; border-radius: 0; margin: 0; }
  .sidebar { display: none; }
  .desktop-breadcrumb, .crumb-divider, .breadcrumb strong, .updated-at { display: none; }
  .mobile-brand { display: block; font-size: 25px; font-weight: 700; letter-spacing: -1.4px; }
  .mobile-brand > span { color: #c78720; }
  .mobile-search { display: inline-flex; }
  .topbar { height: 59px; padding: 0 20px; }
  .article-column { width: 100%; border-right: 0; }
  .reader { display: none; }
  .reading .article-column { display: none; }
  .reading .reader { display: flex; }
  .reader-back { display: flex; }
  .reading-label { display: none; }
  .reader-toolbar { padding: 0 15px; }
  .reader-scroll { padding: 25px 23px 45px; }
  .reader h2 { font-size: 26px; }
  .reader-meta { flex-wrap: wrap; }
  .category-badge { margin-left: auto; }
  .mobile-nav { display: flex; flex: none; justify-content: space-around; border-top: 1px solid var(--border); background: var(--surface); padding: 6px 4px max(8px, env(safe-area-inset-bottom)); }
  .mobile-nav button { width: 20%; display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 8px 1px; font-size: 9px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; }
  .mobile-nav button.active { color: var(--accent-text); background: var(--accent-soft); }
  .mobile-nav .icon { width: 20px; height: 20px; }
  .utility-page { padding: 30px 22px 40px; }
  .utility-page h1 { font-size: 25px; }
  .url-entry { flex-direction: column; }
  input { font-size: 16px !important; }
  .discovery-help { grid-template-columns: 1fr; gap: 24px; }
  .setting-row, .plan-overview { flex-wrap: wrap; padding: 18px; gap: 13px; }
  .setting-row > div:first-child { flex: 1; min-width: 130px; }
  .setting-row .button-group { width: 100%; }
  .result-heading { flex-wrap: wrap; }
  .detected-status { margin-left: 0; }
  .discovery-result { padding: 17px; }
  .toast { bottom: 85px; }
  .icon-button { width: 44px; height: 44px; }
  .article-row > .save-article { width: 36px; height: 44px; }
  .list-heading { padding: 24px 24px 20px; }
  .segmented button { min-height: 36px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s, color .15s; } .switch span::after { transition: transform .15s; } }

/* Product additions; the approved reading layout is retained above. */
html, body { height: 100%; background: #fdfdfb; }
.app-shell { height: 100dvh; min-height: 0; max-width: none; }
.boot { margin: auto; text-align: center; padding: 30px; }
.boot-brand { display: block; font-size: 36px; font-weight: 750; letter-spacing: -2px; }
.boot-brand > span { color: #be7c16; }
.boot p { font-size: 13px; color: #72786e; line-height: 2; }
.reader-empty { margin: auto; max-width: 400px; }
.empty-state .primary { margin-top: 15px; }
.empty-state .text-button { margin-top: 10px; }
.no-sources { color: var(--muted); font-size: 11px; margin-left: 10px; }
.source-error { margin-left: auto; color: #b3742b; font-weight: 700; }
.heading-actions { display: flex; }
.article-meta .source-title { max-width: 65%; }
.article-body { overflow-wrap: anywhere; }
.article-body a { color: var(--accent-text); text-underline-offset: 3px; }
.article-body pre { white-space: pre-wrap; font-size: .85em; padding: 14px; background: var(--subtle); border-radius: 4px; }
.article-body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: .85em; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 8px; }
.article-body img { max-width: 100%; }
.article-body ul, .article-body ol { padding-left: 23px; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.offline-banner { padding: 9px 22px; font-size: 11px; background: var(--accent-soft); color: var(--accent-text); border-bottom: 1px solid var(--border); }
.local-trial-label { font-size: 9px; color: var(--muted); padding: 5px 7px; border: 1px solid var(--border); border-radius: 3px; white-space: nowrap; }
.managed-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.managed-row > .nav-item { border-radius: 0; min-height: 56px; }
.managed-row > .icon-button { margin-right: 8px; }
.managed-source { min-width: 0; }
.managed-source strong { font-weight: 500; display: block; font-size: 13px; overflow-wrap: anywhere; }
.managed-source small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.plan-overview { align-items: flex-start; flex-wrap: wrap; }
.plan-overview .button-group { align-self: center; }
.plan-overview h2 { overflow-wrap: anywhere; }
.plan-overview p { overflow-wrap: anywhere; }
.dialog-description { font-size: 12px; line-height: 2; color: var(--muted); }
.dialog input, .dialog select { margin-bottom: 18px; }
.dialog select { width: 100%; color: var(--text); background: var(--surface); padding: 11px; border: 1px solid var(--border); border-radius: 5px; }
.dialog .dialog-heading { margin-bottom: 18px; }
.dialog .email-form label { margin-top: 20px; }
.dialog .email-form input { margin-bottom: 14px; }
.dialog-delete { display: block; margin-top: 20px; }
.danger-text { color: #b05a47; }
[data-theme="dark"] .danger-text { color: #e4a18f; }
.break-url { overflow-wrap: anywhere; }
.plan-price { display: flex; justify-content: center; gap: 45px; margin: 25px 0; }
.plan-price > span { display: block; font-size: 11px; color: var(--muted); }
.plan-price strong { display: block; font-size: 25px; color: var(--text); font-weight: 600; margin-top: 5px; }
.local-trial-box { border-top: 1px solid var(--border); margin-top: 25px; padding-top: 18px; }
.local-trial-box h3 { font-size: 13px; margin: 0 0 9px; }
.local-trial-box p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.dialog input[type="radio"] { margin: 0; }
.dialog progress { display: block; width: 100%; accent-color: #bf871e; }
.import-results { max-height: 250px; overflow-y: auto; font-size: 11px; }
.import-results p { overflow-wrap: anywhere; padding: 8px 0; border-bottom: 1px solid var(--border); }
.import-results small { display: block; color: var(--muted); margin-top: 4px; }
.prose { font-size: 14px; line-height: 2.1; max-width: 680px; margin-top: 30px; }
.prose h2 { font-size: 18px; margin-top: 32px; }
.prose p { margin: 20px 0; }
.prose + button { margin-top: 20px; }
.auth-page { display: grid; place-items: center; min-height: 100dvh; background: #f5f5f0; color: #2b302b; }
.auth-card { width: min(440px,calc(100% - 32px)); background: #fdfdfb; border: 1px solid #e7e9e1; border-radius: 10px; padding: 32px; }
.auth-card h1 { font-size: 26px; margin-bottom: 15px; }
.auth-card p { font-size: 13px; line-height: 2; }
.auth-card label { font-size: 12px; display: block; margin: 18px 0 9px; }
.auth-card input { width: 100%; padding: 12px; border: 1px solid #d4d8ce; border-radius: 5px; background: #fff; color: #2b302b; margin-bottom: 18px; }
.auth-card .primary { background: #f8b83c; margin-top: 10px; }
@media (max-width:1000px) {
  .app-shell { height: 100dvh; min-height: 0; }
  .local-trial-label { display: none; }
  .reader-actions { gap: 2px; }
  .reader-toolbar { gap: 6px; }
  .dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
  .dialog input, .dialog select { font-size: 16px; }
  .setting-row .secondary { min-height: 40px; }
}
@media (min-width:761px) and (max-width:1000px) {
  .article-open { padding-left: 32px; padding-right: 22px; }
  .article-column { max-width: 680px; margin: auto; }
  .reader-toolbar, .reader-scroll { padding-left: max(28px,calc((100vw - 680px)/2)); padding-right: max(28px,calc((100vw - 680px)/2)); }
}

/* Theme/source navigation and a reading-first mobile layout. */
.menu-button, .drawer-close, .drawer-backdrop { display: none; }
.theme-heading { display: flex; align-items: center; gap: 1px; }
.theme-heading > .nav-item { flex: 1; min-width: 0; padding-left: 3px; gap: 7px; font-size: 12px; }
.theme-toggle.icon-button { width: 24px; height: 38px; flex: none; }
.theme-toggle .icon { width: 13px; height: 13px; }
.theme-sources { padding-left: 22px; }
.theme-sources .nav-item { min-height: 38px; font-size: 11px; padding-left: 7px; gap: 7px; }
.theme-sources .source-mark { width: 20px; height: 20px; }
.theme-sources .source-title { flex: 1; }
.manage-library { margin-top: 16px; color: var(--muted); font-size: 11px; }
.scope-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0 26px 16px; }
.scope-filters label { flex: 1; min-width: 100px; display: grid; gap: 6px; font-size: 10px; color: var(--muted); }
.scope-filters select { width: 100%; min-width: 0; max-width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 5px; padding: 8px 5px; font-size: 12px; text-overflow: ellipsis; }
.scope-filters .text-button { margin: 0; min-height: 34px; font-size: 11px; }
.article-preview { display: flex; align-items: flex-start; gap: 13px; margin-top: 10px; }
.article-text { min-width: 0; flex: 1; }
.article-preview .article-title { margin-top: 0; }
.article-thumbnail { display: grid; place-items: center; width: 76px; height: 62px; flex: none; margin-top: 3px; border-radius: 5px; overflow: hidden; background: var(--subtle); position: relative; }
.article-thumbnail > .source-mark { border: 0; background: transparent; font-size: 20px; width: 100%; height: 100%; }
.article-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compact-list .article-thumbnail { width: 60px; height: 50px; }
.library-groups { margin-top: 32px; }
.library-theme { margin-top: 24px; }
.theme-library-heading { background: var(--subtle); }
.library-theme .managed-list { padding-left: 20px; }
.site-candidate { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--border); }
.site-candidate > div { flex: 1; min-width: 0; }
.site-candidate strong { font-size: 13px; }
.site-candidate small { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 11px; margin-top: 6px; line-height: 1.7; }
.site-candidate button { flex: none; font-size: 11px; padding: 8px 10px; }
.search-credit { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 16px 0 0; }
@media (max-width:1000px) {
  .mobile-nav { display: none; }
  .breadcrumb { gap: 10px; }
  .menu-button.icon-button { display: inline-flex; margin-left: -9px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .menu-open > .sidebar { display: flex; position: absolute; inset: 0 auto 0 0; width: min(320px,calc(100% - 40px)); z-index: 21; padding-top: max(26px,env(safe-area-inset-top)); box-shadow: 12px 0 50px #0002; }
  .drawer-close.icon-button { display: inline-flex; position: absolute; top: 18px; right: 10px; }
  .drawer-backdrop { display: block; position: absolute; inset: 0; background: var(--overlay); border: 0; z-index: 20; }
  .theme-heading > .nav-item, .theme-sources .nav-item { min-height: 44px; }
  .theme-toggle.icon-button { width: 32px; height: 44px; }
  .scope-filters { margin-left: 24px; margin-right: 24px; }
  .scope-filters select { min-height: 42px; }
  .toast { bottom: max(22px,env(safe-area-inset-bottom)); }
  .article-column, .utility-page, .reader-scroll { padding-bottom: max(20px,env(safe-area-inset-bottom)); }
}
@media (max-width:370px) {
  .topbar-actions { gap: 0; }
  .topbar { padding-right: 8px; }
  .article-thumbnail { width: 60px; height: 54px; }
  .article-preview { gap: 9px; }
  .site-candidate { flex-wrap: wrap; }
}
@media (min-width:761px) and (max-width:1000px) {
  .article-column { margin: 0 auto; }
}
@media (max-width:1000px) {
  .section-label .icon-button { width: 44px; height: 44px; }
}

/* New arrivals never insert a banner above the current reading position. */
.list-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: 0 26px; border-bottom: 1px solid var(--border); }
.list-status .list-day { margin: 0; padding: 0; border: 0; flex: 1; min-width: 0; }
.list-status .list-updates { margin: 0; padding: 5px 0; min-height: 36px; font-size: 11px; flex: none; white-space: nowrap; }
.article-column { overflow-anchor: none; }
@media (max-width:1000px) { .list-status { margin-left: 24px; margin-right: 24px; } }
