/* JIA Ads Hub — JiaAED look: dark ground, gray-900 cards, one yellow accent, pills everywhere. */
:root {
  --bg: #030712;
  --card: #111827;
  --line: #1f2937;
  --line-strong: #374151;
  --text: #ededed;
  --head: #ffffff;
  --body: #d1d5db;
  --muted: #9ca3af;
  --accent: #facc15;
  --accent-hover: #fde047;
  --on-accent: #713f12;
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.12);
  --warn: #facc15;
  --warn-bg: rgba(250, 204, 21, 0.12);
  --bad: #f87171;
  --bad-bg: rgba(239, 68, 68, 0.15);
  --bad-line: #7f1d1d;
  --danger: #ef4444;
  --radius-card: 16px;
  --radius-inset: 12px;
  --font: "Noto Sans Thai", "Geist", Arial, Helvetica, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
body { min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { color: var(--head); margin: 0; line-height: 1.25; }
h1 { font-size: 32px; font-weight: 900; }
h2 { font-size: 18px; font-weight: 700; }
button, input, select, textarea { font: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 248px; flex-shrink: 0; padding: 24px 16px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 24px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9999px; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; flex-shrink: 0;
}
.brand b { display: block; color: var(--head); font-weight: 900; font-size: 16px; }
.brand span { font-size: 12px; color: var(--muted); }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-inset);
  color: var(--body); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: rgba(31, 41, 55, 0.6); color: var(--head); }
