/* Vyral Studio — Vyral theme (tokens match Vyral Boards / Campaigns) */
:root {
  --navy: #094164; --navy-hover: #0c5381; --ink: #052b44;
  --blue: #1c9ad6; --blue-l1: #7fd0f5; --blue-l2: #7fb6d3; --tint: #e3eef6;
  --amber: #f6a81c; --amber-hover: #e09612;
  --paper: #f3f6f9; --surface: #fff; --text: #12283a; --muted: #5b7083; --line: #d6e0e8; --soft: #eef3f7;
  --good-bg: #d5f0e2; --good-fg: #14573a; --warn-bg: #fdecc4; --warn-fg: #6b4700; --bad-bg: #fbdcd8; --bad-fg: #8a1f15;
  --side: linear-gradient(180deg, #04243a 0%, #073a5a 55%, #0a4c74 100%);
  --side-text: #e6f0f7; --side-hover: rgba(255,255,255,.08); --side-active: rgba(28,154,214,.22);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 12px;
  --shadow: 0 1px 2px rgba(5,43,68,.08), 0 8px 24px rgba(5,43,68,.07);
  --shadow-hover: 0 10px 28px rgba(5,43,68,.14), 0 0 0 1px rgba(28,154,214,.4);
  --side-w: 248px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
code { font: 12.5px/1.4 ui-monospace, Menlo, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { font-size: 12.5px; color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: var(--side-w); flex: none; background: var(--side); color: var(--side-text);
  display: flex; flex-direction: column; padding: 22px 12px 12px; z-index: 30; transition: width .2s ease; overflow: hidden; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; padding: 4px 0 22px; }
.brand-logo { width: 110px; height: auto; }
.brand-mini { display: none; border-radius: 8px; }
.brand-name { color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.menu { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--side-text);
  text-decoration: none; font: inherit; font-size: 14.5px; background: none; border: 0; cursor: pointer; text-align: left; position: relative; }
.mi:hover { background: var(--side-hover); }
.mi.on { background: var(--side-active); box-shadow: inset 3px 0 0 var(--blue); color: #fff; }
.mi.on-parent { color: #fff; }
.mi span { flex: 1; white-space: nowrap; }
.chev { display: inline-flex; margin-right: -2px; padding-right: 0; opacity: .7; transition: transform .2s; }
.chev .ic { width: 14px; height: 14px; }
.grp.open .chev { transform: rotate(90deg); }
.grp-items { display: none; padding: 2px 0 6px; }
.grp.open .grp-items { display: block; }
.si { display: block; padding: 7px 12px 7px 42px; border-radius: 8px; color: #b8cfdf; text-decoration: none; font-size: 14px; }
.si:hover { background: var(--side-hover); color: #fff; }
.si.on { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.menu-sep { margin: 14px 4px 6px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.menu-sep span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-l2); padding-left: 8px; }
.collapse-btn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border: 0; border-radius: 8px;
  background: none; color: var(--blue-l2); font: inherit; font-size: 13.5px; cursor: pointer; }
.collapse-btn:hover { background: var(--side-hover); color: #fff; }

/* Collapsed sidebar (desktop) */
.shell.mini { --side-w: 78px; }
.shell.mini .brand-logo, .shell.mini .brand-name, .shell.mini .mi span, .shell.mini .chev, .shell.mini .collapse-btn span,
.shell.mini .grp-items, .shell.mini .menu-sep span { display: none; }
.shell.mini .brand-mini { display: block; }
.shell.mini .mi, .shell.mini .collapse-btn { justify-content: center; padding: 11px 0; }
.shell.mini .collapse-btn .ic { transform: rotate(180deg); }
.shell.mini .menu-sep { margin: 10px 8px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 28px;
  background: rgba(243,246,249,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-title { font-size: 19px; font-weight: 700; margin-right: auto; }
.burger { display: none; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--navy); }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; width: min(380px, 34vw); color: var(--muted); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,154,214,.18); }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; padding: 9px 0; width: 100%; color: var(--text); }
.search.inline { width: min(360px, 100%); border-radius: 10px; }
.content { padding: 26px 28px 10px; display: flex; flex-direction: column; gap: 22px; max-width: 1440px; width: 100%; }
.foot { padding: 18px 28px 24px; font-size: 12px; color: var(--muted); }

/* Buttons & pills */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--navy); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--navy-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.amber:hover { background: var(--amber-hover); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn.ghost-dark { background: var(--surface); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost-dark:hover { background: var(--tint); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:focus-visible, .mi:focus-visible, .chip:focus-visible, a:focus-visible { outline: 3px solid rgba(28,154,214,.5); outline-offset: 2px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; font-style: normal; white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; }
.pill.good { background: var(--good-bg); color: var(--good-fg); }
.pill.bad { background: var(--bad-bg); color: var(--bad-fg); }
.pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill.blue { background: var(--tint); color: var(--navy); }
.pill.grey { background: var(--soft); color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.note .ic { margin-top: 1px; }
.note.bad { background: var(--bad-bg); color: var(--bad-fg); }
.note.good { background: var(--good-bg); color: var(--good-fg); }
.note.warn { background: var(--warn-bg); color: var(--warn-fg); }
.note.info { background: var(--tint); color: var(--navy); }

/* Avatar menu */
.me { position: relative; }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.avatar.initials { background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; }
.me-menu { position: absolute; right: 0; top: 46px; width: 260px; background: var(--surface); border-radius: 12px; box-shadow: 0 18px 50px rgba(5,28,44,.22); padding: 8px; }
.me-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.me-who .pill { align-self: flex-start; margin-top: 6px; }
.me-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; background: none; font: inherit; font-size: 14px; border-radius: 8px; cursor: pointer; color: var(--text); }
.me-item:hover { background: var(--soft); }

/* Hero */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 34px; border-radius: 18px; color: #fff; background: var(--side); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -80px; top: -200px; background: radial-gradient(circle, rgba(28,154,214,.45), transparent 65%); }
.hero::after { width: 300px; height: 300px; left: 38%; bottom: -220px; background: radial-gradient(circle, rgba(246,168,28,.28), transparent 65%); }
.hero-text { position: relative; max-width: 640px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-l1); }
.hero h2 { color: #fff; font-size: 30px; }
.hero p { color: #cfe2ef; margin: 8px 0 0; }
.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-ring { position: relative; flex: none; width: 140px; height: 140px; }
.ring-track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 12; }
.ring-fill { fill: none; stroke: var(--amber); stroke-width: 12; stroke-linecap: round; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-size: 28px; }
.ring-label span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-l1); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; padding: 18px 20px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.kpi:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.kpi-ic { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--navy); }
.kpi-ic.good { background: var(--good-bg); color: var(--good-fg); }
.kpi-ic.warn { background: var(--warn-bg); color: var(--warn-fg); }
.kpi-ic .ic { width: 22px; height: 22px; }
.kpi-l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-v { font-size: 30px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12.5px; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-1 { grid-template-columns: 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 16px; }
.card-h .muted { font-size: 12.5px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-h h2 { font-size: 24px; }
.page-h p { margin: 4px 0 0; }

/* Charts */
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 230px; align-items: end; }
.vb { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; height: 100%; min-height: 0; text-align: center; cursor: default; border-radius: 6px; }
.vb svg { width: 100%; height: 100%; display: block; min-height: 0; }
.vb-fill { fill: var(--blue); transition: fill .15s; }
.vb:hover .vb-fill { fill: var(--navy); }
.vb-v { font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.vb-l { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 54px; align-items: center; gap: 10px; font-size: 13.5px; }
.hb-l { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { width: 100%; height: 12px; }
.hb-track { fill: var(--soft); }
.hb-fill { fill: var(--blue); }
.hbars li:hover .hb-fill { fill: var(--navy); }
.hb-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbars.money li:first-child .hb-fill { fill: var(--amber); }
.hbars.money .hb-v::before { content: "$"; }
.save { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.save strong { color: var(--good-fg); font-size: 18px; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 10px;
  border-radius: 7px; box-shadow: 0 6px 18px rgba(5,28,44,.3); white-space: nowrap; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.tbl tbody tr:hover { background: #f7fafc; }
.tbl tr.off { opacity: .5; }
.tbl a { text-decoration: none; color: var(--navy); }
.tbl a:hover { text-decoration: underline; }
.sub { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sub .ic { width: 13px; height: 13px; }
.filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.count { margin-left: auto; font-size: 13px; }
.more { text-align: center; padding-top: 14px; }
form.inline { display: inline; }
select, input { font: inherit; }
.tbl select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }

/* Side cards */
.new-card { background: linear-gradient(135deg, #fff 0%, var(--tint) 100%); }
.new-card p { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.new-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--amber); color: var(--ink); margin-bottom: 12px; }
.new-ic .ic { width: 24px; height: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 9px 0; position: relative; font-size: 14px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 34px; bottom: -8px; width: 2px; background: var(--line); }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; z-index: 1; }
.steps .done .dot { background: var(--good-fg); border-color: var(--good-fg); color: #fff; }
.steps .dot .ic { width: 14px; height: 14px; }
.steps .next .dot { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28,154,214,.15); }
.steps .todo { color: var(--muted); }
.steps.big li { align-items: flex-start; padding: 12px 0; }
.steps.big p { margin: 4px 0 0; font-size: 13.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--soft); }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.timeline .good .tl-dot { background: var(--good-bg); color: var(--good-fg); }
.timeline .bad .tl-dot { background: var(--bad-bg); color: var(--bad-fg); }
.tl-body { flex: 1; min-width: 0; }
.tl-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--muted); }
.tl-meta span, .tl-meta a { display: inline-flex; align-items: center; gap: 5px; }
.tl-meta a { color: var(--blue); text-decoration: none; }
.tl-meta .ic { width: 14px; height: 14px; }
.mini-log { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.mini-log li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--soft); }
.mini-log em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }

/* Wizard & templates */
.wz-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; }
.wz-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-weight: 600; font-size: 14px; }
.wz-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 13px; }
.wz-steps li.on { color: var(--navy); box-shadow: var(--shadow), inset 0 -3px 0 var(--blue); }
.wz-steps li.on span, .wz-steps li.done span { background: var(--navy); color: #fff; }
.wz-body h3 { margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields.one { grid-template-columns: 1fr; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select { padding: 10px 12px; border: 1px solid #b9c6d1; border-radius: 9px; font-size: 14.5px; color: var(--text); background: #fff; }
.fields input:focus, .fields select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,154,214,.18); }
.wz-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--soft); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tpl { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.tpl input { display: none; }
.tpl.on { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28,154,214,.12); }
.tpl.disabled { opacity: .55; cursor: default; border-style: dashed; }
.tpl-shot { height: 110px; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(160deg, var(--navy), var(--blue)); display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.tpl-shot span { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.65); width: 70%; }
.tpl-shot span:nth-child(2) { width: 45%; background: var(--amber); }
.tpl-shot span:nth-child(3) { width: 85%; opacity: .5; }
.tpl-shot.alt { background: linear-gradient(160deg, #8fa3b3, #c7d3dd); }
.tpl-card h3 { margin: 4px 0 6px; }
.tpl-card.dashed { border: 2px dashed var(--line); box-shadow: none; background: transparent; }
.review { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.review dt { color: var(--muted); font-weight: 600; }
.review dd { margin: 0; word-break: break-word; }

/* Sign-in */
body.bare { background: var(--paper); }
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; background: var(--side); color: #fff; display: flex; align-items: center; padding: 60px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.o1 { width: 520px; height: 520px; right: -160px; top: -160px; background: radial-gradient(circle, rgba(28,154,214,.55), transparent 65%); }
.o2 { width: 380px; height: 380px; left: -120px; bottom: -140px; background: radial-gradient(circle, rgba(246,168,28,.35), transparent 65%); }
.o3 { width: 200px; height: 200px; right: 22%; bottom: 14%; background: radial-gradient(circle, rgba(127,208,245,.35), transparent 65%); }
.login-pitch { position: relative; max-width: 460px; }
.login-pitch h2 { color: #fff; font-size: 40px; line-height: 1.1; margin: 28px 0 14px; }
.login-pitch p { color: #cfe2ef; font-size: 16px; }
.login-pitch ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.login-pitch li { display: flex; align-items: center; gap: 12px; color: #e6f0f7; }
.login-pitch li .ic { color: var(--amber); }
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-panel.solo { min-height: 100vh; }
.login-card { width: min(400px, 100%); background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(5,28,44,.12); padding: 40px 36px; text-align: center; }
.login-card img { width: 210px; height: auto; }
.login-product { font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); font-size: 13px; margin: 6px 0 26px; }
.login-card h1 { font-size: 22px; }
.login-card .muted { margin: 4px 0 22px; }
.login-card .note { text-align: left; margin-bottom: 16px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border: 1px solid #c6d2dc; border-radius: 10px;
  text-decoration: none; color: var(--text); font-weight: 600; background: #fff; transition: box-shadow .15s, border-color .15s; }
.gbtn:hover { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28,154,214,.12); }
.login-card .fine { margin-top: 22px; }
.err-card { max-width: 480px; margin: 40px auto; text-align: center; }
.err-code { font-size: 64px; font-weight: 800; color: var(--tint); -webkit-text-stroke: 2px var(--navy); line-height: 1; }
.err-card h2 { margin: 10px 0 6px; }
.err-card .btn { margin-top: 16px; }

/* Responsive */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, 1fr); } .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; --side-w: 260px; width: 260px; }
  .shell.menu-open .side { transform: none; }
  .shell.mini { --side-w: 260px; }
  .scrim { display: none; }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5,28,44,.5); z-index: 25; }
  .collapse-btn { display: none; }
  .burger { display: block; }
  .search { display: none; }
  .top { padding: 12px 16px; }
  .content { padding: 18px 16px; }
  .g-1-1, .fields { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; padding: 24px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .top .btn.amber span { display: none; }
  .wz-steps { flex-wrap: wrap; }
}

/* Wizard form states */
.req { color: #b3261e; font-weight: 700; }
.fields .has-err input { border-color: #b3261e; }
.fields .err { color: #8a1f15; font-weight: 600; font-size: 12.5px; }
.fields .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.created { max-width: 680px; margin: 10px auto; }
.created h2 { margin: 4px 0 8px; }
.created .review { margin: 18px 0; }
.new-ic.ok { background: var(--good-bg); color: var(--good-fg); }

/* Builds */
.g-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1180px) { .g-1-2 { grid-template-columns: 1fr; } }
.push-right { margin-left: auto; }
.big-pill { font-size: 14px; padding: 6px 14px; }
.steps .fail .dot { background: var(--bad-fg); border-color: var(--bad-fg); color: #fff; }
.step-time { margin-left: auto; font-style: normal; }
.timeline .warn .tl-dot { background: var(--warn-bg); color: var(--warn-fg); }
.timeline .grey .tl-dot { background: var(--soft); color: var(--muted); }
.tl-body a { color: var(--ink); text-decoration: none; }
.tl-body a:hover { text-decoration: underline; }
.log { margin: 0; max-height: 640px; overflow: auto; background: #071a29; color: #cfe2ef; border-radius: 10px; padding: 14px 16px;
  font: 12px/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.log .l-grp { color: #7fd0f5; font-weight: 700; }
.log .l-bad { color: #ffb4a8; }

.fields select { padding: 10px 12px; border: 1px solid #b9c6d1; border-radius: 9px; font-size: 14.5px; color: var(--text); background: #fff; }
.fields .has-err select { border-color: #b3261e; }
.site-name { display: block; }
.site-name .pill { margin-left: 6px; vertical-align: 1px; }

.types li.off { opacity: .55; }
.types code { font-size: 12px; }
.type-add { display: flex; gap: 10px; margin-top: 14px; }
.type-add input { flex: 1; padding: 9px 12px; border: 1px solid #b9c6d1; border-radius: 9px; font: inherit; font-size: 14px; }

::placeholder { color: #9aa9b6; opacity: 1; font-weight: 400; }

.fields .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.fields select + input { margin-top: 6px; }
