/* NyayaKosh platform UI - v5 "premium SaaS": deep navy rail, white content on a cool grey canvas, royal blue primary,
   sky / teal / green accents, gold used sparingly. Shared by /app (admin CRM), /login, /docs and the payment pages. */
:root {
  color-scheme: light;
  --white: #FFFFFF; --card: #FFFFFF; --bg: #F7F9FC; --soft: #F1F5F9; --tint: #EEF2F8; --hover: #F3F6FB;
  --ink: #18222F; --navy: #0D2847; --navy-2: #1A56DB; --navy-3: #1A56DB;
  --body: #334155; --muted: #5B6878; --line: #E3E8EF; --line-2: #D3DBE6;
  --pri: #1A56DB; --pri-2: #1747B8; --pri-soft: #EAF1FE; --on-pri: #FFFFFF;
  --sky: #38BDF8; --sky-ink: #0284C7; --sky-soft: #E6F6FE;
  --teal: #0F766E; --teal-soft: #E3F3F1;
  --gold: #8A5A00; --gold-2: #F5B83D; --gold-soft: #FEF6E0;
  --blue: #1A56DB; --blue-soft: #EAF1FE;
  --green: #047857; --green-2: #059669; --green-soft: #E3F7EE;
  --rose: #B42318; --rose-soft: #FDECEA;
  --amber: #B45309; --amber-soft: #FEF3C7;
  --brand-navy: #0D2847; --rail-1: #0D2847; --rail-2: #0B2350;
  --chart-1: #1A56DB; --chart-2: #0F766E; --chart-3: #F5B83D; --chart-4: #059669; --chart-5: #DC2626; --chart-muted: #CBD5E1;
  --sh-1: 0 1px 2px rgba(13,40,71,.04), 0 1px 3px rgba(13,40,71,.05);
  --sh-2: 0 2px 4px rgba(13,40,71,.04), 0 10px 24px -8px rgba(13,40,71,.16);
  --sh-3: 0 28px 64px -16px rgba(13,40,71,.34), 0 4px 12px rgba(13,40,71,.08);
  --ring: 0 0 0 4px rgba(26,86,219,.14);
  --f-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --f-deva: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
  --r: 16px; --r-sm: 10px;
  --side: 264px; --top: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--body); font: 14px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.25; font-family: var(--f-display); text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
