:root {
  --bg: #d5e2f3;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e4e7eb;
  --navy: #1e3a5f;
  --accent: #2563eb;
  --accent-deep: #1e3a5f;
  --accent-soft: #eff6ff;
  --paid: #059669;
  --accent-2: #dc2626;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(30, 58, 95, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 14px;
}

a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
button, .btn, summary { cursor: pointer; }
a, .btn, .sections a, .subnav a, .tile {
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.top {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 20px rgba(15, 23, 42, 0.12);
}
.top-main {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
  padding: 0 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: block;
  flex: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3.5 12 10l6-6.5'/><path d='M12 10v10'/><path d='M6.5 11.5h11'/><path d='M6.5 15.5h11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.sections { display: flex; gap: 6px; flex: 1; align-items: center; }
.sections a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
}
.sections a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.14); }
.sections a.active {
  color: var(--navy);
  background: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(15, 40, 90, 0.16);
}
.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e6ebf3;
}
.subnav a {
  color: #66758b;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  margin: 6px 2px;
  border-radius: 8px;
  border-bottom: 0;
}
.subnav a:hover { color: var(--ink); text-decoration: none; background: #f3f6fb; }
.subnav a.active { color: var(--accent); font-weight: 650; background: var(--accent-soft); }
.subnav form { margin: 0 0 0 8px; }
.top .who {
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 40, 90, 0.12);
}
.top button.exit {
  background: #fff5f5;
  border: 0;
  color: #b42318;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
}
.top button.exit:hover { background: #ffe4e4; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 24px 64px; }
.wrap.wide { max-width: none; padding: 22px 28px 64px; }
.login-page {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
}
.login-card {
  width: min(420px, 100%);
  margin: 0;
  padding: 22px 22px 18px;
}

.filter-bar {
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-secondary {
  display: grid;
  gap: 12px;
  align-items: end;
}
.filter-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-primary > .field { width: auto; }
.filter-primary .grow { flex: 1 1 220px; min-width: 180px; }
.filter-primary input[type="date"] { width: 156px; }
.filter-primary .grow input { width: 100%; }
.filter-secondary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.filter-row .field { margin: 0; width: auto; min-width: 0; }
.filter-row label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.2;
}
.filter-row input,
.filter-row select {
  width: 100%;
  max-width: none;
  height: 38px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.filter-row select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b778c' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-primary .field:not(.filter-actions) { min-width: 0; }
.filter-row:not(.filter-primary):not(.filter-secondary) .field { width: 168px; }
.filter-row.summary-filter:not(.filter-primary) .field { width: auto; }
.filter-row.summary-filter { gap: 16px 18px; }
.filter-row.summary-filter .period { flex: 0 0 auto; }
.filter-row.summary-filter .period .segment { flex-wrap: nowrap; }
.filter-row.summary-filter .segment .btn { flex: none; white-space: nowrap; }
.filter-row.summary-filter input[type="date"] { width: 168px; }
.filter-row:not(.filter-primary):not(.filter-secondary) .filter-actions { width: auto; }
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-bar .filter-row + .filter-row { margin-top: 8px; }
.period-row { display: flex; gap: 8px; }
.filter-bar .toolbar { margin: 8px 0 0; }

.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0; }
.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}
.sumline { color: var(--muted); margin: 0; font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
}
.btn:hover { text-decoration: none; background: #f8fafc; }
.btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
.btn.primary:hover { background: #16324f; }
.btn.danger { color: var(--accent-2); border-color: #f3d0d0; background: #fff; }
.btn.danger:hover { background: #fff6f6; }
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.btn.ghost:hover { background: #eef3fb; color: var(--ink); }
.btn.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 650;
  position: relative;
  z-index: 1;
  box-shadow: none;
}
.segment {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #f3f6fb;
  border-radius: 12px;
}
.segment .btn { border-radius: 9px; border-color: transparent; background: transparent; box-shadow: none; height: 32px; }
.segment .btn:hover { background: rgba(255, 255, 255, 0.7); }
.segment .btn.is-on { background: var(--navy); color: #fff; }
.segment .btn + .btn { margin-left: 2px; }

.scroll {
  overflow: auto;
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
th {
  background: #e7eef8;
  color: #3d4e66;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.01em;
}
th:first-child { border-radius: 14px 0 0 0; }
th:last-child { border-radius: 0 14px 0 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f5f8ff; }
td.num { font-weight: 700; color: #142033; }

tr.group td {
  font-weight: 650;
  color: var(--ink);
  background: #f7f8fa;
}
tbody tr.group:hover td { background: #eef1f4; }
tr.sub td { font-size: 12px; font-weight: 400; color: #3d4a5c; }
td.sub-name { padding-left: 24px; }
.sub-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: #eef1f4;
  color: #5c6b7a;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

table.sheet th { white-space: nowrap; }
table.sheet td { white-space: nowrap; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.check, td.check { width: 36px; text-align: center; }
td.check form { margin: 0; }
td.content { white-space: normal; min-width: 160px; max-width: 320px; }
td.notes { white-space: normal; max-width: 220px; color: var(--muted); }
.row-actions a { margin-right: 12px; }
.row-actions .danger { color: var(--accent-2); }

h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px;
}
.metric span.metric-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
  font-size: 0;
  line-height: 0;
}
.metric span.metric-ico svg {
  width: 28px;
  height: 28px;
  display: block;
}
.metric.metric-count,
.stats article.metric-count { background: #e4edff; }
.metric.emphasis { background: #dff8ee; }
.metric.emphasis strong { color: #065f46; }
.tone-navy { background: #1e3a5f; }
.tone-blue { background: #2563eb; }
.tone-green { background: #059669; }
.tone-teal { background: #0f766e; }
.tone-amber { background: #d97706; }
.tone-violet { background: #1e3a5f; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.metric.emphasis strong { font-size: 24px; color: #065f46; }
.metric strong.split { font-size: 16px; }
h2 { font-size: 15px; margin: 0; }
.muted, .crumb { color: var(--muted); font-size: 13px; }
.crumb { margin-bottom: 6px; }

.page-h, .hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.hero p { max-width: 46em; color: var(--muted); margin: 6px 0 0; }
.hero-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stats article {
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.stats span { color: var(--muted); font-size: 12px; }
.stats strong { display: block; font-size: 20px; margin-top: 2px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat-main strong { font-size: 26px; color: #065f46; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.panel {
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 10px;
  margin-bottom: 14px;
}
.panel-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.empty { color: var(--muted); padding: 12px; }
.messages { list-style: none; padding: 0; margin: 0 0 10px; }
.messages li { padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; }
.messages .success { border-color: #b7d4c2; }
.messages .error, .messages .warning { border-color: #e6d0a8; }

.form p { margin: 0 0 10px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.input, .select, .textarea, input, select, textarea {
  width: 100%;
  max-width: 520px;
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.textarea { min-height: 64px; }

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.grid-form .input, .grid-form .select, .grid-form .textarea,
.grid-form input, .grid-form select, .grid-form textarea { max-width: none; }
.grid-form .actions, .grid-form .span-2 { grid-column: 1 / -1; }
.form-block { margin-bottom: 16px; }
.form-block h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.help { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.form .errorlist { margin: 4px 0 0; padding: 0; list-style: none; color: var(--accent-2); font-size: 12px; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0 0 16px; }
.kv .span-2 { grid-column: 1 / -1; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 2px 0 0; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 0;
  line-height: 1.6;
}
.tag.on { color: #047857; background: #d1fae5; }
.tag.soon { color: #b45309; background: #fef3c7; }
.tag.off { color: #475569; background: #f1f5f9; }
.asset-nav { margin-bottom: 12px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.tile {
  display: block;
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}
.tile:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37, 72, 140, 0.12); }
.tile-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.tile-main {
  display: block;
  color: inherit;
  text-decoration: none;
}
.tile-main:hover { text-decoration: none; }
.tile-main strong { display: block; font-size: 16px; margin-bottom: 4px; }
.tile-main span { color: var(--muted); font-size: 12px; }
.tile-actions { display: flex; gap: 12px; font-size: 12px; }
.tile strong { display: block; font-size: 16px; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: 12px; }
.link-form { margin-top: 12px; }
.pick-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 4px 12px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.form .label { display: block; font-weight: 600; }
.page-h .muted .tag, .panel-h .tag { margin-right: 8px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding-bottom: 10px; }
.gallery img { width: 100%; height: 120px; object-fit: cover; border: 1px solid var(--line); }
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; }
.inline { display: inline; }
.linkish {
  border: 0;
  background: none;
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.batch-bar.is-active { background: #f3f7ff; box-shadow: inset 0 0 0 1px #d7e4ff, var(--shadow); }
.batch-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.batch-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}
.batch-bar input,
.batch-bar select {
  width: 120px;
  max-width: 120px;
  height: 32px;
}
tr.is-picked td { background: #eaf1ff; }
input[type="checkbox"] { accent-color: var(--navy); width: 16px; height: 16px; }
.sheet-bar .toolbar form { display: inline-flex; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.pager-status { color: var(--muted); font-size: 13px; padding: 0 4px; }
.btn.is-disabled {
  color: #98a2b3;
  background: #f2f4f7;
  border-color: var(--line);
  cursor: default;
}
.jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.jump label { margin: 0; }
.jump input {
  width: 64px;
  max-width: 64px;
  height: 32px;
  padding: 4px 8px;
}
.warn { color: var(--accent-2); font-size: 12px; }
.notice { border-color: #e6d0a8; }
.issue-list, .keyword-list { margin: 0 0 8px; padding-left: 18px; }
.keyword-list { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-list li { display: flex; gap: 8px; align-items: center; background: var(--accent-soft); color: var(--navy); border: 0; border-radius: 999px; padding: 4px 10px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

.shell { display: flex; min-height: 100vh; align-items: stretch; }
.shell > main { flex: 1; min-width: 0; }
.side {
  width: 216px;
  flex: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px 14px;
}
.side .brand { color: #fff; margin: 4px 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.side-nav a.active { background: #fff; color: var(--navy); }
.side-user {
  margin-top: auto;
  padding: 14px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-user strong { font-size: 14px; }
.side-user a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 13px; }
.side-user a:hover { color: #fff; }
.side-user button.exit {
  align-self: flex-start;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.side-user button.exit:hover { color: #fff; }
.metric-row-2,
.stats.metric-row-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.more-filters { margin-top: 12px; }
.more-filters summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}
.more-filters .filter-secondary { margin-top: 12px; }
td.share { width: 148px; }
.bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #2563eb;
  max-width: 100%;
}
.find-row { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; }
.find-row input { flex: 1; max-width: none; height: 38px; }
@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .side { width: auto; height: auto; position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-user { margin-top: 12px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .metric-row-2, .stats.metric-row-2 { grid-template-columns: 1fr; }
}
.keyword-list form { margin: 0; }
.inline-add { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.inline-add input { width: 240px; max-width: 240px; height: 32px; }
.category-sheet { padding-top: 4px; padding-bottom: 4px; }
.category-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.category-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.category-main { min-width: 0; }
.category-row .empty { padding: 0 0 8px; }

@media (max-width: 1100px) {
  .filter-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top-main { height: auto; padding: 10px 14px; flex-wrap: wrap; }
  .sections { flex-wrap: wrap; }
  .who { margin-left: 0; }
  .stats, .metric-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-form, .kv, .page-h, .hero, .sheet-bar, .category-row { display: flex; flex-direction: column; }
  .filter-secondary { grid-template-columns: 1fr; }
  .filter-primary .grow { flex-basis: 100%; }
  .filter-row input, .filter-row select, .filter-row .grow input { width: 100%; max-width: none; }
  .filter-row .field { width: 100%; }
  .filter-row.summary-filter:not(.filter-primary) .field { width: 100%; }
  .filter-row.summary-filter .period .segment { flex-wrap: wrap; }
  .scroll { max-height: none; }
}