.nav a[aria-current="page"] { background: var(--line); color: var(--head); font-weight: 600; }
.nav svg { flex-shrink: 0; }
.nav .grow { flex-grow: 1; }
.count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 9999px; background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sys { padding: 14px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.sys.off { border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.sys b { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--head); }
.sys span { font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--ok); flex-shrink: 0; }
.dot.bad { background: var(--danger); }
.who { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.who .grow { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { flex-grow: 1; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head .title { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; min-width: 240px; }
.page-head .title > span { font-size: 14px; color: var(--muted); }

.tabbar { display: none; }

/* ---------- controls ---------- */
.btn {
  min-height: 44px; padding: 0 20px; border-radius: 9999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--head); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
}
.btn:hover { background: var(--line); color: var(--head); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.danger { border-color: var(--danger); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn:disabled { background: var(--line-strong); border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.btn.ghost-disabled:disabled { background: transparent; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--card); border: 1px solid var(--line); }
.seg button {
  min-height: 36px; padding: 0 16px; border-radius: 9999px; border: none; background: transparent; color: var(--body);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--body); }
.field .hint { font-size: 12px; color: var(--muted); }
input[type="text"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
  min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card);
  color: var(--head); font-size: 14px; width: 100%;
}
textarea { padding: 12px 14px; line-height: 1.65; resize: vertical; min-height: 140px; }
input[readonly] { color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .seg button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.price-input { color: var(--accent) !important; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- surfaces ---------- */
.card { position: relative; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.card.pad { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.card.hot { border-color: rgba(250, 204, 21, 0.4); }
.card.alarm { border-color: var(--bad-line); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2 { flex-grow: 1; }
.card-foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-foot .grow { flex-grow: 1; }

.kpi { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.kpi .v { font-size: 30px; line-height: 36px; font-weight: 900; color: var(--head); font-family: "Geist", var(--font); }
.kpi .v.accent { color: var(--accent); }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi .s { font-size: 12px; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; background: var(--line); color: var(--body); white-space: nowrap;
}
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }

.alerts { display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.alert .ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  background: #450a0a; color: var(--bad);
}
.alert.warn .ic { background: var(--warn-bg); color: var(--warn); }
.alert .txt { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.alert .txt b { color: var(--head); font-size: 15px; }
.alert .txt span { color: var(--muted); font-size: 14px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--body); }
.tbl tr:last-child td { border-bottom: none; }
.tbl th:first-child, .tbl td:first-child { padding-left: 24px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 24px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; position: relative; }
.ad-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.ad-cell img { width: 72px; height: 38px; object-fit: cover; border-radius: 8px; background: var(--line); flex-shrink: 0; }
.ad-cell b { display: block; color: var(--head); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.ad-cell span { display: block; font-size: 12px; color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { color: var(--accent); font-weight: 700; }

/* chart */
.chart { position: relative; height: 140px; display: flex; align-items: flex-end; gap: 2px; padding-top: 8px; }
.chart .bar-slot { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.chart .bar { width: 70%; max-width: 28px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.chart .bar-slot:hover .bar, .chart .bar-slot:focus .bar { background: var(--accent-hover); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.tip {
  position: absolute; pointer-events: none; background: #030712; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; color: var(--head); white-space: nowrap; transform: translate(-50%, -100%); z-index: 5;
}

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ad-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 24px; }
.ad-pick {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--radius-inset); border: 1px solid var(--line);
  background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.ad-pick:hover { border-color: var(--line-strong); color: inherit; }
.ad-pick[aria-current="page"] { background: var(--card); border-color: rgba(250, 204, 21, 0.5); }
.ad-pick img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; background: var(--line); }
.ad-pick .row { display: flex; align-items: center; gap: 8px; }
.ad-pick b { flex-grow: 1; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--head); overflow: hidden; text-overflow: ellipsis; }
.ad-pick span.note { font-size: 12px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--body); }
.check .mark {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted);
}
.check.ok .mark { background: var(--ok-bg); color: var(--ok); }
.check.bad .mark { background: var(--bad-bg); color: var(--bad); }
.check .grow { flex-grow: 1; }
.actions-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions-row .grow { flex: 1 0 100%; font-size: 13px; color: var(--muted); }
.preview-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.fb { border-radius: var(--radius-inset); background: #fff; color: #111; overflow: hidden; }
.fb .top { display: flex; align-items: center; gap: 10px; padding: 12px; }
.fb .avatar { width: 36px; height: 36px; border-radius: 9999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.fb .page { font-size: 14px; font-weight: 700; }
.fb .spon { font-size: 12px; color: #4b5563; }
.fb .msg { padding: 0 12px 10px; font-size: 13px; line-height: 1.55; white-space: pre-line; max-height: 180px; overflow: hidden; }
.fb img { display: block; width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; background: #e5e7eb; }
.fb .bottom { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f3f4f6; }
.fb .bottom .t { flex-grow: 1; min-width: 0; }
.fb .dom { font-size: 11px; color: #4b5563; text-transform: uppercase; }
.fb .hl { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb .cta { padding: 6px 12px; border-radius: 6px; background: #e5e7eb; font-size: 13px; font-weight: 600; white-space: nowrap; }
.drop {
  padding: 16px; border-radius: var(--radius-card); border: 1px dashed var(--line-strong); display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
.drop.over { border-color: var(--accent); background: var(--warn-bg); }
.meta-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.meta-list div { display: flex; gap: 8px; }
.meta-list dt { width: 96px; color: var(--muted); flex-shrink: 0; }
.meta-list dd { margin: 0; color: var(--body); overflow-wrap: anywhere; }

/* approvals */
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.diff > div { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.diff > div + div { border-left: 1px solid var(--line); background: rgba(250, 204, 21, 0.04); }
.diff .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.025em; color: var(--muted); }
.diff .lbl.new { color: var(--accent); }
.diff .old-h { font-size: 16px; font-weight: 700; color: var(--body); }
.diff .old-m { font-size: 14px; line-height: 1.65; color: var(--muted); white-space: pre-line; }
.pass-list { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ok); flex-grow: 1; }
.pass-list.bad { color: var(--bad); }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--head); font-size: 16px; margin-bottom: 4px; }

/* manage */
.switch {
  position: relative; flex-shrink: 0; width: 64px; height: 36px; border-radius: 9999px; border: none; cursor: pointer; padding: 0;
  background: var(--line-strong);
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 9999px; background: #fff; transition: left 0.15s; }
.switch[aria-checked="true"] { background: var(--danger); }
.switch[aria-checked="true"]::after { left: 31px; }
.kill { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
.kill.on { border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.kill .txt { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.job { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.job .t { width: 64px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.job .d { flex-grow: 1; display: flex; flex-direction: column; min-width: 180px; }
.job .d b { font-size: 14px; color: var(--head); }
.job .d span { font-size: 12px; color: var(--muted); }
.job .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 76px; }
.job .d + .btns { flex-basis: 100%; }
.job .d + .chip, .job .d + a.chip { margin-left: auto; }

/* feedback */
.toast-host { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(440px, calc(100vw - 32px)); }
.toast {
  padding: 14px 18px; border-radius: var(--radius-inset); background: var(--card); border: 1px solid var(--line-strong); color: var(--head);
  font-size: 14px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5); display: flex; flex-direction: column; gap: 4px;
}
.toast.ok { border-color: rgba(74, 222, 128, 0.5); }
.toast.err { border-color: var(--danger); }
.toast ul { margin: 4px 0 0; padding-left: 18px; color: var(--bad); font-size: 13px; }
.toast a { font-size: 13px; }
dialog {
  border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--card); color: var(--text);
  padding: 24px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
}
dialog::backdrop { background: rgba(3, 7, 18, 0.75); }
dialog form { display: flex; flex-direction: column; gap: 16px; }
dialog .row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.err-box { padding: 16px 20px; border-radius: var(--radius-inset); background: var(--bad-bg); color: var(--bad); font-size: 14px; }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .card { width: min(400px, 100%); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login .brand { padding: 0; }

/* ---------- small screens ---------- */
@media (max-width: 1400px) {
  .editor { grid-template-columns: minmax(0, 1fr) 340px; }
  .ad-list { display: none; }
}
@media (max-width: 900px) {
  .side { display: none; }
  main { padding: 20px 16px 96px; gap: 16px; }
  h1 { font-size: 24px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
  }
  .tabbar a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 22px; line-height: 28px; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .preview-col { position: static; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff > div + div { border-left: none; border-top: 1px solid var(--line); }
  .card-head, .card-foot { padding-left: 16px; padding-right: 16px; }
  .card.pad { padding: 16px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
  .hide-sm { display: none; }
  .alert { padding: 12px 14px; gap: 12px; }
  .alert .ic { display: none; }
  .toast-host { right: 16px; bottom: 88px; }
}

/* Six-site report workspace */
.dh-eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:1.4px;font-weight:500;color:#8aa6a6;display:flex;align-items:center;gap:8px}
.dh-dot{width:6px;height:6px;border-radius:50%;background:#7de4bf;box-shadow:0 0 12px #7de4bf55}
.dh-head{display:flex;justify-content:space-between;gap:24px;padding:6px 0 10px;align-items:flex-start}
.dh-head h1{font-size:clamp(28px,3.2vw,43px);letter-spacing:-1.6px;line-height:1.38;margin:17px 0 12px;font-weight:700}
.dh-head h1 span{color:#8a9da9}.dh-head p{color:var(--muted);font-size:13px;margin:0}
.dh-head-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end;padding-top:4px}
.dh-pill{font-size:11px;color:#9fe9d2;background:#0d2927;border:1px solid #234039;padding:8px 12px;border-radius:20px;white-space:nowrap}
.dh-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 0;border-block:1px solid var(--line)}
.dh-summary h2{font-size:20px;margin:6px 0}.dh-summary p{font-size:12px;color:var(--muted);margin:0}
.dh-switch{display:flex;background:#111827;border:1px solid #24313d;padding:4px;border-radius:10px}
.dh-switch button,.dh-filters button{border:0;background:none;color:var(--muted);cursor:pointer;padding:9px 14px;font-size:12px;border-radius:7px;white-space:nowrap;min-height:40px}
.dh-switch button[aria-pressed=true]{background:#283746;color:#fff}.dh-filters button[aria-pressed=true]{background:#22332f;color:#b7eadb}
.dh-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dh-kpi{padding:22px 20px;background:linear-gradient(135deg,#121c29,#0e1622);border:1px solid #26313e;border-radius:14px;display:flex;flex-direction:column;gap:12px}
.dh-kpi>span{font-size:12px;color:#acbac8}.dh-kpi strong{font-family:var(--mono);font-size:32px;font-weight:500;letter-spacing:-1px}.dh-kpi small{font-size:10px;line-height:1.7;color:#8695a6;min-height:34px}
.dh-platforms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.dh-platform{display:grid;grid-template-columns:34px 1fr;gap:9px 12px;padding:18px;background:#0a121f;border:1px solid #202d3a;border-radius:12px}.dh-platform h3{font-size:13px;margin:1px 0 4px}.dh-platform>div>span{font-size:10px;color:var(--muted)}
.dh-platform-icon{border-radius:9px;width:34px;height:34px;background:#172b47;color:#a3c8ff;font:bold 24px Arial;display:grid;place-items:center}.dh-platform-icon.google{color:#ffe5a3;background:#302a20}.dh-platform-icon.openai{color:#b6e0cc;background:#22382f}
.dh-tag{font-size:10px;padding:4px 8px;background:#1c2630;color:#b5c0cf;border-radius:6px;align-self:center;white-space:nowrap;display:inline-block}.dh-tag.ready{color:#97ddc3;background:#183b30}.dh-platform>.dh-tag{grid-column:1/-1;justify-self:start}
.dh-platform p{grid-column:1/-1;font-size:11px;color:#98a7b9;line-height:1.8;margin:0}.dh-platform small{grid-column:1/-1;font-size:10px;color:#74849a;line-height:1.7}
.dh-content{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.dh-primary,.dh-secondary{display:flex;flex-direction:column;gap:24px;min-width:0}.dh-panel{border:1px solid #25303c;background:#0d1622;border-radius:14px;overflow:hidden}.dh-panel-head{padding:22px;display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #25303c;flex-wrap:wrap}.dh-panel-head h2{font-size:18px;margin-top:6px}.dh-panel-head p{font-size:11px;color:#8695a6;margin:7px 0 0}.dh-filters{display:flex;gap:2px}
.dh-sites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#25303c}.dh-site{padding:20px;background:#0d1622;min-width:0}.dh-site-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.dh-site-head>div:nth-child(2){flex:1;min-width:125px}.dh-site h3{font-size:14px;font-weight:600}.dh-site-mark{width:34px;height:34px;border:1px solid #355047;border-radius:10px;background:#172a28;display:grid;place-items:center;font-size:14px;color:#abdcce}.dh-site-mark.aed{background:#22253a;color:#bfc3ed;border-color:#393958}.dh-domain{font-family:var(--mono);font-size:10px;color:#8192a6;overflow-wrap:anywhere}.dh-site-values{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:20px 0 10px}.dh-site-values div{display:flex;flex-direction:column;gap:9px}.dh-site-values span{font-size:10px;color:#93a2b5}.dh-site-values b{font-family:var(--mono);font-size:20px;font-weight:500}.dh-site p{font-size:10px;color:#8192a6;line-height:1.8;min-height:36px;margin:12px 0}.dh-site details{font-size:10px;color:#a9b8c5;border-top:1px dashed #26323d;padding-top:12px}.dh-site summary{cursor:pointer;min-height:24px}.dh-evidence{color:#92a4b5;padding-top:8px;line-height:2}
.dh-panel-foot{font-size:11px;line-height:1.9;color:#8c9dae;padding:16px 22px;border-top:1px solid #25303c;background:#101b28}
.dh-budget{padding:24px;border:1px solid #355443;border-radius:14px;background:linear-gradient(140deg,#1b3029,#101e23)}.dh-budget h2{margin:12px 0 17px;font-size:18px}.dh-budget>strong{font-family:var(--mono);font-weight:500;font-size:38px;letter-spacing:-1px;color:#c2ecd8}.dh-budget p{font-size:11px;line-height:1.8;color:#9ab8aa;margin:10px 0}.dh-budget-bar{display:flex;gap:4px;height:5px;margin:22px 0}.dh-budget-bar i{flex:3;background:#84c6ad;border-radius:4px}.dh-budget-bar i:last-child{flex:1;background:#365149}
.dh-budget-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0;font-size:12px;color:#d3e6dc}.dh-budget-row small{display:block;font-size:10px;color:#8aa698}.dh-budget-row b{font-family:var(--mono);font-weight:500}.dh-budget-row.reserve{border-top:1px solid #354a40;padding-top:15px}.dh-budget>small{display:block;border-top:1px solid #354a40;padding-top:15px;font-size:10px;color:#91ac9d;line-height:1.8}
.dh-readiness{padding:24px}.dh-readiness h2{margin:10px 0 22px;font-size:17px}.dh-readiness>div{display:flex;gap:12px;padding:14px 0;border-top:1px solid #24303c}.dh-readiness>div>span{font-family:var(--mono);color:#627b88;font-size:11px;padding-top:2px}.dh-readiness h3{font-size:12px;line-height:1.6;font-weight:500}.dh-readiness p{font-size:11px;color:#879bad;line-height:1.85;margin:7px 0 0}
.dh-skill{padding:22px;border-radius:14px;border:1px dashed #354554;background:#101b28}.dh-skill h3{font-family:var(--mono);font-weight:500;font-size:13px;margin:12px 0}.dh-skill p{font-size:11px;color:#8fa3b4;line-height:1.9;margin:12px 0 0}.dh-empty{padding:30px;text-align:center}.dh-empty>span{display:inline-grid;place-items:center;background:#172532;border:1px solid #2d4052;border-radius:50%;width:44px;height:44px;color:#7290a6;font-size:24px;margin-bottom:15px}.dh-empty h3{font-size:13px;font-weight:500}.dh-empty p{font-size:11px;color:#879bad;margin:9px 0}.dh-history{padding:0 22px}.dh-history>div{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid #25303c}.dh-history-icon{font-size:18px;color:#9fcab8}.dh-history b{font-size:12px}.dh-history p,.dh-history small{font-size:10px;color:#879bad;margin:6px 0}.dh-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:8px 0;color:#72889b;font-size:10px}.dh-footer>span{display:flex;gap:8px;align-items:center;white-space:nowrap}.dh-footer svg{width:18px;height:18px}.dh-footer p{text-align:right;line-height:1.9;margin:0}.dh-notice{border:1px solid #51492a;background:#242314;color:#d0c88a;font-size:12px;padding:14px 18px;border-radius:10px}
@media(min-width:1500px){main{max-width:1600px;margin-inline:auto;width:100%}.dh-content{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1200px){.dh-content{grid-template-columns:minmax(0,1fr)}.dh-secondary{display:grid;grid-template-columns:1fr 1fr}.dh-skill{grid-column:1/-1}.dh-head-actions{max-width:230px}.dh-sites{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.dh-head{gap:12px;flex-direction:column}.dh-head-actions{max-width:none;justify-content:flex-start}.dh-head h1{font-size:32px;letter-spacing:-.9px}.dh-summary{align-items:flex-start;flex-direction:column}.dh-metrics{grid-template-columns:1fr 1fr;gap:10px}.dh-kpi{padding:16px}.dh-kpi strong{font-size:28px}.dh-platforms{grid-template-columns:1fr}.dh-platform{grid-template-columns:34px 1fr auto}.dh-platform>.dh-tag{grid-column:auto}.dh-sites{grid-template-columns:1fr}.dh-secondary{grid-template-columns:1fr}.dh-skill{grid-column:auto}.dh-panel-head{padding:18px}.dh-site{padding:20px}.dh-footer{align-items:flex-start;flex-direction:column}.dh-footer p{text-align:left}.dh-head-actions .btn{min-height:36px;font-size:12px}.dh-pill{font-size:10px}.dh-filters button{padding:8px 12px}.dh-site-head>div:nth-child(2){min-width:120px}}
