@charset "UTF-8";
@font-face {
  font-family: "Geist Sans";
  src: url("/admin/fonts/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/admin/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: light-dark(#fafafa, #0a0a0a);
  --surface: light-dark(#fff, #111);
  --surface-warm: light-dark(#f2f2f2, #1a1a1a);
  --surface-hover: light-dark(#f7f7f7, #1f1f1f);
  --fg: light-dark(#171717, #ededed);
  --body: light-dark(#4d4d4d, #b5b5b5);
  --muted: light-dark(#666, #a1a1a1);
  --inactive: light-dark(#8f8f8f, #777);
  --border: light-dark(#e0e0e0, #333);
  --border-soft: light-dark(#ebebeb, #262626);
  --accent: light-dark(#171717, #ededed);
  --accent-hover: light-dark(#383838, #ccc);
  --accent-on: light-dark(#fff, #0a0a0a);
  --link: light-dark(#0070f3, #52a8ff);
  --success: var(--link);
  --success-fg: light-dark(#0761d1, #52a8ff);
  --warn: #f5a623;
  --warn-fg: light-dark(#8a4b00, #ffbc66);
  --danger: #ee0000;
  --danger-bg: light-dark(#ee0000, #b91c1c);
  --danger-fg: light-dark(#c50000, #ff6166);
  --focus-ring: var(--link);
  --shadow-color: light-dark(#0000000a, #00000040);
  --overlay: #00000066;
  --mesh-opacity: light-dark(.52, .25);
  --icon-font: "Font Awesome 6 Free";
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --header-height: 64px;
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --ease-standard: cubic-bezier(.22, 1, .36, 1);
  font: 400 14px/1.5 "Geist Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root:is([data-mode="light"], [data-theme="light"]) { color-scheme: light; }
:root:is([data-mode="dark"], [data-theme="dark"]) { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: var(--fg); }
button, a, input, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, strong { color: var(--fg); font-weight: 600; }
h1 { font-size: 32px; line-height: 40px; letter-spacing: -1.28px; }
h2 { font-size: 20px; line-height: 28px; letter-spacing: -.4px; }
h3 { font-size: 14px; line-height: 20px; }
p { line-height: 1.5; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: 16px; line-height: 1; flex-shrink: 0; }
.theme-select::after, .spinner::before, .hero-flow i::after, .status-badge::before, .event-dot::before, summary::before, input[type="checkbox"]::before { font-family: var(--icon-font); font-style: normal; font-weight: 900; font-variant: normal; text-transform: none; line-height: 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
input, textarea, select { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; min-height: 36px; padding: 7px 12px; }
input, textarea { width: 100%; }
.theme-select { position: relative; display: inline-flex; }
.theme-select select { appearance: none; -webkit-appearance: none; padding-right: 32px; }
.theme-select::after { content: "\f078" / ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; color: var(--fg); font-size: 12px; transform: translateY(-50%); pointer-events: none; }
input::placeholder, textarea::placeholder { color: var(--inactive); }
input:focus, textarea:focus, select:focus { border-color: var(--fg); }
input:disabled { color: var(--inactive); background: var(--surface-warm); cursor: not-allowed; }
input[readonly] { background: var(--surface-hover); }
textarea { resize: vertical; font: 13px/1.7 var(--mono); }
input[type="checkbox"] { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; width: 16px; height: 16px; min-height: 16px; padding: 0; border-radius: 4px; margin: 0; cursor: pointer; }
input[type="checkbox"]::before { content: "\f00c" / ""; font-size: 10px; opacity: 0; }
input[type="checkbox"]:checked { color: var(--accent-on); background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::before { opacity: 1; }
input[type="number"] { font-variant-numeric: tabular-nums; }
label, legend { display: block; color: var(--fg); font-size: 14px; font-weight: 500; letter-spacing: -.28px; margin-bottom: 8px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { padding: 2px 4px; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--surface-hover); overflow-wrap: anywhere; }
.muted, .help-text, .small-meta { color: var(--muted); }
.help-text, .small-meta { font-size: 12px; font-weight: 400; }
.mono-eyebrow, .format-label { font: 500 11px/16px var(--mono); text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.boot { min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 19px; font-weight: 600; letter-spacing: -.6px; white-space: nowrap; }
.brand [data-icon] { width: 24px; height: 24px; font-size: 24px; }
.button, .icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.button { padding: 0 12px; }
.button.utility { border-color: var(--border); background: var(--surface); box-shadow: 0 1px 1px var(--shadow-color); }
.button.utility:hover, .button.ghost:hover, .icon-button:hover, .text-button:hover { background: var(--surface-hover); }
.button.utility:active, .button.ghost:active, .icon-button:active, .text-button:active { background: var(--surface-warm); }
.button.primary { color: var(--accent-on); background: var(--accent); border-color: var(--accent); }
.button.primary:hover, .button.primary:active { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.danger { color: #fff; background: var(--danger-bg); border-color: var(--danger-bg); }
.button.danger:hover, .button.danger:active { background: color-mix(in srgb, var(--danger-bg) 85%, #000); }
.icon-button { width: 36px; flex-shrink: 0; padding: 0; }
.text-button { font-size: 13px; padding: 4px 8px; }
.text-button.destructive { color: var(--danger-fg); }
button:disabled { color: var(--inactive) !important; background: var(--surface-warm) !important; border-color: var(--border-soft) !important; box-shadow: none !important; cursor: not-allowed; }
.button[aria-busy="true"] { cursor: progress; }
.button[aria-busy="true"] > [data-icon] { display: none; }
.spinner { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex-shrink: 0; animation: spin .8s linear infinite; }
.spinner::before { content: "\f110" / ""; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.field + .field { margin-top: 20px; }
.field .help-text { margin-top: 8px; }
.password-wrap { position: relative; min-width: 0; }
.password-wrap input { padding-right: 58px; }
.password-wrap > .text-button { position: absolute; top: 2px; right: 3px; min-height: 32px; }
.form-error { margin-top: 16px; padding: 12px; color: var(--danger-fg); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 20%, var(--border-soft)); border-radius: 6px; font-size: 13px; }
input[aria-invalid="true"] { border-color: var(--danger-fg); }
/* The login hero is the only decorative color surface. */
.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); max-width: 1440px; margin: auto; background: var(--surface); border-inline: 1px solid var(--border-soft); }
.login-appearance { position: absolute; top: 24px; right: 24px; z-index: 2; }
.login-appearance select { font-size: 12px; }
.login-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; padding: 40px clamp(32px, 5vw, 80px); border-right: 1px solid var(--border-soft); overflow: hidden; }
.hero-mesh { position: absolute; z-index: -1; inset: 15% -15% 10%; opacity: var(--mesh-opacity); background: radial-gradient(ellipse at 18% 52%, #50e3c2 0, transparent 44%), radial-gradient(ellipse at 40% 29%, #007cf0 0, transparent 39%), radial-gradient(ellipse at 71% 32%, #7928ca 0, transparent 44%), radial-gradient(ellipse at 70% 66%, #ff0080 0, transparent 43%), radial-gradient(ellipse at 24% 80%, #f9cb28 0, transparent 40%); filter: blur(64px); mask-image: radial-gradient(ellipse, #000 15%, transparent 70%); }
.hero-copy { margin-block: auto; padding-block: 72px; }
.hero-copy .mono-eyebrow { font-size: 11px; color: var(--fg); }
.hero-copy h1 { margin: 24px 0; font-size: clamp(40px, 4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -2.4px; }
.hero-copy > p:last-child { color: var(--body); font-size: 16px; line-height: 1.8; }
.hero-flow { display: flex; align-items: center; width: min(320px, 100%); padding-block: 8px; }
.hero-flow span { display: grid; place-items: center; width: 68px; min-height: 36px; font: 400 12px/20px var(--mono); color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.hero-flow i { position: relative; height: 1px; flex: 1; background: var(--border); }
.hero-flow i::after { content: "\f061" / ""; width: 8px; height: 8px; position: absolute; right: 0; top: -4px; font-size: 8px; color: var(--muted); }
.login-form-panel { display: grid; align-items: center; justify-items: center; padding: 96px 40px; }
.login-card { width: 360px; max-width: 100%; }
.login-card h2 { font-size: 24px; line-height: 32px; letter-spacing: -.8px; margin: 12px 0 8px; }
.login-card > .muted { font-size: 14px; margin-bottom: 32px; }
.login-submit { width: 100%; min-height: 40px; margin-top: 24px; }
.app-shell { min-height: 100svh; }
.sidebar { position: fixed; inset: 0 0 auto; height: var(--header-height); display: flex; align-items: center; gap: 40px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); background: var(--surface); border-bottom: 1px solid var(--border-soft); z-index: 30; }
.sidebar nav { display: flex; align-items: stretch; align-self: stretch; gap: 24px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav-item:hover { color: var(--fg); }
.nav-item:active { color: var(--fg); }
.nav-item.active { color: var(--fg); font-weight: 500; }
.nav-item.active::after { position: absolute; bottom: 0; left: 0; right: 0; content: ""; height: 2px; background: var(--fg); }
.nav-item:focus-visible { outline-offset: -5px; border-radius: 6px; }
.nav-item [data-icon] { width: 15px; height: 15px; font-size: 15px; }
.sidebar-bottom { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 16px; border-left: 1px solid var(--border-soft); font-size: 12px; white-space: nowrap; }
.sidebar-bottom .button { font-size: 12px; }
.sidebar-bottom .button [data-icon] { width: 14px; height: 14px; font-size: 14px; }
.workspace { padding-top: var(--header-height); min-width: 0; }
.topbar { position: sticky; top: var(--header-height); z-index: 10; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(24px, calc((100vw - 1200px) / 2)); background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.topbar-status, .topbar-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar-actions select { font-size: 12px; }
.topbar .small-meta { font: 400 11px/16px var(--mono); }
.status-badge, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border-soft); border-radius: 64px; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: nowrap; background: var(--surface); }
.status-badge::before { content: "\f111" / ""; font-size: 5px; width: 5px; }
.status-badge[data-state="success"], .tag[data-state="success"] { color: var(--success-fg); background: color-mix(in srgb, var(--success) 5%, var(--surface)); border-color: color-mix(in srgb, var(--success) 16%, var(--border-soft)); }
.status-badge[data-state="warning"], .tag[data-state="warning"] { color: var(--warn-fg); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 20%, var(--border-soft)); }
.status-badge[data-state="updating"] { color: var(--fg); }
.menu-toggle { display: none; }
.main-content { max-width: 1248px; margin: 0 auto; padding: 40px 24px 64px; }
.main-content:focus, .page-heading h1:focus { outline: none; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin-top: 12px; }
.page-heading > .muted { font-size: 14px; margin-top: 12px; }
.notice { margin-bottom: 24px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--border-soft)); border-radius: 6px; color: var(--warn-fg); background: color-mix(in srgb, var(--warn) 4%, var(--surface)); font-size: 13px; line-height: 1.6; }
.panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 32px; overflow: hidden; }
.stat { padding: 24px; border-right: 1px solid var(--border-soft); min-height: 132px; }
.stat:last-child { border: 0; }
.stat dt { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.stat dd:not(.help-text) { color: var(--fg); font: 500 30px/1.2 var(--mono); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-primary dd { font-weight: 600; }
.stat .help-text { margin-top: 8px; }
.stat-unit { margin-left: 8px; font: 400 12px/20px "Geist Sans", sans-serif; letter-spacing: 0; color: var(--muted); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.panel-heading h2 { font-size: 16px; line-height: 24px; letter-spacing: -.32px; }
.panel-heading .small-meta { font: 400 11px/16px var(--mono); }
.table-panel { overflow: hidden; }
.table-scroll { overflow: auto; border-radius: inherit; }
.table-scroll:focus-visible { outline-offset: -3px; }
.event-scroll { max-height: 440px; border-top-left-radius: 0; border-top-right-radius: 0; }
table { border-collapse: collapse; width: 100%; text-align: left; color: var(--body); font-size: 14px; }
th { background: var(--surface-hover); color: var(--muted); font: 400 11px/16px var(--mono); white-space: nowrap; }
th, td { padding: 14px 24px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-hover); }
.event-scroll th { position: sticky; top: 0; }
td { line-height: 1.6; }
td:last-child { white-space: nowrap; }
.event-label { display: inline-flex; align-items: first baseline; gap: 10px; white-space: nowrap; color: var(--fg); font-size: 13px; }
.event-dot { display: inline-flex; align-items: center; width: 5px; height: 5px; flex-shrink: 0; align-self: center; color: var(--muted); }
.event-dot::before { content: "\f111" / ""; font-size: 5px; }
.event-success .event-dot { color: var(--success); }
.event-failure .event-dot { color: var(--danger); }
.event-warning .event-dot { color: var(--warn); }
.event-detail { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.empty-state { text-align: center; padding: 40px 24px; color: var(--muted); font-size: 13px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-help { margin-top: 20px; }
.source-url { display: block; max-width: 420px; min-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/1.8 var(--mono); }
.source-identifier { min-width: 120px; }
.source-identifier strong { font-weight: 500; }
.source-identifier p { font: 11px/1.6 var(--mono); margin-top: 4px; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.row-actions .text-button { min-height: 28px; padding: 2px 6px; font-size: 12px; }
.node-table { min-width: 900px; }
.node-table td { max-width: 220px; overflow-wrap: anywhere; font-size: 13px; }
.node-name { color: var(--fg); font-weight: 500; min-width: 100px; }
.node-source { font-size: 12px; min-width: 120px; }
.subscription-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.subscription-card { min-width: 0; padding: 24px; }
.subscription-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.subscription-heading h2 { font-size: 18px; letter-spacing: -.4px; }
.client-mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font: 500 16px/1 var(--mono); }
.format-label { margin-left: auto; font-size: 10px; }
.subscription-card > p { margin-top: 4px; }
.subscription-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.subscription-controls .password-wrap { flex: 1 0 100%; }
.subscription-controls input { font: 12px/1.6 var(--mono); min-height: 40px; }
.subscription-controls .password-wrap > .text-button { min-height: 36px; }
.subscription-controls > .button { min-width: 88px; }
.settings-panel { max-width: 860px; padding: 24px 24px 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 24px 0; }
.settings-grid .field { margin: 0; }
.advanced-settings { border-top: 1px solid var(--border-soft); padding: 16px 0; }
summary { display: flex; align-items: center; gap: 8px; list-style: none; color: var(--fg); font-size: 13px; font-weight: 500; cursor: pointer; width: fit-content; padding: 4px 0; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "\f054" / ""; font-size: 10px; }
details[open] > summary::before { transform: rotate(90deg); }
.advanced-settings .settings-grid { margin: 20px 0 8px; }
.form-footer { border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; margin-inline: -24px; padding: 16px 24px; background: var(--surface-hover); border-radius: 0 0 12px 12px; }
.editor-dialog { padding: 0; width: 480px; max-width: calc(100% - 24px); max-height: calc(100svh - 48px); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--body); box-shadow: 0 2px 2px var(--shadow-color), 0 8px 16px -4px var(--shadow-color); opacity: 0; transform: translateY(8px); transition: opacity var(--motion-fast), transform var(--motion-fast), display var(--motion-fast) allow-discrete, overlay var(--motion-fast) allow-discrete; }
.editor-dialog[open] { opacity: 1; transform: translateY(0); }
.editor-dialog::backdrop { background: var(--overlay); }
@starting-style { .editor-dialog[open] { opacity: 0; transform: translateY(8px); } }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border-soft); }
.dialog-body { padding: 24px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border-soft); background: var(--surface-hover); }
.node-dialog { width: 680px; }
.source-picker { border: 0; padding: 0; margin: 24px 0 0; }
.source-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.source-option { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 0; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 400; }
.source-option:has(input:checked) { color: var(--fg); border-color: var(--fg); background: var(--surface-hover); }
.confirm-dialog { width: 400px; }
.confirm-dialog .dialog-body { line-height: 1.7; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(520px, calc(100% - 24px)); padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--fg); background: var(--surface); box-shadow: 0 2px 2px var(--shadow-color), 0 8px 16px -4px var(--shadow-color); font-size: 13px; overflow-wrap: anywhere; }
.toast[data-state="danger"] { border-color: var(--danger-fg); }
.toast[data-state="warning"] { border-color: var(--warn-fg); }
.toast[data-state="success"] { border-color: var(--border); }
.sidebar-shade { position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--overlay); z-index: 20; }
@media (min-width: 1440px) { .main-content { padding-top: 48px; } }
@media (max-width: 1080px) {
  .sidebar { gap: 24px; padding-inline: 24px; }
  .sidebar nav { gap: 20px; }
  .sidebar-bottom > .muted { display: none; }
  .stat { padding: 20px; }
  .source-url { max-width: 280px; }
  .subscription-heading { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 840px) {
  .sidebar { inset: 0 auto 0 0; width: 240px; height: 100svh; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 24px 16px 16px; border-right: 1px solid var(--border-soft); border-bottom: 0; visibility: hidden; transform: translateX(-100%); transition: transform var(--motion-base) var(--ease-standard), visibility var(--motion-base); }
  .app-shell.sidebar-open .sidebar { visibility: visible; transform: translateX(0); }
  .sidebar > .brand { padding: 0 8px; }
  .sidebar nav { flex-direction: column; gap: 4px; margin-top: 32px; }
  .nav-item { padding: 10px 12px; border-radius: 6px; }
  .nav-item.active { background: var(--surface-warm); }
  .nav-item.active::after { display: none; }
  .nav-item:hover { background: var(--surface-hover); }
  .nav-item:focus-visible { outline-offset: 2px; }
  .sidebar-bottom { justify-content: space-between; margin: auto 0 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border-soft); }
  .sidebar-bottom > .muted { display: inline; }
  .workspace { padding-top: 0; }
  .topbar { top: 0; padding: 12px 16px; }
  .menu-toggle { display: inline-flex; }
  body:has(.sidebar-open) { overflow: hidden; }
  .topbar-status > .small-meta { display: none; }
  .main-content { padding: 32px 20px 48px; }
  .login-shell { grid-template-columns: 1fr 1fr; }
  .login-hero { padding: 32px; }
  .login-form-panel { padding: 80px 24px; }
  .hero-copy h1 { font-size: 44px; letter-spacing: -1.8px; }
  .hero-copy .mono-eyebrow { font-size: 9px; }
  .hero-copy > p:last-child { font-size: 14px; }
}
@media (max-width: 640px) {
  .login-shell { display: block; border: 0; }
  .login-hero { min-height: 0; padding: 24px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .login-appearance { top: 20px; right: 20px; }
  .login-hero .brand { font-size: 17px; }
  .hero-copy { padding: 48px 0 24px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.2; letter-spacing: -1.28px; margin: 16px 0; }
  .hero-copy h1 br { display: none; }
  .hero-copy > p:last-child { font-size: 13px; }
  .hero-copy > p:last-child br { display: none; }
  .hero-mesh { inset: -20% -30%; filter: blur(40px); }
  .hero-flow { display: none; }
  .login-form-panel { padding: 32px 24px 40px; }
  .login-card { width: 100%; }
  .login-card > .mono-eyebrow { display: none; }
  .login-card h2 { margin-top: 0; }
  .main-content { padding: 28px 16px 40px; }
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar-status, .topbar-actions { gap: 8px; }
  .topbar-actions select { max-width: 96px; padding-inline: 8px 30px; font-size: 12px; }
  button, select, .nav-item, .button, .icon-button, .text-button, .row-actions .text-button { min-height: 44px; }
  .icon-button { width: 44px; }
  .status-badge { font-size: 12px; padding-inline: 6px; }
  .topbar .button { padding-inline: 8px; font-size: 12px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; line-height: 36px; letter-spacing: -1px; }
  .page-heading > .mono-eyebrow { font-size: 10px; }
  .page-heading > .muted { font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
  .stat { border-bottom: 1px solid var(--border-soft); padding: 20px; min-height: 128px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { border-bottom: 0; }
  .stat dd:not(.help-text) { font-size: 28px; }
  .section-toolbar { gap: 12px; }
  .section-toolbar > .help-text { max-width: 180px; }
  th, td { padding: 12px 16px; }
  .panel-heading { padding: 16px; }
  .source-url { max-width: 220px; }
  .subscription-list { grid-template-columns: 1fr; gap: 16px; }
  .subscription-card { padding: 20px; }
  .subscription-controls { margin-top: 20px; }
  .subscription-controls > .button { flex: 1; }
  .settings-panel { padding: 20px 20px 0; }
  .settings-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-footer { margin-inline: -20px; padding-inline: 20px; }
  .password-wrap input, .subscription-controls input { min-height: 44px; }
  .password-wrap > .text-button, .subscription-controls .password-wrap > .text-button { top: 0; right: 0; min-height: 44px; }
  .password-wrap input { padding-right: 62px; }
  .editor-dialog { max-height: calc(100svh - 24px); }
  .dialog-heading { padding: 12px 16px; }
  .dialog-body { padding: 20px 16px; }
  .dialog-footer { padding: 16px; }
  .source-option { min-height: 44px; }
  .form-footer .button { width: 100%; }
}
@media (max-width: 380px) {
  .topbar .button > [data-icon] { display: none; }
  .topbar-actions select { max-width: 88px; padding-inline: 6px 26px; }
  .topbar-actions .theme-select::after { right: 10px; }
  .topbar-status, .topbar-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
