/* PicBoard MVP — スマートフォン優先。色はすべてトークン経由（明暗両対応） */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #efeff0;
  --fg: #1b1b1f;
  --fg-dim: #45454f;
  --fg-mute: #5c5c68;
  --line: #dedee3;
  --accent: #c2255c;
  --accent-hover: #a61e4d;
  --on-accent: #ffffff;
  --accent-soft: #fce4ec;
  --accent-soft-fg: #8f1a45;
  --danger: #c92a2a;
  --danger-soft: #fdeaea;
  --ok: #2b7a3b;
  --ok-soft: #e6f4e8;
  --warn-soft: #fff4d6;
  --warn-fg: #7a5200;
  --media-bg: #e6e6e9;
  --overlay: rgba(10, 10, 14, .92);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --radius: 14px;
  --radius-sm: 9px;
  --topbar-h: 104px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121216;
    --surface: #1c1c22;
    --surface-2: #26262e;
    --fg: #ededf1;
    --fg-dim: #c6c6d0;
    --fg-mute: #a4a4b2;
    --line: #33333d;
    --accent: #f06595;
    --accent-hover: #f783ac;
    --on-accent: #1a0710;
    --accent-soft: #3a1726;
    --accent-soft-fg: #ffb3cc;
    --danger: #ff8787;
    --danger-soft: #3b1a1a;
    --ok: #8ce99a;
    --ok-soft: #173020;
    --warn-soft: #3a2e0f;
    --warn-fg: #ffd875;
    --media-bg: #24242b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.65;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--fg); letter-spacing: .01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent) url("/favicon.svg") center / cover; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; min-height: 40px; }
.cats { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--fg-dim); font-size: 14px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--line); }
.chip.on { background: var(--fg); color: var(--bg); }