h2 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.012em; }
h3 { font-size: .92rem; font-weight: 700; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, pre, .mono { font-family: var(--f-mono); font-size: .84em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
::selection { background: rgba(26,86,219,.16); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.grow { flex: 1; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--rail-1) 0%, var(--rail-2) 100%); color: #A9B8D0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 20px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; box-shadow: inset -1px 0 0 rgba(255,255,255,.04); }
.side::-webkit-scrollbar { width: 8px; }
.side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 16px; text-decoration: none; }
.side .brand:hover { text-decoration: none; }
.side .brand .mk { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #1A56DB 0%, #2F7BEA 55%, #38BDF8 100%); color: #fff;
  display: grid; place-items: center; font: 800 13px var(--f-display); letter-spacing: .02em; flex: none;
  box-shadow: 0 6px 16px -4px rgba(56,189,248,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.side .brand .bt { display: flex; flex-direction: column; min-width: 0; }
.side .brand b { color: #fff; font: 800 1.06rem var(--f-display); letter-spacing: -.015em; }
.side .brand .bt span { color: #7DD3FC; font: 600 .7rem var(--f-deva); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.role-tag { margin: 0 8px 8px; align-self: flex-start; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #7DD3FC; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.24); padding: 3px 10px; border-radius: 99px; }
.role-tag:empty { display: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .group { margin: 20px 12px 6px; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6F84A6; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 12px; border-radius: 10px; color: #C3CFE2; font-weight: 500; font-size: .872rem;
  text-decoration: none; transition: background .15s, color .15s; }
.nav a::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; opacity: .7;
  -webkit-mask: var(--ic, var(--ic-dot)) center / 18px 18px no-repeat; mask: var(--ic, var(--ic-dot)) center / 18px 18px no-repeat; transition: opacity .15s; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a:hover::before { opacity: 1; }
.nav a.active { background: linear-gradient(90deg, #1A56DB 0%, #2563EB 100%); color: #fff; font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(26,86,219,.85), inset 0 1px 0 rgba(255,255,255,.14); }
.nav a.active::before { opacity: 1; }
.nav a:focus-visible { outline-color: var(--sky); }
.nav a .count { margin-left: auto; min-width: 20px; padding: 0 7px; border-radius: 10px; background: #EF4444; color: #fff;
  font-size: .7rem; font-weight: 700; text-align: center; line-height: 19px; box-shadow: 0 0 0 2px rgba(13,40,71,.6); }
.nav a.active .count { background: #fff; color: var(--pri); box-shadow: none; }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; margin-left: 2px; margin-right: 2px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  background: rgba(255,255,255,.04); font-size: .8rem; }
.side-foot:empty { display: none; }
.nav + .side-foot { margin-top: 24px; }
.side-foot .who { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .mail { color: #8FA1BD; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.side-foot button { margin-top: 10px; width: 100%; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 32px; }
.topbar .menu-btn, .topbar .tb-brand { display: none; }
.tb-brand { font: 800 1.02rem var(--f-display); color: var(--navy); letter-spacing: -.015em; }
.tb-crumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-crumb b { color: var(--navy); font-weight: 700; font-family: var(--f-display); }
.tb-crumb .sep { color: var(--line-2); }
.tb-jump { position: relative; width: min(400px, 40vw); }
.tb-jump .input { padding-left: 38px; min-height: 40px; background: var(--soft); border-color: var(--line); border-radius: 12px; }
.tb-jump .input:hover { border-color: var(--line-2); }
.tb-jump .input:focus { background: #fff; border-color: var(--pri); }
.tb-jump i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tb-ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); border: 1px solid var(--line); background: var(--card); transition: background .15s, color .15s, border-color .15s; }
.tb-ic:hover { background: var(--hover); color: var(--navy); border-color: var(--line-2); text-decoration: none; }
.content { padding: 30px 32px 72px; max-width: 1480px; width: 100%; }
.content:focus { outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 820px; font-size: .94rem; }
.crumb { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.scrim { position: fixed; inset: 0; background: rgba(8,22,44,.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 45; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 86vw; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
  .side.open { transform: none; box-shadow: var(--sh-3); }
  .topbar { padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--top) - 6px + env(safe-area-inset-top, 0px)); }
  .topbar .menu-btn { display: inline-flex; }
  .topbar .tb-brand { display: inline; }
  .tb-crumb { display: none; }
  .tb-jump { width: auto; flex: 1; max-width: 360px; }
  .content { padding: 20px 16px 56px; }
  h1 { font-size: 1.45rem; }
}
@media (max-width: 560px) { .tb-jump { display: none; } }

/* ---------------------------------------------------------------- building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); min-width: 0; }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2 { font-size: 1rem; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.card-head > .input, .card-head > select.input { width: auto; min-width: 170px; }
.grid { display: grid; gap: 18px; }
.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)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .g4 { grid-template-columns: minmax(0, 1fr); } }

/* KPI tiles: an icon chip (decorative, by position and tone), label, big figure, sub line */
.kpi-more-row { display: flex; justify-content: flex-end; margin: -8px 0 14px; }
.kpi-wrap > .kpis { margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(164px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stack > .kpis { margin-bottom: 0; }
.content > div > .stack:only-child > .kpis:last-child { margin-bottom: 18px; }   /* a tile strip followed by another strip */
@media (max-width: 700px) {
  .kpis { gap: 10px; }
  .kpi { padding: 14px 14px 13px; }
  .kpi::before { width: 28px; height: 28px; border-radius: 9px; margin-bottom: 9px; background-size: 15px 15px, auto; }
  .kpi .value { font-size: 1.38rem; }
  .kpi.click::after { right: 10px; top: 14px; }
}
.kpi { --kc: var(--pri-soft); --ki: var(--ki-bars);
  padding: 16px 18px 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.kpi::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 12px;
  background: var(--ki) center / 17px 17px no-repeat, var(--kc); box-shadow: inset 0 0 0 1px rgba(13,40,71,.04); }
.kpis > .kpi:nth-child(4n+2) { --kc: var(--teal-soft); --ki: var(--ki-users); }
.kpis > .kpi:nth-child(4n+3) { --kc: var(--sky-soft); --ki: var(--ki-pulse); }
.kpis > .kpi:nth-child(4n+4) { --kc: var(--gold-soft); --ki: var(--ki-layers); }
.kpis > .kpi.t-info, .kpi.t-info { --kc: var(--pri-soft); --ki: var(--ki-rupee); }
.kpis > .kpi.t-ok, .kpi.t-ok { --kc: var(--green-soft); --ki: var(--ki-check); }
.kpis > .kpi.t-gold, .kpi.t-gold { --kc: var(--gold-soft); --ki: var(--ki-star); }
.kpis > .kpi.warn, .kpi.warn { --kc: var(--rose-soft); --ki: var(--ki-alert); }
.kpi .label { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .005em; line-height: 1.35; }
.kpi .value { font: 800 1.62rem/1.15 var(--f-display); color: var(--ink); margin-top: 6px; letter-spacing: -.025em; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .sub { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.kpi.warn .value { color: var(--rose); }
.kpi.t-ok .value { color: var(--green); }
.kpi.t-info .value { color: var(--pri); }
.kpi.t-gold .value { color: var(--gold); }
.kpi.click { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.kpi.click:hover { border-color: #C4D5F6; box-shadow: var(--sh-2); transform: translateY(-1px); }
.kpi.click::after { content: ""; position: absolute; right: 14px; top: 18px; width: 24px; height: 24px; border-radius: 8px; background: var(--ki-arrow) center / 14px no-repeat;
  opacity: .45; transition: opacity .15s, background-color .15s; }
.kpi.click:hover::after { opacity: 1; background-color: var(--pri-soft); }
.kpi.on { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri) inset, var(--sh-2); background: linear-gradient(180deg, #F2F7FF, #fff 72%); }
.kpi .spark { width: 100%; height: 30px; margin-top: 10px; display: block; }
.spark .line { fill: none; stroke: var(--chart-1); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .area { fill: rgba(26,86,219,.09); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); padding: 8px 14px; min-height: 38px; border-radius: var(--r-sm); font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; line-height: 1.3;
  text-decoration: none; box-shadow: 0 1px 2px rgba(13,40,71,.05); transition: background .14s, border-color .14s, box-shadow .14s, color .14s; }
.btn:hover { background: var(--hover); border-color: #C2CCDA; text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: var(--on-pri);
  box-shadow: 0 1px 2px rgba(26,86,219,.3), 0 6px 14px -6px rgba(26,86,219,.6), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.primary:hover { background: var(--pri-2); border-color: var(--pri-2); }
.btn.gold { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 6px 14px -8px rgba(15,118,110,.7); }
.btn.gold:hover { background: #0B5F58; border-color: #0B5F58; }
.btn.danger { color: var(--rose); border-color: #F4C7C2; }
.btn.danger:hover { background: var(--rose-soft); border-color: var(--rose); }
.btn.danger.solid { background: #D92D20; color: #fff; border-color: #D92D20; box-shadow: 0 6px 14px -8px rgba(217,45,32,.8); }
.btn.danger.solid:hover { background: var(--rose); border-color: var(--rose); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--hover); border-color: transparent; }
.btn.sm { padding: 5px 11px; min-height: 30px; font-size: .78rem; border-radius: 8px; }
.side .btn { background: rgba(255,255,255,.06); color: #E2E8F0; border-color: rgba(255,255,255,.14); box-shadow: none; }
.side .btn:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.linkish { background: none; border: 0; padding: 0; color: var(--pri); cursor: pointer; font-weight: 500; text-align: left; }
.linkish:hover { text-decoration: underline; }

/* badges / pills */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 600;
  background: var(--soft); color: #475467; white-space: nowrap; line-height: 1.55; text-decoration: none; vertical-align: 1px;
  box-shadow: inset 0 0 0 1px rgba(13,40,71,.06); }
a.badge:hover { text-decoration: none; filter: brightness(.97); }
.badge.green { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px rgba(5,150,105,.18); }
.badge.rose { background: var(--rose-soft); color: var(--rose); box-shadow: inset 0 0 0 1px rgba(180,35,24,.16); }
.badge.gold { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(245,184,61,.38); }
.badge.blue { background: var(--blue-soft); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(26,86,219,.16); }
.badge.amber { background: var(--amber-soft); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(180,83,9,.16); }
.badge.teal { background: var(--teal-soft); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(15,118,110,.16); }
.badge.muted { background: #F2F4F7; color: var(--muted); }
.badge.green::before, .badge.rose::before, .badge.amber::before, .badge.blue::before, .badge.teal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.method { font: 700 .7rem var(--f-mono); padding: 2px 7px; border-radius: 6px; display: inline-block; min-width: 46px; text-align: center; }
.method.GET { background: var(--green-soft); color: var(--green); }
.method.POST { background: var(--blue-soft); color: var(--blue); }
.method.PUT, .method.PATCH { background: var(--amber-soft); color: var(--amber); }
.method.DELETE { background: var(--rose-soft); color: var(--rose); }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 600; color: #344054; letter-spacing: .005em; }
.field small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.field .err { color: var(--rose); font-size: .78rem; font-weight: 500; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 8px 12px; min-height: 40px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(13,40,71,.04); transition: border-color .14s, box-shadow .14s, background .14s; }
.input::placeholder { color: #98A2B3; }
.input:hover { border-color: #B8C4D4; }
.input:focus { border-color: var(--pri); outline: none; box-shadow: var(--ring); }
.input:disabled { background: var(--soft); color: var(--muted); }
.input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(180,35,24,.1); }
select.input:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--card) var(--ki-chev) right 12px center / 14px no-repeat; }
select.input:not([multiple]):disabled { background-color: var(--soft); }
textarea.input { min-height: 96px; resize: vertical; font-family: var(--f-mono); font-size: .84rem; line-height: 1.55; }
.check { display: flex; gap: 9px; align-items: center; font-size: .88rem; color: var(--ink); }
.check input { accent-color: var(--pri); width: 16px; height: 16px; flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.card > .filters:first-child { border-radius: var(--r) var(--r) 0 0; }
.filters .field { flex: 1 1 150px; max-width: 260px; }
.filters .field.wide { flex: 2 1 260px; max-width: 420px; }
.filters .field.narrow { flex: 0 1 100px; }
.card-pad > .filters, .card-pad.stack > .filters { padding: 0; background: none; border: 0; }

/* tables */
.smart-table { min-width: 0; }
.tbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.card > .smart-table:first-child .tbar { border-radius: var(--r) var(--r) 0 0; }
.card > .table-wrap:first-child .t thead th:first-child { border-top-left-radius: var(--r); }
.card > .table-wrap:first-child .t thead th:last-child { border-top-right-radius: var(--r); }
.card > .smart-table:last-child .table-wrap, .card > .table-wrap:last-child { border-radius: 0 0 var(--r) var(--r); }
.tbar .tb-find { position: relative; flex: 0 1 260px; min-width: 150px; }
.tbar .tb-find i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tbar .tb-search { min-height: 34px; padding: 5px 12px 5px 33px; font-size: .84rem; background: var(--soft); border-color: var(--line); border-radius: 9px; box-shadow: none; }
.tbar .tb-search:focus { background: #fff; border-color: var(--pri); }
.tb-count { font-size: .78rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--pri); background: var(--pri-soft); border-radius: 99px; padding: 2px 4px 2px 10px; }
.tb-chip .chip-x { border: 0; background: transparent; color: inherit; font-size: .95rem; line-height: 1; padding: 0 5px; border-radius: 50%; }
.tb-chip .chip-x:hover { background: rgba(26,86,219,.15); }
.tb-menu { position: relative; }
.tb-menu > summary { list-style: none; }
.tb-menu > summary::-webkit-details-marker { display: none; }
.tb-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh-3); padding: 8px; min-width: 200px; max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.tb-pop .check { padding: 5px 8px; border-radius: 6px; font-size: .84rem; white-space: nowrap; }
.tb-pop .check:hover { background: var(--hover); }
.tb-pop .btn { margin-top: 4px; align-self: flex-start; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.tall { max-height: min(72vh, 760px); overflow: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.t th { text-align: left; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: #667085; font-weight: 700;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: #F8FAFC; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.t th .th-sort { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.t th.num .th-sort { flex-direction: row-reverse; }
.t th .th-sort:hover { color: var(--ink); }
.t th .sort-ic { width: 8px; height: 12px; flex: none; opacity: .35; position: relative; }
.t th .sort-ic::before, .t th .sort-ic::after { content: ""; position: absolute; left: 0; border: 4px solid transparent; }
.t th .sort-ic::before { top: -3px; border-bottom-color: currentColor; }
.t th .sort-ic::after { bottom: -3px; border-top-color: currentColor; }
.t th[aria-sort] { color: var(--pri); }
.t th[aria-sort] .sort-ic { opacity: 1; }
.t th[aria-sort="ascending"] .sort-ic::after, .t th[aria-sort="descending"] .sort-ic::before { opacity: 0; }
.t td { padding: 13px 16px; border-bottom: 1px solid #EDF1F6; vertical-align: middle; color: var(--body); transition: background .12s; }
.t td .muted { font-size: .8rem; }
.t tbody tr:last-child td, .t tbody tr.lastvis td { border-bottom: 0; }
.t tbody tr:hover td { background: #F8FAFD; }
.t tr.clickable { cursor: pointer; }
.t tr.clickable:hover td { background: #F3F7FF; }
.t tr.clickable:focus-visible { outline: 2px solid var(--pri); outline-offset: -2px; }
.t tr.clickable:focus-visible td { background: var(--pri-soft); }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t .col-off { display: none; }
.t tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--rose); }
.t tr.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.t tr.t-empty td { text-align: center; color: var(--muted); padding: 28px; }
.t .muted, .muted { color: var(--muted); }
.t .strong, .strong { color: var(--navy); font-weight: 600; }
.t a.strong { color: var(--pri); }
.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; background: #FBFCFE; border-radius: 0 0 var(--r) var(--r); border-top: 1px solid var(--line); flex-wrap: wrap; font-size: .83rem; color: var(--muted); }
@media (max-width: 700px) {
  table.t.cards thead { display: none; }
  table.t.cards tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.t.cards tr.hidden { display: none; }
  table.t.cards td { display: flex; gap: 10px; border: 0; padding: 5px 16px; }
  table.t.cards td.col-off { display: none; }
  table.t.cards td::before { content: attr(data-label); flex: 0 0 110px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  table.t.cards td[data-label=""]::before { content: none; }
  table.t.cards td.num { text-align: left; }
  table.t.cards tr.t-empty td::before { content: none; }
  .table-wrap.tall { max-height: none; }
  .tbar .tb-find { flex: 1 1 100%; }
}

/* states */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { margin-bottom: 6px; color: var(--navy); }
.empty::before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: var(--ic-inbox-img) center / 22px no-repeat, linear-gradient(180deg, #F1F5F9, #E8EEF6); box-shadow: inset 0 0 0 1px var(--line); }
.empty .btn { margin-top: 14px; }
.error-box { padding: 13px 16px; border-radius: 12px; background: var(--rose-soft); color: var(--rose); border: 1px solid #F6CFCB; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); color: #1E3A8A; font-size: .87rem; border: 1px solid #D4E2FC; box-shadow: inset 3px 0 0 var(--pri); }
.note.gold { background: #FFF8E8; color: #7A4B00; border-color: #F8E2AE; box-shadow: inset 3px 0 0 var(--gold-2); }
.note.rose { background: var(--rose-soft); color: var(--rose); border-color: #F6CFCB; box-shadow: inset 3px 0 0 #D92D20; }
.note.green { background: var(--green-soft); color: var(--green); border-color: #BFEBD7; box-shadow: inset 3px 0 0 var(--green-2); }
.note a { font-weight: 600; }
.skel { background: linear-gradient(90deg, #EDF1F7 25%, #F6F8FB 50%, #EDF1F7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 14px; }
.skel-block { display: grid; gap: 10px; padding: 18px 20px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { transition: none !important; } }

/* key/value */
.kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 7px 18px; font-size: .88rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* meters & charts */
.meter { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #1A56DB, #38BDF8); border-radius: 99px; }
.meter.warn i { background: linear-gradient(90deg, #E8A21C, #F5B83D); }
.meter.over i { background: linear-gradient(90deg, #B42318, #F04438); }
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr minmax(48px, auto); gap: 10px; align-items: center; font-size: .83rem; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bar-row .track { height: 10px; background: #EEF2F7; border-radius: 99px; overflow: hidden; display: flex; }
.bar-row .track i.c-navy:only-child { background: linear-gradient(90deg, #1A56DB, #3B82F6 60%, #38BDF8); border-radius: 99px; }
.bar-row .track i { display: block; height: 100%; }
.bar-row .track i:first-child { border-radius: 99px 0 0 99px; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.c-navy { background: var(--chart-1); } .c-gold { background: var(--chart-3); } .c-green { background: var(--chart-4); } .c-rose { background: var(--chart-5); }
.c-teal { background: var(--chart-2); } .c-muted { background: var(--chart-muted); }
.legend { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
svg.chart { width: 100%; height: 200px; display: block; }
svg.chart .grid-line { stroke: #E6EBF2; stroke-dasharray: 3 4; }
svg.chart .axis { fill: var(--muted); font-size: 10px; font-family: var(--f-sans); }
svg.chart .area { fill: rgba(56,140,248,.12); }
svg.chart .line { fill: none; stroke: var(--chart-1); stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
svg.chart .line.err { stroke: #F04438; stroke-width: 1.6; stroke-dasharray: 4 4; }
svg.chart rect.col { fill: var(--chart-1); }
svg.chart rect:hover { fill: rgba(26,86,219,.07); }

/* code */
pre.code { background: #F7F9FC; color: var(--ink); border: 1px solid var(--line); padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 0; font-size: .8rem; line-height: 1.6; position: relative; }
.code-wrap { position: relative; }
.code-wrap > pre { padding-top: 44px; }   /* room for the Copy button, so it never covers the code */
.code-wrap .copy { position: absolute; top: 8px; right: 8px; }
.secret { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--pri-soft); border: 1px dashed var(--pri); border-radius: var(--r-sm); font-family: var(--f-mono); font-size: .84rem; word-break: break-all; }
.secret code { flex: 1; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { background: none; border: 0; padding: 11px 14px; margin-bottom: -1px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .875rem; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; transition: color .14s, background .14s, border-color .14s; }
.tabs button:hover { color: var(--navy); background: var(--hover); }
.tabs button[aria-selected="true"] { color: var(--pri); border-bottom-color: var(--pri); background: transparent; }
.json-tree { font-family: var(--f-mono); font-size: .8rem; white-space: pre-wrap; word-break: break-word; background: #F7F9FC; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; max-height: 560px; overflow: auto; margin: 0; color: var(--ink); }
details > summary { cursor: pointer; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.timeline .when { font-weight: 600; color: var(--navy); font-size: .85rem; }
.timeline .what { font-size: .84rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan.current { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.plan .price { font: 800 1.45rem var(--f-display); color: var(--navy); letter-spacing: -.02em; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; font-size: .85rem; color: var(--muted); }
.plan li.na { color: #9CA3AF; }
.plan .btn { margin-top: auto; }

/* dialog & toast */
dialog.modal { border: 1px solid rgba(13,40,71,.08); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--sh-3); color: var(--body); background: var(--card); }
dialog.modal[open] { animation: nk-pop .18s ease-out; }
@keyframes nk-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
dialog.modal.wide { width: min(880px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(8,22,44,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.modal-head .btn.ghost { width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 9px; color: var(--muted); }
.modal-body { padding: 20px 22px; max-height: 72vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #F8FAFC; border-radius: 0 0 18px 18px; }
.toasts { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: linear-gradient(180deg, #102F55, #0D2847); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sh-3); font-size: .87rem; font-weight: 500; border: 1px solid rgba(255,255,255,.08); border-left: 4px solid var(--sky); animation: nk-pop .18s ease-out; }
.toast.ok { border-left-color: #34D399; }
.toast.err { border-left-color: #F87171; }

/* small buttons side by side in a table cell */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.t td .actions { flex-wrap: nowrap; }
.t td .btn.sm { padding: 3px 9px; }

/* notifications */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes li.unread { background: var(--pri-soft); box-shadow: inset 3px 0 0 var(--pri); }
.notes .note-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.notes .note-head b { color: var(--navy); }
.notes .note-text { white-space: pre-line; overflow-wrap: anywhere; }

/* API keys: how many of the plan's active keys are used */
.key-limit { color: var(--muted); font-size: .85rem; }
.key-limit.is-full { color: var(--amber); font-weight: 600; }
.key-count { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 99px; }
.key-count.is-full { color: var(--amber); background: var(--amber-soft); }
/* Admin > API keys, testing mode: the full key */
.full-key-row { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; flex-wrap: wrap; }
.full-key { font-family: var(--f-mono); font-size: .76rem; background: var(--gold-soft); color: #7A5410; padding: 3px 7px; border-radius: 6px; word-break: break-all; }

/* admin CRM helpers */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.chart-pad { padding: 14px 18px 16px; }
.mini-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); padding: 0 18px 12px; }
.coll-card .page-head { margin: 0; }
.coll-card ul { margin: 6px 0 0; padding-left: 18px; font-size: .84rem; }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); }
.auth-side { background: radial-gradient(120% 70% at 0% 0%, rgba(56,189,248,.16), transparent 60%), linear-gradient(180deg, var(--rail-1), var(--rail-2));
  color: #C3CFE2; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .muted { color: #8FA1BD; }
.auth-side h2 { color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: 18px 0 12px; }
.auth-side .brand { padding: 0; display: flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; }
.auth-side .brand b { font: 800 1.15rem var(--f-display); letter-spacing: -.02em; }
.auth-side .brand span { color: #7DD3FC; font-size: .8rem; font-family: var(--f-deva); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { margin-bottom: 6px; }
.auth-card > p { margin: 0 0 22px; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; background: #fff; }
.seg label:has(input:checked) { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri-soft); }
.seg input { margin-right: 6px; accent-color: var(--pri); }
.seg small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.note.pay-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg.plan-pick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.seg .plan-price { color: var(--navy); font-weight: 700; font-size: .84rem; }
@media (max-width: 520px) { .seg.three { grid-template-columns: 1fr; } }
.auth-foot { margin-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; }
.auth-error:not(:empty) { margin-top: 14px; }
.auth-body { margin-top: 16px; }
.auth-foot.small { margin-top: 10px; font-size: .8rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--tint); border-radius: var(--r); }
.auth-tabs a { text-align: center; padding: 9px 10px; border-radius: var(--r-sm); font-weight: 700; color: var(--navy); text-decoration: none; }
.auth-tabs a.on { background: var(--white); box-shadow: var(--sh-2); }
.auth-card h1 + p.muted { margin: 0 0 18px; }
.social { display: grid; gap: 10px; }
.btn.social-btn { width: 100%; padding: 11px 14px; font-weight: 600; color: var(--navy); border-radius: var(--r); gap: 10px; }
.social-btn svg { width: 20px; height: 20px; flex: none; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: .8rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn.sun { width: 100%; padding: 12px; background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 700; border-radius: var(--r); }
.btn.sun:hover { background: var(--pri-2); border-color: var(--pri-2); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
/* the test gateway's hosted checkout (/pay/mock/...) */
.pay-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.pay-page .auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); padding: 28px; }
.pay-page .auth-card h1 { margin-bottom: 10px; }
.pay-test { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 14px; }
.auth-card > p.pay-amount { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 6px 0 18px; }
.pay-actions { display: grid; gap: 8px; }
.pay-actions .btn { width: 100%; padding: 10px; justify-content: center; }

/* ---------------------------------------------------------------- docs portal */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.docs-nav { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
.docs-nav .brand { color: var(--navy); display: flex; align-items: baseline; gap: 8px; padding: 4px 10px 18px; text-decoration: none; }
.docs-nav .brand b { font: 800 1.15rem var(--f-display); }
.docs-nav .brand span { color: var(--teal); font-size: .8rem; font-family: var(--f-deva); }
.docs-nav a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--body); font-size: .86rem; }
.docs-nav a:hover { background: var(--soft); text-decoration: none; }
.docs-nav .group { margin: 16px 10px 6px; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.docs-main { padding: 34px 40px 80px; max-width: 1100px; }
.docs-main section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.docs-main section > h2 { margin-bottom: 10px; font-size: 1.3rem; }
.ep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ep-head code { font-size: .95rem; color: var(--navy); font-weight: 600; }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; }
@media (max-width: 1100px) { .ep-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-main { padding: 20px 16px 60px; } }
.playground { margin-top: 14px; }
.resp-status { font-family: var(--f-mono); font-weight: 700; }

/* Grid and flex children must be allowed to shrink below their content (long code, wide tables). */
.grid > *, .stack > *, .ep-grid > *, .docs > *, .main, .content, .kpis > * { min-width: 0; }
.docs-main { overflow-wrap: anywhere; }
.docs-main .table-wrap, .docs-main pre { max-width: 100%; }

/* print: just the content */
@media print { .side, .topbar, .tbar, .pager .actions { display: none !important; } .shell { display: block; } .table-wrap.tall { max-height: none; overflow: visible; } }

/* ---------------------------------------------------------------- icons (CSS masks, so they take the text colour) */
:root {
  --ki-bars: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231A56DB%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 20V10M10 20V4M16 20v-7M22 20H2%22/%3E%3C/svg%3E");
  --ki-users: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%230F766E%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223.5%22/%3E%3Cpath d=%22M2 20c.7-3.5 3.4-5.5 7-5.5s6.3 2 7 5.5M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5c2 .6 3.4 2.6 4 5.5%22/%3E%3C/svg%3E");
  --ki-pulse: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%230284C7%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12h4l3-8 4 16 3-8h4%22/%3E%3C/svg%3E");
  --ki-layers: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23B7791F%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2 2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5%22/%3E%3C/svg%3E");
  --ki-rupee: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231A56DB%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 4h12M6 9h12M14 4c3 0 3 10-3 10H6l9 7%22/%3E%3C/svg%3E");
  --ki-check: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23059669%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229.5%22/%3E%3Cpath d=%22M8 12.5l2.7 2.7L16 9.5%22/%3E%3C/svg%3E");
  --ki-star: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23B7791F%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z%22/%3E%3C/svg%3E");
  --ki-alert: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23B42318%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h16.9a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01%22/%3E%3C/svg%3E");
  --ki-arrow: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231A56DB%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 17 17 7M9 7h8v8%22/%3E%3C/svg%3E");
  --ki-chev: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%235B6878%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 9l6 6 6-6%22/%3E%3C/svg%3E");
  --ic-invoice: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 2h9l5 5v15l-3-2-2 2-3-2-3 2-2-2-3 2V4a2 2 0 0 1 2-2zM9 9h6M9 13h6M9 17h3%22/%3E%3C/svg%3E");
  --ic-plans: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2 2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5%22/%3E%3C/svg%3E");
  --ic-globe: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229.5%22/%3E%3Cpath d=%22M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5c-2.6-2.8-3.9-6-3.9-9.5S9.4 5.3 12 2.5z%22/%3E%3C/svg%3E");
  --ic-page: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6%22/%3E%3C/svg%3E");
  --ic-seo: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M21 21l-4.3-4.3M8 11l2 2 4-4%22/%3E%3C/svg%3E");
  --ic-media: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222.5%22/%3E%3Ccircle cx=%228.5%22 cy=%228.5%22 r=%221.8%22/%3E%3Cpath d=%22M21 15l-5-5L5 21%22/%3E%3C/svg%3E");
  --ic-reports: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 3v18h18M7 15l4-4 3 3 6-6%22/%3E%3C/svg%3E");
  --ic-dot: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223.5%22/%3E%3C/svg%3E");
  --ic-overview: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%227%22 height=%229%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%223%22 width=%227%22 height=%225%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%2212%22 width=%227%22 height=%229%22 rx=%221.5%22/%3E%3Crect x=%223%22 y=%2216%22 width=%227%22 height=%225%22 rx=%221.5%22/%3E%3C/svg%3E");
  --ic-clients: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16M16 9h3a2 2 0 0 1 2 2v10M2 21h20M8 7h4M8 11h4M8 15h4%22/%3E%3C/svg%3E");
  --ic-subscriptions: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 12a9 9 0 0 1-15.5 6.2M3 12A9 9 0 0 1 18.5 5.8%22/%3E%3Cpath d=%22M18.5 2v4h-4M5.5 22v-4h4%22/%3E%3C/svg%3E");
  --ic-catalog: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 8l-9-5-9 5 9 5 9-5z%22/%3E%3Cpath d=%22M3 8v8l9 5 9-5V8M12 13v8%22/%3E%3C/svg%3E");
  --ic-discounts: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z%22/%3E%3Ccircle cx=%227.5%22 cy=%227.5%22 r=%221.5%22/%3E%3C/svg%3E");
  --ic-revenue: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 4h12M6 9h12M14 4c3 0 3 10-3 10H6l9 7%22/%3E%3C/svg%3E");
  --ic-traffic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12h4l3-8 4 16 3-8h4%22/%3E%3C/svg%3E");
  --ic-usage: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 20V10M10 20V4M16 20v-7M22 20H2%22/%3E%3C/svg%3E");
  --ic-keys: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228%22 cy=%2215%22 r=%224%22/%3E%3Cpath d=%22M11 12l9-9M17 6l3 3M15 8l2 2%22/%3E%3C/svg%3E");
  --ic-logs: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 6h13M8 12h13M8 18h13M3.5 6h.01M3.5 12h.01M3.5 18h.01%22/%3E%3C/svg%3E");
  --ic-users: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223.5%22/%3E%3Cpath d=%22M2 20c.7-3.5 3.4-5.5 7-5.5s6.3 2 7 5.5M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5c2 .6 3.4 2.6 4 5.5%22/%3E%3C/svg%3E");
  --ic-requests: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 12h-6l-2 3h-4l-2-3H2%22/%3E%3Cpath d=%22M5.5 5.1L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.5-6.9A2 2 0 0 0 16.7 4H7.3a2 2 0 0 0-1.8 1.1z%22/%3E%3C/svg%3E");
  --ic-alerts: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M13 2L3 14h9l-1 8 10-12h-9l1-8z%22/%3E%3C/svg%3E");
  --ic-judges: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v18M5 21h14M3 7h18M6 7l-3 7a3 3 0 0 0 6 0L6 7zM18 7l-3 7a3 3 0 0 0 6 0l-3-7z%22/%3E%3C/svg%3E");
  --ic-advocates: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%227%22 width=%2220%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2M2 13h20%22/%3E%3C/svg%3E");
  --ic-cases: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z%22/%3E%3Cpath d=%22M14 3v6h6M8 13h8M8 17h5%22/%3E%3C/svg%3E");
  --ic-analytics: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 12A9 9 0 1 1 12 3v9z%22/%3E%3Cpath d=%22M15 3.5A9 9 0 0 1 20.5 9H15z%22/%3E%3C/svg%3E");
  --ic-collections: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cellipse cx=%2212%22 cy=%225%22 rx=%228%22 ry=%223%22/%3E%3Cpath d=%22M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3%22/%3E%3C/svg%3E");
  --ic-sync: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12a9 9 0 0 1 15-6.7L21 8M21 3v5h-5M21 12a9 9 0 0 1-15 6.7L3 16M3 21v-5h5%22/%3E%3C/svg%3E");
  --ic-health: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8z%22/%3E%3Cpath d=%22M3 12h5l2-3 3 6 2-3h6%22/%3E%3C/svg%3E");
  --ic-notifications: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0%22/%3E%3C/svg%3E");
  --ic-audit: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z%22/%3E%3Cpath d=%22M9 12l2 2 4-4%22/%3E%3C/svg%3E");
  --ic-settings: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z%22/%3E%3C/svg%3E");
  --ic-profile: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3Cpath d=%22M6.2 18.8a7 7 0 0 1 11.6 0%22/%3E%3C/svg%3E");
  --ic-webhooks: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7%22/%3E%3C/svg%3E");
  --ic-billing: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%225%22 width=%2220%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M2 10h20M6 15h4%22/%3E%3C/svg%3E");
  --ic-docs: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5v14zM4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5%22/%3E%3C/svg%3E");
  --ic-staff: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M2 21c.8-4 3.6-6 7-6s6.2 2 7 6M19 8v6M16 11h6%22/%3E%3C/svg%3E");
  --ic-roles: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%2211%22 width=%2216%22 height=%2210%22 rx=%222%22/%3E%3Cpath d=%22M8 11V7a4 4 0 0 1 8 0v4%22/%3E%3C/svg%3E");
  --ic-features: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%227%22 width=%2220%22 height=%2210%22 rx=%225%22/%3E%3Ccircle cx=%2216%22 cy=%2212%22 r=%223%22/%3E%3C/svg%3E");
  --ic-integrations: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 7V3M15 7V3M7 7h10v4a5 5 0 0 1-10 0z%22/%3E%3Cpath d=%22M12 16v5%22/%3E%3C/svg%3E");
  --ic-meetings: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M16 3v4M8 3v4M3 11h18M8 15h2M14 15h2%22/%3E%3C/svg%3E");
  --ic-availability: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v5l3 2%22/%3E%3C/svg%3E");
  --ic-workflows: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%227%22 height=%226%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%2215%22 width=%227%22 height=%226%22 rx=%221.5%22/%3E%3Cpath d=%22M6.5 9v3a3 3 0 0 0 3 3H14%22/%3E%3C/svg%3E");
  --ic-tickets: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z%22/%3E%3Cpath d=%22M9 6v12%22 stroke-dasharray=%222 2%22/%3E%3C/svg%3E");
  --ic-proposals: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z%22/%3E%3Cpath d=%22M14 3v6h6M8 13h8M8 17h5%22/%3E%3C/svg%3E");
  --ic-leads: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%225%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221%22/%3E%3C/svg%3E");
  --ic-tasks: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 11l3 3L22 4%22/%3E%3Cpath d=%22M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11%22/%3E%3C/svg%3E");
  --ic-crm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Ccircle cx=%229%22 cy=%2211%22 r=%222.5%22/%3E%3Cpath d=%22M5.5 17c.6-1.8 1.9-2.8 3.5-2.8s2.9 1 3.5 2.8M15 9h3M15 13h3%22/%3E%3C/svg%3E");
  --ic-search: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M21 21l-4.3-4.3%22/%3E%3C/svg%3E");
  --ic-menu: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 6h16M4 12h16M4 18h16%22/%3E%3C/svg%3E");
  --ic-cols: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M9 4v16M15 4v16%22/%3E%3C/svg%3E");
  --ic-down: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 4v11M7 10l5 5 5-5M5 20h14%22/%3E%3C/svg%3E");
  --ic-inbox: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 12h-6l-2 3h-4l-2-3H2%22/%3E%3Cpath d=%22M5.5 5.1L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.5-6.9A2 2 0 0 0 16.7 4H7.3a2 2 0 0 0-1.8 1.1z%22/%3E%3C/svg%3E");
  --ic-inbox-img: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%239CA3AF%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 12h-6l-2 3h-4l-2-3H2%22/%3E%3Cpath d=%22M5.5 5.1L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.5-6.9A2 2 0 0 0 16.7 4H7.3a2 2 0 0 0-1.8 1.1z%22/%3E%3C/svg%3E");
}
.nav a[href="#/"] { --ic: var(--ic-overview); }
.nav a[href="#/clients"] { --ic: var(--ic-clients); }
.nav a[href="#/subscriptions"] { --ic: var(--ic-subscriptions); }
.nav a[href="#/catalog"] { --ic: var(--ic-catalog); }
.nav a[href="#/discounts"] { --ic: var(--ic-discounts); }
.nav a[href="#/revenue"] { --ic: var(--ic-revenue); }
.nav a[href="#/traffic"] { --ic: var(--ic-traffic); }
.nav a[href="#/usage"] { --ic: var(--ic-usage); }
.nav a[href="#/keys"] { --ic: var(--ic-keys); }
.nav a[href="#/logs"] { --ic: var(--ic-logs); }
.nav a[href="#/users"] { --ic: var(--ic-users); }
.nav a[href="#/requests"] { --ic: var(--ic-requests); }
.nav a[href="#/alerts"] { --ic: var(--ic-alerts); }
.nav a[href="#/judges"] { --ic: var(--ic-judges); }
.nav a[href="#/advocates"] { --ic: var(--ic-advocates); }
.nav a[href="#/cases"] { --ic: var(--ic-cases); }
.nav a[href="#/analytics"] { --ic: var(--ic-analytics); }
.nav a[href="#/collections"] { --ic: var(--ic-collections); }
.nav a[href="#/sync"] { --ic: var(--ic-sync); }
.nav a[href="#/health"] { --ic: var(--ic-health); }
.nav a[href="#/notifications"] { --ic: var(--ic-notifications); }
.nav a[href="#/audit"] { --ic: var(--ic-audit); }
.nav a[href="#/settings"] { --ic: var(--ic-settings); }
.nav a[href^="#/integrations"] { --ic: var(--ic-integrations); }
.nav a[href^="#/meetings"] { --ic: var(--ic-meetings); }
.nav a[href^="#/availability"] { --ic: var(--ic-availability); }
.nav a[href^="#/workflows"] { --ic: var(--ic-workflows); }
.nav a[href^="#/tickets"] { --ic: var(--ic-tickets); }
.nav a[href^="#/proposals"] { --ic: var(--ic-proposals); }
.nav a[href^="#/blog"] { --ic: var(--ic-proposals); }
.nav a[href^="#/website-review"] { --ic: var(--ic-workflows); }
.slot-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.journey { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line, #E1E6EE); display: grid; gap: 14px; }
.journey li { position: relative; display: grid; gap: 2px; }
.journey li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand, #1A56DB); }
.journey li small { color: var(--muted, #5B6878); }
.slot-grid .skel-block { width: 100%; }
.nav a[href="#/profile"] { --ic: var(--ic-profile); }
.nav a[href="#/webhooks"] { --ic: var(--ic-webhooks); }
.nav a[href="#/billing"] { --ic: var(--ic-billing); }
.nav a[href="#/plan"] { --ic: var(--ic-billing); }
.nav a[href="#/company"] { --ic: var(--ic-clients); }
.nav a[href="/docs"], .nav a[href^="/docs"] { --ic: var(--ic-docs); }
.nav a[href^="#/staff"] { --ic: var(--ic-staff); }
.nav a[href^="#/agents"] { --ic: var(--ic-staff); }
.nav a[href^="#/leads"], .nav a[href^="#/lead-stages"] { --ic: var(--ic-leads); }
.nav a[href^="#/team"] { --ic: var(--ic-staff); }
.nav a[href^="#/roles"] { --ic: var(--ic-roles); }
.nav a[href^="#/permissions"] { --ic: var(--ic-roles); }
.nav a[href^="#/features"] { --ic: var(--ic-features); }
.nav a[href^="#/feature"] { --ic: var(--ic-features); }
.nav a[href^="#/leads"] { --ic: var(--ic-leads); }
.nav a[href^="#/tasks"] { --ic: var(--ic-tasks); }
.nav a[href^="#/crm"] { --ic: var(--ic-crm); }
.nav a[href^="#/contacts"] { --ic: var(--ic-crm); }
.nav a[href^="#/deals"] { --ic: var(--ic-revenue); }
.nav a[href^="#/tickets"] { --ic: var(--ic-requests); }
.nav a[href^="#/reports"] { --ic: var(--ic-reports); }
.nav a[href="#/practitioner-plans"] { --ic: var(--ic-plans); }
.nav a[href="#/invoices"] { --ic: var(--ic-invoice); }
.nav a[href="#/website"] { --ic: var(--ic-globe); }
.nav a[href="#/pages"] { --ic: var(--ic-page); }
.nav a[href="#/seo"] { --ic: var(--ic-seo); }
.nav a[href="#/media"] { --ic: var(--ic-media); }
i[class^="ic-"] { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; vertical-align: -3px; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
i.ic-search { --ic: var(--ic-search); }
i.ic-menu { --ic: var(--ic-menu); }
i.ic-cols { --ic: var(--ic-cols); }
i.ic-down { --ic: var(--ic-down); }
i.ic-bell { --ic: var(--ic-notifications); }
.tb-ic i.ic-bell { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- CRM 360 (pages-crm.js) */
.crm-head { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: 0; }
.crm-head > div { padding: 16px 18px; min-width: 0; }
.crm-head > div + div { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .crm-head { grid-template-columns: minmax(0, 1fr); } .crm-head > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.gauge-row { display: flex; align-items: center; gap: 14px; }
.gauge { width: 132px; height: 78px; flex: none; }
.gauge .bg { fill: none; stroke: var(--tint); stroke-width: 12; stroke-linecap: round; }
.gauge .val { fill: none; stroke-width: 12; stroke-linecap: round; stroke: var(--pri); }
.gauge .val.healthy { stroke: var(--green); } .gauge .val.watch { stroke: var(--gold-2); } .gauge .val.at_risk { stroke: var(--rose); }
.gauge .score { font: 800 24px var(--f-display); fill: var(--navy); letter-spacing: -.02em; }
.gauge .cap { font: 600 9px var(--f-sans); fill: var(--muted); letter-spacing: .04em; }
.gauge.sm { width: 64px; height: 38px; }
.factors { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .83rem; }
.factors li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; }
.factors li .d { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; margin-top: -2px; }
.crm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 1100px) { .crm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .crm-fields { grid-template-columns: minmax(0, 1fr); } }
.crm-fields .field .input { min-height: 34px; }
.crm-fields .wide { grid-column: 1 / -1; }
.crm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.tag-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
.tag-edit .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 99px; background: var(--teal-soft);
  color: var(--teal); font-size: .76rem; font-weight: 600; }
.tag-edit .tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0 4px; border-radius: 50%; }
.tag-edit .tag button:hover { background: rgba(14,124,134,.15); }
.tag-edit .input { width: 130px; min-height: 28px; padding: 3px 9px; font-size: .8rem; }
.tabs.crm-tabs { margin: 0; overflow-x: auto; flex-wrap: nowrap; }
.tabs.crm-tabs button { white-space: nowrap; font-size: .88rem; }
.tabs.crm-tabs button .n { margin-left: 6px; font-size: .7rem; background: var(--soft); color: var(--muted); border-radius: 99px; padding: 1px 7px; }
.tabs.crm-tabs button[aria-selected="true"] .n { background: var(--pri-soft); color: var(--pri); }
.t tr.row-overdue td { background: #FFF6F6; }
.t tr.row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--rose); }
.t tr.row-done td { color: var(--muted); }
.t tr.row-done .strong { text-decoration: line-through; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line-2); background: var(--card); border-radius: 99px; padding: 5px 12px; transition: background .14s, border-color .14s; font-size: .78rem; font-weight: 600; color: var(--body); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--pri-soft); border-color: var(--pri); color: var(--pri); }
.chips button .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 20px; border-bottom: 1px solid #D4E2FC; background: var(--pri-soft); }
.bulk-bar .input { width: auto; min-width: 150px; min-height: 32px; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.note-list li.pinned { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold-2); }
.note-list .note-head { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.note-list .note-text { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); }
.quick-add { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(110px, 1fr)) auto; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: end; }
@media (max-width: 900px) { .quick-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Website CMS (pages-website.js) */
.le { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.le-row { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; background: var(--card); }
.le-fields { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.le-fields .field { flex: 1 1 160px; }
.le-fields .check { flex: 0 0 auto; padding-bottom: 8px; }
.le-tools { display: flex; gap: 2px; align-items: flex-start; }
.le-kids { grid-column: 1 / -1; padding-left: 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.le-kids .le-row { background: var(--soft, #F7F9FC); }
.form-actions { padding-top: 6px; }
.form-actions .grow { flex: 1 1 220px; }
.align-end { align-items: flex-end; }
.small { font-size: .8rem; }
.warn-text { color: var(--rose); font-size: .8rem; }
.ok-text { color: var(--green); font-size: .8rem; }
.img-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.img-field .input { flex: 1 1 200px; }
.thumb { width: 64px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #F1F3F6; display: block; }
.thumb.sm { width: 36px; height: 36px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-pick { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: .74rem; color: var(--muted); }
.media-pick:hover { border-color: var(--pri); }
.media-pick img { width: 100%; height: 80px; object-fit: contain; background: #F1F3F6; border-radius: 4px; }
.media-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-preview { padding: 9px 12px; border-radius: 8px; text-align: center; font-weight: 600; font-size: .88rem; }
.ed-toolbar { display: flex; gap: 4px; flex-wrap: wrap; }
.ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 1100px) { .ed-split { grid-template-columns: minmax(0, 1fr); } }
.ed-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ed-preview { width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
textarea.input.code-edit { min-height: 420px; font-size: .8rem; line-height: 1.5; white-space: pre; }
.preview-box { overflow: auto; background: #F1F3F6; border-radius: var(--r-sm); padding: 8px; }
.page-preview { width: 100%; height: 720px; border: 1px solid var(--line); background: #fff; display: block; margin: 0 auto; }
.serp { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; font-family: Arial, sans-serif; }
.serp-url { color: #202124; font-size: .78rem; }
.serp-title { color: #1a0dab; font-size: 1.1rem; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { color: #4d5156; font-size: .84rem; }
.issue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
.issue-list.compact { gap: 2px; font-size: .78rem; }
.issue-list .lvl-error { color: var(--rose); }
.issue-list .lvl-warning { color: #7C3E06; }

/* Reports centre (pages-reports.js) */
a.report-card { display: block; color: inherit; text-decoration: none; }
a.report-card .sub { white-space: normal; line-height: 1.4; }
a.report-card:hover .value { text-decoration: underline; }
.report-main .chart { height: 220px; }
@media print { .page-head .actions, .card .btn, .filters, .actions .btn { display: none !important; } .kpi { break-inside: avoid; } }

/* judge / advocate profile */
.person-head { display: flex; gap: 16px; align-items: flex-start; }
.person-head h2 { font-size: 1.25rem; }
.person-ph { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; font: 700 1.3rem var(--f-display); object-fit: cover; }
.person-bio { margin: 10px 0 0; white-space: pre-line; color: var(--body); }
@media (max-width: 600px) { .person-head { flex-direction: column; } }

/* ---------- security: two-step sign-in (pages-security.js) ---------- */
.mfa-gate { min-height: 70vh; display: grid; place-items: center; padding: 24px 0; }
.mfa-card { width: min(640px, 100%); }
.mfa-card .form, .mfa-card .mfa-setup { padding: 0 22px 18px; }
.mfa-foot { padding: 12px 22px 18px; border-top: 1px solid var(--line); }
.shell.gated .nav, .shell.gated #sideFoot { visibility: hidden; }
.mfa-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; line-height: 0; }
.qr-box svg { width: 196px; height: 196px; }
.mfa-key { display: inline-block; margin-top: 6px; padding: 6px 10px; background: var(--tint); border-radius: 8px; letter-spacing: .06em; word-break: break-all; }
.mfa-setup .steps { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.backup-codes { columns: 2; font-size: .95rem; letter-spacing: .08em; }
@media (max-width: 640px) { .mfa-grid { grid-template-columns: 1fr; } .qr-box { justify-self: center; } }

/* ---------- safe operations (pages-governance.js) ---------- */
.mnt-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #FEF3C7; color: #78350F;
  border: 1px solid #FCD34D; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-weight: 600; font-size: .88rem; }
.mnt-bar a { color: #78350F; text-decoration: underline; }
table.diff { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 8px; }
table.diff th, table.diff td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
table.diff pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: .78rem var(--f-mono); max-height: 220px; overflow: auto; }
table.diff td.was { background: #FEF2F2; } table.diff td.now { background: #F0FDF4; }
.timeline { display: flex; flex-direction: column; gap: 14px; padding: 4px 18px 18px; }
.tl-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.checks { gap: 6px 18px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- productivity (pages-productivity.js, core.js bulk) ---------- */
.pal-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 40, .45); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.pal { width: min(680px, 100%); background: var(--card); border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.pal-input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; padding: 16px 18px; box-shadow: none !important; }
.pal-list { list-style: none; margin: 0; padding: 6px; overflow: auto; }
.pal-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.pal-item.on { background: var(--pri-soft); }
.pal-kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pal-label { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-sub { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.pal-foot { padding: 8px 14px; border-top: 1px solid var(--line); font-size: .75rem; }
kbd { display: inline-block; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; font: .78rem var(--f-mono); background: var(--soft); color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.dw-body { padding: 0 18px 18px; }
.dw-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.dw-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--soft); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.dw-tile:hover { border-color: var(--line-2); text-decoration: none; }
.dw-tile b { font-size: 1.35rem; font-family: var(--f-display); }
.dw-tile.warn b { color: var(--rose); }
.cust-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.bulk-bar { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 8px;
  background: var(--pri-soft); border: 1px solid var(--line-2); border-radius: 12px; }
.bulk-bar b { margin-right: 6px; color: var(--ink); }
td.pick, th:first-child input[type=checkbox] { width: 34px; }
.views-pop { min-width: 280px; right: 0; left: auto; }
.view-row { display: flex; align-items: center; gap: 4px; }
.view-name { flex: 1; padding: 4px 6px; border-radius: 6px; color: var(--ink); }
.views-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }

/* ---------- dark theme (Ctrl+K > Theme) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #0F1A2B; --card: #13213A; --bg: #0B1424; --soft: #182844; --tint: #1B2C4A; --hover: #1A2A47;
  --ink: #E6EDF7; --navy: #CFE0FF; --body: #C3CFE2; --muted: #93A3BC; --line: #22324F; --line-2: #2C3F62;
  --pri: #4C8DFF; --pri-2: #3B7BF0; --pri-soft: #17305A; --on-pri: #FFFFFF;
  --sky-soft: #11314A; --teal-soft: #12332F; --gold-soft: #3A2E12; --blue-soft: #17305A; --green-soft: #12352A;
  --rose: #F87171; --rose-soft: #3B1A1D; --amber-soft: #3A2E12; --green: #34D399; --gold: #F5B83D;
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 8px 24px -8px rgba(0,0,0,.6); --sh-3: 0 28px 64px -16px rgba(0,0,0,.7);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --white: #0F1A2B; --card: #13213A; --bg: #0B1424; --soft: #182844; --tint: #1B2C4A; --hover: #1A2A47;
    --ink: #E6EDF7; --navy: #CFE0FF; --body: #C3CFE2; --muted: #93A3BC; --line: #22324F; --line-2: #2C3F62;
    --pri: #4C8DFF; --pri-2: #3B7BF0; --pri-soft: #17305A; --on-pri: #FFFFFF;
    --sky-soft: #11314A; --teal-soft: #12332F; --gold-soft: #3A2E12; --blue-soft: #17305A; --green-soft: #12352A;
    --rose: #F87171; --rose-soft: #3B1A1D; --amber-soft: #3A2E12; --green: #34D399; --gold: #F5B83D;
    --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 8px 24px -8px rgba(0,0,0,.6); --sh-3: 0 28px 64px -16px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--body); }

/* ---------- revenue & compliance (pages-revenue.js) ---------- */
.warn-list { margin: 0; padding-left: 34px; color: var(--rose); font-size: .86rem; line-height: 1.6; }
table.cohort td.coh { text-align: center; font-size: .78rem; font-weight: 600; }

/* ---------- communication (pages-comms.js) ---------- */
.mail-preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #f1f5f9; }

/* ---------- roadmap B-D pages (pages-contracts / -growth / -intel.js) ---------- */
.answer-text { white-space: pre-wrap; margin-top: 8px; }
.skill-row { border-top: 1px solid var(--line); }
.step-box { border: 1px solid var(--line); border-radius: 8px; }

/* ---------- phase E: admin UX finish (ux.js, core.js) ---------- */
.inline-edit { display: inline-flex; align-items: center; gap: 4px; }
.inline-edit select, .inline-edit input { min-width: 120px; padding: 4px 8px; font-size: .82rem; }
.ie-pen { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 4px; font-size: .8rem; opacity: .35; }
tr:hover .ie-pen, .ie-pen:focus-visible { opacity: 1; }
.ie-pen:hover { background: var(--hover); color: var(--pri); }
.toast { display: flex; align-items: center; gap: 10px; }
.toast .toast-act { margin-left: auto; }
.dw-drag { cursor: grab; }
.dw-drag.dragging { opacity: .45; cursor: grabbing; }
.dw-drag.drop-target { outline: 2px dashed var(--pri); outline-offset: 3px; }
.feed { list-style: none; margin: 0; padding: 8px 16px; }
.feed-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pri); margin-top: 6px; flex: none; }
.feed-item.staff .feed-dot { background: var(--muted); }
.feed-target { font-size: .78rem; color: var(--muted); }
.foot-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tour-ring { position: absolute; z-index: 1000; border-radius: 10px; box-shadow: 0 0 0 4px var(--pri), 0 0 0 9999px rgba(15, 23, 42, .45); pointer-events: none; transition: all .2s; }
.tour-tip { position: absolute; z-index: 1001; width: 320px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); }
.tour-tip p { margin: 6px 0 10px; color: var(--muted); font-size: .88rem; }
kbd { font-family: "JetBrains Mono", monospace; font-size: .78rem; border: 1px solid var(--line-2, #cbd5e1); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: #f8fafc; }
[lang="hi"] { font-family: "Noto Sans Devanagari", Inter, sans-serif; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- live chat inbox (pages-success.js) ---------- */
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.chat-list { max-height: 70vh; overflow: auto; }
.chat-item { display: block; padding: 10px 14px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.chat-item:hover, .chat-item.on { background: var(--pri-soft); }
.chat-msgs { max-height: 50vh; overflow: auto; padding: 12px 16px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 75%; display: flex; flex-direction: column; }
.chat-msg span { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; }
.chat-msg.agent { align-self: flex-end; }
.chat-msg.agent span { background: var(--pri); color: #fff; border-color: var(--pri); }
.chat-msg.system { align-self: center; color: var(--muted); font-size: .8rem; }
.chat-msg.system span { background: transparent; border: 0; }
ul.tight { margin: 0; padding-left: 16px; font-size: .82rem; }
@media (max-width: 860px) { .chat-wrap { grid-template-columns: 1fr; } }

/* ---------- phones: bottom tab bar, full-screen dialogs, bigger touch targets (ux.js) ---------- */
.tabbar { display: none; }
@media (max-width: 700px) {
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
            padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none;
                              color: var(--muted); font: 600 .68rem/1.1 Inter, sans-serif; text-decoration: none; min-height: 48px; cursor: pointer; }
  .tabbar .ti { font-size: 1.15rem; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--pri); }
  .content { padding-bottom: 96px; }
  dialog.modal, dialog.modal.wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .page-head { flex-wrap: wrap; gap: 10px; }
  .page-head .actions { width: 100%; flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .btn, .input, select.input { min-height: 40px; }
  .btn.sm { min-height: 34px; }
  .bulk-bar { position: sticky; bottom: 64px; z-index: 30; }
  .toasts { bottom: 76px !important; }
  .nkc-b { bottom: 76px; }
  .tour-tip { width: calc(100vw - 32px); }
}

/* ---------- top-bar bell: unread badge + quick panel (ux.js) ---------- */
.topbar .tb-ic { position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose, #B42318);
              color: #fff; font: 700 .68rem/18px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
.bell-panel { position: fixed; z-index: 120; width: 360px; max-width: calc(100vw - 16px); max-height: 70vh; display: flex; flex-direction: column; background: #fff;
              border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); overflow: hidden; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bell-list { overflow: auto; }
.bell-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.bell-item:hover { background: var(--hover, #f1f5f9); }
.bell-item.unread { background: var(--pri-soft, #EAF1FE); }
.bell-item.unread b::before { content: "● "; color: var(--pri); }
.bell-empty { padding: 16px 14px; margin: 0; }
.bell-all { display: block; padding: 10px 14px; text-align: center; font-weight: 600; border-top: 1px solid var(--line); }

/* ---------- meeting booking dialog + confirmation (pages-meetings.js) ---------- */
.book-form { gap: 4px; }
.book-step { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.book-step h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; color: var(--navy); }
.step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--pri-soft); color: var(--pri); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.seg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.small-note { margin: 2px 0 4px; font-size: .82rem; }
.other-time { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.other-time .input { max-width: 160px; }
.chip-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: #fff; cursor: text; }
.chip-input:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--pri-soft); color: var(--navy); font-size: .85rem; }
.chip.bad { background: var(--rose-soft, #FDECEA); color: var(--rose); }
.chip-x { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; color: inherit; border-radius: 50%; }
.chip-x:hover { background: rgba(0, 0, 0, .08); }
.chip-entry { flex: 1; min-width: 200px; border: 0; outline: 0; font: inherit; padding: 4px; background: transparent; }
.book-summary { flex: 1; font-size: .9rem; min-width: 0; }
.modal-foot .book-summary + .btn { flex: none; }
.book-done { text-align: center; padding: 8px 4px 4px; }
.done-mark { width: 72px; height: 72px; margin: 4px auto 10px; border-radius: 50%; background: #E3F7EE; color: #047857; font-size: 2.2rem; font-weight: 700;
             display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px #F1FBF6; animation: done-pop .35s ease-out; }
@keyframes done-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.book-done h2 { margin: 6px 0 4px; font-size: 1.4rem; color: var(--navy); }
.done-card { text-align: left; max-width: 620px; margin: 16px auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #FBFCFE; }
.done-title { display: block; margin-bottom: 8px; font-size: 1.05rem; color: var(--navy); }
.done-actions { justify-content: center; flex-wrap: wrap; }

/* ---------- admin menu: sections, hubs, filter, pins (nav.js) ---------- */
.nav-find-wrap { padding: 4px 6px 2px; }
.nav .nav-find { width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; min-height: 34px; font-size: .84rem; }
.nav .nav-find::placeholder { color: #8FA3BF; }
.nav .nav-find:focus { border-color: #60A5FA; box-shadow: 0 0 0 2px rgba(96,165,250,.25); }
.nav button.nav-sec { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 12px); margin: 14px 6px 4px; padding: 4px 6px;
                      background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left; font: inherit; font-size: .64rem; font-weight: 700;
                      letter-spacing: .12em; text-transform: uppercase; color: #6F84A6; }
.nav button.nav-sec:hover { color: #C3CFE2; background: rgba(255,255,255,.04); }
.nav button.nav-sec .caret { font-style: normal; font-size: .8rem; transition: transform .15s; }
.nav button.nav-sec[aria-expanded="false"] .caret { transform: rotate(-90deg); }
.nav .nav-sec-body { display: flex; flex-direction: column; gap: 2px; }
.nav .nav-sec-body.hidden { display: none; }
.nav a .nav-sub { margin-left: auto; font-size: .68rem; color: #8FA3BF; }
.nav .nav-none { color: #8FA3BF; font-size: .82rem; padding: 6px 12px; }
.hub-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: -6px 0 16px; overflow-x: auto; }
.hub-tabs a { padding: 9px 14px; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: .86rem; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; border-radius: 8px 8px 0 0; }
.hub-tabs a:hover { color: var(--navy); background: var(--hover); }
.hub-tabs a[aria-current="page"] { color: var(--pri); border-bottom-color: var(--pri); }
.pin-btn { margin-left: 8px; vertical-align: middle; font-size: 1rem; color: var(--muted); }
.pin-btn.on { color: #F59E0B; }

/* ---------- Add wizard: customer or staff (pages-add.js) ---------- */
.modal.wiz { width: min(820px, calc(100vw - 24px)); }
.wiz-form { gap: 10px; }
.wiz-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; counter-reset: none; flex-wrap: wrap; }
.wiz-steps li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--hover, #F4F6FA);
                color: var(--muted); font-weight: 600; font-size: .86rem; border: 1px solid transparent; }
.wiz-steps li.on { background: var(--pri-soft); color: var(--navy); border-color: var(--pri); }
.wiz-steps li.done { color: #047857; }
.wiz-no { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem;
          background: var(--card, #fff); border: 1px solid var(--line-2, #D6DCE6); }
.wiz-steps li.on .wiz-no { background: var(--pri); border-color: var(--pri); color: #fff; }
.wiz-steps li.done .wiz-no { background: #E3F7EE; border-color: #A7E3C7; color: #047857; }
.wiz-panel { min-height: 260px; }
.wiz-h { margin: 14px 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wiz-h:first-child { margin-top: 2px; }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wiz-grid.plans, .wiz-grid.pays { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.wiz-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--line);
              border-radius: 12px; background: var(--card, #fff); cursor: pointer; font: inherit; color: var(--ink, #1F2937); transition: border-color .12s, box-shadow .12s, transform .12s; }
.wiz-choice:hover { border-color: var(--pri); transform: translateY(-1px); }
.wiz-choice:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--pri-soft); border-color: var(--pri); }
.wiz-choice.on { border-color: var(--pri); background: var(--pri-soft); box-shadow: 0 0 0 1px var(--pri) inset; }
.wiz-choice b { color: var(--navy); font-size: .95rem; }
.wiz-choice small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.wiz-choice.later { border-style: dashed; }
.wiz-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--hover, #F4F6FA); display: inline-flex; align-items: center; justify-content: center;
           font-size: 1rem; font-weight: 700; color: var(--pri); margin-bottom: 4px; }
.wiz-choice.on .wiz-ico { background: var(--card, #fff); }
.dup-box { display: flex; flex-direction: column; gap: 8px; }
.dup-box:empty { display: none; }
.dup-box .note { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dup-lead { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; flex-wrap: wrap; }
.wiz-price { font-weight: 600; color: var(--navy); }
.wrap-code { word-break: break-all; }
.modal-foot .wiz-sum { flex: 1; min-width: 0; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .add-anything { margin-right: 6px; white-space: nowrap; }
@media (max-width: 640px) {
  .wiz-steps li { min-width: 0; padding: 6px; font-size: 0; gap: 0; justify-content: center; }
  .wiz-steps li .wiz-no { font-size: .78rem; }
  .wiz-steps li.on { font-size: .8rem; gap: 6px; }
  .topbar .add-anything .add-lbl { display: none; }
  .modal-foot .wiz-sum { display: none; }
}
.done-card .note b { display: block; margin-bottom: 4px; }
.wiz-panel .wiz-h + .wiz-grid { margin-top: 0; }
/* one account strip on customer / API client / staff pages */
.acct-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; }
.acct-av { width: 48px; height: 48px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--pri), #7C3AED); color: #fff;
           display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.acct-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-chips .badge { text-transform: capitalize; }
.acct-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; align-items: center; }
.acct-id { display: inline-flex; align-items: center; gap: 6px; }
.acct-id code { font-size: .78rem; }
.acct-id .btn { min-height: 24px; padding: 0 8px; font-size: .74rem; }

/* ---------- Phase 4: modern UI (core.js drawers + column filters, ui-modern.js forms) ---------- */
i.ic-filter { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 5h18l-7 8v6l-4 2v-8z%22/%3E%3C/svg%3E"); }
/* side drawer for New / Edit forms */
dialog.modal.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 100vw); border-radius: 18px 0 0 18px; border-right: 0; }
dialog.modal.drawer.wide { width: min(820px, 100vw); }
dialog.modal.drawer[open] { display: flex; flex-direction: column; animation: nk-drawer .22s ease-out; }
dialog.modal.drawer .modal-body { flex: 1; max-height: none; }
dialog.modal.drawer .modal-foot { border-radius: 0 0 0 18px; position: sticky; bottom: 0; }
@keyframes nk-drawer { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { dialog.modal.drawer { border-radius: 0; } dialog.modal.drawer .modal-foot { border-radius: 0; } }
/* column filters */
.col-filter-btn.on { background: var(--pri-soft); color: var(--pri); }
tr.col-filters th { padding: 4px 6px; background: var(--soft, #F6F8FB); position: static; }
tr.col-filters .input { min-height: 30px; padding: 3px 8px; font-size: .8rem; width: 100%; min-width: 80px; font-weight: 400; }
/* empty table state */
tr.t-empty td { text-align: center; padding: 28px 12px !important; color: var(--muted); font-size: .9rem; }
tr.t-empty td::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 12px; background: var(--soft, #F1F5F9) var(--ic-inbox-img) center / 20px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
/* forms: required mark, valid tick, live error, counters, date chips */
.field.req > span:first-child::after { content: " *"; color: var(--rose); font-weight: 700; }
.field.valid > .input, .field.valid > input.input { border-color: #34D399; }
.field .err.live { animation: nk-pop .15s ease-out; }
.field .char-count { align-self: flex-end; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.field .char-count.near { color: var(--rose); font-weight: 600; }
.date-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
/* dd/mm/yyyy over native date inputs (ui-modern.js) */
.dmy { position: relative; display: inline-block; vertical-align: middle; max-width: 100%; }
.dmy.block { display: block; width: 100%; }
.dmy-text { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; white-space: nowrap; color: var(--ink); }
.dmy-text.dmy-blank { color: var(--muted, #94A3B8); }
input.dmy-on:not(:focus) { color: transparent; }
input.dmy-on:not(:focus)::-webkit-datetime-edit { color: transparent; }
input.dmy-on:focus + .dmy-text { display: none; }
.field.valid > .dmy > .input { border-color: #34D399; }
.chip-btn { border: 1px solid var(--line-2); background: var(--card, #fff); color: var(--navy); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .76rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--pri); color: var(--pri); }
/* sticky unsaved-changes bar */
.save-bar { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; min-width: min(520px, calc(100vw - 24px));
            padding: 10px 12px 10px 16px; border-radius: 14px; background: #0D2847; color: #fff; box-shadow: 0 16px 40px -12px rgba(8, 22, 44, .55); animation: nk-pop .18s ease-out; }
.save-bar .grow { flex: 1; }
.save-bar .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: #FBBF24; box-shadow: 0 0 0 4px rgba(251,191,36,.25); }
@media (max-width: 900px) { .save-bar { bottom: 74px; } }
/* dark theme: parts that were hard-coded white */
:root[data-theme="dark"] .modal-foot, :root[data-theme="dark"] .done-card, :root[data-theme="dark"] tr.col-filters th { background: var(--soft); }
:root[data-theme="dark"] .tb-jump .input:focus, :root[data-theme="dark"] .tbar .tb-search:focus, :root[data-theme="dark"] .seg label,
:root[data-theme="dark"] .tour-tip, :root[data-theme="dark"] .chat-msg span, :root[data-theme="dark"] .tabbar, :root[data-theme="dark"] .bell-panel,
:root[data-theme="dark"] .chip-input, :root[data-theme="dark"] .docs-nav { background: var(--card); color: var(--body); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .modal-foot, :root[data-theme="system"] .done-card, :root[data-theme="system"] tr.col-filters th { background: var(--soft); }
  :root[data-theme="system"] .tb-jump .input:focus, :root[data-theme="system"] .tbar .tb-search:focus, :root[data-theme="system"] .seg label,
  :root[data-theme="system"] .tour-tip, :root[data-theme="system"] .chat-msg span, :root[data-theme="system"] .tabbar, :root[data-theme="system"] .bell-panel,
  :root[data-theme="system"] .chip-input, :root[data-theme="system"] .docs-nav { background: var(--card); color: var(--body); }
}

/* ---------- Phase 5: next best actions + set-up checklist (pages-guide.js) ---------- */
.guide-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 16px; align-items: start; }
.guide-row:empty { display: none; }
.nba-card, .setup-card { padding: 14px 16px; margin-bottom: 14px; }
.guide-row .nba-card, .guide-row .setup-card { margin-bottom: 0; }
.nba-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--navy); }
.nba-list, .setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nba-item, .setup-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.nba-item:first-child, .setup-list li:first-child { border-top: 0; }
.nba-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--pri); }
.nba-item.warn .nba-dot { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.nba-item.ok .nba-dot { background: #10B981; }
.nba-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nba-text b { color: var(--navy); font-size: .9rem; }
.nba-text small { color: var(--muted); font-size: .8rem; }
.nba-none { margin: 4px 0; }
.setup-bar { height: 8px; border-radius: 999px; background: var(--soft, #EEF2F7); overflow: hidden; margin-bottom: 8px; }
.setup-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pri), #10B981); border-radius: inherit; transition: width .3s; }
.setup-tick { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.setup-list li.done .setup-tick { background: #10B981; border-color: #10B981; color: #fff; }
.setup-list li.done b { color: var(--muted); text-decoration: line-through; font-weight: 500; }

/* ---------- Batch 3: tickets board, work card, live chat (pages-tickets.js, pages-success.js) ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kb-col { background: var(--soft, #F4F6FA); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.kb-col.over { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.kb-head { display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.kb-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--card, #fff); border: 1px solid var(--line); border-left: 4px solid #94A3B8; border-radius: 10px; color: inherit; text-decoration: none; cursor: grab; }
.kb-card:hover { border-color: var(--pri); }
.kb-card.dragging { opacity: .5; }
.kb-card.pr-urgent { border-left-color: #DC2626; } .kb-card.pr-high { border-left-color: #F59E0B; } .kb-card.pr-normal { border-left-color: #3B82F6; }
.kb-card b { color: var(--navy); font-size: .9rem; }
.kb-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .78rem; }
ul.hist { margin: 0; padding-left: 16px; font-size: .84rem; display: flex; flex-direction: column; gap: 4px; }
.chat-item.unread b { color: var(--pri); }
.chat-typing { min-height: 18px; padding: 0 16px; font-size: .82rem; }
.chat-refs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Batch 5: Limits & policies (pages-policies.js) ---------- */
.pol-ed { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.pol-ed select.input { width: auto; flex: 0 0 210px; min-width: 0; }
.pol-ed .pol-num { width: 120px; flex: 0 0 120px; }
.pol-ed .pol-num:disabled { display: none; }
.pol-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; z-index: 5; }
.pol-card { margin-bottom: 14px; }
.pol-card > summary { padding: 14px 18px; cursor: pointer; list-style: none; }
.pol-card > summary::-webkit-details-marker { display: none; }
.pol-card > summary::before { content: "▸ "; color: var(--muted); }
.pol-card[open] > summary::before { content: "▾ "; }
.color-in { padding: 2px; height: 40px; width: 90px; cursor: pointer; }
.le-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 600px); gap: 16px; align-items: start; }
.le-prev { position: sticky; top: 76px; }
.le-prev .mail-preview { height: 720px; }
@media (max-width: 1100px) { .le-grid { grid-template-columns: 1fr; } .le-prev { position: static; } }

/* header "More" menu for actions that stop a customer's service (Suspend, Revoke all keys) */
.more-menu { position: relative; display: inline-block; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; gap: 6px; min-width: 190px;
  padding: 8px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.more-menu .more-list .btn { width: 100%; justify-content: flex-start; }

/* ---------- Proposal builder (pages-proposals.js editor, owner 11 Nov) ---------- */
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pe-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pe-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pe-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.pe-step-h { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px 0; }
.pe-num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 .86rem var(--f-display); color: var(--pri); background: var(--pri-soft); }
.pe-step-t { flex: 1; min-width: 0; }
.pe-step-t h2 { font-size: 1.04rem; margin-top: 4px; }
.pe-step-t p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.pe-step-b { padding: 16px 22px 22px 66px; display: flex; flex-direction: column; gap: 14px; }
.pe-hint { margin: 0; color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pe-hint .pe-ico { width: 14px; height: 14px; }
.pe-req { color: var(--rose); font-style: normal; }

/* who tiles */
.pe-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pe-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--body); transition: border-color .15s, box-shadow .15s, background .15s; min-width: 0; }
.pe-tile:hover { border-color: var(--line-2); background: var(--hover); }
.pe-tile:focus-visible { outline: none; box-shadow: var(--ring); }
.pe-tile-i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.pe-tile-t { display: flex; flex-direction: column; min-width: 0; }
.pe-tile-t b { color: var(--ink); font-size: .86rem; font-weight: 700; }
.pe-tile-t small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.pe-tile-c { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--pri); color: #fff; display: none; place-items: center; }
.pe-tile-c .pe-ico { width: 12px; height: 12px; stroke-width: 3; }
.pe-tile.on { border-color: var(--pri); background: var(--pri-soft); box-shadow: 0 0 0 3px rgba(26,86,219,.10); }
.pe-tile.on .pe-tile-i { background: var(--pri); color: #fff; }
.pe-tile.on .pe-tile-c { display: grid; }

/* forms */
.pe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.pe-form .pe-wide { grid-column: 1 / -1; }
.pe-search { position: relative; }
.pe-search .input { padding-left: 40px; min-height: 44px; }
.pe-search-i { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }
.pe-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; max-height: 300px; overflow: auto; }
.pe-hit { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; color: inherit; }
.pe-hit:hover, .pe-hit:focus-visible { background: var(--hover); outline: none; }
.pe-hit-t, .pe-picked-t { display: flex; flex-direction: column; min-width: 0; }
.pe-hit-t b, .pe-picked-t b { color: var(--ink); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-hit-t small, .pe-picked-t small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-nohit { padding: 14px; color: var(--muted); font-size: .84rem; text-align: center; }
.pe-av { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 800 .8rem var(--f-display); color: #fff; background: linear-gradient(135deg, #1A56DB, #0F766E); }
.pe-av.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .7rem; }
.pe-av.ghost { background: var(--soft); color: var(--muted); }
.pe-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.pe-picked-t { flex: 1; }

/* line items */
.pe-lines { display: flex; flex-direction: column; gap: 8px; }
.pe-cells { display: grid; grid-template-columns: 26px 104px 150px minmax(0, 1fr) 36px; gap: 10px; align-items: center;
  grid-template-areas: "ix seg seg desc del" ". q r amt amt"; }
.pe-cells > .pe-ix { grid-area: ix; } .pe-cells > .pe-seg { grid-area: seg; justify-self: start; } .pe-cells > .pe-del { grid-area: del; }
.pe-cells > .input { grid-area: desc; } .pe-cell-q { grid-area: q; position: relative; } .pe-cell-r { grid-area: r; } .pe-cells > .pe-amt { grid-area: amt; }
.pe-cell-q .input { padding-left: 40px; }
.pe-amt { text-align: right; padding-right: 8px; }
@media (min-width: 1560px) {
  .pe-cells { grid-template-columns: 26px 150px minmax(0, 1fr) 100px 140px 110px 36px; grid-template-areas: "ix seg desc q r amt del"; }
}
.pe-row { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.pe-row:focus-within { border-color: var(--pri); box-shadow: var(--ring); }
.pe-row.is-plan { background: linear-gradient(0deg, var(--card), var(--card)) padding-box; border-left: 3px solid var(--teal); }
.pe-ix { width: 24px; height: 24px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: .74rem; font-weight: 700; display: grid; place-items: center; }
.pe-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--soft); gap: 2px; }
.pe-seg button { flex: 1; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pe-seg button.on { background: var(--card); color: var(--pri); box-shadow: var(--sh-1); }
.pe-cell-r { position: relative; }
.pe-cell-r .input { padding-left: 26px; }
.pe-cur { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .86rem; pointer-events: none; }
.pe-cells .input.num, .pe-cells .num { text-align: right; font-variant-numeric: tabular-nums; }
.pe-amt { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; font-size: .9rem; }
.pe-del { width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); display: grid; place-items: center; }
.pe-del .pe-ico { width: 17px; height: 17px; }
.pe-del:hover:not(:disabled) { color: var(--rose); background: var(--rose-soft); }
.pe-del:disabled { opacity: .35; cursor: not-allowed; }
.pe-plan { display: grid; grid-template-columns: minmax(0, 2fr) 110px; gap: 10px 12px; margin: 10px 46px 2px 36px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pe-plan .pe-hint { grid-column: 1 / -1; }
.pe-add { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.pe-add .btn { border-style: dashed; }
.pe-add .pe-ico { width: 14px; height: 14px; }

/* details */
.pe-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.pe-chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 600; }
.pe-chip:hover { border-color: var(--line-2); color: var(--ink); }
.pe-chip.on { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); }

/* text sections */
.pe-folds { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pe-fold + .pe-fold { border-top: 1px solid var(--line); }
.pe-fold summary, .pe-fold-sum { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; }
.pe-fold summary::-webkit-details-marker { display: none; }
.pe-fold summary:hover { background: var(--hover); }
.pe-fold summary .pe-ico { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.pe-fold[open] summary .pe-ico { transform: rotate(180deg); }
.pe-fold[open] summary { background: var(--soft); }
.pe-fold-l { flex: 1; font-weight: 700; color: var(--ink); font-size: .88rem; }
.pe-fold-s { font-size: .74rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; }
.pe-fold-s.off { color: var(--muted); background: var(--soft); }
.pe-fold-fixed { background: var(--soft); }
.pe-fold-fixed .pe-fold-sum { cursor: default; }
.pe-fold-fixed .pe-fold-s { color: var(--pri); background: var(--pri-soft); }
.pe-fold-b { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pe-fold-b textarea { resize: vertical; min-height: 84px; line-height: 1.55; }

/* summary */
.pe-side { position: sticky; top: calc(var(--top) + 16px); }
.pe-sum { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-2); overflow: hidden; }
.pe-sum-h { padding: 16px 18px 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1A56DB 0%, #0D2847 62%); }
.pe-sum-k { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.pe-sum-k .pe-ico { width: 15px; height: 15px; }
.pe-sum-c { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-width: 0; }
.pe-sum-c > div { display: flex; flex-direction: column; min-width: 0; }
.pe-sum-c b { color: #fff; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-sum-c b.muted { color: rgba(255,255,255,.7); }
.pe-sum-c small { color: rgba(255,255,255,.7); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-sum-h .pe-av { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.pe-sum-b { padding: 16px 18px 6px; }
.pe-sum-lines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pe-sum-r { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--body); }
.pe-sum-r span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-sum-r .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pe-sum-r.sub { color: var(--muted); font-size: .8rem; margin-bottom: 6px; }
.pe-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--pri-soft); }
.pe-total span { font-weight: 700; color: var(--ink); }
.pe-total b { font: 800 1.5rem var(--f-display); color: var(--pri); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pe-sum-empty { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: .82rem; line-height: 1.45; }
.pe-sum-empty .pe-ico { width: 16px; height: 16px; margin-top: 1px; }
.pe-sum-m { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 18px 4px; }
.pe-sum-m > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.pe-sum-m span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.pe-sum-m b { color: var(--ink); font-size: .84rem; }
.pe-sum-f { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.pe-save { width: 100%; min-height: 46px; font-size: .95rem; border-radius: 12px; }
.pe-sum-f .pe-hint { justify-content: center; }

@media (max-width: 1240px) {
  .pe { grid-template-columns: minmax(0, 1fr) 300px; }
  .pe-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .pe { grid-template-columns: minmax(0, 1fr); }
  .pe-side { position: static; }
  .pe-step-b { padding-left: 22px; }
}
@media (max-width: 760px) {
  .pe-cells { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 36px; grid-template-areas: "ix seg seg del" "desc desc desc desc" "q q r r" "amt amt amt amt"; }
  .pe-plan { margin-left: 0; grid-template-columns: minmax(0, 1fr) 90px; }
  .pe-form, .pe-who { grid-template-columns: minmax(0, 1fr); }
  .pe-step-h { padding: 16px 16px 0; } .pe-step-b { padding: 14px 16px 18px; }
}

/* Add staff wizard - role first: create a role inline, preview what the picked role can do */
.wiz-choice.wiz-new { border-style: dashed; border-color: var(--pri); background: var(--card); }
.wiz-choice.wiz-new b { color: var(--pri); }
.wiz-rp { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); padding: 12px 14px; }
.wiz-rp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.wiz-rp-h b { color: var(--navy); }
.wiz-rp-h a { font-size: .82rem; }
.wiz-rp-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; max-height: 180px; overflow: auto; }
.wiz-rp-l li { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.wiz-rp-l small { color: var(--muted); white-space: nowrap; }
.wiz-rp p { margin: 6px 0 0; font-size: .82rem; }
.wiz-rb { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--pri); border-radius: var(--r-sm); padding: 14px; background: var(--card); box-shadow: 0 0 0 3px var(--pri-soft); }
.wiz-rb-h { display: flex; flex-direction: column; gap: 2px; }
.wiz-rb-h b { color: var(--navy); font-size: 1rem; }
.wiz-rb > p { margin: 0; font-size: .82rem; }
.wiz-rb-grid { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.wiz-rb-grid thead th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.wiz-rb-f { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) { .wiz-rb .grid.g3, .wiz-rb .grid.g4 { grid-template-columns: 1fr; } }

/* Member calendar (Availability + My calendar): slot status by colour - available / booked / leave / not bookable */
.cal { display: flex; flex-direction: column; gap: 12px; }
.cal-bar { display: flex; flex-direction: column; gap: 10px; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-range { margin-left: auto; color: var(--navy); font-size: .9rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.cal-key { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--line-2); }
.cal-key.available i, .cal-slot.available { background: var(--green-soft); border-color: #A7E3C8; }
.cal-key.booked i, .cal-slot.booked { background: var(--blue-soft); border-color: #B7CDF7; }
.cal-key.leave i, .cal-slot.leave { background: var(--amber-soft); border-color: #F6D78A; }
.cal-key.unavailable i, .cal-slot.unavailable { background: var(--soft); border-color: var(--line); }
.cal-pick { max-width: 360px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cal-day { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.cal-day.today { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri-soft); }
.cal-day.leave { background: #FFFBEB; }
.cal-day.off { background: var(--soft); }
.cal-day > header { padding: 8px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.cal-day > header b { color: var(--navy); font-size: .88rem; }
.cal-day > header small { color: var(--muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-day.leave > header small { color: var(--amber); font-weight: 600; }
.cal-slots { display: flex; flex-direction: column; gap: 4px; padding: 6px; max-height: 420px; overflow-y: auto; }
.cal-slot { display: flex; gap: 6px; align-items: baseline; padding: 4px 6px; border: 1px solid; border-radius: 6px; font-size: .76rem; text-align: left;
  color: var(--ink); text-decoration: none; font-family: inherit; line-height: 1.25; min-width: 0; }
.cal-slot b { font-variant-numeric: tabular-nums; flex: none; }
.cal-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); }
.cal-slot.unavailable span { color: var(--muted); }
.cal-slot.booked span { color: var(--navy); font-weight: 600; }
.cal-slot.booked.out { border-style: dashed; }
button.cal-slot { cursor: pointer; }
button.cal-slot:hover, a.cal-slot:hover { filter: brightness(.97); box-shadow: 0 0 0 2px var(--pri-soft); }
.cal-none { margin: 6px; font-size: .8rem; }
.my-leave { align-items: end; }
@media (max-width: 760px) { .cal-range { margin-left: 0; width: 100%; } .cal-grid { grid-template-columns: repeat(7, 150px); } }

/* Team members table (reference "All Team Members") */
.tm-card { overflow: hidden; }
.tm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tm-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; color: var(--navy); }
.tm-head h2 .tm-ico { width: 20px; height: 20px; stroke: var(--pri); }
.tm-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tm-filter .input { width: 240px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.tm-filter select { width: 160px; min-height: 36px; }
.tm-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tm-table td { vertical-align: middle; }
.tm-table tbody tr:nth-child(even) { background: var(--soft); }
.tm-n { color: var(--muted); width: 40px; }
.tm-member { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-member b { display: block; color: var(--ink); font-size: .9rem; }
.tm-member small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.tm-av { width: 34px; height: 34px; border-radius: 50%; background: #6D4AFF; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .76rem; flex: none; }
.tm-role { display: inline-block; padding: 2px 9px; border: 1px solid #A99BFF; color: #5B3FE0; border-radius: 6px; font-size: .76rem; font-weight: 600; background: var(--card); white-space: nowrap; }
.tm-role.super { border-color: var(--gold-2); color: var(--gold); }
.tm-mgr { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
.tm-mgr .tm-ico { width: 14px; height: 14px; color: var(--muted); }
.tm-status { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: .74rem; font-weight: 700; }
.tm-status.on { background: #16A34A; color: #fff; }
.tm-status.off { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.tm-acts { display: flex; gap: 6px; }
.tm-act { width: 30px; height: 26px; border-radius: 6px; border: 1px solid; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tm-act .tm-ico { width: 15px; height: 15px; }
.tm-act.view { background: #E0F7FE; border-color: #7DD3FC; color: #0284C7; }
.tm-act.edit { background: #EEF2FF; border-color: #A5B4FC; color: #4F46E5; }
.tm-act.toggle { background: #FEF3C7; border-color: #FCD34D; color: #B45309; }
.tm-act.del { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }
.tm-act:hover { filter: brightness(.95); }
.tm-act:focus-visible { outline: 0; box-shadow: var(--ring); }

/* Roles list (reference "Roles") */
.rl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 6px; }
.rl-head h2 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.rl-head p { margin: 4px 0 0; font-size: .84rem; }
.rl-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 18px 12px; }
.rl-find .input { width: 260px; min-height: 36px; }
.rl-count { font-size: .82rem; }
.rl-table td { vertical-align: middle; }
.rl-name { font-weight: 600; }
.rl-table small { display: block; font-size: .76rem; }
.rl-sys { margin-left: 8px; padding: 1px 7px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.rl-status { font-size: .8rem; font-weight: 600; }
.rl-status::before { content: "●"; margin-right: 5px; }
.rl-status.on { color: #16A34A; } .rl-status.off { color: var(--muted); }
.rl-more { width: 48px; text-align: right; }
details.kebab { position: relative; display: inline-block; }
details.kebab > summary { list-style: none; cursor: pointer; padding: 2px 10px; border-radius: 6px; font-weight: 700; color: var(--muted); }
details.kebab > summary::-webkit-details-marker { display: none; }
details.kebab > summary:hover, details.kebab[open] > summary { background: var(--soft); color: var(--ink); }
.kebab-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-2); padding: 4px; display: flex; flex-direction: column; }
.kebab-pop a, .kebab-pop button { text-align: left; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: .86rem; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.kebab-pop a:hover, .kebab-pop button:hover { background: var(--soft); }
.kebab-pop .danger { color: var(--rose); }

/* Role editor (reference "New role") */
.re-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 72px; }
.re-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.re-top h1 { margin: 4px 0 2px; font-size: 1.5rem; color: var(--navy); }
.re-top p { margin: 0; }
.re-back { font-size: .84rem; }
.re-start { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.re-start select { min-width: 200px; }
.re-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.re-step-h { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.re-step-h h2 { margin: 0; font-size: 1rem; color: var(--navy); }
.re-step-h p { margin: 2px 0 0; font-size: .82rem; }
.re-num { width: 24px; height: 24px; border-radius: 7px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.re-step textarea.input { width: 100%; resize: vertical; }
.re-sub { display: flex; flex-direction: column; gap: 6px; }
.re-sub > small { font-size: .78rem; }
.re-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.re-pages-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.re-filter { margin-right: auto; } .re-filter .input { width: 240px; min-height: 34px; }
.re-groups { columns: 3 240px; column-gap: 12px; }
.re-group { break-inside: avoid; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; padding: 0 0 6px; background: var(--card); }
.re-group-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--soft); border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; margin-bottom: 4px; }
.re-group-h small { font-size: .74rem; }

label.re-pg { display: flex; padding: 3px 10px; font-size: .86rem; }
.re-powers td, .re-powers th { padding-top: 6px; padding-bottom: 6px; }
.re-sum { position: sticky; top: calc(var(--top) + 12px); }
.re-sum-c { padding: 14px; }
.re-sum-t { display: block; color: var(--navy); margin-bottom: 8px; }
.re-sum-l { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; margin: 0; font-size: .82rem; }
.re-sum-l dt { color: var(--muted); }
.re-sum-l dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.re-bar { position: fixed; left: var(--side); right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 24px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(13,40,71,.25); }
.re-bar-r { display: flex; gap: 8px; }
.re-dot { font-size: .82rem; color: var(--muted); }
.re-dot::before { content: "●"; margin-right: 6px; }
.re-dot.new::before { color: var(--muted); } .re-dot.dirty::before { color: var(--amber); } .re-dot.saved::before { color: #16A34A; }
@media (max-width: 1100px) { .re-grid { grid-template-columns: 1fr; } .re-sum { position: static; } }
@media (max-width: 900px) { .re-bar { left: 0; } .tm-filter .input, .tm-filter select, .rl-find .input, .re-filter .input { width: 100%; } .tm-filter, .rl-find, .re-filter { width: 100%; } }

.tm-table th, .tm-table td { padding-left: 10px; padding-right: 10px; }
.tm-table td[data-label="Joined"], .tm-table td[data-label="Mobile"], .tm-table td[data-label="Status"], .tm-table td[data-label="Actions"], .tm-mgr { white-space: nowrap; }
.tm-member small { max-width: 240px; white-space: nowrap; }
.rl-table td[data-label="Pages"], .rl-table td[data-label="Status"] { white-space: nowrap; }
.re-step textarea.input { font-family: inherit; font-size: .92rem; }
.re-start span { white-space: nowrap; }

/* dd/mm/yyyy calendar popup (ui-modern.js openCal) */
.nk-cal { position: absolute; z-index: 1000; width: 268px; background: var(--card, #fff); color: var(--ink); border: 1px solid var(--line, #E2E8F0);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); padding: 10px; }
.nk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.nk-cal-wd { font-size: 11px; text-align: center; color: var(--muted, #94A3B8); padding: 2px 0; }
.nk-cal-day { border: 0; background: transparent; color: inherit; border-radius: 6px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.nk-cal-day:hover:not(:disabled) { background: var(--soft, #EFF4FF); }
.nk-cal-day.today { font-weight: 700; outline: 1px solid var(--line, #CBD5E1); }
.nk-cal-day.on { background: var(--brand, #1A56DB); color: #fff; }
.nk-cal-day:disabled { opacity: .35; cursor: default; }
.nk-cal-foot { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.nk-cal-foot .input { flex: 1; min-width: 0; }
.nk-cal-foot .input.bad { border-color: #F43F5E; }
