:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f0f3f6;
  --surface-accent: #eef6f5;
  --text: #171a1f;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #dde1e7;
  --border-strong: #c6ccd5;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --warning: #b45309;
  --warning-bg: #fff7ed;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --teal: #087e8b;
  --shadow: 0 10px 28px rgba(16, 24, 40, .07);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11161c;
  --surface: #182028;
  --surface-muted: #202b35;
  --surface-accent: #173438;
  --text: #eef2f6;
  --muted: #a9b3c0;
  --faint: #778393;
  --border: #2d3945;
  --border-strong: #465464;
  --primary: #75a7ff;
  --primary-dark: #9fc2ff;
  --success: #5ed48b;
  --success-bg: #123322;
  --warning: #f1b36a;
  --warning-bg: #382714;
  --danger: #ff8f86;
  --danger-bg: #3e1e20;
  --teal: #68c8d0;
  --shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a.button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 65%, transparent); outline-offset: 2px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { font-size: 15px; white-space: nowrap; }
.brand-mark { width: 27px; height: 27px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 5px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 7px; background: var(--surface-accent); }
.brand-mark span { display: block; width: 4px; border-radius: 2px; background: var(--primary); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .75; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 11px; background: var(--teal); }
.brand-mark.small { width: 23px; height: 23px; padding: 4px; }
.brand-mark.small span { width: 3px; }
.topnav { display: flex; gap: 20px; margin-left: auto; font-size: 13px; color: var(--muted); }
.topnav a:hover, .site-footer a:hover { color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); }
.icon-button:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-muted); }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 650; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.button svg { width: 16px; height: 16px; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-disabled { background: var(--surface-muted); color: var(--muted); border-color: var(--border); cursor: not-allowed; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-secondary:hover { border-color: var(--border-strong); background: var(--surface-muted); }
.button-quiet { min-height: 36px; background: transparent; color: var(--muted); padding-inline: 10px; }
.button-quiet:hover { background: var(--surface-muted); color: var(--text); }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px 56px; }
.directory-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 62px 0 38px; align-items: end; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: 36px; line-height: 1.2; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 22px; line-height: 1.3; }
h3 { margin-bottom: 2px; font-size: 16px; line-height: 1.35; }
.workspace-copy { max-width: 640px; margin-bottom: 25px; color: var(--muted); font-size: 15px; }
.search-shell { max-width: 680px; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.search-shell > svg { color: var(--faint); }
.search-shell input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-shell kbd { padding: 3px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; color: var(--faint); font-size: 11px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.filter-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); color: var(--muted); font-size: 12px; }
.filter-button:hover { border-color: var(--border-strong); color: var(--text); }
.filter-button.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font-weight: 700; }
.summary-panel { display: grid; gap: 10px; margin: 0; }
.summary-panel > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 14px 17px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.summary-panel dt { color: var(--muted); font-size: 12px; }
.summary-panel dd { margin: 0; color: var(--primary); font-size: 28px; font-weight: 750; line-height: 1; }
.notice-band { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--border)); border-radius: 7px; background: var(--warning-bg); color: var(--warning); font-size: 12px; }
.notice-band svg { flex: 0 0 auto; }
.directory-section { padding-top: 2px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.results-tools { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 12px; }
.select-label { display: flex; align-items: center; gap: 7px; }
select { height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; }
.station-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.station-card { min-height: 350px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 10px rgba(16, 24, 40, .03); }
.station-card[data-featured="2"] { border-top: 3px solid var(--primary); }
.station-card[data-featured="1"] { border-top: 3px solid var(--teal); }
.station-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.station-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.station-logo { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); color: var(--primary); font-size: 13px; font-weight: 800; }
.station-logo img { width: 100%; height: 100%; object-fit: cover; }
.station-domain { display: block; max-width: 160px; overflow: hidden; color: var(--faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.multiplier { flex: 0 0 auto; padding: 6px 8px; border-radius: 6px; background: var(--success-bg); color: var(--success); font-size: 17px; line-height: 1; }
.badge-row { min-height: 25px; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.badge { padding: 3px 7px; border-radius: 4px; background: var(--surface-muted); color: var(--muted); font-size: 10px; }
.badge-recommended { background: #eff6ff; color: var(--primary); }
.badge-public { background: var(--success-bg); color: var(--success); }
.station-description { display: -webkit-box; min-height: 48px; margin: 12px 0 14px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.meta-label { margin-bottom: 6px; color: var(--faint); font-size: 11px; }
.model-row { display: flex; flex-wrap: wrap; gap: 5px; }
.model-chip { padding: 4px 7px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 10px; line-height: 1.2; }
.model-chip.muted { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 12px; padding-top: 15px; }
.feature-grid > div { padding-right: 8px; border-right: 1px solid var(--border); }
.feature-grid > div:last-child { border-right: 0; }
.feature-grid dt { color: var(--faint); font-size: 10px; }
.feature-grid dd { margin: 3px 0 0; font-size: 11px; font-weight: 700; }
.status-yes { color: var(--success); }
.status-no { color: var(--danger); }
.status-unknown { color: var(--warning); }
.affiliate-label { align-self: flex-start; margin-bottom: 9px; color: var(--faint); font-size: 10px; }
.station-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.station-actions-single { grid-template-columns: 1fr; }
.station-actions-single .button { width: 100%; min-height: 44px; font-size: 14px; }
.station-card { min-height: 340px; }
.station-description { min-height: 82px; margin-bottom: 18px; -webkit-line-clamp: 4; }
.station-actions .button { min-height: 38px; }
.empty-state { padding: 72px 20px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface); text-align: center; }
.empty-state > svg { width: 34px; height: 34px; margin-bottom: 12px; color: var(--faint); }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.disclosure-band { display: flex; justify-content: space-between; gap: 45px; margin-top: 54px; padding: 24px 0 0; border-top: 1px solid var(--border); }
.disclosure-band > div { display: flex; gap: 12px; max-width: 670px; }
.disclosure-band > div > svg { flex: 0 0 auto; color: var(--teal); }
.disclosure-band h2 { margin-bottom: 4px; font-size: 16px; }
.disclosure-band p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.disclosure-band > p { max-width: 320px; }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 25px 28px 35px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.site-footer .brand { color: var(--text); }
.site-footer > div:last-child { display: flex; gap: 15px; margin-left: auto; }

dialog { color: var(--text); }
.station-dialog { width: min(620px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.station-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
#dialog-content { padding: 20px 24px 25px; }
.dialog-description { color: var(--muted); font-size: 13px; }
.dialog-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.dialog-facts > div { padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; }
.dialog-facts dt { color: var(--faint); font-size: 11px; }
.dialog-facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 650; }
.dialog-models h3 { margin-bottom: 8px; font-size: 13px; }
.dialog-models { margin-bottom: 22px; }
.conversion-panel { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: min(470px, calc(100vw - 32px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.conversion-panel .panel-close { position: absolute; top: -13px; right: -13px; width: 30px; height: 30px; background: var(--surface); }
.conversion-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--success-bg); color: var(--success); }
.conversion-panel strong { font-size: 13px; }
.conversion-panel p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.conversion-panel .button { min-height: 36px; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; transform: translateX(-50%); padding: 11px 15px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.toast[data-tone="error"] { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); color: var(--danger); }

.legal-page { max-width: 800px; padding-top: 58px; }
.legal-page h1 { margin-bottom: 34px; }
.legal-page section { padding: 20px 0; border-top: 1px solid var(--border); }
.legal-page h2 { margin-bottom: 8px; font-size: 17px; }
.legal-page p { color: var(--muted); font-size: 14px; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.admin-sidebar { display: flex; flex-direction: column; padding: 21px 14px; border-right: 1px solid var(--border); background: var(--surface); }
.admin-sidebar .brand { padding: 0 10px 25px; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav button { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.admin-nav button:hover, .admin-nav button.active { background: var(--surface-muted); color: var(--text); }
.admin-nav button.active { color: var(--primary); font-weight: 700; }
.admin-nav svg { width: 17px; height: 17px; }
.admin-sidebar-footer { margin-top: auto; padding: 15px 10px 0; border-top: 1px solid var(--border); }
.admin-sidebar-footer button { width: 100%; justify-content: flex-start; }
.admin-content { min-width: 0; padding: 28px 34px 60px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-topbar h1 { margin: 0; font-size: 25px; }
.admin-topbar p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric { min-height: 116px; padding: 17px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 12px; font-size: 29px; font-weight: 750; line-height: 1; }
.metric-note { margin-top: 8px; color: var(--faint); font-size: 11px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-muted); }
.segmented button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); font-weight: 700; }
.data-section { margin-top: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.data-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.data-section-heading h2 { font-size: 15px; }
.data-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; font-size: 12px; }
th { color: var(--muted); background: var(--surface-muted); font-size: 11px; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.muted { color: var(--muted); }
.table-empty { padding: 36px 20px; color: var(--muted); text-align: center; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.status-pill.verified { background: var(--success-bg); color: var(--success); }
.status-pill.self_reported { background: var(--warning-bg); color: var(--warning); }
.status-pill.rejected { background: var(--danger-bg); color: var(--danger); }
.admin-action-row { display: flex; gap: 6px; }
.small-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--muted); }
.small-button:hover { color: var(--text); border-color: var(--border-strong); }
.small-button.danger:hover { color: var(--danger); border-color: var(--danger); }
.station-form, .settings-form, .auth-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea, .auth-form input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); outline: 0; font-size: 13px; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.field-help { color: var(--faint); font-size: 11px; font-weight: 400; }
.check-row { display: flex; flex-wrap: wrap; gap: 13px; }
.check-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.check-control input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 7px; }
.admin-dialog { width: min(820px, calc(100vw - 30px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.admin-dialog .dialog-header { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.admin-dialog-body { padding: 20px 24px 25px; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 25px; }
.auth-panel { width: min(440px, 100%); padding: 30px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.auth-panel h1 { margin-bottom: 8px; font-size: 25px; }
.auth-panel > p { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.auth-error { padding: 9px 10px; border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border)); border-radius: 6px; background: var(--danger-bg); color: var(--danger); font-size: 12px; }
.local-setup-option { display: grid; gap: 10px; }
.local-setup-option .button { width: 100%; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 12px; }
.import-box { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; padding: 15px; border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.import-box textarea { min-height: 68px; }
.code-box { margin: 0; padding: 13px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-muted); color: var(--muted); font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }

@media (max-width: 1023px) {
  .directory-workspace { grid-template-columns: 1fr; gap: 24px; }
  .summary-panel { grid-template-columns: repeat(3, 1fr); }
  .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 70px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 10px; }
  .admin-sidebar .brand strong, .admin-nav button span, .admin-sidebar-footer .button span { display: none; }
  .admin-sidebar .brand { justify-content: center; padding-inline: 0; }
  .admin-nav button, .admin-sidebar-footer .button { justify-content: center; padding-inline: 0; }
  .admin-content { padding-inline: 24px; }
}
@media (max-width: 700px) {
  .topbar { height: 58px; }
  .topbar-inner, main, .site-footer { padding-left: 16px; padding-right: 16px; }
  .topnav, .desktop-only { display: none; }
  .directory-workspace { padding-top: 38px; }
  h1 { font-size: 29px; }
  .summary-panel { gap: 7px; }
  .summary-panel > div { min-height: 65px; padding: 11px; }
  .summary-panel dd { font-size: 23px; }
  .section-heading { align-items: start; flex-direction: column; }
  .results-tools { width: 100%; justify-content: space-between; }
  .station-grid { grid-template-columns: 1fr; }
  .station-card { min-height: 0; }
  .disclosure-band { flex-direction: column; gap: 15px; }
  .site-footer { align-items: start; flex-wrap: wrap; }
  .site-footer > div:last-child { width: 100%; margin-left: 0; }
  .conversion-panel { right: 16px; bottom: 16px; grid-template-columns: auto 1fr; }
  .conversion-panel .button { grid-column: 1 / -1; width: 100%; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 11; height: auto; display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-sidebar .brand { padding: 0; margin-right: auto; }
  .admin-nav { display: flex; }
  .admin-nav button { width: 39px; height: 39px; min-height: 39px; }
  .admin-sidebar-footer { margin: 0; padding: 0; border: 0; }
  .admin-content { padding: 20px 16px 45px; }
  .admin-topbar { align-items: start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .metric { min-height: 100px; padding: 13px; }
  .metric-value { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .import-box { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Target-inspired directory skin: airy grid canvas, masthead stats, and pill filters. */
:root {
  --bg: #eef1f8;
  --surface: rgba(255,255,255,.86);
  --surface-muted: #edf1f8;
  --border: rgba(113, 126, 160, .16);
  --primary: #315eea;
  --primary-dark: #2448c8;
  --teal: #16a36b;
  --shadow: 0 18px 42px rgba(64, 74, 112, .12);
  --radius: 18px;
}
body {
  background-color: #eef1f8;
  background-image: linear-gradient(rgba(87,103,150,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(87,103,150,.09) 1px, transparent 1px), linear-gradient(135deg, rgba(211,224,255,.75), rgba(247,246,255,.5) 46%, rgba(222,247,239,.55));
  background-size: 62px 62px, 62px 62px, auto;
  background-attachment: fixed;
}
.target-topbar { height: 68px; background: rgba(247,249,253,.86); border-bottom: 1px solid rgba(76,88,125,.12); backdrop-filter: blur(15px); }
.target-topbar .topbar-inner { max-width: 1400px; padding-inline: 30px; }
.target-topbar .brand strong { color: #1726a9; font-size: 16px; }
.target-topbar .brand-mark { border: 0; background: transparent; box-shadow: none; width: 26px; }
.target-topbar-notice { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #876f3b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.target-topbar .icon-button { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.8); }
main { max-width: 1400px; padding-inline: 30px; }
.catalog-masthead { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); align-items: center; gap: 48px; padding-block: 64px 52px; }
.catalog-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.72); color: #6045cf; font-size: 12px; font-weight: 800; }
.catalog-eyebrow::before { content: "•"; color: #6045cf; font-size: 18px; line-height: 0; }
.catalog-lead h1 { margin: 0 0 20px; font-size: clamp(50px, 6vw, 82px); line-height: .98; letter-spacing: -.035em; font-weight: 900; }
.masthead-title__red { color: #ec1c24; }.masthead-title__violet { color: #7a168d; }.masthead-title__blue { color: #1239c7; }
.catalog-bookmark { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; padding: 7px 13px; border: 1px solid rgba(90,108,159,.18); border-radius: 999px; background: rgba(255,255,255,.65); color: #65728d; font-size: 12px; }
.catalog-bookmark strong { color: #2748bb; }.workspace-copy { max-width: 630px; margin-bottom: 12px; color: #667188; font-size: 15px; }
.catalog-disclosure { margin: 0; color: #919aae; font-size: 12px; }.catalog-disclosure span { color: #db5d55; font-size: 18px; vertical-align: -1px; }
.catalog-stats { gap: 12px; margin: 0; display: grid; }.catalog-stat { border: 0; border-radius: 16px; align-items: center; gap: 16px; padding: 18px 22px; display: flex; box-shadow: none; }.catalog-stat__icon { color: #fff; border-radius: 12px; flex: none; place-items: center; width: 40px; height: 40px; display: grid; font-size: 20px; }.catalog-stat dd { margin: 0; line-height: .95; font-size: 30px; font-weight: 850; }.catalog-stat dt { margin-top: 5px; font-size: 12px; }.catalog-stat--blue { --accent:#315eea; background:#dfe7ff; color:#2447bd; }.catalog-stat--blue .catalog-stat__icon { background:#315eea; }.catalog-stat--green { --accent:#16a36b; background:#d6f5e7; color:#168050; }.catalog-stat--green .catalog-stat__icon { background:#16a36b; }.catalog-stat--violet { --accent:#7845df; background:#e9dcff; color:#6940c8; }.catalog-stat--violet .catalog-stat__icon { background:#7845df; }
.directory-controls { position: relative; z-index: 2; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(64,74,112,.12); gap: 14px; padding: 18px; display: grid; }.directory-control-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }.directory-search { background:#eef2f8; min-width:240px; height:44px; box-shadow:inset 0 0 0 1px rgba(91,106,148,.08); border-radius:999px; flex:1 1 300px; align-items:center; gap:10px; padding:0 16px; display:flex; }.directory-search svg { color:#8591aa; }.directory-search input { width:100%; border:0; outline:0; background:transparent; font-size:13px; }.compact-filter-select { display:flex; align-items:center; gap:5px; color:#7b8499; font-size:12px; }.compact-filter-select select,.compact-filter-trigger { height:36px; padding:0 11px; border:0; border-radius:999px; background:#eef1f7; color:#687389; font-size:12px; }.compact-filter-trigger.active,.compact-filter-trigger:hover { background:#1a2231; color:#fff; }.filter-reset { border:0; background:#f2f4f8; border-radius:50%; }.model-filter { display:flex; align-items:center; gap:14px; overflow:hidden; }.model-filter__label { flex:none; color:#8993a8; font-size:11px; }.model-filter__track { display:flex; gap:7px; overflow-x:auto; padding:2px 0 4px; scrollbar-width:thin; }.model-filter__track .filter-button { flex:none; min-height:32px; padding-inline:13px; border:0; background:#edf1f7; color:#69758c; }.model-filter__track .filter-button.active { background:#315eea; color:#fff; border:0; }
.target-directory { padding-bottom: 64px; }.catalog-summary { justify-content:space-between; align-items:baseline; gap:20px; padding:34px 0 16px; display:flex; }.catalog-summary h2 { font-size:24px; }.catalog-summary > span { color:#7d879d; font-size:12px; }.notice-band { margin: 0 0 18px; border:0; border-radius:12px; background:rgba(255,247,220,.78); color:#92713d; }
.station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.station-card { min-height: 398px; border: 1px solid rgba(115,128,160,.13); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(64,74,112,.08); padding: 20px; }.station-card[data-featured="2"] { border-top: 4px solid #315eea; }.station-card[data-featured="1"] { border-top: 4px solid #7845df; }.station-logo { border:0; border-radius:12px; background: linear-gradient(135deg,#dfe7ff,#eee6ff); color:#315eea; }.station-card-top { align-items:start; }.station-domain { color:#8b96ab; }.multiplier { color:#315eea; font-size:24px; }.badge { border:0; border-radius:999px; background:#edf1f7; color:#6b768b; }.badge-recommended { background:#e5ddff; color:#6940c8; }.badge-public { background:#d9f6e7; color:#168050; }.station-description { min-height: 72px; margin: 14px 0 16px; color:#5b6178; font-size:14px; line-height:1.7; letter-spacing:0; }.model-chip { border:0; border-radius:999px; background:#edf1f7; color:#647087; }.feature-grid { border-top:1px solid rgba(115,128,160,.12); border-bottom:1px solid rgba(115,128,160,.12); }.station-actions .button-primary { background:#315eea; border-radius:999px; }.station-actions .button-secondary { border-radius:999px; background:#eef1f7; border:0; }.affiliate-label { color:#8b96ab; }

.station-card { position: relative; isolation: isolate; overflow: hidden; }
.station-card > * { position: relative; z-index: 1; }
.station-identity h3 { color: #1d2333; font-size: 18px; font-weight: 800; }
.multiplier { min-width: 82px; padding: 11px 12px; border-radius: 13px; background: #ddf6e9; color: #087a52; font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: 25px; font-weight: 800; text-align: center; }
.badge { padding: 5px 10px; font-size: 12px; font-weight: 750; }
.badge-tone-0 { background: #eee7ff; color: #6336c7; }
.badge-tone-1 { background: #ffe5ef; color: #b72f63; }
.badge-tone-2 { background: #fff0ce; color: #9a6200; }
.badge-tone-3 { background: #dff5f7; color: #087681; }
.badge-public { border: 1px solid #e3bd58; background: #fff3c8; color: #8a5a00; box-shadow: 0 3px 10px rgba(177,126,16,.16); font-weight: 900; }
.model-chip { padding: 6px 10px; border: 1px solid #dce3ef; border-left-width: 3px; border-radius: 8px; background: #f7f9fc; color: #2b3243; font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; }
.model-tone-0 { border-left-color: #10a779; }
.model-tone-1 { border-left-color: #4f6ff5; }
.model-tone-2 { border-left-color: #9a67e8; }
.model-tone-3 { border-left-color: #ef7c65; }
.model-tone-4 { border-left-color: #d7a024; }
.station-card[data-public-benefit="true"] { border: 2px solid #d6ad44; box-shadow: 0 12px 30px rgba(160,116,20,.18); }
.station-card[data-public-benefit="true"]::before { content: ""; position: absolute; top: 52%; left: 50%; width: min(82%, 330px); aspect-ratio: 1; z-index: 0; border: 9px double rgba(204,157,43,.48); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(222,183,80,.16); transform: translate(-50%,-50%) rotate(-9deg); pointer-events: none; }
.station-card[data-public-benefit="true"]::after { content: "公益"; position: absolute; top: 52%; left: 50%; z-index: 0; color: rgba(203,154,34,.22); font-size: 112px; font-weight: 950; line-height: 1; white-space: nowrap; transform: translate(-50%,-50%) rotate(-14deg); pointer-events: none; }
:root[data-theme="dark"] .station-identity h3 { color: var(--text); }
:root[data-theme="dark"] .multiplier { background: #173d31; color: #65e1ae; }
:root[data-theme="dark"] .model-chip { border-color: #394654; background: #202b35; color: #e3e9ef; }
:root[data-theme="dark"] .badge-tone-0, :root[data-theme="dark"] .badge-tone-1, :root[data-theme="dark"] .badge-tone-2, :root[data-theme="dark"] .badge-tone-3 { background: #293440; color: #d8e0e8; }
:root[data-theme="dark"] .badge-public { border-color: #c9a23d; background: #473b1c; color: #ffe08a; }
:root[data-theme="dark"] .station-card[data-public-benefit="true"] { border-color: #c9a23d; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.disclosure-band,.site-footer { border-color: rgba(115,128,160,.14); }.site-footer { max-width:1400px; padding-inline:30px; }
@media (max-width: 1023px) { .catalog-masthead { grid-template-columns:1fr; gap:28px; padding-block:44px 40px; }.catalog-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }.station-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .target-topbar-notice { display:none; }.target-topbar .topbar-inner,main,.site-footer { padding-left:16px; padding-right:16px; }.catalog-masthead { gap:28px; padding-block:32px 30px; }.catalog-lead h1 { font-size:48px; }.catalog-stats { grid-template-columns:1fr; gap:10px; }.catalog-stat { padding:15px 18px; }.directory-controls { border-radius:16px; padding:14px; }.directory-control-row { display:grid; grid-template-columns:1fr; }.directory-search { flex-basis:100%; min-width:0; }.compact-filter-select { justify-content:space-between; }.model-filter { align-items:flex-start; }.station-grid { grid-template-columns:1fr; }.catalog-summary { padding:26px 0 14px; }.multiplier { min-width:74px; padding:10px; font-size:22px; }.station-card[data-public-benefit="true"]::before { width:min(86%,310px); }.station-card[data-public-benefit="true"]::after { font-size:96px; } }

body { position: relative; isolation: isolate; background: #eef1f8; }
.grid-canvas { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; --grid-line: rgba(20, 23, 38, .075); --grid-glow-line: rgba(51, 85, 255, .38); }
body > :not(.grid-canvas) { position: relative; z-index: 1; }
