/* AdLaunch UI — shared by the client panel (/app) and the staff panel (/admin).
   --brand is overwritten at runtime from Settings > Branding. */
:root {
  --brand: #1565d8;
  --brand-ink: #fff;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-2: #4a5672;
  --ink-3: #7b86a0;
  --line: #e2e6ef;
  --money: #0e8a5f;
  --money-soft: #e3f4ec;
  --amber: #b97a00;
  --amber-soft: #fff4d6;
  --danger: #c8372d;
  --danger-soft: #fdebea;
  --locked: #5b6cff;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font-body); }
[x-cloak] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 .75em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- Icons ---------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i.sm { width: 15px; height: 15px; vertical-align: -2px; }
.i.lg { width: 22px; height: 22px; }
.i.xl { width: 28px; height: 28px; }
.ico-chip { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); }
.ico-chip.money { background: var(--money-soft); color: var(--money); }
.ico-chip.amber { background: var(--amber-soft); color: var(--amber); }
.ico-chip.violet { background: color-mix(in srgb, var(--locked) 12%, #fff); color: var(--locked); }
.ico-chip.ink { background: #eef1f7; color: var(--ink); }
.ico-chip.danger { background: var(--danger-soft); color: var(--danger); }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: var(--ink); background: var(--paper); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff;
  font: 600 10.5px/16px var(--font-body); text-align: center; border: 2px solid var(--surface); box-sizing: content-box; transform: translate(40%, -40%); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #b9c3dc; padding: 18px 14px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; }
.side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 18px var(--font-display); padding: 4px 8px 22px; text-decoration: none; }
.side .brand img { max-height: 32px; border-radius: 8px; background: #fff; padding: 2px; }
.side .brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.side nav { flex: 1; }
.side nav a { display: flex; align-items: center; gap: 11px; color: #b9c3dc; padding: 9px 11px; border-radius: 9px; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; position: relative; }
.side nav a .i { color: #8794b4; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side nav a:hover .i { color: #fff; }
.side nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.side nav a.on .i { color: #fff; }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side nav .grp { color: #6f7c9c; font-size: 12px; font-weight: 600; padding: 18px 11px 6px; }
.side .count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11.5px; font-weight: 600; line-height: 19px; }
.side .cta { margin: 6px 0 10px; }
.side .user-card { display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }
.side .user-card .who { flex: 1; min-width: 0; line-height: 1.3; }
.side .user-card .who strong { color: #fff; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .user-card .who span { font-size: 12.5px; color: #8794b4; }
.side .user-card .avatar { width: 36px; height: 36px; font-size: 13px; background: rgba(255,255,255,.12); color: #fff; }
.side .user-card button { background: none; border: 0; color: #8794b4; cursor: pointer; padding: 6px; border-radius: 8px; }
.side .user-card button:hover { color: #fff; background: rgba(255,255,255,.08); }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; min-height: 64px; }
.top .grow { flex: 1; }
.top .crumb { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; min-width: 0; }
.top .crumb strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface); height: 38px; max-width: 280px; }
.switcher select { border: 0; background: transparent; font: 600 14px var(--font-body); color: var(--ink); appearance: none; -webkit-appearance: none; padding-right: 4px; cursor: pointer; min-width: 0; text-overflow: ellipsis; }
.switcher select:focus { outline: none; }
.switcher .i { color: var(--ink-3); }
.menu-btn { display: none; }
.page { padding: 26px 28px 96px; max-width: 1200px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.page-head .row { gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.tabbar { display: none; }
.scrim { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; height: 100%; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(20,33,61,.4); z-index: 45; }
  .menu-btn { display: inline-grid; }
  .top { padding: 10px 14px; min-height: 58px; }
  .top .hide-m { display: none; }
  .page { padding: 18px 16px 100px; }
  h1 { font-size: 24px; }
}
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 9px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.fab .i { background: var(--brand); color: #fff; width: 40px; height: 40px; padding: 9px; border-radius: 12px; margin-top: -16px; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
}

/* ---------- Surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid > .panel + .panel { margin-top: 0; }
.grid + .grid, .grid + .panel { margin-top: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .g2, .g3, .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.right { margin-left: auto; }

/* Figures: a quiet label under a strong number, no tiles */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.figures > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.figures > div:first-child { border-left: 0; }
.figures .v { font: 700 24px var(--font-display); font-variant-numeric: tabular-nums; }
.figures .l { color: var(--ink-2); font-size: 13px; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, 1fr); } .figures > div:nth-child(3) { border-left: 0; } .figures > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- The money ribbon: where every rupee is ---------- */
.ribbon { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); }
.ribbon > span { display: block; height: 100%; transition: width .5s ease; }
.ribbon .free { background: var(--money); }
.ribbon .locked { background: var(--locked); }
.ribbon .spent { background: var(--ink); }
.ribbon .returned { background: repeating-linear-gradient(135deg, var(--money) 0 4px, color-mix(in srgb, var(--money) 55%, #fff) 4px 8px); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wallet-hero { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 22px 22px 18px; }
.wallet-hero .amt { font: 700 40px/1 var(--font-display); font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
.wallet-hero .legend { color: #c9d1e6; }
.wallet-hero .ribbon { background: rgba(255,255,255,.12); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-m); padding: 10px 16px;
  font: 600 14.5px var(--font-body); cursor: pointer; background: var(--brand); color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(.95); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper); }
.btn.quiet { background: transparent; color: var(--brand); padding-left: 6px; padding-right: 6px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.money { background: var(--money); color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 13.5px; border-radius: var(--radius-s); }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 20px; font-size: 16px; }
label.f { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 5px; color: var(--ink); }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-m); font: 15px var(--font-body); color: var(--ink); background: var(--surface); }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.err-text { color: var(--danger); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; font: 500 14px var(--font-body); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 5px 10px; border-radius: 99px; font-size: 13.5px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 15px; line-height: 1; padding: 0; }

/* Status: a coloured dot and plain words */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.st.live::before, .st.paid::before, .st.active::before, .st.finished::before, .st.processed::before, .st.won::before, .st.resolved::before { background: var(--money); }
.st.live::before { box-shadow: 0 0 0 3px var(--money-soft); }
.st.pending_review::before, .st.scheduled::before, .st.pending::before, .st.requested::before, .st.open::before, .st.awaiting_staff::before, .st.pending_review::before, .st.new::before { background: var(--amber); }
.st.changes_requested::before, .st.awaiting_client::before, .st.closing::before, .st.interested::before, .st.contacted::before { background: var(--locked); }
.st.rejected::before, .st.failed::before, .st.suspended::before, .st.lost::before, .st.revoked::before { background: var(--danger); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f9fafd; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .credit { color: var(--money); }

/* ---------- Campaign rows ---------- */
.camp { display: grid; grid-template-columns: 84px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px; }
.camp + .camp { margin-top: 12px; }
.camp .thumb { width: 84px; height: 84px; border-radius: var(--radius-m); background: var(--paper) center/cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; }
.camp .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin: 6px 0 10px; }
.camp .meta b { color: var(--ink); font-family: var(--font-display); font-size: 16px; margin-right: 4px; }
.camp a.title { color: var(--ink); font-weight: 650; font-size: 16px; }
@media (max-width: 520px) { .camp { grid-template-columns: 64px 1fr; gap: 12px; } .camp .thumb { width: 64px; height: 64px; } }

/* ---------- Package picker ---------- */
.goal { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; cursor: pointer; font: inherit; color: inherit; }
.goal:hover { border-color: var(--brand); }
.goal .row.stats { gap: 28px; margin-top: 10px; }
.goal .stat b { display: block; font: 700 20px var(--font-display); }
.goal .stat span { font-size: 12.5px; color: var(--ink-2); }
.goal .tag { font-size: 12.5px; color: var(--money); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-m); padding: 18px 10px 14px; text-align: center; cursor: pointer; font: inherit; color: inherit; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.plan .d { color: var(--ink-2); font-size: 14px; }
.plan .p { font: 700 19px var(--font-display); margin-top: 2px; }
.plan s { color: var(--ink-3); font-size: 13px; }
.plan .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.estimate { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.estimate b { font: 700 26px var(--font-display); }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--brand); }
.bill { width: 100%; font-size: 14.5px; }
.bill td { padding: 6px 0; }
.bill td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bill tr.total td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 16px; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.note { padding: 12px 14px; border-radius: var(--radius-m); background: var(--amber-soft); color: #5c4300; font-size: 14px; }
.note.ok { background: var(--money-soft); color: #0b5a3e; }
.note.bad { background: var(--danger-soft); color: #7b1d16; }
.note.info { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--ink); }
.rm-card { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, var(--surface)); color: var(--brand); display: grid; place-items: center; font: 700 16px var(--font-display); flex: none; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.msg.internal { background: var(--amber-soft); border-color: #f2d78a; }
.msg .who { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); font-size: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.bar-chart div { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--radius-m); z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); font-size: 14.5px; }
.toast.bad { background: var(--danger); }
.modal-bg { position: fixed; inset: 0; background: rgba(20, 33, 61, .45); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--radius-l); padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal.wide { max-width: 760px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .art h1 { font-size: 42px; max-width: 12ch; }
.auth .form { display: grid; place-items: center; padding: 32px 16px; }
.auth .form > div { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { padding: 28px 20px; } .auth .art h1 { font-size: 28px; } .auth .art .hide-m { display: none; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--paper); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
details > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.tbl .r { white-space: nowrap; }
label.f::first-letter { text-transform: uppercase; }

/* ---------- SaaS refinements (v1.1) ---------- */
.panel { border-radius: 14px; box-shadow: 0 1px 2px rgba(20,33,61,.04); }
.panel-head h2 { display: flex; align-items: center; gap: 10px; }
.btn .i { margin-left: -2px; }
.btn.sm .i { width: 15px; height: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: 0 1px 2px rgba(20,33,61,.04); color: inherit; text-decoration: none; }
a.kpi:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); text-decoration: none; }
.kpi .v { font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpi { padding: 12px; gap: 10px; } .kpi .v { font-size: 20px; } .kpi .ico-chip { width: 32px; height: 32px; } }
.st { padding: 2px 10px 2px 8px; border-radius: 99px; background: #f1f3f8; font-size: 12.5px; }
.st.live, .st.paid, .st.active, .st.finished, .st.processed, .st.won, .st.resolved, .st.success { background: var(--money-soft); color: #0b5a3e; }
.st.pending_review, .st.scheduled, .st.pending, .st.requested, .st.open, .st.awaiting_staff, .st.new, .st.created { background: var(--amber-soft); color: #6b4a00; }
.st.changes_requested, .st.awaiting_client, .st.closing, .st.interested, .st.contacted { background: color-mix(in srgb, var(--locked) 12%, #fff); color: #3340b8; }
.st.rejected, .st.failed, .st.suspended, .st.lost, .st.revoked, .st.disabled { background: var(--danger-soft); color: #8a2018; }
.tbl-wrap { border-radius: 14px; box-shadow: 0 1px 2px rgba(20,33,61,.04); }
.tbl th { background: #f8f9fc; font-weight: 600; }
.empty .ring { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--brand); }
.empty .ring .i { width: 26px; height: 26px; }
.note { display: flex; gap: 10px; align-items: flex-start; }
.note > .i { margin-top: 2px; }
.note > div { flex: 1; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.goal { display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.goal:hover { box-shadow: 0 6px 20px rgba(20,33,61,.07); }
.goal .head { display: flex; align-items: center; gap: 12px; }
.goal .arrow { margin-left: auto; color: var(--ink-3); }
.search-box { position: relative; }
.search-box .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-box .input { padding-left: 36px; }
.wallet-hero { position: relative; overflow: hidden; }
.wallet-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); pointer-events: none; }
.wallet-hero > * { position: relative; z-index: 1; }
.auth .art .feat { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: #c9d1e6; max-width: 42ch; }
.auth .art .feat .ico-chip { background: rgba(255,255,255,.08); color: #fff; }
.auth .art .feat strong { color: #fff; display: block; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 12px; top: 13px; color: var(--ink-3); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
.camp > div { min-width: 0; }
.camp a.title { overflow-wrap: anywhere; }
.camp .row.between { flex-wrap: wrap; gap: 6px 10px; }
.bar-chart div { max-width: 32px; }
.bar-chart { justify-content: flex-start; }

/* Plugins */
.plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.plugin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l, 14px); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plugin-top { display: flex; gap: 12px; align-items: center; }
.plugin-top > div:not(.plugin-icon) { flex: 1; }
.plugin-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); flex: none; overflow: hidden; }
.plugin-icon img { width: 100%; height: 100%; object-fit: cover; }
.plugin-icon .i { width: 22px; height: 22px; }
.plugin-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plugin-price { font-weight: 600; font-size: 14px; white-space: nowrap; }
.plugin-sum { margin: 0; flex: 1; }
.plugin-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 24px; }
.plugin-actions { flex-wrap: wrap; gap: 6px; }
.incompat { display: inline-flex; gap: 6px; align-items: flex-start; color: #8a2018; font-size: 13px; }
.incompat .i { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.plugin-desc { white-space: pre-line; margin-top: 12px; line-height: 1.55; }
.shots { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; }
.shots img { height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.btn.ghost.del { color: var(--danger); }
.st.disabled::before, .st.expired::before { background: var(--danger); }