/* ---------- 下部ナビ（スマホ） ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; color: var(--fg-mute); font-size: 11px; font-weight: 600; }
.bottomnav a:hover { text-decoration: none; }
.bottomnav a.on { color: var(--accent); }
.bottomnav .post-btn span.ic { width: 42px; height: 30px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.bottomnav svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------- 共通部品 ---------- */
.main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px; outline: none; }
.footer { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 16px; display: flex; gap: 16px; color: var(--fg-mute); font-size: 13px; border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--fg-mute); }
.btn:disabled { cursor: not-allowed; border-style: dashed; color: var(--fg-mute); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.primary:disabled { background: var(--surface-2); border-color: var(--line); color: var(--fg-mute); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn svg { width: 18px; height: 18px; }
.hide-sm { display: none; }
@media (min-width: 900px) { .hide-sm { display: inline-flex; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--fg-dim); font-size: 14px; overflow: hidden; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.page-title { font-size: 22px; font-weight: 800; margin: 4px 0 16px; line-height: 1.35; }
.muted { color: var(--fg-mute); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--fg-dim); font-size: 14px; margin: 0 0 14px; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn-fg); }
.demo-link { word-break: break-all; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--fg-dim); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent-soft-fg); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn-fg); }
.empty { text-align: center; padding: 48px 16px; color: var(--fg-mute); }
.loading { padding: 48px 0; text-align: center; color: var(--fg-mute); }
.loading::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--fg-mute); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; /* iOS の自動ズーム防止 */ }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-wrap { max-width: 440px; margin: 8px auto; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-top: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; cursor: pointer; color: var(--fg-dim); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--accent-soft); color: var(--accent-soft-fg); }
.seg svg { width: 18px; height: 18px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; cursor: pointer; background: var(--surface); color: var(--fg-dim); }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop svg { width: 34px; height: 34px; margin: 0 auto 6px; color: var(--accent); }
.drop strong { display: block; color: var(--fg); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.preview { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--media-bg); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--overlay); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.preview .n { position: absolute; left: 4px; bottom: 4px; }
.preview.busy::after { content: "処理中…"; position: absolute; inset: 0; display: grid; place-items: center; background: var(--overlay); color: #fff; font-size: 12px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- 投稿一覧（グリッド） ---------- */
.list-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 14px; }
.list-head h1 { font-size: 20px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.pcard { display: block; color: var(--fg); min-width: 0; }
.pcard:hover { text-decoration: none; }
.pcard .thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--media-bg); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pcard:hover .thumb img { transform: scale(1.03); }
.pcard .ov { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.pcard .ov span { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 6px; background: var(--overlay); color: #fff; font-size: 12px; font-weight: 700; }
.pcard .ov svg { width: 14px; height: 14px; }
.pcard .st { position: absolute; left: 8px; top: 8px; }
.pcard h3 { font-size: 14px; font-weight: 700; margin: 8px 0 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { display: flex; align-items: center; gap: 6px; color: var(--fg-mute); font-size: 12.5px; min-width: 0; }
.pcard .meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pcard .meta .likes { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; flex: none; }
.pcard .meta svg { width: 14px; height: 14px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 28px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; }
.pager a:hover { text-decoration: none; border-color: var(--fg-mute); }
.pager .cur { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pager .gap { border: 0; background: transparent; min-width: 20px; }

/* ---------- 投稿詳細 ---------- */
.detail { display: grid; gap: 20px; }
@media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } .detail .side { position: sticky; top: calc(var(--topbar-h) + 16px); } }
.viewer { position: relative; background: var(--media-bg); border-radius: var(--radius); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; max-height: 78vh; min-height: 220px; cursor: zoom-in; }
.slide img { width: auto; height: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.viewer video { width: 100%; height: auto; max-height: 78vh; background: #000; }
.viewer .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--overlay); color: #fff; cursor: pointer; display: none; place-items: center; }
@media (hover: hover) { .viewer .nav-btn { display: grid; } }
.viewer .nav-btn.prev { left: 10px; } .viewer .nav-btn.next { right: 10px; }
.viewer .count { position: absolute; right: 10px; top: 10px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--overlay); color: #fff; font-size: 12px; font-weight: 700; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }
.post-title { font-size: 21px; font-weight: 800; line-height: 1.4; margin: 0 0 10px; word-break: break-word; }
.post-body { white-space: pre-wrap; word-break: break-word; margin: 14px 0; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.byline:hover { text-decoration: none; }
.byline .n { font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.like-btn.on { background: var(--accent-soft); color: var(--accent-soft-fg); border-color: var(--accent-soft); }
.like-btn.on svg { fill: currentColor; }
.section-title { font-size: 17px; font-weight: 800; margin: 26px 0 12px; }
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment .b { flex: 1; min-width: 0; }
.comment .h { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.comment .h .n { font-weight: 700; color: var(--fg); }
.comment p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.comment .ops { margin-left: auto; display: flex; gap: 2px; }
.linkbtn { border: 0; background: none; color: var(--fg-mute); font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.linkbtn:hover { color: var(--fg); background: var(--surface-2); }
.comment-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.comment-form .textarea { min-height: 46px; height: 46px; }

/* ---------- 画像拡大（ライトボックス） ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .cap { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; font-weight: 700; }

/* ---------- モーダル ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: var(--overlay); display: grid; place-items: end center; }
@media (min-width: 640px) { .modal-bg { place-items: center; } }
.modal { width: 100%; max-width: 480px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; }
@media (min-width: 640px) { .modal { border-radius: 18px; } }
.modal h2 { margin: 0 0 14px; font-size: 18px; }
.radio-list { display: grid; gap: 6px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-list input { accent-color: var(--accent); width: 18px; height: 18px; }

/* ---------- トースト ---------- */
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); z-index: 120; background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; visibility: hidden; transition: transform .2s, visibility .2s; max-width: calc(100vw - 32px); }
.toast.show { visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- マイページ・プロフィール ---------- */
.profile { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.profile h1 { margin: 0; font-size: 21px; }
.profile .bio { margin: 4px 0 0; white-space: pre-wrap; color: var(--fg-dim); font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--fg-mute); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--fg); }
.tabs a.on { color: var(--fg); border-color: var(--accent); }
.settings { display: grid; gap: 16px; max-width: 640px; }
.settings h2 { font-size: 16px; margin: 0 0 12px; }

/* ---------- 管理画面 ---------- */
.admin { display: grid; gap: 16px; }
@media (min-width: 900px) { .admin { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
.admin > * { min-width: 0; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) { .admin-nav { flex-direction: column; position: sticky; top: calc(var(--topbar-h) + 16px); } }
.admin-nav a { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--fg-dim); font-weight: 700; font-size: 14px; white-space: nowrap; }
.admin-nav a:hover { text-decoration: none; background: var(--surface-2); }
.admin-nav a.on { background: var(--fg); color: var(--bg); }
.admin-nav .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
a.stat { color: var(--fg); }
a.stat:hover { text-decoration: none; border-color: var(--fg-mute); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .k { font-size: 12.5px; color: var(--fg-mute); font-weight: 700; }
.stat .v { font-size: 24px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--fg-mute); }
.chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; padding-top: 6px; }
.chart .bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; min-width: 0; }
.chart .bar i { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: var(--accent); min-height: 2px; }
.chart .bar b { font-size: 11px; font-weight: 600; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.chart .bar span { font-size: 11px; color: var(--fg-mute); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--fg-mute); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ops { white-space: nowrap; text-align: right; }
.tbl .ops .btn { margin-left: 4px; }
.tbl .clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl img.t { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--media-bg); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { width: auto; flex: 1 1 160px; min-height: 40px; font-size: 14px; }
@media (max-width: 899px) { .toolbar .input, .toolbar .select { font-size: 16px; } }
.two { display: grid; gap: 16px; }
@media (min-width: 1100px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.two > * { min-width: 0; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--fg-mute); margin-bottom: 4px; }
.terms h2 { font-size: 16px; margin: 20px 0 6px; }
.terms p, .terms li { color: var(--fg-dim); }
