@font-face {
  font-family: Plex;
  src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Plex Mono;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1b302f;
  --deep: #173f3d;
  --deepest: #102d2c;
  --accent: #bd7152;
  --accent-soft: #f4e7df;
  --mint: #b8d5c8;
  --canvas: #f4f6f2;
  --paper: #fff;
  --line: #dde5df;
  --muted: #677d78;
  font-family: Plex, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #d69270; outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; padding: 28px 17px 24px; background: var(--deep); color: #f3f5ee; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 0 10px; }
.brand-symbol { width: 28px; height: 28px; flex: none; display: flex; align-items: flex-end; gap: 4px; }
.brand-symbol span { width: 6px; background: var(--mint); border-radius: 2px 2px 0 0; }
.brand-symbol span:nth-child(1) { height: 13px; }
.brand-symbol span:nth-child(2) { height: 21px; }
.brand-symbol span:nth-child(3) { height: 27px; background: #e3a783; }
.brand-word { font-size: 19px; line-height: .95; font-weight: 700; letter-spacing: -.065em; }
.brand-word small { display: block; color: #a8c3b9; font-family: 'Plex Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: .04em; margin-top: 7px; }
.rail-group { display: grid; gap: 4px; margin-top: 78px; }
.rail-caption { padding: 0 14px 12px; font-size: 11px; color: #a9c4b7; }
.rail-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; text-decoration: none; color: #c7d9d0; border-radius: 4px; font-size: 13px; font-weight: 500; border-left: 2px solid transparent; }
.rail-link:hover { color: #fff; background: #ffffff12; }
.rail-link.selected { background: #ffffff15; color: #fff; border-left-color: #e3a783; }
.rail-icon { width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8; position: relative; }
.rail-link[href="#discover"] .rail-icon { border-radius: 50%; }
.rail-link[href="#discover"] .rail-icon::after { content: ''; position: absolute; width: 6px; height: 1px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(45deg); }
.rail-link[href="#pages"] .rail-icon::after { content: ''; position: absolute; width: 7px; height: 1px; background: currentColor; left: 2px; top: 5px; box-shadow: 0 4px currentColor; }
.rail-link[href="#ads"] .rail-icon::after { content: ''; position: absolute; inset: 3px; border: 1px solid currentColor; }
.rail-bottom { margin-top: auto; }
.rail-method { border-top: 1px solid #ffffff30; padding: 24px 12px 25px; }
.rail-method-mark { display: block; color: #e5a788; font-family: 'Plex Mono', monospace; font-size: 29px; line-height: 1; }
.rail-method p { color: #d4e1d9; font-size: 12px; line-height: 1.55; margin: 13px 0 0; }
.rail-server { display: flex; align-items: center; gap: 8px; color: #adc8bb; font-size: 11px; padding: 0 12px; }
.rail-server i, .signal-dot { width: 7px; height: 7px; border-radius: 50%; background: #84cba3; box-shadow: 0 0 0 3px #84cba322; }
.main-column { min-width: 0; }
.topbar { height: 68px; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); background: #fbfcf9; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-context { color: #4d6861; font-size: 12px; }
.top-kicker b { color: #bdc9c1; font-weight: 400; margin: 0 8px; }
.mobile-brand { display: none; }
.top-actions { display: flex; align-items: center; gap: 21px; }
.date-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.quiet { border: 0; background: none; color: var(--deep); font-weight: 600; font-size: 12px; padding: 9px 0; }
.quiet:hover { color: var(--accent); }
.logout { color: #6b7c75; }
.shell { max-width: 1620px; margin: auto; padding: 0 clamp(24px, 4vw, 64px) 62px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: end; gap: 40px; padding: 55px 0 48px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #477265; font-size: 12px; font-weight: 600; margin: 0 0 19px; }
.intro h1 { font-size: clamp(48px, 5.8vw, 82px); letter-spacing: -.078em; font-weight: 600; line-height: .96; margin: 0; }
.intro-lead { max-width: 465px; color: #617671; font-size: 15px; line-height: 1.6; margin: 25px 0 0; }
.add-form { background: var(--deep); color: #f6f7f0; padding: 24px; border-radius: 4px; min-width: 0; }
.form-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ffffff30; padding-bottom: 15px; margin-bottom: 24px; font-size: 18px; font-weight: 600; }
.form-index { color: #a9c6b7; font-family: 'Plex Mono', monospace; font-size: 10px; }
.add-form label { display: block; color: #dce8dc; font-size: 12px; margin-bottom: 9px; }
.add-form input { width: 100%; min-height: 47px; background: #f8faf7; color: var(--ink); border: 1px solid #a9c3b8; border-radius: 3px; padding: 11px 13px; font-size: 13px; }
.add-form input::placeholder { color: #82938b; }
.form-bottom { display: flex; gap: 15px; justify-content: space-between; align-items: end; margin-top: 18px; }
.form-bottom small { max-width: 125px; color: #bbd2c6; font-size: 10px; line-height: 1.4; }
button[type=submit] { border: 0; border-radius: 3px; background: #d99873; color: #19312c; padding: 12px 17px; font-weight: 700; font-size: 12px; white-space: nowrap; }
button[type=submit]:hover { background: #edaa85; }
button[type=submit] span, .outline span { margin-left: 8px; font-size: 16px; line-height: 0; }
.notice { padding: 12px 16px; color: #225b4a; background: #dfece4; border-left: 3px solid #649b78; margin: 0 0 22px; font-size: 13px; }
.notice.error { color: #8b3a2f; background: #f8e9e4; border-left-color: #d5785f; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #bac9c0; border-bottom: 1px solid #bac9c0; margin-bottom: 50px; }
.metrics>div { padding: 19px 28px 20px; border-left: 1px solid var(--line); min-width: 0; }
.metrics>div:first-child { padding-left: 0; border-left: 0; }
.metrics span, .metrics small { display: block; color: var(--muted); font-size: 11px; }
.metrics strong { display: block; font-size: clamp(32px, 3vw, 45px); font-weight: 600; letter-spacing: -.07em; line-height: 1.08; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.discovery-index { color: #668276; font-family: 'Plex Mono', monospace; font-size: 10px; white-space: nowrap; }
.discovery-main { display: grid; grid-template-columns: minmax(300px, 39%) minmax(0, 1fr); }
.keyword-form { background: #eef3ed; padding: 30px; border-right: 1px solid var(--line); }
.discovery-kicker { display: block; color: #a2664a; font-family: 'Plex Mono', monospace; font-size: 10px; font-weight: 500; margin: 0 0 22px; }
.keyword-form>label { display: block; color: #526b61; font-size: 11px; font-weight: 600; margin-bottom: 9px; }
.keyword-form>input { display: block; width: 100%; min-width: 0; min-height: 47px; padding: 11px 13px; border: 1px solid #bacdc0; border-radius: 3px; color: var(--ink); background: #fff; font-size: 13px; }
.keyword-form>input::placeholder { color: #8da397; }
.keyword-form-row { display: flex; align-items: end; gap: 11px; margin-top: 13px; }
.keyword-form-row label { flex: 1; min-width: 100px; display: grid; gap: 7px; color: #526b61; font-size: 11px; font-weight: 600; }
.keyword-form-row select, .keyword-library-head select { width: 100%; min-height: 41px; padding: 8px 10px; border: 1px solid #bacdc0; border-radius: 3px; background: #fff; color: var(--ink); font-size: 12px; }
.keyword-form-row button { min-height: 41px; }
.keyword-help { max-width: 320px; color: #6f8578; font-size: 11px; line-height: 1.5; margin: 19px 0 15px; }
.keyword-filter { border: 0; border-bottom: 1px solid #739e8c; background: none; color: #256f5d; padding: 0 0 3px; font-size: 11px; font-weight: 600; }
.keyword-filter:hover { color: #bd7152; border-color: #bd7152; }
.keyword-filter span { margin-left: 7px; }
.keyword-library { min-width: 0; padding: 30px; }
.keyword-library-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.keyword-library-head .discovery-kicker { margin-bottom: 8px; }
.keyword-library-head h3 { font-size: 18px; line-height: 1.2; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.keyword-library-head label { display: grid; gap: 6px; width: 120px; flex: none; color: #6a8074; font-size: 10px; font-weight: 600; }
.keyword-categories { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0 17px; }
.keyword-categories button { border: 1px solid #dae5dc; border-radius: 3px; background: #f9fbf8; color: #607b6c; padding: 7px 9px; font-size: 10px; font-weight: 600; }
.keyword-categories button:hover { border-color: #7caa8b; }
.keyword-categories button[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.keyword-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.keyword-chips button { min-width: 0; min-height: 39px; padding: 9px 12px; border: 1px solid #dbe6dd; border-radius: 3px; background: #fff; color: #2a5d50; text-align: left; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.keyword-chips button::after { content: '+'; float: right; padding-left: 5px; color: #8da99a; font-family: 'Plex Mono', monospace; }
.keyword-chips button:hover, .keyword-chips button[aria-pressed="true"] { border-color: #86ad96; background: #f1f7f1; }
.keyword-library-foot { color: #82968a; font-size: 10px; margin: 15px 0 0; }
.discovery-results { border-top: 1px solid var(--line); }
.discovery-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 25px 30px; background: #f8faf7; }
.discovery-results-head .discovery-kicker { margin-bottom: 8px; }
.discovery-results-head h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.discovery-results-head p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.discovery-results-head .open-link { flex: none; }
.discovery-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.discovery-card { min-width: 0; padding: 24px 30px; border-top: 1px solid var(--line); }
.discovery-card:nth-child(odd) { border-right: 1px solid var(--line); }
.discovery-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.discovery-card-id { margin: 0 0 12px; color: #82958b; font-family: 'Plex Mono', monospace; font-size: 10px; }
.discovery-card-copy { min-height: 55px; margin: 0 0 17px; color: #435b50; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.discovery-card-meta { display: block; color: #82958b; font-size: 10px; margin-bottom: 14px; }
.discovery-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.discovery-card-actions button { border: 0; padding: 0; background: none; color: #1f7567; font-size: 11px; font-weight: 600; }
.discovery-card-actions button:hover { text-decoration: underline; }
.discovery-loading { padding: 28px 30px; color: #5a796b; font-size: 12px; }
.panel { background: var(--paper); border: 1px solid var(--line); margin: 0 0 38px; }
.section-head { display: flex; justify-content: space-between; gap: 25px; align-items: end; padding: 29px 30px 25px; border-bottom: 1px solid var(--line); }
.section-count { color: #a2664a !important; font-family: 'Plex Mono', monospace; font-size: 10px !important; margin: 0 0 12px !important; }
.section-head h2 { font-size: clamp(24px, 2.2vw, 31px); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 0 0 8px; }
.section-head p:not(.section-count) { color: var(--muted); font-size: 12px; margin: 0; }
.legend { display: inline-flex; align-items: center; gap: 7px; color: #6c8078; font-size: 11px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; background: #d99873; border-radius: 50%; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 850px; }
th, td { text-align: left; padding: 16px 17px; border-bottom: 1px solid #e9efeb; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 30px; }
th:last-child, td:last-child { padding-right: 30px; }
th { color: #7b8e85; background: #f8faf7; font-size: 10px; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf9; }
td { font-size: 12px; }
.page-name { display: block; font-size: 13px; font-weight: 600; }
.subtext { display: block; color: #82958b; font-size: 10px; margin-top: 5px; overflow-wrap: anywhere; }
.count-main { display: block; font-size: 21px; letter-spacing: -.05em; font-weight: 600; font-variant-numeric: tabular-nums; }
.count-caption { display: block; max-width: 178px; color: #74887e; font-size: 10px; line-height: 1.35; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 3px; background: #e1efe5; color: #276a46; font-size: 10px; font-weight: 600; white-space: nowrap; }
.pill.wait { background: #f7eedc; color: #80652f; }
.pill.fail { background: #fae8e3; color: #a3483b; }
.pill.neutral { background: #ebf0ec; color: #62776b; }
.day-strip { display: flex; gap: 4px; margin-top: 10px; }
.day-strip span { width: 28px; height: 3px; background: #dce6dd; }
.day-strip .on { background: #5ca57f; }
.row-actions { min-width: 176px; line-height: 1.9; }
.row-actions>* { display: inline-block; margin-right: 10px; }
.open-link, .text-action { color: #1f7567; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.open-link:hover, .text-action:hover { text-decoration: underline; }
.text-action { padding: 0; border: 0; background: none; }
.text-action:disabled { opacity: .38; cursor: not-allowed; }
.text-action[data-action=delete] { color: #a25c45; }
.empty { padding: 35px 30px; color: #6f8478; font-size: 13px; }
.outline { border: 1px solid #aac5b7; color: #276a5e; background: #fff; border-radius: 3px; padding: 10px 13px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.outline:hover { border-color: #27745e; background: #f3f8f3; }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(100px, 1fr)); gap: 16px 13px; padding: 25px 30px 23px; background: #f8faf7; border-bottom: 1px solid var(--line); }
.filters label:not(.check) { display: flex; flex-direction: column; gap: 7px; color: #617970; font-size: 11px; font-weight: 600; }
.filters input:not([type=checkbox]), .filters select { width: 100%; min-width: 0; min-height: 41px; padding: 9px 10px; border: 1px solid #d4dfd6; background: #fff; color: var(--ink); border-radius: 3px; font-size: 12px; }
.filters input::placeholder { color: #96a59b; }
.filters .check { display: flex; align-items: center; gap: 7px; color: #4e6a5c; font-size: 11px; }
.check input { width: 14px; height: 14px; accent-color: #37866d; }
.ads-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: dossier; }
.ad-card { counter-increment: dossier; position: relative; min-width: 0; padding: 26px 28px 28px 59px; border-bottom: 1px solid var(--line); }
.ad-card:nth-child(odd) { border-right: 1px solid var(--line); }
.ad-card::before { content: counter(dossier, decimal-leading-zero); position: absolute; left: 26px; top: 28px; color: #a3b3a8; font-family: 'Plex Mono', monospace; font-size: 10px; }
.ad-card:nth-last-child(-n+2) { border-bottom: 0; }
.ad-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.ad-card h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.ad-id { color: #87978e; font-family: 'Plex Mono', monospace; font-size: 10px; margin: 8px 0 17px; overflow-wrap: anywhere; }
.ad-copy { color: #3d544c; font-size: 12px; line-height: 1.55; margin: 0 0 19px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ad-meta span { color: #59746a; background: #eef3ed; font-size: 10px; padding: 5px 7px; border-radius: 2px; }
.ad-card .open-link { border-bottom: 1px solid #5f9b82; padding-bottom: 3px; }
.more { display: block; margin: 23px auto; }
.footnote { display: flex; align-items: start; gap: 10px; color: #687e72; font-size: 11px; line-height: 1.5; margin: -9px 0 0; max-width: 740px; }
.footnote-mark { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border: 1px solid #9baea0; border-radius: 50%; font-family: 'Plex Mono', monospace; font-size: 10px; }
.history-dialog { width: min(730px, calc(100vw - 32px)); max-height: 85vh; border: 1px solid #d5dfd5; border-radius: 4px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px #0c2c2980; }
.history-dialog::backdrop { background: #0b2424b3; }
.dialog-head { padding: 22px 26px; background: var(--deep); color: #fff; display: flex; justify-content: space-between; align-items: start; }
.dialog-head h2 { margin: 0 0 6px; font-size: 23px; font-weight: 600; }
.dialog-head p:not(.section-count) { color: #b9d0c1; font-size: 11px; margin: 0; }
.dialog-head .quiet { color: #d9e5d9; }
.history-content { padding: 16px 26px 28px; max-height: 65vh; overflow-y: auto; }
.history-row { display: grid; grid-template-columns: 92px 1fr 168px; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.history-row:last-child { border: 0; }
.history-date { color: var(--muted); font-family: 'Plex Mono', monospace; font-size: 10px; }
.history-track { height: 9px; background: #eaf0e9; }
.history-track span { display: block; height: 100%; background: #3d9571; }
.history-track .estimated { background: #d99873; }
.history-value { text-align: right; font-weight: 600; }
.login-backdrop { position: fixed; inset: 0; z-index: 20; background: var(--deepest); display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); background: var(--canvas); border-top: 4px solid #d99873; padding: 35px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 52px; font-size: 20px; letter-spacing: -.06em; }
.login-brand .brand-symbol span { background: var(--deep); }
.login-brand .brand-symbol span:last-child { background: #bd7152; }
.login-card .eyebrow { margin-bottom: 10px; }
.login-card h2 { font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -.06em; margin: 0 0 13px; }
.login-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 27px; }
.login-card label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.login-card input { width: 100%; min-height: 45px; background: #fff; color: var(--ink); border: 1px solid #c7d4c9; border-radius: 3px; padding: 10px 12px; }
.login-card button { width: 100%; min-height: 44px; margin: 12px 0 0; }
.login-card small { display: block; min-height: 18px; margin-top: 10px; color: #a14236; font-size: 11px; }
@media (max-width: 1180px) {
  .workspace { grid-template-columns: 190px minmax(0, 1fr); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 25px; }
  .discovery-main { grid-template-columns: minmax(270px, 39%) minmax(0, 1fr); }
  .discovery-cards { grid-template-columns: 1fr; }
  .discovery-card:nth-child(odd) { border-right: 0; }
  .keyword-form-row { display: block; }
  .keyword-form-row button { width: 100%; margin-top: 12px; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-label { grid-column: span 2; }
}
@media (max-width: 850px) {
  .workspace { display: block; }
  .rail { position: relative; height: auto; padding: 15px 22px; flex-direction: row; align-items: center; justify-content: space-between; }
  .rail-group { display: flex; gap: 4px; margin: 0; }
  .rail-caption, .rail-bottom { display: none; }
  .rail-link { padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .rail-link.selected { border-left: 0; border-bottom-color: #e3a783; }
  .rail-icon { display: none; }
  .intro { grid-template-columns: 1fr; padding-top: 42px; }
  .intro-lead { margin-top: 16px; }
  .add-form { max-width: 540px; }
  .discovery-main { grid-template-columns: 1fr; }
  .keyword-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .ads-list { grid-template-columns: 1fr; }
  .ad-card:nth-child(odd) { border-right: 0; }
  .ad-card:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .rail { padding: 13px 16px 0; display: block; }
  .brand { padding: 0; }
  .brand-word { font-size: 18px; }
  .rail-group { margin: 18px -8px 0; overflow-x: auto; }
  .rail-link { white-space: nowrap; font-size: 11px; padding: 10px 12px; }
  .topbar { height: 49px; padding: 0 18px; }
  .date-label, .top-context { display: none; }
  .top-actions { margin-left: auto; gap: 17px; }
  .shell { padding: 0 16px 40px; }
  .intro { padding: 37px 0 31px; gap: 30px; }
  .intro h1 { font-size: clamp(46px, 12vw, 61px); }
  .intro-lead { font-size: 13px; }
  .add-form { padding: 20px; }
  .form-bottom { align-items: center; }
  .metrics { grid-template-columns: 1fr 1fr; margin-bottom: 34px; }
  .metrics>div { padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .metrics>div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metrics>div:nth-child(n+3) { border-bottom: 0; }
  .metrics strong { font-size: 37px; }
  .metrics span, .metrics small { font-size: 10px; }
  .keyword-form, .keyword-library { padding: 22px 19px; }
  .keyword-library-head { gap: 9px; }
  .keyword-library-head h3 { font-size: 16px; }
  .keyword-library-head label { width: 108px; }
  .keyword-categories { margin-top: 22px; }
  .discovery-results-head { padding: 22px 19px; flex-wrap: wrap; }
  .discovery-card { padding: 20px 19px; }
  .discovery-loading { padding: 20px 19px; }
  .panel { margin-bottom: 28px; }
  .section-head { padding: 22px 19px 20px; align-items: center; flex-wrap: wrap; gap: 14px; }
  .section-head h2 { font-size: 24px; }
  .legend { display: none; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 19px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody tr:hover { background: transparent; }
  td, td:first-child, td:last-child { display: block; border: 0; padding: 0; }
  td:first-child, td:nth-child(3), td:last-child { grid-column: 1 / -1; }
  td:nth-child(3) { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
  .count-caption { max-width: none; }
  .row-actions { min-width: 0; }
  .row-actions>* { margin-right: 12px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 20px 19px; gap: 14px 10px; }
  .filters .search-label { grid-column: 1 / -1; }
  .filters label:not(.check) { font-size: 10px; }
  .filters input:not([type=checkbox]), .filters select { font-size: 11px; }
  .filters .check { font-size: 10px; }
  .ad-card { padding: 22px 19px; }
  .ad-card::before { display: none; }
  .ad-card h3 { font-size: 15px; }
  .ad-copy { font-size: 12px; }
  .history-row { grid-template-columns: 86px 1fr; gap: 8px; }
  .history-value { grid-column: 2; text-align: left; }
  .history-content { padding: 12px 18px 22px; }
  .login-card { padding: 27px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
