/* AD Library — Ink v2.0（2026-11-06）の文字の段に合わせた（UI 本文 14px・字間 0.01em）。白・黒・グレーだけ。差し色・グラデーションの背景・光る効果・絵文字は使わない
   参考: SuperFlow（白地・細い線のカード・数字は等幅）、NexaVerse（白いサイドバー・薄いグレーの地・黒いカード 1 枚）、
   艶のある黒の選択中ボタン。Soft UI は全体がグレーで黒がないので使わない（README） */

:root {
  --canvas: #f4f4f2;
  --surface: #ffffff;
  --ink: #101010;
  --ink-2: #5f5e5c;
  --ink-3: #9a9796;
  --line: rgba(16, 16, 16, 0.09);
  --line-2: rgba(16, 16, 16, 0.16);
  --fill: #f1f1ef;
  --fill-2: #e8e8e5;
  --black: linear-gradient(180deg, #3a3a3a 0%, #151515 52%, #0b0b0b 100%);
  --black-shadow: 0 6px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --card-shadow: 0 1px 2px rgba(16, 16, 16, 0.04);
  --r-card: 16px;
  --r-ctl: 12px;
  --font: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: var(--font); /* 0 に点が入らないよう本文と同じ Inter（2026-11-01） */
  --side: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 14px/1.75 var(--font);
  letter-spacing: 0.01em; /* Ink v2.0（2026-11-06）: 本文は詰めずに少し開ける。かな詰めは見出しだけ */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:where(h1, h2, h3, h4) { font-feature-settings: "palt" 1; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }
.muted { color: var(--ink-3); }
.ink { color: var(--ink); font-weight: 500; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------------------------------------------------------------- 枠 */

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; padding: 0 10px; }
.genre select {
  width: 100%; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--fill);
  padding: 8px 32px 8px 12px; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5e5c' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-ctl);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--fill); color: var(--ink); }
.nav a.on { background: var(--black); color: #fff; box-shadow: var(--black-shadow); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 0 10px; font-size: 13px; }
.me { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { color: var(--ink-3); text-decoration: none; }
.logout:hover { color: var(--ink); }

.main { padding: 28px 36px 64px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.title h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.count { color: var(--ink-3); font-size: 14px; }
.search {
  display: flex; align-items: center; gap: 8px;
  width: min(360px, 100%); height: 38px; padding: 0 8px 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3);
}
.search:focus-within { border-color: var(--line-2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 500 12px var(--mono); color: var(--ink-3); background: var(--fill); border-radius: 6px; padding: 1px 7px; }

/* ---------------------------------------------------------------- タブ・絞り込み */

.tabs {
  display: inline-flex; gap: 4px; padding: 5px; max-width: 100%; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 38px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-weight: 500; font-size: 14px;
}
.tab span { font-size: 12px; color: var(--ink-3); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--black); color: #fff; box-shadow: var(--black-shadow); }
.tab.on span { color: rgba(255, 255, 255, 0.62); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 16px 0 12px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--black); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.select { position: relative; display: inline-flex; }
.select select {
  appearance: none; -webkit-appearance: none; height: 30px; padding: 0 30px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5e5c' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px;
}
.select.on select { border-color: var(--ink); color: var(--ink); font-weight: 500; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; min-height: 36px; }
.applied-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.applied {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px;
}
.applied .ic { width: 14px; height: 14px; color: var(--ink-3); }
.linkish { border: 0; background: none; padding: 4px 6px; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seg-btn { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); }
.seg-btn.on { background: var(--black); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.seg-btn .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- カード */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; text-align: left; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--line-2); }
.card-media { position: relative; display: block; }
/* 画像は枠に絶対配置で貼る（枠が中の画像の高さで伸びて、はみ出した分が切れるのを防ぐ） */
.thumb { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--fill); }
.card .thumb { height: 220px; border-radius: 11px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.noimg { color: var(--ink-3); font-size: 13px; }
.tag {
  position: absolute; display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.tag-plat { top: 8px; left: 8px; background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 1px solid var(--line); }
.tag-time { bottom: 8px; right: 8px; background: rgba(16, 16, 16, 0.78); color: #fff; }
.tag-link { bottom: 8px; left: 8px; background: rgba(255, 255, 255, 0.92); color: var(--ink-2); border: 1px solid var(--line); }
.tag-state { top: 8px; right: 8px; background: rgba(255, 255, 255, 0.92); color: var(--ink-3); border: 1px solid var(--line); }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 9px 6px 5px; min-width: 0; }
.card-adv { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-copy {
  font-size: 13px; color: var(--ink-2); line-height: 1.6; min-height: 3.2em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12px; color: var(--ink-3); }
.card-meta i { font-style: normal; color: var(--line-2); }

/* ---------------------------------------------------------------- 表 */

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; font-size: 13px; }
.list th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #fafaf9; }
.list .num { text-align: right; }
.lt-thumb { width: 64px; }
.thumb.sm { width: 48px; height: 48px; border-radius: 8px; }
.lt-adv { font-weight: 600; white-space: nowrap; }
.lt-copy { color: var(--ink-2); font-size: 13px; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list.adv td { white-space: nowrap; }
.list.adv th.ch { line-height: 1.35; } /* Google 検索・Google ディスプレイは 2 行にして横幅を詰める */
.list.adv td.lt-adv, .list.adv td.adv-domain { max-width: 220px; overflow: hidden; text-overflow: ellipsis; } /* 長い広告主名で表が横にはみ出さないように */

/* ---------------------------------------------------------------- ページ送り */

.pager {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; margin: 28px auto 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.pg { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 12px; background: var(--fill); color: var(--ink-2); font: 500 14px var(--mono); }
.pg:first-child, .pg:last-child { background: transparent; }
.pg:hover:not(:disabled) { color: var(--ink); background: var(--fill-2); }
.pg.on { background: var(--black); color: #fff; box-shadow: var(--black-shadow); }
.pg:disabled { opacity: 0.35; cursor: default; }
.pg-gap { display: grid; place-items: center; width: 20px; color: var(--ink-3); }

/* ---------------------------------------------------------------- Overview */

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.kpi-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.kpi b { font-size: 34px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.kpi-sub { font-size: 12px; color: var(--ink-3); }
.kpi.dark { background: var(--black); color: #fff; border-color: transparent; box-shadow: var(--black-shadow); }
.kpi.dark .kpi-label { color: rgba(255, 255, 255, 0.78); }
.kpi.dark .kpi-sub { color: rgba(255, 255, 255, 0.55); }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; min-width: 0; }
.panel h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.panel-wide { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar {
  display: grid; grid-template-columns: 124px minmax(0, 1fr) 40px; align-items: center; gap: 12px; /* 124px は「Google ディスプレイ」が切れない幅 */
  padding: 6px 4px; border: 0; border-radius: 8px; background: transparent; text-align: left;
}
.bar:hover { background: var(--fill); }
.bar-label { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.bar-num { text-align: right; font-size: 13px; }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.toplist button {
  display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left;
}
.toplist button:hover { background: #fafaf9; }
.rank { color: var(--ink-3); font-size: 13px; }
.thumb.xs { width: 44px; height: 44px; border-radius: 8px; }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-adv { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-copy { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-plat { font-size: 12px; color: var(--ink-2); }
.tl-days { font-size: 14px; font-weight: 500; }

/* ---------------------------------------------------------------- 詳細 */

.scrim { position: fixed; inset: 0; background: rgba(16, 16, 16, 0.18); z-index: 20; }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 21;
  width: min(560px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(16, 16, 16, 0.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer-body { overflow-y: auto; padding: 20px 22px 28px; }
.dr-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.dr-head h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.dr-sub { font-size: 13px; color: var(--ink-3); }
.dr-nav { display: flex; gap: 6px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink-2); }
.icon-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--line-2); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.dr-media { position: relative; display: grid; place-items: center; background: var(--fill); border-radius: 14px; overflow: hidden; }
.dr-media img { display: block; max-width: 100%; max-height: 62vh; object-fit: contain; }
.dr-media.carousel { display: flex; gap: 8px; overflow-x: auto; padding: 8px; place-items: unset; scroll-snap-type: x mandatory; }
.dr-media.carousel img { height: 320px; width: auto; max-width: none; border-radius: 8px; scroll-snap-align: start; }
.dr-media.video { min-height: 240px; }
.dr-media video { display: block; max-width: 100%; max-height: 62vh; background: #000; }
.play {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--black); color: #fff; text-decoration: none; font-weight: 500; box-shadow: var(--black-shadow);
}
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500;
}
.btn .ic { width: 15px; height: 15px; }
.btn:hover { border-color: var(--line-2); }
.btn-dark { background: var(--black); color: #fff; border-color: transparent; box-shadow: var(--black-shadow); }
.btn-dark:hover { border-color: transparent; }
.btn-block { width: 100%; height: 42px; font-size: 15px; }
.dr-sec { margin-top: 18px; }
.dr-sec h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.8; }
.steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; }
.steps li::marker { font-family: var(--mono); color: var(--ink-3); font-size: 13px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts div:nth-child(odd) { padding-right: 14px; }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 13px; word-break: break-all; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.strip button { padding: 0; border: 0; background: none; flex: none; }
.strip .thumb.xs { width: 72px; height: 72px; border-radius: 10px; }

/* LP: 縦に長いので、一覧は上の部分だけ、詳細で全体を出す */
.lead { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.card .thumb.lp { height: 300px; }
.thumb.lp img { object-fit: cover; object-position: top center; }
.lp-full { background: var(--fill); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.lp-full img { display: block; width: 100%; height: auto; }
.lp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lp-row:hover { border-color: var(--line-2); }
.lp-row + .lp-row { margin-top: 6px; }
.lp-row .thumb.sm { width: 44px; height: 66px; flex: none; }
.lp-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-row-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-row-url { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--ink-2); text-decoration: none; word-break: break-all; }
.dr-link:hover { color: var(--ink); }
.dr-link .ic { width: 13px; height: 13px; flex: none; }

.empty { display: grid; place-items: center; min-height: 240px; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-card); }

/* ---------------------------------------------------------------- ログイン */

.login-page { background: var(--canvas); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login form {
  width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.login .brand { padding: 0; font-size: 22px; }
.login-lead { margin: -6px 0 6px; color: var(--ink-3); font-size: 13px; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.login input {
  height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: var(--surface); font-size: 15px; color: var(--ink);
}
.login input:focus { outline: 0; border-color: var(--ink); }
.login-err { display: none; margin: 0; font-size: 13px; color: var(--ink); font-weight: 500; }
.login-err.show { display: block; }

/* ---------------------------------------------------------------- 画面幅 */

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .toplist { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: sticky; top: 0; z-index: 10; height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px;
    padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0; font-size: 17px; }
  .genre { margin-left: auto; }
  .genre select { padding: 6px 28px 6px 10px; font-size: 13px; }
  .nav { order: 3; flex-direction: row; width: 100%; gap: 4px; padding: 4px; background: var(--fill); border-radius: 14px; }
  .nav a { flex: 1; justify-content: center; padding: 7px 8px; gap: 6px; font-size: 13px; }
  .nav a .ic { width: 16px; height: 16px; }
  .side-foot { order: 2; flex-direction: row; gap: 10px; padding: 0; }
  .me { display: none; }
  .main { padding: 18px 16px 48px; }
  .top { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .title h1 { font-size: 24px; }
  .search { width: 100%; }
  .search kbd { display: none; }
  .tabs { display: flex; }
  .tab { height: 34px; padding: 0 14px; }
  .filters { gap: 8px 10px; }
  .toolbar { flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .thumb { height: 180px; }
  .card-copy { -webkit-line-clamp: 2; }
  .kpi b { font-size: 28px; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; border: 0; }
  .drawer-body { padding: 16px 16px 32px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { padding-right: 0; }
  .lt-copy { max-width: 240px; }
}

@media (max-width: 380px) {
  .card .thumb { height: 150px; }
}
