/* マーケティングダッシュボード
   PC で日中に見る前提。色は意味に固定する：緑＝順調、黄＝注意、赤＝要対応（必ず矢印と言葉を添える）。
   ブランドの区別には信号色を使わない。 */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #16191d;
  --ink-2: #4a5159;
  --muted: #737b84;
  --line: #e1e4e8;
  --accent: #1d4ed8;
  --accent-soft: #e8eefc;
  --good: #137a3f;
  --good-soft: #e6f4ec;
  --warn: #9a6400;
  --warn-soft: #fdf3dc;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --mark: #6d28d9;
  --chart-1: #1d4ed8;
  --chart-2: #94a3b8;
  --male: #2563eb;
  --female: #db2777;
  --radius: 10px;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}
a { color: var(--accent); }
button, input, select { font: inherit; }
.loading { padding: 40px; color: var(--muted); }

/* ---------- 枠組み ---------- */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: #0f172a; color: #e2e8f0; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
}
.brand-mark { font-weight: 700; font-size: 15px; line-height: 1.35; padding: 0 6px; }
.brand-mark small { display: block; font-weight: 400; color: #94a3b8; font-size: 12px; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button {
  text-align: left; background: none; border: 0; color: #cbd5e1; padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.nav button:hover { background: #1e293b; color: #fff; }
.nav button[aria-current="page"] { background: #1e3a8a; color: #fff; font-weight: 600; }
.who { border-top: 1px solid #1e293b; padding-top: 14px; font-size: 13px; }
.who .name { font-weight: 600; color: #fff; }
.who .mail { color: #94a3b8; font-size: 12px; overflow-wrap: anywhere; }
.who .btn { margin-top: 10px; width: 100%; }

.main { padding: 0 28px 48px; }
.filters {
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 16px 0 12px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
}
.filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.filters select, .filters input { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cond { flex-basis: 100%; font-size: 13px; color: var(--ink-2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cond strong { color: var(--ink); }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; font-size: 13px; }

h1 { font-size: 24px; line-height: 1.3; margin: 22px 0 4px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.lead { color: var(--ink-2); margin: 0 0 16px; }
.sample-note { font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 4px 10px; display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; font-size: 14px;
}
.btn:hover { border-color: #c4c9d0; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.small { height: 30px; font-size: 13px; padding: 0 10px; }
.btn:focus-visible, .nav button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }

/* ---------- トップ：ブランドカード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bcard { cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.bcard:hover { border-color: #b8c2d0; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.bcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bcard-name { font-size: 18px; font-weight: 700; }
.signal { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.signal::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.signal.good { color: var(--good); background: var(--good-soft); }
.signal.warn { color: var(--warn); background: var(--warn-soft); }
.signal.bad { color: var(--bad); background: var(--bad-soft); }
.signal.none { color: var(--muted); background: #eef0f2; }
.headline { font-size: 15px; color: var(--ink); min-height: 48px; }
.goal { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.goal .big { font-size: 32px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.goal .of { color: var(--ink-2); font-size: 13px; }
.meter { height: 8px; background: #eef0f2; border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.meter.good > i { background: var(--good); } .meter.warn > i { background: #d39b12; } .meter.bad > i { background: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.kpi dt { font-size: 12px; color: var(--muted); }
.kpi dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta { font-size: 12px; font-weight: 500; margin-left: 4px; white-space: nowrap; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }
.delta.up.cost { color: var(--bad); } .delta.down.cost { color: var(--good); }
.sub-note { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #eef0f2; color: var(--ink-2); vertical-align: middle; }
.tag.prov { background: var(--warn-soft); color: var(--warn); }

.fresh { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); margin-top: 18px; }
.fresh .ng { color: var(--bad); font-weight: 600; }

/* ---------- ブランド別 ---------- */
.tabs { display: flex; gap: 6px; margin: 16px 0 0; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi-card .label { font-size: 12px; color: var(--muted); }
.kpi-card .val { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-card .cmp { font-size: 12px; color: var(--ink-2); }

.chart { width: 100%; height: 280px; display: block; }
.chart text { font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 4px; border-radius: 2px; }
.marks { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.marks li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; }
.marks .dot { width: 10px; height: 10px; transform: rotate(45deg); background: var(--mark); flex: none; display: inline-block; }

/* ファネル */
.funnel { display: flex; flex-direction: column; gap: 6px; }
.fstep { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 12px; align-items: center; }
.fstep .name { font-weight: 600; font-size: 14px; }
.fstep .name small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.fbar { height: 30px; background: #eef2ff; border-radius: 6px; position: relative; overflow: hidden; }
.fbar > i { position: absolute; inset: 0 auto 0 0; background: #c7d2fe; border-radius: 6px; }
.fbar > span { position: relative; padding-left: 10px; line-height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fstep.worst .fbar > i { background: #fecaca; }
.fstep .rate { font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.fstep.worst .rate { color: var(--bad); font-weight: 700; }
.funnel-note { margin-top: 10px; font-size: 13px; color: var(--bad); }

/* 男女 */
.gender { display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.gbar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: #eef0f2; }
.gbar .m { background: var(--male); } .gbar .f { background: var(--female); }

/* 表 */
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfc; cursor: default; white-space: nowrap; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.unclassified td { color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.table-wrap table { border: 0; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0; flex-wrap: wrap; }
.warnbox { background: var(--warn-soft); color: #6b4700; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }

/* 用語 */
abbr.term { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.glossary dt { font-weight: 700; margin-top: 14px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); }

/* 設定 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.form-grid input, .form-grid select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; }
.err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; margin: 12px 0; }
.ok { background: var(--good-soft); color: var(--good); padding: 10px 12px; border-radius: 8px; margin: 12px 0; }

/* ログイン案内（サーバーが出す画面） */
body.guide { display: grid; place-items: center; min-height: 100vh; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 460px; width: calc(100% - 32px); }
.guide-card h1 { margin-top: 0; font-size: 20px; }
.msg-err { color: var(--bad); } .msg-ok { color: var(--good); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; }
  .main { padding: 0 14px 40px; }
  .fstep { grid-template-columns: 110px minmax(0, 1fr) 80px; }
}

/* AI インサイト */
.icards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.icard { display: flex; flex-direction: column; gap: 10px; }
.icard.muted { opacity: .7; }
.icard-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.icard-head .signal { margin-left: auto; font-size: 12px; }
.icard-what { font-size: 16px; line-height: 1.5; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 8px 0 0; font-size: 13px; }
.facts dt { color: var(--muted); font-size: 12px; } .facts dd { margin: 0; font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.ai-box { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 14px; color: #1e3a8a; }
.ai-box p { margin: 4px 0; }
.tag.ai { background: var(--accent); color: #fff; }
.icard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb { display: flex; gap: 6px; }
.fb-reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.notices { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.notices li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.issue-form { flex-basis: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.issue-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.issue-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.issue-link { color: var(--bad); }
@media (max-width: 1100px) { .icards { grid-template-columns: minmax(0, 1fr); } }

/* 施策（Zoho Projects のタスク） */
.inits { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.init { padding: 6px 0; border-top: 1px solid var(--line); }
.init:first-child { border-top: 0; }
.init-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.init-row .dot { width: 10px; height: 10px; transform: rotate(45deg); background: var(--mark); flex: none; display: inline-block; position: relative; top: -1px; }
.init.closed .dot { background: var(--muted); }
.init-title { flex: 1 1 260px; font-weight: 600; }
.init-title a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.init-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); white-space: nowrap; }
.init-meta .muted { opacity: .7; }
.init-c { margin: 4px 0 0 18px; }
.init-c summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; max-width: 640px; }
.bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.bubble .c-who { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.bubble .c-who span { margin-left: 6px; }
.bubble .c-body { font-size: 12.5px; line-height: 1.5; }
.checks label { display: block; margin: 6px 0; font-size: 14px; }

/* ファネル（男女を横に並べる） */
.funnel2 { display: grid; grid-template-columns: 180px repeat(var(--cols), 1fr); gap: 6px 14px; align-items: center; }
.funnel2 .fhead { display: contents; }
.funnel2 .fcol-h { font-size: 12px; color: var(--muted); text-align: left; padding-bottom: 2px; }
.funnel2 .frow { display: contents; }
.funnel2 .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.funnel2 .name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.funnel2 .fcell { padding: 4px 0; border-top: 1px solid var(--line); }
.funnel2 .fbar { position: relative; height: 26px; background: #eef1fb; border-radius: 6px; overflow: hidden; }
.funnel2 .fbar i { display: block; height: 100%; background: #c7d2fe; }
.funnel2 .fbar span { position: absolute; left: 8px; top: 0; line-height: 26px; font-weight: 600; font-size: 13px; }
.funnel2 .rate { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: baseline; }
.funnel2 .rate .up { color: var(--good, #15803d); } .funnel2 .rate .down { color: var(--bad, #b91c1c); } .funnel2 .rate .flat { color: var(--muted); }
.funnel2 .worst .fbar i { background: #fecaca; } .funnel2 .worst .name { color: var(--bad, #b91c1c); }
/* 分類別のパンくず */
.crumbs { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; font-size: 14px; }
.crumbs .sep { color: var(--muted); }
.crumbs .linkbtn[disabled] { color: var(--ink); font-weight: 600; text-decoration: none; cursor: default; }
.drill { font-weight: 600; }

.sub-h { font-size: 14px; margin: 14px 0 6px; color: var(--ink); }
.funnel2 .fbar.none { background: transparent; } .funnel2 .fbar.none span { color: var(--muted); font-weight: 400; }

/* 補助メニュー・ⓘ・見出し行 */
.subnav { margin-top: auto; padding: 10px 0 6px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); }
.subnav-btn { background: none; border: 0; color: #94a3b8; text-align: left; padding: 6px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.subnav-btn:hover, .subnav-btn[aria-current="page"] { color: #fff; background: #1e293b; }
.info { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 400; cursor: help; margin-left: 4px; vertical-align: middle; }
.info:hover, .info:focus-visible { color: var(--ink); }
.h-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h-actions { display: flex; gap: 8px; align-items: center; padding-top: 6px; }
.report-box { margin: 0 0 12px; padding: 12px 16px; display: flex; align-items: center; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.crumbs { justify-content: flex-start; }
.crumbs .search { margin-left: auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; min-width: 220px; }
tr.rest td { color: var(--muted); font-style: normal; background: #fafafa; }
/* 男女の違い（割合・単価の表） */
.gtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gtable th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.gtable thead th.num, .gtable td.num { text-align: right; }
.gtable td { padding: 8px 6px; border-bottom: 1px solid var(--line); font-weight: 600; min-width: 110px; }
.gmini { height: 4px; background: #eef1fb; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.gmini i { display: block; height: 100%; } .gmini i.m { background: var(--male); } .gmini i.f { background: var(--female); }

/* かんたん／くわしい */
.mode { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: auto; }
.mode button { border: 0; background: #fff; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--muted); }
.mode button[aria-pressed="true"] { background: #1e3a8a; color: #fff; font-weight: 600; }
.monthly td small { color: var(--muted); margin-left: 4px; }
.monthly tr.partial td { background: #fffbeb; }
.monthly tfoot td { border-top: 2px solid var(--line); padding-top: 6px; }
.spark { width: 100%; max-width: 110px; height: 24px; display: block; margin-left: auto; }
.tcols { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 20px; }
.kpi-row-3 { grid-template-columns: repeat(3, 1fr); }
.tcol h4.sub-h { margin-top: 12px; }

/* 分析 */
.pivot td, .pivot th { white-space: nowrap; font-size: 12.5px; padding: 6px 8px; }
.pivot tfoot td { border-top: 2px solid var(--line); font-weight: 600; }
.chart .tot { font-size: 10px; fill: var(--muted); }
.sbars { display: flex; gap: 6px; align-items: flex-end; height: 180px; }
.sbar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.sbar .stack { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; border-radius: 4px; overflow: hidden; background: #f1f5f9; }
.sbar .stack i { display: block; width: 100%; }
.sbar span { font-size: 10px; color: var(--muted); margin-top: 4px; }
.monthly td .tgt { color: var(--muted); font-size: 11.5px; }
.monthly td .pct { font-size: 11px; font-weight: 600; }
.monthly td .pct.good { color: var(--good, #15803d); } .monthly td .pct.warn { color: #b45309; } .monthly td .pct.bad { color: var(--bad, #b91c1c); }
.monthly td.partial { background: #fffbeb; }
.monthly td small { display: block; color: var(--muted); font-size: 11px; }
.defs dt { font-weight: 600; margin-top: 8px; font-size: 13.5px; } .defs dd { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.h-actions label { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.h-actions select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; }

/* かんたん／くわしいの説明・要望 */
.mode-help { border-left: 1px solid var(--line) !important; padding: 6px 10px !important; }
.mode-box { flex-basis: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.cmp-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table th:first-child, .cmp-table td:first-child { width: 110px; color: var(--muted); font-weight: 500; }
.req { margin-top: 10px; padding: 12px 16px; }
.req.done { opacity: .75; } .req.declined { opacity: .6; }
.req-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req-head .vote { margin-left: auto; }
.req-body { margin: 8px 0 4px; white-space: pre-wrap; font-size: 14px; }
.req-reply { background: #f1f5f9; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 6px; }
.req-reply .sub-note { margin-left: 8px; }
.req-admin { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.req-admin input { flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.req-admin select { height: 32px; border: 1px solid var(--line); border-radius: 8px; }

/* 訪問の状況：ホスト名の絞り込み */
.hostpick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hostpick select { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: inherit; max-width: 320px; }
.hostform { display: flex; gap: 6px; align-items: center; }
.hostform input { font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; width: 220px; }
.hostform select { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent, #2563eb); cursor: pointer; font: inherit; text-decoration: underline dotted; }
.ga4t input, .ga4t select { font: inherit; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; width: 100%; box-sizing: border-box; }
.ga4t input[type=checkbox] { width: auto; }
