:root {
  --canvas: #f6f4ef;
  --paper: #fffdf9;
  --ink: #18232b;
  --muted: #68747b;
  --line: #e3dfd6;
  --line-strong: #cbc5b9;
  --coral: #e9785e;
  --coral-dark: #bc5544;
  --gold: #e6b956;
  --teal: #4d887f;
  --blue: #6d8ca8;
  --shadow: 0 18px 55px rgba(24, 35, 43, .08);
  --radius: 14px;
  --sidebar: 246px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { font-size: 15px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.eyebrow { margin: 0 0 8px; color: var(--coral-dark); font-size: 11px; font-weight: 750; letter-spacing: .14em; }

.login-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 43vw); min-height: 100vh; }
.login-panel { display: flex; flex-direction: column; justify-content: center; width: min(450px, 100%); margin: 0 auto; padding: 52px 38px; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 34px; color: var(--gold); background: var(--ink); border-radius: 16px; font-size: 18px; font-weight: 800; letter-spacing: .08em; }
.brand-mark.small { width: 34px; height: 34px; margin: 0; border-radius: 10px; font-size: 11px; }
.login-panel h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; }
.login-panel h1 em { color: var(--coral-dark); font-style: normal; }
.login-copy { max-width: 370px; margin: 24px 0 35px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.login-form label, .modal-form label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 15px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 10px; }
.input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border: 1px solid transparent; border-radius: 9px; padding: 0 16px; font-size: 13px; font-weight: 750; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--coral-dark); }
.button-primary:hover { background: #a9483a; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #2c3a43; }
.button-soft { color: var(--ink); border-color: var(--line); background: rgba(255, 253, 249, .76); }
.button-soft:hover { border-color: var(--line-strong); background: var(--paper); }
.button-wide { width: 100%; min-height: 52px; margin-top: 16px; }
.button-small { min-height: 33px; padding: 0 11px; font-size: 12px; }
.login-footnote, .demo-hint { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.demo-hint code { padding: 3px 6px; color: var(--coral-dark); background: #f5e6df; border-radius: 5px; }
.login-aside { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 44px; background: #d9e3df; }
.aside-grid { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(24,35,43,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(24,35,43,.08) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom right, #000, transparent 80%); }
.login-aside::before { content: ''; position: absolute; top: 18%; right: 15%; width: 240px; height: 340px; border: 1px solid rgba(24, 35, 43, .25); transform: rotate(8deg); }
.login-aside::after { content: ''; position: absolute; top: 23%; right: 21%; width: 240px; height: 340px; background: #f7f1e7; border: 1px solid rgba(24, 35, 43, .25); box-shadow: 25px 25px 0 rgba(24, 35, 43, .12); transform: rotate(-10deg); }
.aside-caption { position: relative; z-index: 1; max-width: 270px; }
.aside-caption span { color: var(--coral-dark); font-size: 12px; font-weight: 800; }
.aside-caption strong { display: block; margin-top: 8px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.aside-caption p { margin: 13px 0 0; color: #43555a; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 28px 18px 17px; border-right: 1px solid var(--line); background: rgba(246, 244, 239, .86); }
.sidebar-brand, .mobile-brand { display: flex; align-items: center; gap: 10px; }
.sidebar-brand strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.sidebar-brand span { display: block; color: var(--muted); font-size: 11px; }
.nav-group { margin-top: 55px; }
.nav-group.secondary { margin-top: 31px; }
.nav-label { margin: 0 12px 10px; color: #9a958b; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; margin: 3px 0; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; font-size: 13px; }
.nav-item:hover { color: var(--ink); background: rgba(255, 253, 249, .72); }
.nav-item.active { color: var(--ink); background: var(--paper); box-shadow: 0 4px 14px rgba(24, 35, 43, .04); }
.nav-item.active .icon { color: var(--coral-dark); }
.nav-item b { margin-left: auto; min-width: 20px; padding: 1px 5px; border-radius: 10px; color: var(--coral-dark); background: #f6ded6; font-size: 11px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.user-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: rgba(255, 253, 249, .6); text-align: left; }
.user-chip:hover { background: var(--paper); }
.user-chip .avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--teal); font-size: 12px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--muted); font-size: 10px; }
.user-chip .icon { margin-left: auto; width: 15px; }
.main-shell { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 17px clamp(23px, 4vw, 62px); border-bottom: 1px solid rgba(227, 223, 214, .8); background: rgba(246, 244, 239, .88); backdrop-filter: blur(15px); }
.mobile-brand { display: none; }
.topbar-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 530px; height: 43px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 253, 249, .72); color: var(--muted); }
.topbar-search:focus-within { border-color: var(--line-strong); background: var(--paper); box-shadow: 0 0 0 3px rgba(233, 120, 94, .1); }
.topbar-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.topbar-search kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: #9b978e; font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--ink); border-color: var(--line); background: var(--paper); }
.content-area { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 78px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 47px); line-height: 1; letter-spacing: -.055em; }
.page-description { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; gap: 9px; }

.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.filter-pills { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill, .text-filter { white-space: nowrap; border: 1px solid transparent; border-radius: 999px; padding: 7px 12px; color: var(--muted); background: transparent; font-size: 12px; }
.filter-pill:hover, .text-filter:hover { color: var(--ink); background: var(--paper); }
.filter-pill.selected { border-color: var(--line); color: var(--ink); background: var(--paper); box-shadow: 0 3px 10px rgba(24,35,43,.03); }
.filter-pill span { margin-left: 3px; color: var(--coral-dark); font-size: 10px; }
.toolbar-tools { display: flex; align-items: center; gap: 4px; }
.toolbar-tools select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--muted); background: transparent; font-size: 12px; outline: 0; }
.library-summary { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 30px; align-items: center; padding: 18px 0 25px; }
.library-summary > div:not(.summary-note) { display: flex; align-items: baseline; gap: 6px; }
.library-summary strong { font-size: 20px; letter-spacing: -.04em; }
.library-summary span { color: var(--muted); font-size: 12px; }
.summary-note { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.summary-note .icon { width: 14px; color: var(--gold); }
.item-list { display: grid; gap: 9px; }
.item-row { position: relative; display: grid; grid-template-columns: 4px minmax(0, 1fr) 180px auto; align-items: center; gap: 22px; min-height: 129px; padding: 19px 17px 19px 0; border-top: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.item-row:last-child { border-bottom: 1px solid var(--line); }
.item-row:hover { padding-left: 8px; background: rgba(255, 253, 249, .65); }
.item-row.is-pinned { background: rgba(230, 185, 86, .06); }
.item-accent { align-self: stretch; border-radius: 3px; background: var(--coral); }
.accent-1 { background: var(--gold); }.accent-2 { background: var(--teal); }.accent-3 { background: var(--blue); }.accent-4 { background: #a88e9f; }
.item-main { min-width: 0; cursor: pointer; }
.item-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.source-name { color: var(--coral-dark); font-weight: 750; }
.dot { color: var(--line-strong); }
.item-main h3 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; letter-spacing: -.025em; }
.item-main p { overflow: hidden; max-width: 690px; margin: 5px 0 8px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.item-tags { display: flex; gap: 5px; }
.tag { padding: 3px 7px; border-radius: 4px; color: #65716f; background: #e9efeb; font-size: 10px; }
.tag-more { padding: 3px 2px; color: var(--muted); font-size: 10px; }
.item-state { min-width: 0; display: grid; justify-items: start; gap: 7px; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 5px; font-size: 10px; font-weight: 750; }
.status-inbox, .status-update { color: #8e6420; background: #fbefc8; }.status-reading { color: #32766f; background: #e3f0ec; }.status-read { color: #596e83; background: #e8eef4; }.status-unread { color: #8a6d68; background: #f3e9e4; }
.external-label { color: var(--muted); font-size: 10px; }
.item-state small { color: var(--muted); font-size: 10px; }
.progress-line { overflow: hidden; width: 100%; height: 4px; border-radius: 4px; background: var(--line); }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.item-actions { display: flex; align-items: center; gap: 4px; }
.inbox-banner { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding: 18px 20px; border: 1px solid #e5d4a6; background: #fff9e9; }
.banner-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #8e6420; background: #f9e9b7; }
.inbox-banner strong { font-size: 14px; }.inbox-banner p { margin: 2px 0 0; color: #806f58; font-size: 12px; }.inbox-banner .button { margin-left: auto; }
.inbox-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }.source-filter-label { margin-left: 10px; color: var(--muted); font-size: 11px; }.text-filter { padding: 6px 7px; }

.reading-hero { display: flex; align-items: flex-end; justify-content: space-between; min-height: 264px; padding: 32px 36px; color: #fff; background: var(--ink); }
.hero-kicker { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .15em; }.reading-hero h2 { max-width: 640px; margin: 12px 0 7px; font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -.055em; }.reading-hero p { margin: 0 0 24px; color: #bdc8c8; font-size: 13px; }.reading-ring { display: grid; place-items: center; width: 122px; height: 122px; border: 1px solid #6c7a7c; border-radius: 50%; box-shadow: inset 0 0 0 11px rgba(255,255,255,.04); }.reading-ring span { font-size: 27px; font-weight: 800; }.reading-ring small { margin-top: -34px; color: #aeb8b8; font-size: 10px; }.reading-columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; margin-top: 42px; }.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }.section-title h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }.section-title span { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; color: var(--coral-dark); background: #f5ddd6; font-size: 10px; }.item-list.compact .item-row { grid-template-columns: 4px minmax(0, 1fr) 140px auto; min-height: 108px; }.reading-side { display: grid; align-content: start; gap: 10px; }.side-stat { display: flex; align-items: center; gap: 13px; min-height: 86px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }.side-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; }.side-icon.gold { color: #8e6420; background: #f9e9b7; }.side-icon.teal { color: #32766f; background: #e3f0ec; }.side-stat strong, .side-stat span { display: block; }.side-stat strong { font-size: 24px; line-height: 1; letter-spacing: -.05em; }.side-stat div span { margin-top: 5px; color: var(--muted); font-size: 11px; }.side-stat .icon-button { margin-left: auto; width: 30px; height: 30px; }
.inline-empty { padding: 25px 0; color: var(--muted); font-size: 13px; }

.bookmark-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.bookmark-card { padding: 21px; border: 1px solid var(--line); background: var(--paper); }.bookmark-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }.bookmark-card-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.bookmark-card-top .icon-button { margin-left: auto; width: 30px; height: 30px; }.bookmark-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #8e6420; background: #f9e9b7; }.bookmark-symbol .icon { width: 14px; }.bookmark-card h3 { margin: 22px 0 7px; font-size: 17px; letter-spacing: -.025em; }.bookmark-card p { min-height: 39px; margin: 0; color: var(--muted); font-size: 12px; }.bookmark-card footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.bookmark-card footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bookmark-card footer b { color: var(--teal); }
.source-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.source-header strong { margin-right: 7px; font-size: 24px; letter-spacing: -.04em; }.source-header span { color: var(--muted); font-size: 12px; }.source-list { display: grid; gap: 9px; }.source-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }.source-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; color: #fff; background: var(--teal); font-size: 17px; font-weight: 800; }.source-card-main { min-width: 0; flex: 1; }.source-card-title { display: flex; align-items: center; gap: 9px; }.source-card-title h3 { margin: 0; font-size: 15px; }.status-dot { color: var(--teal); font-size: 10px; }.source-card p { margin: 4px 0 10px; color: var(--muted); font-size: 12px; }.source-stats { display: flex; gap: 14px; color: #8c918f; font-size: 10px; }
.empty-state { display: grid; justify-items: center; padding: 84px 20px; border: 1px dashed var(--line-strong); text-align: center; }.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 14px; color: var(--coral-dark); background: #f5ddd6; }.empty-state h3 { margin: 0; font-size: 18px; }.empty-state p { max-width: 350px; margin: 7px 0 20px; color: var(--muted); font-size: 13px; }

.reader-shell { display: grid; grid-template-rows: auto 3px minmax(0, 1fr) auto; height: 100dvh; min-height: 0; overflow: hidden; background: #ebe9e4; }.reader-topbar { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }.reader-title { display: grid; min-width: 0; }.reader-title span { color: var(--coral-dark); font-size: 10px; font-weight: 750; }.reader-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.reader-top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }.reader-status { padding: 5px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; }.reader-progress { background: var(--line); }.reader-progress-disabled { opacity: .35; }.reader-progress span { display: block; height: 100%; background: var(--coral); transition: width .25s ease; }.reader-body { position: relative; min-height: 0; overflow: hidden; }.reader-body iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }.reader-loading, .reader-fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; background: #ebe9e4; }.reader-loading p, .reader-fallback p { max-width: 360px; color: var(--muted); font-size: 13px; }.reader-fallback h2 { margin: 14px 0 0; font-size: 25px; letter-spacing: -.04em; }.fallback-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; color: var(--coral-dark); background: #f5ddd6; }.hidden { display: none !important; }.loader { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}.reader-toolbar { display: flex; align-items: center; gap: 5px; min-height: 65px; padding: 10px 24px; border-top: 1px solid var(--line); background: var(--paper); }.reader-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; }.reader-tool:hover { color: var(--ink); border-color: var(--line); background: var(--canvas); }.reader-tool:disabled { cursor: not-allowed; opacity: .46; }.reader-toolbar-spacer { flex: 1; }.reader-progress-label { color: var(--muted); font-size: 11px; }.reader-progress-label span { padding: 0 4px; color: var(--line-strong); }.reader-toast { position: fixed; right: 24px; bottom: 88px; z-index: 30; padding: 10px 15px; border: 1px solid var(--line); opacity: 0; background: var(--paper); box-shadow: var(--shadow); transform: translateY(7px); transition: opacity .2s ease, transform .2s ease; font-size: 12px; }.reader-toast.visible { opacity: 1; transform: translateY(0); }

.mobile-tabs { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(24, 35, 43, .28); backdrop-filter: blur(3px); }.modal-panel { position: fixed; top: 50%; left: 50%; z-index: 41; width: min(520px, calc(100% - 30px)); max-height: min(740px, calc(100vh - 30px)); overflow: auto; padding: 25px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 28px 90px rgba(24,35,43,.2); transform: translate(-50%, -50%); }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.modal-head h2 { margin: 0; font-size: 25px; line-height: 1; letter-spacing: -.045em; }.modal-head .icon-button { width: 34px; height: 34px; transform: rotate(90deg); }.modal-form { display: grid; gap: 17px; }.modal-form input, .modal-form textarea, .modal-form select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; outline: 0; color: var(--ink); background: #fff; resize: vertical; }.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(233,120,94,.11); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }.form-hint, .drop-copy p { color: var(--muted); font-size: 12px; line-height: 1.7; }.drop-copy { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }.drop-illustration { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; color: var(--coral-dark); background: #f5ddd6; }.drop-copy p { margin: 0; }.modal-check { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--ink); font-size: 12px; }.modal-check input { accent-color: var(--coral-dark); }.drop-result, .token-result { display: grid; gap: 9px; margin-top: 20px; padding: 13px; border: 1px solid var(--line); background: #f8f6f1; }.drop-result span { color: var(--muted); font-size: 11px; }.drop-result code, .token-result code { overflow-wrap: anywhere; padding: 10px; border-radius: 7px; color: var(--ink); background: #fff; font-size: 11px; line-height: 1.5; }.menu-list { display: grid; gap: 5px; }.menu-list button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; border: 0; border-radius: 8px; padding: 0 11px; color: var(--ink); background: transparent; text-align: left; font-size: 13px; }.menu-list button:hover { background: var(--canvas); }.menu-list .icon { color: var(--coral-dark); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 60; }.toast { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); box-shadow: var(--shadow); font-size: 12px; }.toast .icon { width: 15px; color: var(--teal); }.toast-error .icon { color: var(--coral-dark); }
.taxonomy-section + .taxonomy-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }.taxonomy-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.taxonomy-heading h3 { margin: 0; font-size: 15px; }.taxonomy-heading span { color: var(--muted); font-size: 10px; }.taxonomy-create { display: flex; gap: 8px; margin-bottom: 9px; }.taxonomy-create input { flex: 1; min-width: 0; }.taxonomy-create .icon-button { flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 8px; }.taxonomy-list { display: grid; gap: 2px; max-height: 190px; overflow: auto; }.taxonomy-row { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 4px 0 10px; border-radius: 7px; }.taxonomy-row:hover { background: var(--canvas); }.taxonomy-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.taxonomy-row small { margin-left: auto; color: var(--muted); font-size: 10px; }.taxonomy-row .icon-button { width: 28px; height: 28px; }

html.reader-active, body.reader-active { height: 100%; overflow: hidden; }
body.reader-active { position: fixed; inset: 0; width: 100%; padding-bottom: 0; }

@media (max-width: 900px) {
  :root { --sidebar: 210px; }
  .content-area { width: min(100% - 36px, 760px); }
  .item-row { grid-template-columns: 4px minmax(0, 1fr) 145px auto; gap: 14px; }
  .reading-columns { grid-template-columns: 1fr; }.reading-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14px; padding-bottom: 68px; }
  .login-screen { display: block; }.login-panel { width: min(470px, 100%); min-height: 100vh; padding: 34px 25px; }.login-panel h1 { font-size: 43px; }.login-aside { display: none; }
  .sidebar { display: none; }.main-shell { width: 100%; margin: 0; }.topbar { min-height: 68px; padding: 12px 17px; gap: 10px; }.mobile-brand { display: flex; flex: 0 0 auto; }.mobile-brand strong { font-size: 13px; }.topbar-search { order: 3; flex-basis: 100%; max-width: none; height: 39px; }.topbar { flex-wrap: wrap; }.topbar-actions { margin-left: auto; }.topbar-actions .icon-button { width: 36px; height: 36px; }.topbar-actions .button { width: 38px; height: 38px; padding: 0; }.topbar-actions .button span { display: none; }.topbar-actions .button .icon { width: 17px; }.topbar-search kbd { display: none; }
  .content-area { width: calc(100% - 30px); padding: 33px 0 46px; }.page-heading { align-items: flex-start; margin-bottom: 25px; }.page-heading h1 { font-size: 35px; }.page-description { max-width: 250px; line-height: 1.5; }.heading-actions { display: none; }
  .mobile-tabs { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 11px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,249,.95); backdrop-filter: blur(15px); }.mobile-tabs .nav-item { display: grid; justify-items: center; gap: 2px; min-height: 49px; padding: 4px; border-radius: 8px; font-size: 10px; }.mobile-tabs .nav-item b { position: absolute; top: 3px; margin-left: 32px; }.mobile-tabs .nav-item .icon { width: 18px; height: 18px; }
  .library-toolbar { display: grid; gap: 11px; }.toolbar-tools { justify-content: space-between; }.toolbar-tools select { flex: 1; }.library-summary { gap: 10px; grid-template-columns: repeat(3, 1fr); }.summary-note { display: none; }.library-summary > div:not(.summary-note) { display: grid; gap: 0; }.library-summary strong { font-size: 18px; }.item-row, .item-list.compact .item-row { grid-template-columns: 4px minmax(0, 1fr) auto; align-items: start; gap: 11px; min-height: 136px; padding: 16px 3px 16px 0; }.item-row:hover { padding-left: 0; }.item-main h3 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 16px; line-height: 1.28; }.item-main p { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }.item-state { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }.item-state .progress-line { flex-basis: 100%; }.item-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }.item-actions .button-small { min-height: 34px; padding: 0 8px; }.item-actions .button-small span { display: none; }.item-meta { flex-wrap: wrap; }.item-tags { margin-top: 5px; }.inbox-banner { align-items: flex-start; flex-wrap: wrap; padding: 15px; }.inbox-banner .button { width: 100%; margin: 3px 0 0 57px; }.inbox-filters { overflow-x: auto; white-space: nowrap; margin-right: -15px; }.source-filter-label { margin-left: 3px; }.reading-hero { display: grid; min-height: 300px; padding: 25px 22px; }.reading-ring { width: 88px; height: 88px; margin-top: 20px; }.reading-ring span { font-size: 20px; }.reading-ring small { margin-top: -25px; }.reading-hero h2 { font-size: 32px; }.reading-columns { gap: 24px; margin-top: 28px; }.reading-side { gap: 8px; }.side-stat { min-height: 72px; padding: 12px; }.side-stat strong { font-size: 20px; }.bookmark-grid { grid-template-columns: 1fr; }.source-card { align-items: flex-start; padding: 14px; }.source-stats { flex-wrap: wrap; gap: 6px 12px; }.source-card > .icon-button { margin-left: auto; }.reader-shell { min-height: 100svh; }.reader-topbar { min-height: 58px; padding: 8px 12px; }.reader-top-actions .reader-status { display: none; }.reader-body { min-height: 0; }.reader-toolbar { min-height: 61px; padding: 8px 12px; }.reader-tool { min-width: 42px; padding: 0 9px; }.reader-tool span { display: none; }.reader-progress-label { font-size: 10px; }.reader-fallback { padding: 20px; }.modal-panel { padding: 21px; }.form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
