:root {
  --ink: #1a1a1a;
  --black: #000;
  --pink: #ff69b4;
  --pink-light: #fff0f5;
  --muted: #626262;
  --line: #e4e4e4;
  --grey: #f4f4f4;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar: 274px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.6 var(--font); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--black); }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: default; }
a { color: var(--black); text-decoration: none; }
a:hover { color: #a4135b; }
h1, h2, h3 { color: var(--black); font-weight: 750; letter-spacing: -.5px; }
.hidden { display: none !important; }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 35px 24px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.brand { display: inline-block; align-self: flex-start; position: relative; isolation: isolate; color: #000; font-size: 27px; font-weight: 900; line-height: 1.3; letter-spacing: -1.4px; white-space: nowrap; }
.brand::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 9px; background: var(--pink); opacity: .35; z-index: -1; }
.brand:hover { color: #000; }
.brand:hover::after { opacity: .65; }
.brand-suffix { font-weight: 650; }
.sidebar nav { margin-top: 40px; }
.nav-item { display: flex; align-items: center; gap: 12px; margin: 5px 0; padding: 12px 14px; border-radius: 5px; color: #505050; font-weight: 600; }
.nav-item:hover { color: #000; background: var(--grey); }
.nav-item.active { background: var(--pink-light); color: #000; box-shadow: inset 3px 0 var(--pink); }
.nav-count { margin-left: auto; padding: 0 7px; background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.profile { margin-top: auto; border-top: 1px solid var(--line); padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-light); font-weight: 750; }
.profile strong { font-size: 14px; }
.profile small { display: block; font-size: 12px; color: var(--muted); }
.local-dot, .local-label i { width: 7px; height: 7px; border-radius: 50%; background: #555; display: inline-block; flex-shrink: 0; }
.local-dot { margin-left: auto; }
.main { margin-left: var(--sidebar); min-width: 0; }
.topbar { min-height: 83px; padding: 18px 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb span { margin: 0 12px; color: #999; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.local-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid var(--black); border-radius: 24px; font-size: 14px; font-weight: 650; line-height: 1.4; white-space: nowrap; transition: background .15s, border-color .15s; }
.button-dark { background: var(--black); color: #fff; }
.button-dark:hover { background: var(--pink); border-color: var(--pink); color: #000; }
.button-light { background: #fff; color: #000; border-color: #ccc; }
.button-light:hover { background: var(--pink-light); border-color: var(--pink); color: #000; }
.button.small { padding: 9px 16px; font-size: 13px; }
.button .icon { width: 17px; height: 17px; }
.page-content { max-width: 1440px; padding: 42px 40px 60px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { font-size: 42px; line-height: 1.15; margin: 0; letter-spacing: -1.5px; }
.page-heading p { color: var(--muted); margin: 12px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); padding: 24px 0; margin-bottom: 24px; }
.stats > div { display: flex; align-items: center; gap: 16px; padding: 0 24px; border-right: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border: 0; }
.stat-icon { background: var(--pink-light); color: #000; padding: 12px; border-radius: 4px; }
.stats strong { display: block; font-size: 30px; font-weight: 750; line-height: 1.2; letter-spacing: -1px; }
.stats div div > span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.monitor-banner { display: flex; align-items: center; gap: 12px; background: var(--grey); border-left: 3px solid var(--pink); padding: 16px 18px; margin-bottom: 28px; font-size: 14px; }
.monitor-dot { height: 7px; width: 7px; background: #555; border-radius: 50%; flex-shrink: 0; }
.monitor-banner p { margin: 0; }
.banner-action { display: flex; align-items: center; gap: 8px; margin-left: auto; border: 0; background: none; padding: 5px 0 5px 12px; font-weight: 650; white-space: nowrap; font-size: 13px; }
.banner-action:hover { text-decoration: underline; }
.banner-action .icon { width: 16px; height: 16px; }
.monitor-banner.warning { background: #fff6eb; border-color: #b36b00; }
.pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.library-tabs { display: flex; gap: 24px; align-self: stretch; }
.library-tab { position: relative; background: none; border: 0; padding: 16px 0; color: var(--muted); white-space: nowrap; font-size: 14px; }
.library-tab.active { color: #000; font-weight: 750; }
.library-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--pink); }
.library-tab span { background: var(--grey); padding: 2px 6px; margin-left: 5px; border-radius: 3px; font-size: 12px; }
.library-tools { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.search-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid #ccc; border-radius: 4px; padding: 9px 11px; margin: 0; background: white; }
.search-wrap .icon { width: 16px; height: 16px; color: var(--muted); }
.search-wrap input[type=search] { border: 0; background: none; margin: 0; padding: 0; outline: none; box-shadow: none; width: 180px; min-width: 0; font-size: 13px; font-weight: 400; }
.search-wrap:focus-within { outline: 2px solid #000; outline-offset: 2px; }
.library-tools select { background: white; border: 1px solid #ccc; border-radius: 4px; padding: 9px; max-width: 170px; font-size: 13px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #fff; border: 1px solid #ccc; border-radius: 4px; }
.icon-button:hover { background: var(--pink-light); border-color: var(--pink); }
.icon-button .icon { width: 17px; height: 17px; }
.results-heading { display: flex; justify-content: space-between; gap: 16px; margin: 22px 0 18px; color: var(--muted); font-size: 12px; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; min-width: 0; min-height: 285px; padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s; }
.article-card:hover { border-color: var(--pink); color: var(--ink); }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.source-symbol { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; background: var(--pink-light); border-radius: 3px; font-size: 14px; font-weight: 750; color: #000; }
.card-index { margin-left: auto; color: var(--muted); font: 11px ui-monospace, monospace; }
.article-card h2 { font-size: 22px; line-height: 1.3; font-weight: 750; margin: 0 0 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.article-card p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-bottom { margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.card-arrow { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; color: #000; }
.card-arrow .icon { width: 18px; height: 18px; }
.list-view { grid-template-columns: 1fr; }
.list-view .article-card { display: grid; grid-template-columns: 160px 1fr 165px; gap: 22px; align-items: center; min-height: 0; padding: 20px; }
.list-view .card-top, .list-view h2, .list-view .card-bottom { margin: 0; }
.list-view h2 { font-size: 20px; }
.list-view p, .list-view .card-index { display: none; }
.pending-card { cursor: default; }
.pending-card h2 { font-size: 20px; }
.pending-label { color: #8a5100 !important; }
.retry-button { margin-left: auto; background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 6px 9px; font-size: 12px; }
.empty-state { grid-column: 1 / -1; padding: 64px 20px; border: 1px dashed #ccc; text-align: center; }
.empty-state > .icon { margin: 0 auto 18px; width: 30px; height: 30px; }
.empty-state h2 { font-size: 25px; margin: 0 0 12px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: auto; }
.page-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; color: var(--muted); font-size: 12px; }
.page-footnote .icon { width: 14px; height: 14px; }
.settings-intro { display: flex; align-items: center; gap: 14px; background: var(--grey); padding: 12px 20px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.source-list, .activity-list { display: grid; gap: 16px; }
.source-card { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 5px; padding: 24px; }
.source-card > .source-symbol { width: 44px; height: 44px; font-size: 24px; }
.source-summary { flex: 1; min-width: 0; }
.source-summary h2 { font-size: 19px; margin: 0 0 5px; }
.source-summary > a { color: var(--muted); text-decoration: underline; font-size: 13px; overflow-wrap: anywhere; }
.source-detail { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.source-detail span { display: flex; align-items: center; gap: 5px; }
.source-detail .icon { width: 14px; height: 14px; }
.source-actions { display: flex; gap: 8px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; padding: 3px 7px; background: #eaf5ee; color: #245c36; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.status-pill.warn { background: #fff2de; color: #805000; }
.status-pill.neutral { background: var(--grey); color: #555; }
.activity-row { display: flex; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.activity-icon { padding: 10px; background: var(--grey); border-radius: 4px; }
.activity-icon.warn { background: #fff2de; color: #805000; }
.activity-row h3 { font-size: 16px; margin: 0 0 6px; }
.activity-row p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.activity-row small, .activity-row time { color: var(--muted); font-size: 12px; }
.activity-row time { margin-left: auto; white-space: nowrap; }
.section-title { font-size: 25px; margin: 36px 0 18px; }
.sharing-card { max-width: 860px; padding: 30px; border: 1px solid var(--line); border-radius: 5px; }
.sharing-illustration { display: none; }
.sharing-card h2 { margin: 0 0 12px; font-size: 27px; }
.sharing-card > p { color: var(--muted); max-width: 650px; }
.share-url-row { display: flex; gap: 12px; margin: 24px 0 16px; }
.share-url-row input { flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: 4px; background: var(--grey); color: var(--ink); padding: 11px; font-size: 14px; }
.text-link { color: #000; background: none; border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link:hover { color: #a4135b; }
.local-sharing-note { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; color: var(--muted); font-size: 13px; }
.sharing-source { display: flex; align-items: center; gap: 12px; max-width: 860px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.sharing-source strong { font-size: 15px; }
.sharing-source small { display: block; color: var(--muted); font-size: 13px; }
.switch { margin-left: auto; width: 40px; height: 24px; flex-shrink: 0; border: 0; border-radius: 20px; background: #777; padding: 3px; }
.switch::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: #000; }
.switch.on::before { transform: translateX(16px); background: var(--pink); }
dialog { border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 20px 80px #0003; padding: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: #0006; }
#source-dialog { width: 780px; max-width: 94vw; max-height: 92vh; overflow: hidden; }
#source-form { display: flex; flex-direction: column; max-height: 92vh; }
.dialog-heading { padding: 25px 30px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.dialog-heading h2 { font-size: 28px; line-height: 1.2; margin: 0; }
.dialog-tabs { display: flex; gap: 25px; padding: 0 30px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-tabs button { position: relative; background: none; border: 0; padding: 13px 0; font-size: 14px; color: var(--muted); }
.dialog-tabs button.active { color: #000; font-weight: 750; }
.dialog-tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--pink); }
.dialog-body { padding: 25px 30px 30px; overflow-y: auto; flex: 1; min-height: 180px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 18px; }
label > input:not([type=checkbox]), label > select, label > textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #bbb; border-radius: 4px; background: #fff; color: var(--ink); margin-top: 7px; font-size: 14px; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #707070; opacity: 1; }
label > input:disabled { background: var(--grey); color: var(--muted); }
textarea { resize: vertical; line-height: 1.6; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.7; margin: -7px 0 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; }
.check-field input { accent-color: #000; margin-top: 5px; flex-shrink: 0; }
.check-field strong { font-weight: 650; }
.check-field small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dialog-footer { border-top: 1px solid var(--line); padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; background: var(--grey); }
.dialog-footer > span { color: var(--muted); font-size: 12px; }
.dialog-footer > div { display: flex; gap: 8px; }
.form-error { background: #fff0eb; color: #902d10; padding: 12px; margin: 0 30px 16px; font-size: 13px; }
.browser-session-box, .capture-explainer { padding: 20px; background: var(--grey); border: 1px solid var(--line); border-radius: 4px; margin: 20px 0 25px; }
.browser-session-box { display: flex; align-items: flex-start; gap: 14px; }
.browser-session-box p, .capture-explainer p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.browser-session-box strong { font-size: 14px; }
.browser-session-box small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.capture-explainer h3 { font-size: 22px; margin: 10px 0; }
.capture-explainer p { margin-bottom: 0; }
.advanced-details { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.advanced-details summary { cursor: pointer; font-size: 14px; font-weight: 650; margin-bottom: 20px; }
#reader-dialog { width: 1120px; height: 92vh; max-width: 96vw; max-height: 94vh; overflow: hidden; }
#reader-dialog[open] { display: flex; flex-direction: column; }
.reader-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 25px 18px; }
.reader-heading span { color: var(--muted); font-size: 12px; }
.reader-heading h2 { font-size: 25px; line-height: 1.3; margin: 6px 0 0; }
.reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 25px; border-block: 1px solid var(--line); background: var(--grey); }
.reader-toolbar > div:last-child { display: flex; gap: 20px; }
.segmented { display: flex; gap: 3px; }
.segmented button { background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 7px 12px; font-size: 13px; }
.segmented button.active { background: #000; border-color: #000; color: #fff; }
#reader-frame { display: block; width: 100%; flex: 1; border: 0; background: #fff; }
.reader-footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 25px; font-size: 11px; color: var(--muted); }
.reader-footer .icon { width: 14px; height: 14px; }
.reader-footer a { margin-left: auto; text-decoration: underline; }
.toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar) / 2); transform: translateX(-50%); z-index: 1000; max-width: min(650px, 90vw); padding: 14px 22px; border-radius: 5px; background: #000; color: #fff; font-size: 14px; box-shadow: 0 5px 25px #0002; }
.shared-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px max(24px, calc((100vw - 1140px) / 2)); border-bottom: 1px solid var(--line); }
.shared-top > span { font-size: 13px; color: var(--muted); }
.shared-container { max-width: 1188px; padding: 50px 24px; margin: auto; }
.shared-heading { margin-bottom: 32px; }
.shared-heading h1 { font-size: 40px; line-height: 1.2; letter-spacing: -1.2px; margin: 0 0 12px; }
.shared-heading p { color: var(--muted); }
.shared-footer { padding: 30px 0; text-align: center; font-size: 12px; color: var(--muted); }
.shared-article-layout { height: calc(100dvh - 94px); display: flex; flex-direction: column; }
.shared-reader-top { padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.shared-reader-top h1 { font-size: 25px; line-height: 1.3; margin: 6px 0 0; }
.shared-reader-top small { font-size: 12px; color: var(--muted); }
.shared-reader-top > a { white-space: nowrap; font-size: 13px; text-decoration: underline; }
.shared-modes { display: flex; gap: 12px; padding: 0 30px 18px; font-size: 13px; }
.shared-modes a { padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; }
.shared-modes a:hover { background: var(--pink-light); }
.shared-article-layout iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.error-note { background: #fff6eb; color: #805000; padding: 12px; margin-top: 14px; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 1350px) {
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .library-tools { order: -1; padding: 4px 0 0; }
  .search-wrap { flex: 1; }
  .search-wrap input[type=search] { width: 100%; }
  .source-card { flex-wrap: wrap; }
  .source-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .nav-item { margin: 0; padding: 9px 12px; gap: 8px; font-size: 14px; }
  .nav-item.active { box-shadow: inset 0 -3px var(--pink); }
  .profile { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 15px 24px; min-height: 70px; }
  .page-content { padding: 32px 24px 50px; }
  .toast { left: 50%; }
  .shared-container .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .sidebar { padding: 22px 20px 16px; }
  .brand { font-size: 28px; }
  .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 18px; }
  .nav-item { padding: 10px 8px; }
  .topbar { padding: 14px 20px; gap: 10px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb span { margin: 0 6px; }
  .local-label { display: none; }
  .button.small { padding: 9px 12px; font-size: 12px; }
  .page-content { padding: 28px 20px 40px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading p { font-size: 14px; }
  .stats { padding: 20px 0; }
  .stats > div { gap: 0; padding: 0 12px; }
  .stat-icon { display: none; }
  .stats strong { font-size: 28px; }
  .stats div div > span { font-size: 12px; }
  .monitor-banner { padding: 14px 12px; gap: 8px; align-items: flex-start; font-size: 13px; }
  .monitor-dot { margin-top: 7px; }
  .banner-action { flex-shrink: 0; font-size: 12px; padding-left: 0; }
  .banner-action .icon { display: none; }
  .library-tools { gap: 7px; }
  .search-wrap { min-width: 0; padding: 9px; }
  .search-wrap input[type=search] { font-size: 12px; }
  .library-tools select { max-width: 112px; min-width: 0; font-size: 12px; }
  .library-tabs { gap: 20px; }
  .library-grid, .shared-container .library-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-card { min-height: 260px; padding: 22px; }
  .article-card h2 { font-size: 22px; }
  .results-heading { font-size: 11px; }
  .list-view .article-card { display: flex; gap: 12px; align-items: stretch; }
  .list-view .card-top { margin: 0; }
  .source-card { padding: 20px; gap: 14px; }
  .source-card > .source-symbol { width: 34px; height: 34px; font-size: 20px; }
  .source-summary h2 { font-size: 17px; }
  .source-actions { margin-left: 0; }
  .source-detail { gap: 8px; }
  .activity-row { gap: 10px; flex-wrap: wrap; }
  .activity-row > div { flex: 1; min-width: 0; }
  .activity-row time { margin-left: 50px; }
  .sharing-card { padding: 22px; }
  .share-url-row { flex-direction: column; }
  .dialog-heading, .dialog-body { padding: 20px; }
  .dialog-tabs { gap: 22px; padding: 0 20px; }
  .dialog-tabs button { font-size: 13px; }
  .dialog-heading h2 { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-footer { padding: 15px 20px; }
  .dialog-footer > span { display: none; }
  .dialog-footer > div { margin-left: auto; }
  .reader-heading { padding: 18px; }
  .reader-heading h2 { font-size: 21px; }
  .reader-toolbar { flex-wrap: wrap; padding: 12px 16px; }
  .reader-footer { padding: 12px 16px; flex-wrap: wrap; }
  .page-footnote { align-items: flex-start; font-size: 11px; }
  .shared-top { padding: 24px 20px; flex-wrap: wrap; gap: 12px; }
  .shared-container { padding: 32px 20px; }
  .shared-heading h1 { font-size: 32px; }
  .shared-reader-top { padding: 20px; flex-wrap: wrap; gap: 12px; }
  .shared-reader-top h1 { font-size: 22px; }
  .shared-modes { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.account-layout { max-width: 760px; margin: 0 auto; padding: 48px 24px 70px; }
.account-layout h1 { font-size: 38px; line-height: 1.2; margin: 0 0 18px; }
.account-layout > section > p { color: var(--muted); }
.account-plan { border: 1px solid var(--line); border-top: 3px solid var(--pink); padding: 28px; margin: 28px 0; border-radius: 4px; }
.account-plan h2 { margin: 0; font-size: 23px; }
.plan-price { font-size: 38px; font-weight: 750; margin: 12px 0; color: #000; }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.account-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.account-help { margin: 24px 0 0; }
.account-layout .form-error { margin: 24px 0; }
#subscription-status { font-weight: 650; }
.subscription-banner { display: flex; align-items: center; gap: 20px; background: var(--pink-light); border-left: 3px solid var(--pink); padding: 20px; margin-bottom: 24px; }
.subscription-banner p { font-size: 13px; margin: 6px 0 0; color: var(--muted); }
@media(max-width:580px) { .subscription-banner { align-items: flex-start; flex-direction: column; } .account-plan { padding: 22px; } }

.button-danger {color:#a32121;border-color:#e9bcbc;background:#fff;}
.pin-story {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);}
.pin-story strong {display:block;}
.pin-story small {color:var(--muted);}
#pin-count {font-size:15px;color:var(--muted);font-weight:400;margin-left:8px;}
.plan-features {padding-left:22px;margin:20px 0;}
.plan-features li {margin:9px 0;}

.pin-story > div {min-width:0;overflow-wrap:anywhere;}
.pin-story button {flex-shrink:0;}

.picker-results {margin:20px 0;}
.picker-results li {padding:7px 0;}
#picker-rule {overflow-wrap:anywhere;}
