/* DediGermany panel. One set of markup, three themes chosen in Staff → Settings → Appearance:
     .theme-a  Clean light (default): white cards, light grey page, menu on the left.
     .theme-b  Dark console: dark surfaces, signal-yellow actions.
     .theme-c  Brand industrial: RAL 7035 paper, 7016 anthracite, 1003 signal yellow, condensed headings.
   Components below only use the tokens; each theme block sets the tokens plus a few character tweaks.
   .layout-side = sidebar shell (theme A client area, every staff theme); .layout-top = top bar. */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- tokens ---------- */
:root, .theme-a {
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #F9FAFB; --hover: #F5F7FA; --text: #111827; --text-2: #4B5563;
  --border: #E5E7EB; --border-strong: #8C939D; --input-bg: #FFFFFF;
  --accent: #F2B300; --accent-hover: #DFA500; --on-accent: #1F2937; --accent-soft: #FFF7DB; --accent-text: #8A6100;
  --strong: #111827; --strong-hover: #1F2937; --on-strong: #FFFFFF; --strong-border: #111827;
  --ghost-border: #D1D5DB; --ghost-hover: #F3F4F6;
  --hdr-bg: #FFFFFF; --hdr-text: #4B5563; --hdr-strong: #111827; --hdr-hover: #F3F4F6; --hdr-border: #E5E7EB;
  --cur-bg: #FFF7DB; --cur-text: #111827; --cur-ico: #B07F00;
  --ok: #047857; --ok-bg: #ECFDF5; --ok-line: #A7F3D0; --warn: #92400E; --warn-bg: #FFFBEB; --warn-line: #FDE68A;
  --err: #B42318; --err-bg: #FEF3F2; --err-line: #FECDCA; --info: #1D4ED8; --info-bg: #EFF6FF;
  --code-bg: #111827; --code-text: #F2B300; --focus: #2563EB;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: var(--f-body);
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --h-weight: 700; --h-case: none; --h-track: -.02em; --h1: clamp(1.6rem, 2.6vw, 1.85rem); --h2: 1.15rem; --h3: 1rem;
  --label-case: uppercase; --label-track: .04em;
  --r-sm: 8px; --r-md: 12px; --r-pill: 999px; --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --wrap: 1240px; --gutter: clamp(16px, 3.4vw, 36px); --side-w: 252px;
}
.theme-b {
  --bg: #0F1215; --surface: #171B20; --surface-2: #1C2127; --hover: #1E242A; --text: #E6E8EA; --text-2: #A9B0B7;
  --border: #262C33; --border-strong: #5A636C; --input-bg: #0F1215;
  --accent: #F2B300; --accent-hover: #FFC929; --on-accent: #14181C; --accent-soft: #2A230E; --accent-text: #FFD24D;
  --strong: #2A3036; --strong-hover: #343B42; --on-strong: #FFFFFF; --strong-border: #3E464E;
  --ghost-border: #3E464E; --ghost-hover: #22282E;
  --hdr-bg: #14181C; --hdr-text: #A9B0B7; --hdr-strong: #FFFFFF; --hdr-hover: #1E242A; --hdr-border: #262C33;
  --cur-bg: #262D34; --cur-text: #FFFFFF; --cur-ico: #F2B300;
  --ok: #4ADE80; --ok-bg: #0F2A1F; --ok-line: #1E5A3C; --warn: #FFD24D; --warn-bg: #2A230E; --warn-line: #5C4A12;
  --err: #FF8A7A; --err-bg: #3A1714; --err-line: #6E2A22; --info: #8AB8FF; --info-bg: #12243A;
  --code-bg: #0B0D10; --code-text: #FFD24D; --focus: #7DB3FF;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: var(--f-body);
  --h-weight: 800; --h-case: none; --h-track: -.02em; --h1: clamp(1.6rem, 2.6vw, 1.9rem); --h2: 1.15rem; --h3: 1rem;
  --label-case: uppercase; --label-track: .06em;
  --r-sm: 8px; --r-md: 14px; --shadow: none;
}
.theme-c {
  --bg: #E7E9EA; --surface: #F6F7F7; --surface-2: #ECEEEF; --hover: #EEF0F0; --text: #23282B; --text-2: #535D62;
  --border: #CDD1D3; --border-strong: #868F94; --input-bg: #FBFBFB;
  --accent: #F2B300; --accent-hover: #D49C00; --on-accent: #23282B; --accent-soft: #FCEFC7; --accent-text: #6B4E00;
  --strong: #23282B; --strong-hover: #3A4247; --on-strong: #FBFBFB; --strong-border: #23282B;
  --ghost-border: #23282B; --ghost-hover: #23282B;
  --hdr-bg: #23282B; --hdr-text: #C4CACD; --hdr-strong: #FFFFFF; --hdr-hover: #30373B; --hdr-border: #3A4247;
  --cur-bg: #30373B; --cur-text: #FFFFFF; --cur-ico: #F2B300;
  --ok: #1F6B3A; --ok-bg: #DCEFE3; --ok-line: #9CCBAE; --warn: #6B4E00; --warn-bg: #FCEFC7; --warn-line: #E8D493;
  --err: #9B2C1F; --err-bg: #F6DAD5; --err-line: #E2B1A9; --info: #1E4A78; --info-bg: #DDE6F0;
  --code-bg: #23282B; --code-text: #F2B300; --focus: #1F6FEB;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --h-weight: 700; --h-case: uppercase; --h-track: .01em; --h1: clamp(2rem, 3.4vw, 2.6rem); --h2: 1.35rem; --h3: 1.12rem;
  --label-case: uppercase; --label-track: .08em;
  --r-sm: 3px; --r-md: 3px; --shadow: none;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.55 var(--f-body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.theme-c body { font-size: 16px; }
a { color: inherit; }
main a:not(.btn):not(.stat):hover { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--f-head); font-weight: var(--h-weight); line-height: 1.15; margin: 0 0 .5em; text-transform: var(--h-case); letter-spacing: var(--h-track); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); margin-top: 1.6em; }
h3 { font-size: var(--h3); font-weight: 600; }
.theme-c h3 { font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--f-mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--strong); color: var(--on-strong); padding: 8px 14px; z-index: 50; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.small { font-size: .88rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- shell: header / sidebar ---------- */
.app { min-height: 100vh; }
.top { background: var(--hdr-bg); color: var(--hdr-text); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hdr-strong); font: 700 1.08rem/1 var(--f-head); letter-spacing: -.01em; }
.logo b { font-weight: inherit; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .lm-body { fill: #23282B; } .logo-mark .lm-hi { fill: #F2B300; } .logo-mark .lm-line { fill: #8E9296; } .logo-mark .lm-dot { fill: #E7E9EA; }
.logo .tag { white-space: nowrap; font: 600 .68rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 4px 7px; border-radius: 6px; background: var(--surface-2); }
.nav-panel { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; align-items: center; }
.nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: .94rem; padding: 9px 12px; border-radius: var(--r-sm); color: var(--hdr-text); }
.nav a:hover { color: var(--hdr-strong); background: var(--hdr-hover); }
.nav a[aria-current="page"] { color: var(--cur-text); background: var(--cur-bg); font-weight: 600; }
.nav a[aria-current="page"] .ico { color: var(--cur-ico); }
.nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.6; }
.nav-h { margin: 14px 12px 4px; font: 600 .7rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--hdr-text); opacity: .85; }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.top-actions form { margin: 0; }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hdr-strong); font-size: .9rem; font-weight: 600; min-width: 0; }
.who small { display: block; font-weight: 500; color: var(--hdr-text); text-transform: capitalize; font-size: .78rem; }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--hdr-hover); border: 1px solid var(--hdr-border); color: var(--hdr-strong); font-size: .78rem; font-weight: 700; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--hdr-text); font: inherit; font-size: .92rem; cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.top .linkbtn { text-decoration: none; }
.linkbtn:hover { color: var(--hdr-strong); }
.cart-pill { text-decoration: none; font-weight: 700; font-size: .88rem; padding: 7px 13px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.side-help { display: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; margin-left: auto; font: 600 .9rem/1 var(--f-body); color: var(--hdr-strong); background: var(--hdr-hover); border: 1px solid var(--hdr-border); border-radius: var(--r-sm); padding: 10px 14px; cursor: pointer; }

/* top bar */
.layout-top .top { border-bottom: 1px solid var(--hdr-border); }
.layout-top .nav .ico { display: none; }
.layout-top .nav .count { margin-left: 6px; }
.layout-top .nav-h { display: none; }
.layout-top .who-name { max-width: 160px; }
@media (max-width: 1100px) { .layout-top .who-name { display: none; } }

/* sidebar */
@media (min-width: 901px) {
  .layout-side .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr);
    background: linear-gradient(to right, var(--hdr-bg) calc(var(--side-w) - 1px), var(--hdr-border) calc(var(--side-w) - 1px), var(--hdr-border) var(--side-w), transparent var(--side-w)); }
  .layout-side .top { align-self: start; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--hdr-border); }
  .layout-side .top-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 22px; min-height: 100%; padding: 22px 14px 18px; max-width: none; }
  .layout-side .logo { padding: 0 8px; gap: 9px; }
  .layout-side:not(.is-staff) .logo .tag { display: none; }
  .layout-side .logo .tag { letter-spacing: .06em; padding: 4px 6px; font-size: .62rem; }
  .layout-side .nav-panel { flex-direction: column; align-items: stretch; gap: 18px; }
  .layout-side .nav { flex-direction: column; align-items: stretch; flex: 0 0 auto; flex-wrap: nowrap; }
  .layout-side .side-help { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hdr-border); font-size: .85rem; color: var(--hdr-text); }
  .layout-side .side-help b { color: var(--hdr-strong); }
  .layout-side .side-help a { font-weight: 600; color: var(--hdr-strong); }
  .layout-side .top-actions { flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding-top: 14px; border-top: 1px solid var(--hdr-border); }
  .layout-side .side-help + .top-actions { margin-top: 0; }
  .layout-side .nav-panel > .top-actions:first-child, .layout-side .nav + .top-actions { margin-top: auto; }
  .layout-side .top-actions .who { padding: 6px 8px; border-radius: var(--r-sm); }
  .layout-side .top-actions a.who:hover { background: var(--hdr-hover); }
  .layout-side .top-actions .linkbtn { padding: 9px 12px; width: 100%; border-radius: var(--r-sm); }
  .layout-side .top-actions .linkbtn:hover { background: var(--hdr-hover); }
  .layout-side .top-actions .cart-pill { align-self: flex-start; margin: 0 8px 8px; }
  .layout-side .app-body { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
  .layout-side .app-body main { flex: 1; }
  .layout-side .wrap { margin: 0; }
  .layout-side main .wrap { padding-top: 6px; }
}

/* phones and small tablets: menu folds behind the button */
@media (max-width: 900px) {
  .top-row { gap: 12px; min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 14px; }
  .js .nav-panel { display: none; }
  .js.nav-open .nav-panel { display: flex; }
  .nav { flex-direction: column; align-items: stretch; }
  .layout-top .nav .ico { display: block; }
  .layout-top .nav .count { margin-left: auto; }
  .layout-top .nav-h, .nav-h { display: block; }
  .top-actions { margin: 0; justify-content: space-between; border-top: 1px solid var(--hdr-border); padding-top: 10px; }
  .layout-top .who-name { display: inline; }
  .logo .tag { display: none; }
}

main { padding: clamp(22px, 3.4vw, 40px) 0 64px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.page-head > :first-child { min-width: 0; }
h1.h1-long { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-2); margin: 0 0 10px; min-width: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; min-width: 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 8px; border: solid var(--text-2); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: .55; flex: none; }
.crumbs a { color: var(--text-2); text-decoration: none; font-weight: 500; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.crumbs a:hover { color: var(--text); background: var(--surface-2); }
.crumbs [aria-current="page"] span { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; display: block; }
.crumbs .crumbs-up { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.crumbs .crumbs-up:hover { background: var(--surface-2); border-color: var(--border-strong); }
.crumbs .crumbs-up:focus-visible, .crumbs a:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 1px; }
@media (max-width: 560px) { .crumbs li:not(:nth-last-child(-n+2)) { display: none; } .crumbs [aria-current="page"] span { max-width: 22ch; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .94rem/1 var(--f-body); text-decoration: none;
  padding: 11px 17px; min-height: 42px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; cursor: pointer; white-space: nowrap; color: var(--text); transition: background-color .12s, border-color .12s, color .12s; }
.btn-sm { padding: 7px 12px; min-height: 34px; font-size: .86rem; }
.btn-signal { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-signal:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ink { background: var(--strong); border-color: var(--strong-border); color: var(--on-strong); }
.btn-ink:hover { background: var(--strong-hover); }
.btn-ghost { border-color: var(--ghost-border); background: var(--surface); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-danger { border-color: var(--err-line); color: var(--err); background: var(--surface); }
.btn-danger:hover { background: var(--err); border-color: var(--err); color: #FFFFFF; }
.theme-b .btn-danger:hover { color: #14181C; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.actions form { margin: 0; }

/* ---------- cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: clamp(18px, 2.2vw, 24px); margin-bottom: 22px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > * { min-width: 0; }
.narrow { max-width: 460px; margin: 0 auto; }
.mid { max-width: 760px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.stat small { order: 0; } .stat b { order: 1; } .stat span { order: 2; } .stat:not(:has(small)) span { order: 0; }
.stat b { display: block; font: 700 1.6rem/1.1 var(--f-head); letter-spacing: -.01em; color: var(--text); }
.stat span { color: var(--text-2); font-size: .86rem; }
.stat small { color: var(--text-2); font-size: .86rem; font-weight: 500; }
.stat:has(small) span { font-size: .8rem; }
a.stat:hover { border-color: var(--border-strong); }
.theme-c .stat { border-left: 4px solid var(--accent); }
.theme-c .stat b { font-size: 2.1rem; }
.theme-c .stat small, .theme-c .stat:not(:has(small)) span { font: 600 .86rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
.theme-b .stat-hot { border-color: var(--warn-line); }
.theme-a .stat-hot { border-color: var(--warn-line); background: var(--warn-bg); }
.theme-c .stat-hot { background: var(--strong); border-color: var(--strong); }
.theme-c .stat-hot b, .theme-c .stat-hot span { color: #FFFFFF; } .theme-c .stat-hot small, .theme-c .stat-hot:not(:has(small)) span { color: var(--accent); }
.stats { margin-bottom: 26px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .stats .stat { padding: 13px 14px; } .stats .stat b { font-size: 1.3rem; } .theme-c .stats .stat b { font-size: 1.6rem; } }

/* server card ("plate") */
.plate { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plate .screw { display: none; }
.plate-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 .76rem/1 var(--f-body); color: var(--text-2); text-transform: uppercase; letter-spacing: .07em; }
.plate-name { font: 700 1.2rem/1.2 var(--f-head); margin: 12px 0 12px; letter-spacing: -.01em; text-transform: none; overflow-wrap: anywhere; }
.plate-name a { text-decoration: none; }
.plate-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.plate-specs { margin: 0 0 16px; padding: 4px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.plate-specs div { display: grid; grid-template-columns: 7em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.plate-specs div:last-child { border-bottom: 0; }
.plate-specs dt { color: var(--text-2); font-size: .86rem; }
.plate-specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-size: .92rem; }
.plate-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.amt { font: 700 1.35rem/1 var(--f-head); color: var(--text); letter-spacing: -.01em; }
.per { font-size: .84rem; line-height: 1.3; color: var(--text-2); }
.plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.theme-c .plate { border-top: 4px solid var(--strong); }
.theme-c .plate .screw { display: block; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #A9B0B3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.theme-c .plate .screw:nth-of-type(1) { top: 8px; left: 8px; } .theme-c .plate .screw:nth-of-type(2) { top: 8px; right: 8px; }
.theme-c .plate .screw:nth-of-type(3) { bottom: 8px; left: 8px; } .theme-c .plate .screw:nth-of-type(4) { bottom: 8px; right: 8px; }
.theme-c .plate-head { font: 600 .92rem/1 var(--f-head); padding: 4px 6px 10px; border-bottom: 2px solid var(--strong); }
.theme-c .plate-name { font-size: 1.6rem; text-transform: none; letter-spacing: 0; }
.theme-c .plate-specs { background: transparent; border: 0; padding: 0; }
.theme-c .amt { font-size: 1.8rem; background: var(--strong); color: var(--accent); padding: 5px 9px 3px; border-radius: var(--r-sm); }

/* ---------- tables ---------- */
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 22px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font: 600 .74rem/1.2 var(--f-body); text-transform: var(--label-case); letter-spacing: var(--label-track); color: var(--text-2); background: var(--surface-2); }
.theme-c th { font: 600 .84rem/1.2 var(--f-head); background: transparent; border-bottom: 2px solid var(--strong); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:hover td { background: var(--hover); }
.card table th { background: transparent; }
tfoot td { font-weight: 600; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--f-body); letter-spacing: .03em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); white-space: nowrap; border: 1px solid var(--border); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.theme-c .badge { border-radius: 2px; letter-spacing: .06em; }
.theme-c .badge::before { display: none; }
.b-ok, .b-active, .b-paid, .b-approved, .b-done, .b-sent { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.b-warn, .b-unpaid, .b-review, .b-pending, .b-provisioning, .b-pending_payment, .b-requested, .b-open { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.b-err, .b-suspended, .b-rejected, .b-failed, .b-denied, .b-refunded { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }

/* ---------- messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; border: 1px solid; font-size: .94rem; }
.flash-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.flash-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.flash-err { background: var(--err-bg); border-color: var(--err-line); }
.theme-c .flash { border-width: 0 0 0 5px; }
.theme-c .flash-ok { border-color: var(--ok); } .theme-c .flash-warn { border-color: var(--accent-hover); } .theme-c .flash-err { border-color: var(--err); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 14px; font-size: .94rem; }
.notice a { font-weight: 600; }
.notice form { display: inline; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.theme-c .notice { background: var(--strong); color: #FFFFFF; border: 0; }
.theme-c .notice a, .theme-c .notice .linkbtn { color: var(--accent); }

/* ---------- forms ---------- */
.field { margin-bottom: 15px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.field .hint { font-size: .84rem; color: var(--text-2); margin-top: 5px; }
.field .error { font-size: .86rem; color: var(--err); margin-top: 5px; font-weight: 500; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], input[type=time], input[type=month], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; min-height: 42px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--input-bg); color: var(--text); }
input:not([type]), input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search] { line-height: 1.25; }   /* same 42px as selects and buttons */
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.code-input { font: 600 1.6rem/1 var(--f-mono) !important; letter-spacing: .3em; text-align: center; }
.hp { position: absolute; left: -5000px; }
fieldset { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px 6px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }
.addon { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.addon:last-child { border-bottom: 0; }
.addon input[type=number] { width: 84px; }

/* ---------- summaries ---------- */
.sum { margin: 0; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sum div:last-child { border-bottom: 0; }
.sum dt { color: var(--text-2); }
.sum dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.sum .total dt, .sum .total dd { color: var(--text); font: 700 1.2rem/1.2 var(--f-head); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.secret { font: 600 1.05rem/1.4 var(--f-mono); background: var(--code-bg); color: var(--code-text); padding: 10px 14px; border-radius: var(--r-sm); display: inline-block; word-break: break-all; user-select: all; }
.codes { columns: 2; font: 600 1rem/1.9 var(--f-mono); padding: 12px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); list-style: none; margin: 0 0 14px; }
.qr { background: #fff; padding: 12px; display: inline-block; border: 1px solid var(--border); border-radius: var(--r-md); }
.qr img, .qr canvas { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.empty { text-align: center; padding: 36px 20px; color: var(--text-2); }
.pay-options { display: grid; gap: 10px; }
.pay-options .btn { width: 100%; justify-content: space-between; white-space: normal; text-align: left; line-height: 1.3; }
.pay-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-note { font-weight: 500; font-size: .8rem; opacity: .8; }
.foot { border-top: 1px solid var(--border); padding: 22px 0 32px; color: var(--text-2); font-size: .85rem; }
.foot a { color: var(--text); }
.foot-social { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); }
.foot-social a:hover, .foot-social a:focus-visible { color: var(--text); border-color: var(--text-2); background: var(--surface-2, transparent); }
.foot-social svg { width: 17px; height: 17px; }
.danger-zone { border-color: var(--err-line); }
details summary { cursor: pointer; font-weight: 600; }
.risk li { margin: 2px 0; }
.center-card { margin: 24px auto; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.split > div > .plate { margin-bottom: 22px; }
.card > input[type=hidden]:first-child + h2, .card > input[type=hidden]:first-child + h3 { margin-top: 0; }
.credit-line { margin-top: 18px; }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctl { border-top: 1px solid var(--border); padding: 12px 0; }
.ctl > summary { font: 600 1rem/1.3 var(--f-body); padding: 4px 0; }
.ctl[open] > summary { margin-bottom: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.radio input { margin-top: 5px; flex: none; }
.keys { margin: 10px 0; }
.rdns-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.rdns-row:last-child { border-bottom: 0; }
.rdns-row label { overflow-wrap: anywhere; font-weight: 500; }
@media (max-width: 560px) { .rdns-row { grid-template-columns: 1fr; } }
.secret-card { border-color: var(--accent); border-width: 2px; }
.page-head .actions { margin-top: 0; }
form.inline { display: inline; margin-left: 10px; }
/* v0.64.97: ticket conversation: avatar + card, a thin line joining the messages, staff replies tinted, signatures folded */
.thread { position: relative; display: grid; gap: 16px; margin-bottom: 22px; }
.thread::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--border); border-radius: 2px; }
.msg { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.msg-av { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  background: #EEF1F6; color: #334155; box-shadow: 0 0 0 4px var(--bg, #F6F7FB); }
.msg-staff .msg-av { background: linear-gradient(135deg, #2F7BFF, #1F4FB8); color: #fff; }
.msg-system .msg-av { background: #0F172A; color: #fff; }
.msg-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.04); }
.msg-staff .msg-card { background: #F5F8FF; background: color-mix(in srgb, var(--surface) 93%, #2F7BFF); border-color: #DCE6FA; border-color: color-mix(in srgb, var(--border) 60%, #2F7BFF); }
.msg-internal .msg-card { background: var(--warn-bg); border-color: var(--warn-line); }
.msg header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.msg header strong { font-size: .95rem; }
.msg-role { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(47,123,255,.12); color: #1F4FB8; }
.msg-role.is-old { background: var(--surface-2); color: var(--text-2); }
.msg-time { margin-left: auto; white-space: nowrap; }
.msg-body { overflow-wrap: anywhere; line-height: 1.6; }
.msg-body > :first-child { margin-top: 0; }
.msg-body > :last-child { margin-bottom: 0; }
.msg-sig { margin-top: 10px; }
.msg-sig summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--text-2); list-style: none; padding: 3px 10px; border-radius: 999px; background: rgba(15,23,42,.05); }
.msg-sig summary::-webkit-details-marker { display: none; }
.msg-sig summary::before { content: "···"; letter-spacing: 1px; }
.msg-sig[open] summary { margin-bottom: 8px; }
.msg-sig .rt { font-size: .86rem; color: var(--text-2); border-left: 2px solid var(--border); padding-left: 12px; overflow-wrap: anywhere; }
.msg .att { margin: 12px 0 0; }
@media (max-width: 640px) {
  .thread::before { left: 15px; }
  .msg { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .msg-av { width: 32px; height: 32px; font-size: .72rem; }
  .msg-card { padding: 12px 14px 14px; }
  .msg-time { margin-left: 0; width: 100%; }
}
.att { margin: 10px 0 0; padding-left: 18px; }
main .linkbtn { color: var(--text); padding: 0; }
main .linkbtn:hover { color: var(--accent-text); }
.notice .linkbtn { font-weight: 600; }
.card form + h3, .card h3 { margin-top: 1.2em; }

/* ---------- settings ---------- */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.settings-layout > * { min-width: 0; }
.settings-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow); }
.settings-nav a { padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem; }
.settings-nav a:hover { background: var(--hover); }
.settings-nav a[aria-current] { background: var(--cur-bg); color: var(--cur-text); font-weight: 600; }
.theme-c .settings-nav a[aria-current] { background: var(--strong); color: #FFFFFF; }
.settings-nav-h { margin: 10px 10px 4px; font: 600 .7rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.settings-nav-h:first-child { margin-top: 4px; }
.settings-group { border: 1px solid var(--border); background: var(--surface); }
.settings-group legend { font-weight: 700; font-size: 1rem; padding: 0 6px; }
.switch-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }
.hookbox { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.sel { user-select: all; }
.test-row { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.test-row .flash { margin: 0; width: 100%; }
.w-sm { max-width: 180px; }
/* Save bar: a plain button at the end of the form; once something is changed it becomes a solid bar that stays in view. */
.save-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.save-bar-msg, .save-undo { display: none; }
.save-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.save-bar.is-dirty { position: sticky; bottom: 14px; z-index: 20; justify-content: space-between; padding: 10px 12px 10px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(15, 18, 21, .16);
  animation: save-bar-in .18s ease-out; }
.save-bar.is-dirty .save-bar-msg { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: .92rem; }
.save-bar.is-dirty .save-undo { display: inline-flex; }
.save-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); flex: none; }
@keyframes save-bar-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .save-bar.is-dirty { animation: none; } }
@media (max-width: 600px) { .save-bar.is-dirty { flex-direction: column; align-items: stretch; gap: 8px; bottom: 8px; padding: 10px 12px; } .save-bar.is-dirty .save-bar-btns .btn { flex: 1; justify-content: center; } }
.status-ok { color: var(--ok); font-weight: 600; } .status-warn { color: var(--warn); font-weight: 600; } .status-err { color: var(--err); font-weight: 600; }
@media (max-width: 820px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; } .settings-nav-h { width: 100%; } }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { width: auto; }
.w-xs { max-width: 80px; }
.mt { margin-top: 18px; }
td.has-error input { border-color: var(--err); }

/* activity log: fixed-height scroll box, sticky header, details never widen the page */
.audit-wrap { max-height: 620px; overflow: auto; }
.audit-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.theme-c .audit-table thead th { background: var(--surface); }
.audit-table td.audit-meta-cell { width: 34%; min-width: 220px; max-width: 420px; }
.audit-meta { margin: 0; max-height: 7.5em; max-width: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all;
  font: .76rem/1.45 var(--f-mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 8px; }
.robot-edit { margin-top: 8px; } .robot-edit summary { cursor: pointer; } .robot-edit form { margin-top: 10px; max-width: 420px; }
.mt-xs { margin-top: 6px; } .page-head.mt { margin-top: 22px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.rl-status { min-height: 1.4em; margin: -4px 0 12px; }
.manage-grid { display: grid; gap: 10px; }
.manage-grid details { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); }
.manage-grid details[open] { background: var(--surface-2); }
.manage-grid summary { cursor: pointer; }
.manage-grid form { margin-top: 10px; }
.manage-grid .danger-zone { border-color: var(--err-line); }
.inv-actions { margin: -6px 0 18px; }

/* ---------- theme picker (Account / My account / Settings) ---------- */
.theme-options { display: grid; gap: 10px; margin-bottom: 16px; }
.theme-opt { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.theme-opt:hover { border-color: var(--border-strong); }
.theme-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-opt input { width: 18px; height: 18px; margin: 0; }
.theme-opt b { display: block; }
.theme-swatch { display: inline-grid; grid-template-columns: 14px 26px; grid-template-rows: 9px 9px; gap: 3px; padding: 5px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); }
.theme-swatch i { display: block; border-radius: 2px; }
.theme-swatch i:nth-child(1) { grid-row: 1 / 3; }
.sw-a { background: #F6F7F9; } .sw-a i:nth-child(1) { background: #FFFFFF; box-shadow: 0 0 0 1px #E5E7EB; } .sw-a i:nth-child(2) { background: #FFFFFF; box-shadow: 0 0 0 1px #E5E7EB; } .sw-a i:nth-child(3) { background: #F2B300; }
.sw-b { background: #0F1215; } .sw-b i:nth-child(1) { background: #14181C; } .sw-b i:nth-child(2) { background: #22282E; } .sw-b i:nth-child(3) { background: #F2B300; }
.sw-c { background: #E7E9EA; } .sw-c i:nth-child(1) { background: #23282B; } .sw-c i:nth-child(2) { background: #F6F7F7; box-shadow: 0 0 0 1px #CDD1D3; } .sw-c i:nth-child(3) { background: #F2B300; }

/* ---------- theme character ---------- */
/* A: staff sidebar gets a small "Staff" chip in yellow so the two areas are never confused */
.is-staff .logo .tag { background: var(--accent-soft); color: var(--accent-text); }
/* B */
.theme-b .logo-mark .lm-body { fill: #F2B300; } .theme-b .logo-mark .lm-hi { fill: #14181C; } .theme-b .logo-mark .lm-line { fill: #14181C; opacity: .55; } .theme-b .logo-mark .lm-dot { fill: #14181C; }
.theme-b .logo .tag { background: #22282E; color: var(--text-2); }
.theme-b.is-staff .logo .tag { background: var(--accent-soft); color: var(--accent-text); }
.theme-b .card, .theme-b .table-wrap, .theme-b .plate, .theme-b .stat { border-color: var(--border); }
.theme-b .qr { background: #FFFFFF; }
/* C */
.theme-c .logo { font: 700 1.3rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.theme-c .logo-mark .lm-body { fill: #3A4146; } .theme-c .logo-mark .lm-line { fill: #8E9296; }
.theme-c .logo .tag { background: transparent; color: var(--accent); padding: 0; }
.theme-c .top { border-bottom: 4px solid var(--accent); }
.theme-c .nav a { font: 600 1rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; border-radius: 0; }
.theme-c .nav-h { font-family: var(--f-head); font-size: .8rem; letter-spacing: .14em; }
@media (min-width: 901px) {
  .theme-c.layout-top .top-row { min-height: 68px; align-items: stretch; }
  .theme-c.layout-top .logo, .theme-c.layout-top .top-actions { align-self: center; }
  .theme-c.layout-top .nav-panel { align-items: stretch; }
  .theme-c.layout-top .nav { align-items: stretch; }
  .theme-c.layout-top .nav a { padding: 0 14px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
  .theme-c.layout-top .nav a[aria-current="page"] { background: transparent; border-bottom-color: var(--accent); }
  .theme-c.layout-top .nav a:hover { background: transparent; color: #FFFFFF; }
  .theme-c.layout-side .top { border-bottom: 0; }
  .theme-c.layout-side .top-row { padding: 0 0 18px; gap: 14px; }
  .theme-c.layout-side .logo { min-height: 68px; padding: 0 20px; border-bottom: 4px solid var(--accent); }
  .theme-c.layout-side .nav a { padding: 11px 20px; border-left: 4px solid transparent; }
  .theme-c.layout-side .nav a[aria-current="page"] { border-left-color: var(--accent); }
  .theme-c.layout-side .nav-h { margin: 14px 24px 6px; }
  .theme-c.layout-side .top-actions { margin: 0 14px; }
  .theme-c.layout-side .side-help { margin-left: 14px; margin-right: 14px; background: #30373B; border-color: #3A4247; }
}
.theme-c .avatar { border-radius: 3px; }
.theme-c .btn { font-weight: 700; border-width: 2px; }
.theme-c .btn-ghost { background: transparent; }
.theme-c .btn-ghost:hover { color: #FBFBFB; }
.theme-c .card h2, .theme-c main > .wrap > h2 { letter-spacing: .03em; }
.theme-c .cart-pill { border-radius: 3px; }

/* ---------- tabs, reports, ratings ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: -4px 0 22px; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.theme-c .tabs a { font: 600 1rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; border-bottom-width: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; padding-bottom: 6px; }
.filters .field { flex: 1 1 170px; margin-bottom: 12px !important; }
.scroll-x { overflow-x: auto; position: relative; }
.filters .field:last-child { flex: 0 0 auto; }
.filters > .check { min-height: 42px; align-items: center; margin: 0 0 12px; white-space: nowrap; }   /* lines up with the boxes and buttons */
.filters > .check input { margin-top: 0; }
.stars { color: var(--accent); letter-spacing: .06em; font-size: 1.15rem; line-height: 1; }
.theme-a .stars, .theme-c .stars { color: #C98F00; }
.stars-sm { font-size: .95rem; }
.stars-low { color: var(--err) !important; }
.stat .stars { font-size: 1rem; vertical-align: middle; }
.rate-show { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rate-show .stars { font-size: 1.4rem; }
.rate-comment { margin: 0 0 12px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); overflow-wrap: anywhere; font-size: .93rem; }
.rate-low { border-color: var(--err-line); }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0 0 14px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { cursor: pointer; font-size: 2rem; line-height: 1; padding: 2px 3px; color: var(--border-strong); transition: color .1s, transform .1s; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: var(--accent); }
.rate-stars input:checked + label { transform: scale(1.08); }
.rate-stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 4px; }
.dist-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 6.5em; gap: 12px; align-items: center; padding: 7px 0; }
.dist-n { text-align: right; font-weight: 600; }
.dist-bar { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dist-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; box-shadow: inset 0 0 0 1px var(--border); }
.dist-bar::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.dist-bar::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.dist-bar.dist-1::-webkit-progress-value, .dist-bar.dist-2::-webkit-progress-value { background: var(--err); }
.dist-bar.dist-1::-moz-progress-bar, .dist-bar.dist-2::-moz-progress-bar { background: var(--err); }
.theme-c .dist-bar, .theme-c .dist-bar::-webkit-progress-bar, .theme-c .dist-bar::-webkit-progress-value { border-radius: 0; }
tr.row-low td:first-child { box-shadow: inset 3px 0 0 var(--err); }
td.rate-c { min-width: 240px; max-width: 460px; overflow-wrap: anywhere; font-size: .9rem; }
@media (max-width: 560px) { .dist-row { grid-template-columns: 7em minmax(0, 1fr) 5.5em; } }

.reply-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; }
.reply-foot .field { flex: 1 1 260px; }
.reply-card textarea { min-height: 140px; }

.b-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.b-hold { background: var(--surface-2); color: var(--text-2); border-style: dashed; border-color: var(--border-strong); }
.b-closed { background: var(--surface-2); color: var(--text-2); }
.about-bar { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: -6px 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.about-bar .ico { margin-top: 3px; color: var(--accent-text); width: 20px; height: 20px; }
.about-bar a { text-decoration: none; } .about-bar a:hover { text-decoration: underline; }
.about-none { background: transparent; box-shadow: none; border-style: dashed; padding: 9px 14px; }
.about-none .ico { color: var(--text-2); margin-top: 0; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -10px 0 16px; font-size: .9rem; }
.ticket-meta .muted { margin-right: 4px; }
.inline-take { display: inline; margin-left: 8px; }
.inline-take .linkbtn { font-size: .88rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.chips-l { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); min-width: 92px; }
.chip { font-size: .85rem; text-decoration: none; padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.chip:hover { border-color: var(--border-strong); }
.chip[aria-current] { background: var(--strong); border-color: var(--strong-border); color: var(--on-strong); }
.theme-c .chip { border-radius: 3px; }
.chips + .table-wrap { margin-top: 14px; }
.tab-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 700; text-align: center; line-height: 1.55; }
td.td-svc { min-width: 140px; }
.msg-edit, .msg-history { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; }
.msg-edit summary, .msg-history summary { color: var(--text-2); font-weight: 600; }
.msg-edit form { margin-top: 10px; }
.msg-old { margin-top: 8px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--r-sm); overflow-wrap: anywhere; font-size: .92rem; }

.secure-box { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); margin: 0 0 16px; }
.secure-box > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.secure-box > summary::-webkit-details-marker { display: none; }
.secure-box > summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--text-2); }
.secure-box[open] > summary::after { content: "–"; }
.secure-box > summary .ico { color: var(--accent-text); width: 17px; height: 17px; }
.secure-box[open] { border-color: var(--accent); }
.secure-inner { padding: 0 14px 4px; }
.secure-inner textarea { min-height: 60px; }
.secrets-card { border-color: var(--accent); }
.secrets-card h2 { display: flex; align-items: center; gap: 8px; }
.secrets-card h2 .ico { color: var(--accent-text); }
.secret-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.secret-row:last-of-type { border-bottom: 0; }
.secret-head { margin-bottom: 6px; }
.secret-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.secret-actions form { margin: 0; }
.secret-gone .secret-head strong { color: var(--text-2); text-decoration: line-through; }
.secret-kv { grid-template-columns: max-content minmax(0, 1fr); align-items: center; margin-bottom: 6px; }
.secret-kv .secret { font-size: .92rem; padding: 6px 10px; }

/* ticket list */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.toolbar label { margin: 0; }
.toolbar select { width: auto; min-width: 170px; }
.tb-search { position: relative; flex: 1 1 280px; }
.tb-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 16px; height: 16px; pointer-events: none; }
.tb-search input { padding-left: 36px; }
.tab-n-quiet { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.tickets-table td { vertical-align: middle; padding-top: 13px; padding-bottom: 13px; }
.tickets-table th:first-child, .tickets-table td:first-child { padding-left: 20px; }
.tickets-table th:last-child, .tickets-table td:last-child { padding-right: 20px; }
.tk-main { min-width: 280px; }
.tk-main { max-width: 520px; }
.tk-subject { font-weight: 600; text-decoration: none; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tk-subject:hover { text-decoration: underline; text-underline-offset: 3px; }
.tk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 8px 2px 0; vertical-align: middle; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 3px; font-size: .8rem; color: var(--text-2); }
.tk-svc { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-svc .ico { width: 13px; height: 13px; flex: none; }
.tk-pri { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; padding: 1px 6px; border-radius: 4px; }
.tk-high { background: var(--warn-bg); color: var(--warn); }
.tk-urgent { background: var(--err-bg); color: var(--err); }
.stars-xs { font-size: .8rem; letter-spacing: .02em; }
.tk-client { max-width: 240px; }
.tk-name, .tk-email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-name { font-size: .9rem; }
.tk-email { font-size: .8rem; color: var(--text-2); }
.tk-who { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.avatar-sm { width: 26px; height: 26px; font-size: .72rem; background: var(--surface-2); border-color: var(--border); color: var(--text); }
@media (max-width: 700px) {
  .toolbar label:not(.tb-search) { flex: 1 1 40%; } .toolbar select { min-width: 0; width: 100%; } .toolbar .btn { flex: 1 1 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; }
  .tickets-table thead { display: none; }
  .tickets-table, .tickets-table tbody { display: block; }
  .tickets-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .tickets-table tr:last-child { border-bottom: 0; }
  .tickets-table td { display: block; border: 0; padding: 0 !important; }
  .tickets-table .tk-main { grid-column: 1 / -1; min-width: 0; }
  .tickets-table .tk-client { max-width: none; min-width: 0; }
  .tickets-table td.empty { grid-column: 1 / -1; padding: 24px 0 !important; }
  .tickets-table tbody tr:hover td { background: transparent; }
  .tickets-table td:nth-child(2) { order: 1; } .tickets-table td:nth-child(5) { order: 2; align-self: center; }
  .tickets-table td:nth-child(3) { order: 3; } .tickets-table td:nth-child(4) { order: 4; justify-self: end; }
}

.sum .sum-discount dt, .sum .sum-discount dd { color: var(--ok); }
.coupon-note { margin: 8px 0 0; }
.coupon-box { margin: 14px 0 16px; padding-top: 12px; border-top: 1px dashed var(--border); }
.coupon-form summary { color: var(--text-2); font-weight: 600; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row input { text-transform: uppercase; font-family: var(--f-mono); letter-spacing: .04em; }
.coupon-applied { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px dashed var(--ok); border-radius: var(--r-sm); background: var(--ok-bg); }
.coupon-applied form { margin: 0; }
.coupon-bad { border-color: var(--err); background: var(--err-bg); }
.coupon-wait { border-color: var(--border-strong); background: var(--info-bg); }
.coupon-code { font: 700 .95rem/1 var(--f-mono); letter-spacing: .05em; }

.coupon-input { text-transform: uppercase; letter-spacing: .05em; }
.coupon-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; margin-top: 6px; max-height: 260px; overflow: auto; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.coupon-products .check { margin: 6px 0; }
.coupon-code-h { font-family: var(--f-mono); letter-spacing: .04em; text-transform: none; }
.stat b.stat-word { font-size: 1.3rem; }

.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.aff-link-card { border-color: var(--accent); }
.aff-link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.aff-link-row input { flex: 1; min-width: 0; font-size: .95rem; }
.aff-link-card p { overflow-wrap: anywhere; }
.aff-chart { width: 100%; height: 140px; display: block; margin-bottom: 8px; }
.aff-chart .bar-c { fill: var(--accent); }
.aff-chart .bar-s { fill: var(--info); }
.aff-chart .axis { stroke: var(--border); stroke-width: 1; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.key:first-child { margin-left: 0; }
.key-c { background: var(--accent); } .key-s { background: var(--info); }
.sum-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; flex-wrap: wrap; }
.sum-line:last-child { border-bottom: 0; }

.payout-act { display: flex; gap: 6px; margin-bottom: 6px; }
.payout-act input { min-width: 170px; min-height: 34px; padding: 6px 10px; }

.auto-cards { margin: 16px 0 18px; }
.auto-card { display: flex; align-items: stretch; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.auto-card .auto-ico { display: flex; align-items: center; justify-content: center; width: 64px; flex: none; font: 700 1.6rem/1 var(--f-body); color: #fff; }
.auto-card .auto-ico .ico { width: 26px; height: 26px; }
.auto-card > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.auto-card b { font: 700 1.35rem/1.1 var(--f-head); }
.auto-card span:not(.auto-ico) { font-size: .82rem; color: var(--text-2); }
.auto-ok .auto-ico { background: #2F9E5B; } .auto-err .auto-ico { background: var(--err); }
.auto-mid .auto-ico { background: #D98E04; } .auto-idle .auto-ico { background: #7B858C; }
.auto-grid { margin-bottom: 8px; }
.auto-stat b { font-size: 1.5rem; }
.auto-failed { border-color: var(--err-line); background: var(--err-bg); }
.auto-failed b { color: var(--err); }
.cron-line summary { cursor: pointer; }

/* print stays plain whatever the theme */
@media print { .top, .foot, .nav-toggle { display: none !important; } .layout-side .app { display: block; } body { background: #fff; } }
.ctl-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.cn-found { border: 1px dashed var(--border); border-radius: 12px; padding: 10px 14px 12px; margin-top: 8px; }
.cn-found .kv { margin-top: 0; margin-bottom: 14px; }
.cn-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }   /* v0.48.2: side by side, with room */
.cn-found .check { margin-top: 10px; }
.cn-off summary { cursor: pointer; color: var(--text-2); }
.ctl-block h3 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ctl-row select { flex: 1 1 220px; width: auto; }
.ctl-row .check { margin: 0; align-items: center; flex: 1 1 220px; }
.ctl-row .check input { margin-top: 0; }
.ctl-row .btn { flex: none; }
.funds-box h3 { margin-bottom: 4px; }
.funds-form { margin: 12px 0 6px; }
.funds-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.funds-row input { flex: 1 1 140px; min-width: 0; padding-left: 28px; }
.funds-row { position: relative; }
.funds-cur { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.funds-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
button.chip { cursor: pointer; font-family: var(--f-body); font-weight: 600; }
.funds-bal { float: right; font: 700 1.3rem/1 var(--f-head); }
.ledger dd { white-space: nowrap; }
.captcha-box { margin: 4px 0 16px; min-height: 65px; }
.pay-due { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--warn-line, #F0D58A); background: var(--warn-bg, #FFF8E1); border-radius: var(--r-md); }
.pay-due > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pay-due small { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.pay-due b { font: 700 1.6rem/1.1 var(--f-head); }
.pay-due span { font-size: .9rem; }
.pay-due .btn { flex: none; }
.pay-due-sm { padding: 12px 16px; }
@media (max-width: 560px) { .pay-due .btn { width: 100%; } }
/* Account: tabs on the page + sub-items under Account in the menu */
.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll a { white-space: nowrap; flex: none; }
.subnav { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px 21px; padding-left: 12px; border-left: 1px solid var(--hdr-border); }
.nav .subnav a { padding: 7px 10px; font-size: .88rem; font-weight: 500; }
.nav .subnav a[aria-current="page"] { background: transparent; color: var(--hdr-strong); font-weight: 700; }
.nav .subnav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 2px; flex: none; }
.nav a[aria-current="page"] + .subnav { margin-top: 4px; }
@media (min-width: 901px) { .layout-top .subnav { display: none; } }
.theme-c .nav .subnav a { font: 500 .88rem/1.2 var(--f-body); text-transform: none; letter-spacing: 0; border-left: 0; padding: 7px 10px; }
@media (max-width: 480px) { .tabs-scroll { gap: 0; } .tabs-scroll a { padding: 10px 8px; font-size: .84rem; } }
/* Invoice list: every row the same height, buttons lined up on the right */
.inv-table td { vertical-align: middle; }
.inv-table td:first-child { white-space: nowrap; }
.inv-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; white-space: nowrap; margin: 0; }
.inv-table td.nowrap { white-space: nowrap; }
.inv-sub { display: none; }
@media (max-width: 640px) { .inv-table .col-date, .inv-table .col-wide { display: none; } .inv-table th, .inv-table td { padding-left: 10px; padding-right: 10px; }
  .inv-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: .8rem; color: var(--text-2); white-space: normal; } }
/* Continue with Google */
.btn-google { width: 100%; justify-content: center; gap: 10px; background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; font-weight: 600; }
.btn-google:hover { background: #F7F8F8; color: #1F1F1F; }
.g-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #F1F3F4; color: #1F1F1F; font: 700 .85rem/1 var(--f-body); }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-2); font-size: .82rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* server list */
.srv-table td { vertical-align: middle; }
.srv-table td.nowrap { white-space: nowrap; }
.srv-table .srv-name { max-width: 420px; }
.srv-sub-line { display: block; margin-top: 2px; font-size: .85rem; color: var(--text-2); }
.srv-table .badge { white-space: nowrap; }
.srv-mobile { display: none; }
@media (max-width: 760px) { .srv-table .col-date, .srv-table .col-wide, .srv-table .col-status { display: none; } .srv-table th, .srv-table td { padding-left: 10px; padding-right: 10px; }
  .srv-mobile { display: block; margin-top: 6px; } .srv-mobile-meta { display: block; margin-top: 6px; font-size: .8rem; color: var(--text-2); line-height: 1.45; } .srv-mobile-meta .mono { font-size: .78rem; } }
/* dashboard */
.stat-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-inv td.nowrap { white-space: nowrap; }
.dash-inv td:first-child { width: 40%; }
.dash-inv td.right { width: 1%; }
.dash-inv .badge { margin-left: 6px; vertical-align: 1px; }
.plate-specs dd.muted-val { color: var(--text-2); font-weight: 500; }
@media (max-width: 640px) { .dash-inv td:first-child { width: auto; } .dash-inv .inv-sub .badge { margin-left: 0; } }
.inline-form { display: inline; margin: 0 0 0 8px; }
.inline-form .linkbtn { padding: 0; color: var(--text); font-size: inherit; }
/* staff passkeys */
.btn-block { width: 100%; justify-content: center; }
.passkey-box .btn .ico { width: 20px; height: 20px; }
.passkey-box p { margin: 10px 0 0; text-align: center; }
.passkey-list { list-style: none; margin: 0 0 16px; padding: 0; }
.passkey-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.passkey-list li .ico { width: 18px; height: 18px; vertical-align: -3px; }
/* staff invoice page */
.inv-head { align-items: center; }
.inv-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: 22px; }
.inv-facts > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-left: 1px solid var(--border); min-width: 0; }
.inv-facts > div:first-child { border-left: 0; }
.inv-facts > div > span:first-child { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.inv-facts b, .inv-facts a { font-weight: 600; overflow-wrap: anywhere; }
.inv-facts small { color: var(--text-2); font-size: .82rem; overflow-wrap: anywhere; }
.inv-fact-due b { font-size: 1.15rem; }
@media (max-width: 900px) { .inv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inv-facts > div { border-left: 0; border-top: 1px solid var(--border); } .inv-facts > div:nth-child(-n+2) { border-top: 0; } .inv-facts > div:nth-child(even) { border-left: 1px solid var(--border); } }
.inv-lines td, .pay-table td { vertical-align: middle; }
.inv-lines tfoot td { padding-top: 7px; padding-bottom: 7px; border: 0; }
.inv-lines tfoot .t-sub td { border-top: 1px solid var(--border); padding-top: 12px; }
.inv-lines tfoot .t-total td { font-weight: 700; }
.inv-lines tfoot .t-due td { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--border); padding-top: 12px; padding-bottom: 12px; }
.inv-lines td.nowrap, .pay-table td.nowrap, .inv-side td.nowrap { white-space: nowrap; }
code.ref { font-size: .82rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.pay-method { min-width: 170px; }
.pay-note { font-style: italic; }
.refund-card > summary, .dz-del > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; font-weight: 400; }
.refund-card > summary::-webkit-details-marker { display: none; }
.refund-card[open] > summary .btn { visibility: hidden; }
.refund-card form { margin-top: 12px; }
.refund-card:target, .refund-card[open] { border-color: var(--border-strong); }
@media (max-width: 640px) { .split .col-wide, .pay-table .col-act { display: none; } .pay-method { min-width: 0; } }
@media (max-width: 900px) { .inv-fact-due { grid-column: span 2; border-left: 0 !important; } }
.inv-side .card { margin-bottom: 18px; }
.inv-side .card h2 { font-size: 1.1rem; }
.dz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dz-row { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dz-del > summary { list-style: none; cursor: pointer; }
.dz-del > summary::-webkit-details-marker { display: none; }
.dz-del[open] > summary .btn { visibility: hidden; }
.dz-del form { margin-top: 12px; }
/* invoice editor */
.edit-lines input[type=text] { width: 100%; }
.edit-lines input.amount { width: 120px; text-align: right; font-variant-numeric: tabular-nums; }
.edit-lines td { vertical-align: top; }
.edit-lines tr.is-removed td:first-child input, .edit-lines tr.is-removed input.amount { text-decoration: line-through; opacity: .5; }
.edit-lines tr.has-error input { border-color: var(--err); }
.edit-lines tfoot td { border: 0; padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.edit-lines tfoot .t-sub td { border-top: 1px solid var(--border); padding-top: 12px; }
.edit-lines tfoot .t-total td { font-weight: 700; }
.check-inline { display: inline-flex; padding: 10px 6px; cursor: pointer; }
.edit-notes { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); }
.edit-notes li { margin-bottom: 6px; }
.mt-sm { margin-top: 10px; text-align: center; }
/* "What Hetzner charges" on the hand-over form: left-aligned like the fields above it, space before the buttons */
.cost-box { margin: 4px 0 18px; text-align: left; }
.cost-box > summary { padding: 4px 0; }
.cost-box[open] > summary { margin-bottom: 10px; }
.inv-note { margin-top: 16px; }
.inv-note p { margin-top: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 12px; }
.kyc-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kyc-ask { margin-top: 10px; }
.kyc-ask > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.kyc-ask .check { margin: 4px 0; }
.kyc-needs .label { margin: 0 0 6px; font-weight: 600; font-size: .9rem; }
.kyc-ask .check { display: flex; align-items: flex-start; gap: 8px; }
.kyc-ask .check span { font-weight: 400; }
.kyc-ask .check input { margin-top: 3px; flex: none; }
.sum-total dt, .sum-total dd { font-size: 1.05em; }
.rr-dest { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.rr-dest legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.rr-dest .radio { font-weight: 400; cursor: pointer; }

.stack-btns { display: grid; gap: 10px; margin-top: 14px; }
.inv-side .card > .btn-block, .inv-side .card form > .btn-block, aside .card > .btn-block, aside .card form > .btn-block { margin-top: 12px; }
.danger-zone .btn-block { margin-top: 4px; }
.split > form.card textarea, #dispute-form textarea, .inv-side textarea { width: 100%; box-sizing: border-box; }
.inv-lines tfoot .right { text-align: right; }
.danger-zone p.small + .btn-block, .danger-zone p.small + form .btn-block { margin-top: 0; }
.inv-note.mt0 { margin-top: 0; }
.aside-btn { margin: 0 0 16px; }

/* Read-only staff (viewer role): hide everything that would change data; the server refuses it anyway. */
.ro-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .92rem; }
.ro-banner svg { width: 18px; height: 18px; flex: none; }
.read-only form[method="post"]:not(.ro-ok) :is(button, [type="submit"]), .read-only button[form], .read-only .save-bar { display: none !important; }
.read-only form[method="post"]:not(.ro-ok) :is(input, select, textarea):disabled { opacity: .75; cursor: default; }
/* Radio / checkbox lists inside a form field: normal weight, aligned with the label column. */
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 4px; font-size: .9rem; }
.field label.check, .field label.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; margin: 8px 0 0; cursor: pointer; }
.field label.check input[type="radio"], .field label.radio input { width: 16px; height: 16px; margin-top: 3px; flex: none; }

/* Staff accounts list */
.staff-list { padding: 0; }
.staff-row { display: grid; grid-template-columns: minmax(150px, 1fr) 214px 140px 118px 112px; gap: 18px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--border); }
.staff-row:first-child { border-top: 0; }
.staff-row.is-off { opacity: .65; }
.sr-k { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.sr-who { padding-top: 2px; overflow-wrap: anywhere; }
.sr-acts { position: relative; padding-top: 18px; text-align: right; }
.role-form { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; margin: 0; }
.role-form select { width: 116px; min-width: 0; padding-top: 5px; padding-bottom: 5px; min-height: 34px; }
.staff-manage { display: inline-block; text-align: left; }
.staff-manage > summary { list-style: none; cursor: pointer; }
.staff-manage > summary::-webkit-details-marker { display: none; }
.staff-manage > summary::after { content: '\25BE'; font-size: .8em; margin-left: 2px; }
.staff-acts { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 6px; width: 170px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.staff-acts form { margin: 0; }
.staff-acts .btn { width: 100%; }
@media (max-width: 1440px) { .staff-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sr-acts { padding-top: 0; text-align: left; } .staff-acts { left: 0; right: auto; } }
.tight { margin: 0; padding-left: 18px; } .tight li { margin: 0 0 6px; }
.section-head { align-items: flex-end; } .section-head > .btn { margin-bottom: 12px; }

/* ---------- Staff dashboard widgets ---------- */
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-quick .stat b { font-size: 1.45rem; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 18px; min-width: 0; }
.widget { padding: 18px 20px; margin: 0; }
.widget-flush { padding-bottom: 0; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -2px 0 14px; }
.widget-head h2 { margin: 0; font-size: 1.02rem; }
.widget-foot { margin: 0; padding: 10px 0 14px; border-top: 1px solid var(--border); }
.seg { display: inline-flex; border: 1px solid var(--ghost-border); border-radius: var(--r-sm); overflow: hidden; }
.seg a { padding: 6px 12px; font-size: .84rem; font-weight: 600; color: var(--text-2); text-decoration: none; border-left: 1px solid var(--ghost-border); background: var(--surface); }
.seg a:first-child { border-left: 0; }
.seg a:hover { background: var(--ghost-hover); color: var(--text); }
.seg a[aria-current="page"] { background: var(--cur-bg); color: var(--cur-text); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--text-2); margin-bottom: 6px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ch-legend b { color: var(--text); }
.ch-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-new { background: var(--text-2); opacity: .35; }
.lg-act { background: var(--accent); }
.lg-inc { background: var(--ok); height: 3px !important; border-radius: 2px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--border); stroke-width: 1; }
.ch-base { stroke: var(--border-strong); stroke-width: 1; }
.ch-axis { fill: var(--text-2); font: 11px var(--f-body); }
.ch-new { fill: var(--text-2); opacity: .35; }
.ch-act { fill: var(--accent); }
.ch-inc { fill: none; stroke: var(--ok); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ch-dot { fill: var(--surface); stroke: var(--ok); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch-hit { fill: transparent; }
.ch-hit:hover { fill: var(--text); opacity: .05; }
.bill-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -20px; border-top: 1px solid var(--border); }
.bill-grid > div { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bill-grid > div:nth-child(odd) { border-right: 1px solid var(--border); }
.bill-grid > .span-2 { grid-column: 1 / -1; border-right: 0; }
.bill-grid b { font: 700 1.3rem/1.15 var(--f-head); letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
.bill-grid span { font-size: .84rem; color: var(--text-2); }
.bill-grid .c-today { color: var(--ok); }
.bill-grid .c-month { color: var(--accent-text); }
.bill-grid .c-year { color: var(--info); }
.widget-flush .bill-grid { margin-bottom: 0; }
.widget-flush .bill-grid > div:nth-last-child(-n+2):not(.span-2), .widget-flush .bill-grid > .span-2:last-child { border-bottom: 0; }
.health { display: flex; align-items: center; gap: 12px; }
.health svg { width: 34px; height: 34px; flex: none; }
.health b { display: block; font: 700 1.35rem/1.2 var(--f-head); }
.health-ok svg, .health-ok b { color: var(--ok); }
.health-warn svg, .health-warn b { color: var(--warn); }
.health-err svg, .health-err b { color: var(--err); }
.meter { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 14px 0 10px; }
.meter i { display: block; height: 100%; border-radius: 99px; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px); }
.meter-ok { background-color: var(--ok); } .meter-warn { background-color: #D9A400; } .meter-err { background-color: var(--err); }
.health-counts { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; font-weight: 600; }
.health-list { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); list-style: none; display: grid; gap: 6px; }
.health-list li { position: relative; padding-left: 16px; color: var(--text-2); }
.health-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.health-list li.hl-err::before { background: var(--err); }
.online { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.online-person { display: grid; justify-items: center; text-align: center; gap: 2px; width: 120px; }
.online-person b { font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; position: relative; background: var(--surface-2); border-color: var(--border); color: var(--text); margin-bottom: 4px; }
.dot-on { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
@media (max-width: 1180px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } .dash-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 760px) { .dash-quick { grid-template-columns: 1fr 1fr; } }
.dash-main > .widget, .dash-side > .widget { min-width: 0; overflow: hidden; }
.feed { list-style: none; margin: 0 -20px -18px; padding: 0; }
.feed li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 10px 20px 10px 34px; border-top: 1px solid var(--border); position: relative; font-size: .9rem; }
.feed li::before { content: ''; position: absolute; left: 18px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.feed li.feed-bad::before { background: var(--err); }
.feed-what { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.feed-what b { font-weight: 600; }
.feed-meta { color: var(--text-2); font-size: .82rem; white-space: nowrap; }

.meter .w-0 { width: 0%; } .meter .w-5 { width: 5%; } .meter .w-10 { width: 10%; } .meter .w-15 { width: 15%; } .meter .w-20 { width: 20%; } .meter .w-25 { width: 25%; } .meter .w-30 { width: 30%; } .meter .w-35 { width: 35%; } .meter .w-40 { width: 40%; } .meter .w-45 { width: 45%; } .meter .w-50 { width: 50%; } .meter .w-55 { width: 55%; } .meter .w-60 { width: 60%; } .meter .w-65 { width: 65%; } .meter .w-70 { width: 70%; } .meter .w-75 { width: 75%; } .meter .w-80 { width: 80%; } .meter .w-85 { width: 85%; } .meter .w-90 { width: 90%; } .meter .w-95 { width: 95%; } .meter .w-100 { width: 100%; }
.chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 1180px) {
  .dash-grid { display: flex; flex-direction: column; }
  .dash-main, .dash-side { display: contents; }
  .dash-grid > * > .widget { width: 100%; }
  .w-overview { order: 1; } .dash-side > .widget { order: 2; } .w-activity { order: 3; }
}
@media (max-width: 760px) { .chart { min-width: 600px; } }

/* ---------- Staff chat ---------- */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px;
  background: var(--strong); color: var(--on-strong); font: 600 .95rem/1 var(--f-body); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.chat-fab:hover { background: var(--strong-hover); }
.chat-fab[hidden] { display: none; }
.chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.chat-badge[hidden] { display: none; }
.chat-panel { position: fixed; right: 22px; bottom: 22px; z-index: 901; width: min(820px, calc(100vw - 44px)); height: min(600px, calc(100vh - 44px));
  display: grid; grid-template-columns: 250px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.22); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-panel.chat-full { position: relative; right: auto; bottom: auto; width: 100%; height: calc(100vh - 190px); min-height: 480px; box-shadow: var(--shadow); z-index: 1; }
.chat-side { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 12px 8px; }
.chat-tools { display: inline-flex; align-items: center; gap: 2px; }
.chat-icon-btn { border: 0; background: transparent; color: var(--text-2); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.chat-icon-btn:hover { background: var(--ghost-hover); color: var(--text); }
.chat-popmenu { position: absolute; top: 48px; right: 10px; z-index: 6; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.18); padding: 12px 14px; display: grid; gap: 8px; font-size: .9rem; }
.chat-popmenu .check { margin: 0; }
.chat-popmenu-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.chat-winbtns { position: absolute; top: 12px; right: 10px; display: flex; gap: 2px; z-index: 4; background: var(--surface); border-radius: 8px; }
.chat-conv-head { padding-right: 140px !important; }
.chat-full .chat-conv-head { padding-right: 90px !important; }
.chat-status-btn { border: 1px solid var(--ghost-border); background: var(--surface); color: var(--text); border-radius: 99px; padding: 4px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; margin-right: 2px; }
.chat-search-row { padding: 0 12px 8px; }
.chat-search { width: 100%; padding: 7px 10px; font-size: .86rem; border-radius: 8px; }
.chat-lists { overflow-y: auto; flex: 1; padding: 0 6px 10px; }
.chat-group { margin-top: 6px; }
.chat-group-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.chat-group-h .linkbtn { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.chat-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.chat-item:hover { background: var(--hover); }
.chat-item.is-cur { background: var(--cur-bg); }
.chat-item.has-unread b { font-weight: 800; }
.chat-item-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-item-t b { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-t small { font-size: .76rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-hit .chat-item-t small { white-space: normal; }
.chat-hit-text { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.chat-pad { padding: 4px 8px; }
.chat-av { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.chat-av-room { border-radius: 9px; font-size: .95rem; color: var(--text-2); }
.chat-av-bot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: .66rem; }
.pres { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.chat-av .pres { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid var(--surface-2); }
.pres-online { background: #16A34A; } .pres-busy { background: #DC2626; } .pres-away { background: #F59E0B; } .pres-offline { background: #9CA3AF; }
.dot-on.st-busy { background: #DC2626; } .dot-on.st-away { background: #F59E0B; }
.chat-conv { display: flex; flex-direction: column; min-height: 0; position: relative; }
.chat-conv.is-empty > :not(.chat-empty) { display: none; }
.chat-empty { display: none; margin: auto; max-width: 340px; text-align: center; padding: 24px; color: var(--text-2); }
.chat-conv.is-empty .chat-empty { display: block; }
.chat-empty b { color: var(--text); }
.chat-conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 56px; }
.chat-head-t { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-head-t > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.chat-head-t b { font-size: .95rem; }
.chat-head-t small { font-size: .78rem; color: var(--text-2); }
.chat-head-t .chat-av .pres { border-color: var(--surface); }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px 14px 6px; display: flex; flex-direction: column; gap: 2px; }
.chat-day { align-self: center; margin: 10px 0 6px; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .72rem; color: var(--text-2); }
.chat-msg { display: flex; gap: 10px; padding: 5px 6px; border-radius: 10px; }
.chat-msg:hover { background: var(--hover); }
.chat-msg .chat-av { width: 30px; height: 30px; margin-top: 2px; }
.chat-col { min-width: 0; flex: 1; }
.chat-meta { display: flex; align-items: baseline; gap: 8px; font-size: .78rem; color: var(--text-2); flex-wrap: wrap; }
.chat-meta b { color: var(--text); font-size: .86rem; }
.chat-acts { margin-left: auto; display: none; gap: 8px; }
.chat-msg:hover .chat-acts, .chat-acts:focus-within { display: inline-flex; }
.chat-acts .linkbtn { font-size: .78rem; }
.chat-bubble { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-text a { color: var(--info); }
.is-bot .chat-bubble { color: var(--text-2); }
.is-deleted .chat-bubble em { color: var(--text-2); font-size: .85rem; }
.mention { background: var(--info-bg); color: var(--info); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention-me { background: var(--accent-soft); color: var(--accent-text); }
.chat-card { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 2px; padding: 9px 12px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface-2); text-decoration: none; color: var(--text); max-width: 440px; }
.chat-card:hover { border-color: var(--border-strong); }
.chat-card small { text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; font-weight: 700; color: var(--text-2); }
.chat-card b { font-size: .9rem; }
.chat-card span { font-size: .8rem; color: var(--text-2); }
.chat-img img { display: block; max-width: min(320px, 100%); max-height: 240px; border-radius: 8px; border: 1px solid var(--border); margin-top: 4px; }
.chat-filelink { display: inline-block; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; text-decoration: none; color: var(--text); background: var(--surface-2); }
.chat-seen { font-size: .72rem; color: var(--text-2); margin-top: 2px; }
.chat-compose { border-top: 1px solid var(--border); padding: 10px 12px; position: relative; }
.chat-compose[hidden] { display: none; }
.chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-input { flex: 1; resize: none; min-height: 40px; max-height: 140px; padding: 9px 12px; font: inherit; font-size: .92rem; line-height: 1.4; border-radius: 10px; }
.chat-send { min-height: 40px; }
.chat-warn { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); border-radius: 8px; font-size: .84rem; }
.chat-warn[hidden] { display: none; }
.chat-file-chip { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 8px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; }
.chat-file-chip[hidden] { display: none; }
.chat-mention-list { position: absolute; left: 52px; bottom: calc(100% - 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); min-width: 200px; z-index: 3; }
.chat-mention-list[hidden] { display: none; }
.chat-mention-list li { padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.chat-mention-list li.is-cur, .chat-mention-list li:hover { background: var(--cur-bg); }
.chat-editbox { margin-top: 4px; }
.chat-edit { width: 100%; }
.chat-edit-btns { display: flex; gap: 6px; margin-top: 6px; }
.chat-toast { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); background: var(--strong); color: var(--on-strong); padding: 8px 14px; border-radius: 8px; font-size: .85rem; z-index: 5; max-width: 90%; }
.chat-toast[hidden] { display: none; }
.chat-dialog { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 6; padding: 16px; }
.chat-dialog-in { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; width: min(420px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 8px; }
.chat-dialog-in > b { font-size: 1rem; }
.chat-dialog-in input, .chat-dialog-in select, .chat-dialog-in textarea { width: 100%; }
.chat-dialog-in .label { margin: 6px 0 2px; }
.chat-pick { display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.chat-pick .check { margin: 4px 0; }
@media (max-width: 760px) {
  .chat-fab { right: 14px; bottom: 14px; }
  .chat-fab-label { display: none; }
  .chat-panel:not(.chat-full) { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .chat-panel { grid-template-columns: 1fr; }
  .chat-panel.chat-full { height: calc(100vh - 150px); }
  .chat-side { border-right: 0; }
  .chat-panel.show-conv .chat-side { display: none; }
  .chat-panel:not(.show-conv) .chat-conv { display: none; }
  .chat-back { display: inline-flex; }
}
.chat-panel .linkbtn { padding: 0 2px; color: var(--text-2); font-size: .8rem; } .chat-panel .linkbtn:hover { color: var(--text); } .chat-panel .linkbtn.danger { color: var(--err); }
.head-acts { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; } .btn svg { width: 16px; height: 16px; }
.chat-side-head b { font-size: 1rem; }
.chat-attach { width: 36px; height: 40px; }
@media (max-width: 760px) { .chat-panel:not(.show-conv) .chat-winbtns { top: 10px; } .chat-conv-head { padding-right: 140px !important; } }
@media (max-width: 760px) { .chat-side-head { padding-right: 140px; } }
/* Bank transfer instructions */
.bt-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bt-k { font-size: .88rem; color: var(--text-2); }
.bt-v { display: flex; gap: 8px; align-items: center; min-width: 0; }
.bt-in { flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-size: .95rem; color: var(--text); }
.bt-in:focus { outline: none; }
.bt-big .bt-in { font-size: 1.25rem; font-weight: 700; }
.bt-card .notice { margin: 12px 0 4px; }
@media (max-width: 600px) { .bt-row { grid-template-columns: 1fr; gap: 2px; } }
.bt-paylink { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px; margin-bottom: 18px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-md); }
.bt-paylink > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 220px; }

/* Waiting for a Wise payment, then a countdown back to the invoice */
.wise-wait { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.wise-wait > div { display: flex; flex-direction: column; gap: 4px; }
.wise-spin { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: wise-spin 0.9s linear infinite; }
.wise-wait.is-done .wise-spin { animation: none; border-color: var(--ok); }
@keyframes wise-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wise-spin { animation-duration: 3s; } }
.wise-done { max-width: 560px; text-align: center; padding: 36px 24px; }
.wise-tick { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border: 2px solid var(--ok-line); }
.wise-done .btn { margin-top: 6px; }

/* Hand-over form: main action plus "save for later" side by side */
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
@media (max-width: 520px) { .form-actions .btn { flex: 1 1 100%; } }

/* Staff → Emails */
.mail-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 16px; }
.mail-filters input[type="search"] { flex: 1 1 240px; min-width: 0; }
.mail-filters select { flex: 0 1 auto; width: auto; }
.mail-to { overflow-wrap: anywhere; max-width: 220px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; }
.mail-split { align-items: start; }
.mail-card { padding: 0; overflow: hidden; min-width: 0; }
.mail-frame { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; background: #fff; }
.mail-none { padding: 28px 24px; }
.mail-kv dd { overflow-wrap: anywhere; }
.mail-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
@media (max-width: 720px) { .mail-frame { height: 70vh; min-height: 420px; } }

/* Reports → Where customers come from */
.src-table .src-ch td { border-top: 1px solid var(--border-strong); }
.src-table .src-sub td { padding-top: 4px; padding-bottom: 4px; font-size: 0.875rem; color: var(--text-2); border-top: 0; }
.src-table .src-sub td:first-child { padding-left: 32px; }
.src-share { min-width: 120px; }
.src-share .src-meter { display: inline-block; width: 70px; margin: 0 6px 0 0; vertical-align: middle; height: 8px; }
.src-tip { margin-top: 22px; line-height: 1.8; }
.src-tip code { overflow-wrap: anywhere; }

/* Staff → Visitors */
.vis-pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.vis-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok-line); animation: vis-pulse 2s infinite; }
@keyframes vis-pulse { 0% { box-shadow: 0 0 0 0 var(--ok-line); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .vis-dot { animation: none; } }
.stat-live b { color: var(--ok); }
.vis-live { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; margin-bottom: 26px; }
.vis-table th:nth-child(1) { width: 26%; } .vis-table th:nth-child(2) { width: 34%; }
.vis-table td { overflow-wrap: anywhere; }
.vis-people { min-width: 0; }
.vis-tw { max-height: 560px; overflow: auto; }
.vis-table tr.vis-hot td { background: var(--warn-bg); }
.vis-now { overflow-wrap: anywhere; }
.vis-now .badge { display: inline-block; margin-top: 4px; }
.vis-list { list-style: none; margin: 0; padding: 0; }
.vis-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.vis-list li:last-child { border-bottom: 0; }
.vis-k { overflow-wrap: anywhere; }
.vis-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.vis-bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vis-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.vis-bar .w-0 { width: 0%; } .vis-bar .w-5 { width: 5%; } .vis-bar .w-10 { width: 10%; } .vis-bar .w-15 { width: 15%; } .vis-bar .w-20 { width: 20%; } .vis-bar .w-25 { width: 25%; } .vis-bar .w-30 { width: 30%; } .vis-bar .w-35 { width: 35%; } .vis-bar .w-40 { width: 40%; } .vis-bar .w-45 { width: 45%; } .vis-bar .w-50 { width: 50%; } .vis-bar .w-55 { width: 55%; } .vis-bar .w-60 { width: 60%; } .vis-bar .w-65 { width: 65%; } .vis-bar .w-70 { width: 70%; } .vis-bar .w-75 { width: 75%; } .vis-bar .w-80 { width: 80%; } .vis-bar .w-85 { width: 85%; } .vis-bar .w-90 { width: 90%; } .vis-bar .w-95 { width: 95%; } .vis-bar .w-100 { width: 100%; }
.vis-chart-card { margin-bottom: 18px; }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.vis-grid .card { margin: 0; min-width: 0; }
.vis-top h3, .vis-funnel h3 { margin-top: 0; }
.vis-step { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 6px 0; }
.vis-step .vis-bar { grid-column: 1 / 3; }
.vis-span { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 1180px) { .vis-live { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .vis-table thead { display: none; }
  .vis-table, .vis-table tbody, .vis-table tr, .vis-table td { display: block; width: 100%; }
  .vis-table tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .vis-table td { padding: 2px 0; border: 0; }
  .vis-table td:first-child b::after { content: ""; }
  .vis-tw { max-height: none; }
}

/* Staff signed in as a client */
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 8px 16px; background: var(--warn-bg); border-bottom: 2px solid var(--warn-line); color: var(--warn); font-size: .9rem; }
.imp-bar form { margin: 0; }
.loginas { display: inline-block; position: relative; }
.loginas > summary { list-style: none; cursor: pointer; }
.loginas > summary::-webkit-details-marker { display: none; }
.loginas-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(360px, 86vw); text-align: left; margin: 0; }
.wise-pub { width: 100%; font-size: .75rem; margin: 8px 0 6px; resize: vertical; }

/* Staff → Live chat console */
.lc { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; height: calc(100vh - 190px); min-height: 520px; }
.lc .card { margin: 0; min-width: 0; }
.lc-side { overflow: auto; padding: 14px; }
.lc-group + .lc-group { margin-top: 14px; }
.lc-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 0 0 6px; display: flex; gap: 6px; align-items: center; }
.lc-n:not(:empty) { background: var(--accent); color: var(--accent-text, #1a1a1a); border-radius: 99px; padding: 0 7px; font-size: .72rem; }
.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-none { font-size: .85rem; color: var(--text-2); padding: 2px 0 6px; }
.lc-item { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font: inherit; color: inherit; }
.lc-item:hover { border-color: var(--border-strong); }
.lc-item.is-cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.lc-item.is-waiting { background: var(--warn-bg); border-color: var(--warn-line); }
.lc-item-top { display: flex; justify-content: space-between; gap: 8px; }
.lc-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-item-meta, .lc-item-sub { font-size: .76rem; color: var(--text-2); white-space: nowrap; }
.lc-item-last { font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-dot { position: absolute; right: 8px; bottom: 8px; background: var(--accent); border-radius: 99px; font-size: .7rem; font-weight: 700; padding: 0 6px; }
.lc-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.lc-empty { margin: auto; max-width: 420px; text-align: center; padding: 24px; }
.lc-conv { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lc-conv[hidden] { display: none; }
.lc-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.lc-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-transfer { width: auto; padding: 4px 8px; font-size: .85rem; }
.lc-danger { color: var(--err); }
.lc-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.lc-m { display: flex; flex-direction: column; max-width: 78%; }
.lc-m-visitor { align-self: flex-start; }
.lc-m-staff { align-self: flex-end; align-items: flex-end; }
.lc-m-system { align-self: center; max-width: 90%; }
.lc-bubble { padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.lc-m-visitor .lc-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.lc-m-staff .lc-bubble { background: var(--accent); color: var(--accent-text, #1a1a1a); border-bottom-right-radius: 4px; }
.lc-sys { font-size: .78rem; color: var(--text-2); background: var(--surface-2); border-radius: 99px; padding: 3px 10px; text-align: center; }
.lc-meta, .lc-seen { font-size: .72rem; color: var(--text-2); margin-top: 3px; }
.lc-seen { display: block; text-align: right; }
.lc-typing { padding: 4px 16px; }
.lc-compose { border-top: 1px solid var(--border); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.lc-compose[hidden] { display: none; }
.lc-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lc-tools select { width: auto; padding: 4px 8px; font-size: .85rem; }
.lc-row { display: flex; gap: 8px; align-items: flex-end; }
.lc-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; }
.lc-banner { margin: 0 12px 10px; padding: 8px 12px; border-radius: var(--r-sm); font-size: .88rem; }
.lc-banner.is-bad { background: var(--err-bg); color: var(--err); border: 1px solid var(--err-line); }
.lc-banner.is-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.lc-info { overflow: auto; padding: 14px; }
.lc-info[hidden] { display: none; }
.lc-sec + .lc-sec { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.lc-sec h3 { margin: 0 0 8px; font-size: .95rem; }
.lc-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; margin: 0 0 5px; font-size: .86rem; }
.lc-kv span { color: var(--text-2); }
.lc-kv b { font-weight: 500; overflow-wrap: anywhere; }
.lc-asst { font-size: .82rem; margin: 6px 0; }
.lc-agents.is-on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.lc-agents.is-off { color: var(--warn); }
.lc-pagehead .head-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1280px) { .lc { grid-template-columns: 250px minmax(0, 1fr); height: auto; } .lc-side, .lc-main { height: calc(100vh - 190px); min-height: 520px; } .lc-info { grid-column: 1 / -1; } .lc-info:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; } .lc-info .lc-sec + .lc-sec { margin-top: 0; border-top: 0; padding-top: 0; } }
@media (max-width: 820px) { .lc { grid-template-columns: 1fr; height: auto; } .lc-side { height: auto; max-height: 300px; } .lc-main { height: 75vh; min-height: 460px; } }

/* Client area: live chat bubble */
.lcw { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lcw-launch { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: var(--on-accent, #1a1a1a); font: 600 .95rem/1 var(--f-body); box-shadow: 0 10px 28px -10px rgba(0,0,0,.45); }
.lcw-launch svg { width: 20px; height: 20px; }
.lcw-launch.lcw-ping { animation: lcw-ping 1.4s 3; box-shadow: 0 0 0 3px var(--text), 0 10px 28px -10px rgba(0,0,0,.45); }
@keyframes lcw-ping { 50% { transform: translateY(-4px); } }
.lcw-open .lcw-launch { display: none; }
.lcw-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); }
.lcw-panel[hidden] { display: none; }
.lcw-head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 12px 12px 16px; background: var(--hdr-bg, #23282B); color: var(--hdr-text, #fff); border-top: 4px solid var(--accent); }
.lcw-head > div { flex: 1; min-width: 0; }
.lcw-title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.lcw-sub { margin: 2px 0 0; font-size: .8rem; opacity: .8; }
.lcw-end { align-self: center; background: transparent; border: 1px solid currentColor; color: inherit; border-radius: var(--r-sm); padding: 4px 8px; font-size: .76rem; cursor: pointer; opacity: .85; }
.lcw-end[hidden] { display: none; }
.lcw-x { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.lcw-bar { padding: 7px 14px; font-size: .82rem; font-weight: 600; border-bottom: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 8px; }
.lcw-bar[hidden] { display: none; }
.lcw-bar::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-2); flex: none; }
.lcw-bar.is-waiting::before { background: var(--accent); animation: vis-pulse 1.6s infinite; }
.lcw-bar.is-active::before { background: var(--ok); }
.lcw-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; overscroll-behavior: contain; }
.lcw-m { display: flex; flex-direction: column; max-width: 88%; }
.lcw-me { align-self: flex-end; align-items: flex-end; }
.lcw-team { align-self: flex-start; }
.lcw-sys { align-self: center; max-width: 95%; }
.lcw-bubble { padding: 8px 11px; border-radius: 12px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.lcw-bubble p { margin: 0; white-space: pre-wrap; }
.lcw-me .lcw-bubble { background: var(--text); color: var(--bg); border-bottom-right-radius: 3px; }
.lcw-team .lcw-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 3px; border-left: 3px solid var(--accent); }
.lcw-name { display: block; font-size: .72rem; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.lcw-time, .lcw-seen { font-size: .68rem; color: var(--text-2); margin-top: 2px; }
.lcw-sysline { margin: 0; font-size: .74rem; color: var(--text-2); background: var(--surface-2); border-radius: 99px; padding: 3px 10px; text-align: center; }
.lcw-typing .lcw-bubble { display: flex; gap: 4px; }
.lcw-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: lcw-dot 1s infinite ease-in-out; }
.lcw-typing span:nth-child(2) { animation-delay: .15s; } .lcw-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lcw-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.lcw-form { display: grid; gap: 8px; }
.lcw-form p { margin: 0; }
.lcw-field { display: grid; gap: 3px; font-size: .82rem; font-weight: 600; }
.lcw-field input, .lcw-field textarea { font: inherit; font-weight: 400; padding: 7px 8px; }
.lcw-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.lcw-input[hidden] { display: none; }
.lcw-input input { flex: 1; min-width: 0; }
.lcw-send { background: var(--text); color: var(--bg); border: 0; border-radius: var(--r-sm); padding: 0 14px; font-weight: 600; cursor: pointer; }
/* v0.64.88: screenshot button in the chat bubble, and pictures in the staff console */
.lcw-attach { flex: none; width: 38px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); font-size: 17px; cursor: pointer; padding: 0; }
.lcw-attach[hidden] { display: none; }
.lcw-attach:disabled { opacity: .5; }
.lcw-file { font-weight: 600; }
.lcw-panel.lcw-drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.lc-shot { display: block; max-width: 240px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); line-height: 0; }
.lc-shot img { display: block; max-width: 240px; width: 100%; height: auto; }
.lc-shot-name { display: block; margin-top: 4px; font-size: .75rem; opacity: .8; white-space: normal; }
.lc-upnote { align-self: center; font-size: .82rem; color: var(--text-2); }
.lcw-endbox p { margin: 0 0 8px; }
.lcw-rate, .lcw-copy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-size: .86rem; }
.lcw-copy input { flex: 1; min-width: 140px; padding: 6px 8px; }
.lcw-invite { position: relative; width: min(300px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--r-md); padding: 12px 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.lcw-invite-who { margin: 0 0 4px; font-weight: 700; }
.lcw-invite-text { margin: 0 0 10px; font-size: .9rem; padding-right: 14px; }
.lcw-invite-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--text-2); }
@media (max-width: 600px) { .lcw { right: 12px; bottom: 12px; } .lcw-launch span { display: none; } .lcw-launch { padding: 14px; } .lcw-open { left: 8px; right: 8px; bottom: 8px; } .lcw-panel { width: 100%; height: calc(100dvh - 24px); } }
@media (prefers-reduced-motion: reduce) { .lcw-launch.lcw-ping, .lcw-typing span, .lcw-bar.is-waiting::before { animation: none; } }

/* Staff → Backups */
.bk-status { display: flex; flex-direction: column; gap: 6px; }
.bk-status-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-status-main p { margin: 0; font-weight: 500; }
.bk-busy { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .92rem; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: wise-spin .8s linear infinite; vertical-align: -2px; flex: none; }
.bk-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.bk-steps li.done { color: var(--text-2); }
.bk-cards .card { margin-bottom: 0; }
.bk-cards { margin-bottom: 22px; }
.bk-sched { width: 100%; margin-bottom: 10px; }
.bk-sched td { padding: 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.bk-sched tr:last-child td { border-bottom: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row form { display: inline; }
.bk-table td { vertical-align: top; }
.bk-table .bk-tag { margin: 0 2px 4px 0; }
.bk-failed td { background: var(--err-bg, transparent); }
.bk-help summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.bk-help summary::-webkit-details-marker { display: none; }
.bk-help summary::before { content: "▸"; color: var(--text-2); transition: transform .15s; }
.bk-help[open] summary::before { transform: rotate(90deg); }
.bk-help summary h2 { margin: 0; font-size: 1.1rem; }
.bk-help[open] summary { margin-bottom: 12px; }
.bk-guide { display: grid; gap: 10px; padding-left: 1.3em; }
.copy-row { display: flex; gap: 8px; margin: 8px 0; max-width: 640px; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--f-mono, monospace); font-size: .85rem; }
.count-err { background: var(--err, #c0392b) !important; color: #fff !important; }
.bk-dir code { word-break: break-all; }
.bk-table td:nth-child(6) { white-space: nowrap; }
@media (max-width: 720px) {
  .bk-table thead { display: none; }
  .bk-table, .bk-table tbody, .bk-table tr, .bk-table td { display: block; width: 100%; }
  .bk-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .bk-table td { border: 0; padding: 3px 0; }
  .bk-table td[data-l] { display: flex; justify-content: space-between; gap: 12px; }
  .bk-table td[data-l]::before { content: attr(data-l); color: var(--text-2); }
  .bk-table td.right { text-align: left; padding-top: 8px; }
  .bk-table td:nth-child(6) { white-space: normal; }
}

/* Formatted staff replies (RichText) */
.rt p { margin: 0 0 .8em; }
.rt > :last-child { margin-bottom: 0; }
.rt ul, .rt ol { margin: 0 0 .8em; padding-left: 1.4em; }
.rt li { margin: 0 0 .25em; }
.rt .rt-h { font: 700 1.02rem/1.3 var(--f-head); margin: 1em 0 .45em; }
.rt .rt-h:first-child { margin-top: 0; }
.rt blockquote { margin: 0 0 .8em; padding: 2px 0 2px 12px; border-left: 3px solid var(--border); color: var(--text-2); }
.rt code { font-family: var(--f-mono, ui-monospace, Menlo, Consolas, monospace); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.rt pre { margin: 0 0 .8em; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); overflow-x: auto; }
.rt pre code { background: none; padding: 0; font-size: .85rem; }
.rt a { overflow-wrap: anywhere; }

/* Reply editor: toolbar + Write/Preview */
.rt-editor { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.rt-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring, rgba(242,179,0,.25)); }
.rt-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.rt-tabs { display: inline-flex; gap: 2px; }
.rt-tab { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font: 600 .86rem var(--f-body); color: var(--text-2); cursor: pointer; }
.rt-tab[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.rt-tools { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rt-tools[hidden] { display: none; }
.rt-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; color: var(--text); cursor: pointer; }
.rt-btn svg { width: 17px; height: 17px; }
.rt-btn:hover, .rt-btn:focus-visible { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.rt-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.rt-editor textarea { border: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); box-shadow: none !important; width: 100%; resize: vertical; display: block; }
.rt-editor textarea[hidden] { display: none; }
.rt-preview { padding: 12px 14px; overflow-wrap: anywhere; }
.rt-hint { margin: 6px 0 0; }
@media (max-width: 560px) { .rt-hint { display: none; } }
.rt-editor textarea:focus, .rt-editor textarea:focus-visible { outline: none; border: 0; }
/* Remote console (KVM) card: buttons sit in their own forms */
.console-card .form-actions form { margin: 0; }
@media (max-width: 520px) { .console-card .form-actions form { flex: 1 1 100%; } .console-card .form-actions form .btn { width: 100%; } }
.kvm-paste { font-family: var(--mono, ui-monospace, monospace); font-size: .85rem; }
.kvm-steps { margin-top: 14px; }

/* Fleet & Profit (v0.9) */
.fl-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fl-alert { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--warn-line); background: var(--warn-bg); font-size: .92rem; }
.fl-alert.fl-err { border-color: var(--err-line); background: var(--err-bg); }
.fl-alert-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fl-alert-acts form { display: inline; margin: 0; }
.fl-table td { vertical-align: top; }
.fl-steps { margin: 0 0 14px; padding-left: 20px; }
.fl-steps li { margin-bottom: 4px; }
.fl-import-ok { border-color: var(--ok-line); }
.fl-bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -10px 0 16px; }
.fl-wipe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fl-wipe input[type=text] { flex: 1 1 260px; width: auto; }
/* Header buttons: badges, links, <button> and <details> on one centred line */
.page-head > span:not(.small):not(.muted) { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head > span > form { margin: 0; display: inline-flex; }


/* ---------- v0.10: traffic graphs, firewall, private networks, extra IPs ---------- */
.tr-nav { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.tr-nav a { text-decoration: none; font-weight: 700; padding: 2px 10px; border-radius: var(--r-sm); }
.tr-nav a:hover { background: var(--ghost-hover); }
.tr-legend { margin: 6px 0 0; }
.tr-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.tr-key:first-child { margin-left: 0; }
.tr-in { background: var(--accent); }
.tr-out { background: var(--text-2); opacity: .35; }
.fw-table td { vertical-align: top; padding: 6px 4px; }
.fw-table input, .fw-table select { width: 100%; min-width: 0; font-size: .88rem; padding: 6px 7px; }
.fw-table .fw-name { min-width: 110px; }
.fw-table .fw-port { min-width: 72px; }
.fw-table .fw-ip { min-width: 110px; }
.fw-table .fw-narrow { min-width: 70px; }
.fw-table tr.fw-base td { color: var(--text-2); }
.fw-row-err td { background: var(--err-bg, #fdecec); }
.fw-status { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.net-list { list-style: none; margin: 0; padding: 0; }
.net-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); }
.net-list li:first-child { border-top: 0; }
.net-list form { margin: 0; }
.ip-list { margin: 0; padding: 0; list-style: none; }
.ip-list li { padding: 3px 0; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .split-even { grid-template-columns: minmax(0, 1fr); } }
.flash-form { display: inline; margin: 0; }
.flash-form .linkbtn { padding: 0; font-size: inherit; }

/* Network card on the server page: one clickable row per item (icon · label and status · pill button) */
.net-card h2 { margin-bottom: 12px; }
.net-tiles { display: flex; flex-direction: column; gap: 10px; }
.net-tile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.net-tile:hover, .net-tile:visited, .net-tile:hover .net-value { color: var(--text); }
.net-tile:hover { border-color: var(--accent); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .4); }
.net-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.net-head { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.net-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.net-ico svg { width: 19px; height: 19px; }
.net-tile.is-on .net-ico { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.net-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.net-label { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.net-value { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.net-go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); white-space: nowrap;
  font-size: .84rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); transition: background .15s, border-color .15s, color .15s; }
.net-go span { transition: transform .15s; }
.net-tile:hover .net-go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.net-tile:hover .net-go span { transform: translateX(3px); }
@media (max-width: 460px) { .net-tile { flex-wrap: wrap; } .net-go { margin-left: 50px; } }
@media (prefers-reduced-motion: reduce) { .net-tile, .net-go, .net-go span { transition: none; } }
.fw-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fw-fieldset[disabled] input, .fw-fieldset[disabled] select { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }

/* Firewall: "Remove" toggle per rule (deleted on Save) */
.fw-del-cell { width: 1%; white-space: nowrap; vertical-align: middle !important; }
.fw-del { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.fw-del input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fw-del span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: .82rem; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.fw-del i { font-style: normal; }
.fw-del .fw-del-on { display: none; }
.fw-del:hover span { border-color: var(--err); color: var(--err); }
.fw-del input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fw-del input:checked + span { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.fw-del input:checked + span .fw-del-off { display: none; }
.fw-del input:checked + span .fw-del-on { display: inline; }
.fw-table tr:has(.fw-del input:checked) td:not(.fw-del-cell) { opacity: .45; }
.fw-table tr:has(.fw-del input:checked) input[type=text] { text-decoration: line-through; }

/* Fleet: stage legend that wraps on phones */
.stage-legend-h { margin: 22px 0 8px; font-size: .9rem; color: var(--text-2); }
.stage-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px 22px; margin: 0; }
.stage-legend > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.stage-legend dt { flex: none; margin: 0; }
.stage-legend dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }

/* Label/value lists (.kv) never push the page wider than a phone screen */
.kv { grid-template-columns: max-content minmax(0, 1fr); }
@media (max-width: 520px) {
  .kv { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 8px 14px; }
  .kv dt { overflow-wrap: anywhere; }
  .kv dd .badge { white-space: normal; }
}

/* ---- Blog (v0.11) */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 22px; align-items: start; }
.blog-side .card h2 { font-size: 1rem; }
@media (max-width: 1100px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-title { font-size: 1.15rem; font-weight: 600; }
.blog-slug { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.blog-slug input { flex: 1 1 220px; width: auto; }
.blog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.blog-schedule { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-schedule input { flex: 1 1 180px; width: auto; }
.blog-tips { margin: 0 0 14px; border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--r-sm); padding: 8px 12px; }
.blog-tips summary { cursor: pointer; font-weight: 600; color: var(--warn); }
.blog-tips ul { margin: 8px 0 0; padding-left: 18px; }
.blog-checks { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.blog-cover-preview { display: block; width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--border); margin-bottom: 12px; }
.blog-faq-row { border-top: 1px dashed var(--border); padding-top: 12px; }
.blog-faq-row:first-child { border-top: 0; padding-top: 0; }
.blog-revs { list-style: none; padding: 0; margin: 0 0 10px; max-height: 260px; overflow: auto; }
.blog-revs li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.blog-danger form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.err-text { color: var(--err); }
.cols-2 { columns: 2 260px; }
.be-count { display: block; text-align: right; margin-top: 3px; }
.be-count.be-over { color: var(--err); font-weight: 600; }
.be-status { margin: 6px 0 0; min-height: 1.2em; }
.be-area { min-height: 420px; max-height: 75vh; overflow: auto; padding: 14px 18px; background: var(--input-bg); border-radius: 0 0 var(--r-sm) var(--r-sm); line-height: 1.6; font-size: .98rem; overflow-wrap: anywhere; }
.be-area:focus { outline: none; }
.be-area[hidden] { display: none; }
.be-area > :first-child { margin-top: 0; }
.be-area h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.be-area h3 { font-size: 1.08rem; margin: 1.2em 0 .4em; }
.be-area p, .be-area ul, .be-area ol, .be-area blockquote, .be-area pre, .be-area table { margin: 0 0 .9em; }
.be-area ul, .be-area ol { padding-left: 1.5em; }
.be-area blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--text-2); }
.be-area pre { background: var(--code-bg); color: #E6E8EA; padding: 12px 14px; border-radius: var(--r-sm); overflow: auto; font: .88rem/1.5 var(--f-mono); white-space: pre-wrap; }
.be-area code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
.be-area pre code { background: none; border: 0; padding: 0; color: inherit; }
.be-area table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.be-area th, .be-area td { border: 1px solid var(--border); padding: 6px 9px; text-align: left; vertical-align: top; }
.be-area th { background: var(--surface-2); }
.be-area img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.be-area a { color: var(--info); text-decoration: underline; }
.be-editor textarea { min-height: 420px; font: .86rem/1.5 var(--f-mono); padding: 12px 14px; }
.serp { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 14px; font-family: Arial, sans-serif; }
.serp-url { font-size: .8rem; color: var(--text-2); overflow-wrap: anywhere; }
.serp-title { font-size: 1.05rem; color: var(--info); line-height: 1.3; }
.serp-desc { font-size: .85rem; color: var(--text-2); line-height: 1.45; }

/* ---- Website editor (v0.11) */
.site-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.site-tabs a { padding: 9px 14px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.site-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-tabs a:hover { color: var(--text); }
.site-tabs .site-tabs-dl { margin-left: auto; font-weight: 500; }
.site-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md) var(--r-md) 0 0; }
.site-actions { margin-left: auto; display: flex; gap: 8px; }
.site-tools .rt-btn { font-size: .95rem; }
.site-status.is-ok { color: var(--ok); font-weight: 600; }
.site-status.is-err { color: var(--err); font-weight: 600; }
.site-status.is-info { color: var(--info); }
.site-frame { display: block; width: 100%; height: 78vh; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); background: #fff; margin-bottom: 22px; }
.site-seo { margin: 0; border-radius: 0; border-top: 0; }
.site-seo summary { cursor: pointer; font-weight: 600; }
.site-recent { list-style: none; padding: 0; margin: 0 0 10px; }
.site-recent li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.site-check li { margin-bottom: 8px; }
.site-found { display: grid; gap: 6px; max-height: 420px; overflow: auto; margin-bottom: 12px; }
.site-prices input { text-align: right; }
.row-warn td { background: var(--warn-bg); }
.inline-check { display: inline-flex; margin: 0 10px 0 0; }

/* ---------- Security Command Center (v0.12) ---------- */
.scc-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.scc-gauge { position: relative; width: 132px; height: 132px; display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; text-align: center; }
.scc-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scc-gauge b { position: relative; font: 800 2.3rem/1 var(--f-head); color: var(--text); }
.scc-gauge span { position: relative; font-size: .78rem; color: var(--text-2); }
.scc-ring { fill: none; stroke: var(--border); stroke-width: 10; }
.scc-arc { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.scc-good { color: var(--ok); } .scc-mid { color: var(--warn); } .scc-bad { color: var(--err); }
.scc-sevs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scc-sev { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); text-decoration: none; }
.scc-sev b { font: 800 1.5rem/1.1 var(--f-head); color: var(--text); }
.scc-sev span { font-size: .8rem; font-weight: 600; text-transform: var(--label-case); letter-spacing: var(--label-track); color: var(--text-2); }
.scc-sev-critical { border-left: 4px solid var(--err); } .scc-sev-critical b { color: var(--err); }
.scc-sev-high { border-left: 4px solid color-mix(in srgb, var(--err) 70%, var(--warn)); }
.scc-sev-medium { border-left: 4px solid var(--warn); }
.scc-sev-low { border-left: 4px solid var(--info); }
.scc-when { font-size: .92rem; }
.scc-crit { font-weight: 800; box-shadow: 0 0 0 1px var(--err); }
.scc-later { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: var(--r-pill); border: 1px dashed var(--border-strong); color: var(--text-2); }
.scc-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.scc-dot { fill: currentColor; stroke: var(--surface); stroke-width: 2; }
.scc-text { white-space: normal; overflow-wrap: anywhere; }
.scc-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 900px) { .scc-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; } .scc-sevs { width: 100%; } }
.scc-fix { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.scc-fix form { display: inline; }

/* ---------- Security Command Center overview (v0.17): compact dashboard ---------- */
.sccx { --sccx-good: var(--ok); --sccx-mid: #E0A000; --sccx-bad: var(--err); --sccx-r: var(--ui-r); }
.sccx a { text-decoration: none; }
.sccx-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 28px; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: var(--ui-r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--sccx-tone) 16%, transparent) 0%, transparent 55%),
              radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 60%), var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -18px color-mix(in srgb, var(--sccx-tone) 45%, transparent); }
.sccx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 50%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 85% 50%, #000 0%, transparent 70%); }
.sccx-good { --sccx-tone: var(--sccx-good); } .sccx-mid { --sccx-tone: var(--sccx-mid); } .sccx-bad { --sccx-tone: var(--sccx-bad); }
.sccx-ring { position: relative; width: 132px; height: 132px; flex: none; filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--sccx-tone) 35%, transparent)); }
.sccx-ring svg { width: 100%; height: 100%; display: block; }
.sccx-track { fill: none; stroke: color-mix(in srgb, var(--sccx-tone) 14%, var(--border)); stroke-width: 11; }
.sccx-arc { fill: none; stroke-width: 11; stroke-linecap: round; animation: sccx-fill 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.sccx-g1 { stop-color: var(--sccx-tone); } .sccx-g2 { stop-color: color-mix(in srgb, var(--sccx-tone) 55%, var(--accent)); }
@keyframes sccx-fill { from { stroke-dasharray: 0 400; } }
.sccx-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sccx-ring-in b { font: 800 2.6rem/1 var(--f-head); letter-spacing: -.03em; color: var(--text); }
.sccx-ring-in span { font-size: .78rem; color: var(--text-2); margin-top: 4px; }
.sccx-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--text-2); }
.sccx-kicker .ico { width: 15px; height: 15px; color: var(--sccx-tone); }
.sccx-title { margin: 0; font: var(--h-weight) clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--f-head); letter-spacing: -.02em; color: var(--text); }
.sccx-sub { margin: 6px 0 14px; color: var(--text-2); }
.sccx-sevs { display: flex; flex-wrap: wrap; gap: 8px; }
.sccx-sev { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: .8rem; font-weight: 600; color: var(--text-2); transition: transform .15s ease, border-color .15s ease; }
.sccx-sev:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.sccx-sev b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pill); display: inline-grid; place-content: center; font-size: .82rem; background: var(--surface-2); color: var(--text-2); }
.sccx-sev.is-on.sccx-sev-critical b, .sccx-sev.is-on.sccx-sev-high b { background: var(--err); color: #fff; }
.sccx-sev.is-on.sccx-sev-medium b { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.sccx-sev.is-on.sccx-sev-low b { background: var(--info-bg); color: var(--info); }
.sccx-hero-side { display: grid; gap: 14px; justify-items: end; align-self: stretch; align-content: space-between; }
.sccx-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sccx-actions form { margin: 0; }
.sccx-when { margin: 0; display: grid; gap: 4px; text-align: right; font-size: .84rem; }
.sccx-when div { display: flex; gap: 10px; justify-content: flex-end; }
.sccx-when dt { color: var(--text-2); } .sccx-when dd { margin: 0; font-weight: 600; color: var(--text); }

.sccx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; }
.sccx-kpi { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 12px 14px; border-radius: var(--ui-r-sm); border: 1px solid var(--border); background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; overflow: hidden; }
.sccx-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(16, 24, 40, .35); border-color: var(--border-strong); }
.sccx-kpi-l { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.sccx-kpi b { grid-row: span 2; font: 800 1.5rem/1 var(--f-head); color: var(--text); letter-spacing: -.02em; }
.sccx-kpi small { font-size: .74rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sccx-kpi.is-alert { border-color: var(--warn-line); background: linear-gradient(135deg, var(--warn-bg), var(--surface) 70%); }
.sccx-kpi.is-alert b { color: var(--warn); }
.sccx-kpi::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--border); }
.sccx-kpi.is-alert::before { background: var(--warn); }

.sccx-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sccx-col { display: grid; gap: 18px; min-width: 0; }
.sccx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--sccx-r); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.sccx-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: -2px 0 12px; }
.sccx-card-h h2 { margin: 0; font-size: 1rem; }
.sccx-card-h a { font-size: .84rem; font-weight: 600; color: var(--text-2); } .sccx-card-h a:hover { color: var(--text); }
.sccx-muted { color: var(--text-2); font-size: .86rem; }

.sccx-list { list-style: none; margin: 0 -8px; padding: 0; }
.sccx-list a { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: var(--ui-r-sm); color: inherit; transition: background .15s ease; }
.sccx-list a:hover { background: var(--hover); }
.sccx-list li + li { border-top: 1px solid var(--border); }
.sccx-bar { width: 4px; height: 34px; border-radius: 4px; background: var(--border-strong); }
.sccx-bar-critical, .sccx-bar-high { background: var(--err); } .sccx-bar-medium { background: var(--warn); } .sccx-bar-low { background: var(--info); }
.sccx-list-main { min-width: 0; display: grid; gap: 2px; }
.sccx-list-main b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sccx-list-main small, .sccx-list-side small { color: var(--text-2); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sccx-list-side { display: grid; gap: 4px; justify-items: end; }
.sccx-more { margin: 8px 0 0; font-size: .84rem; }
.sccx-note { margin: -4px 0 8px; }
.sccx-accept { display: flex; flex-wrap: wrap; gap: 6px; }
.sccx-accept form { margin: 0; }
.sccx-accept .btn { padding: 5px 11px; font-size: .8rem; min-height: 0; }
.sccx-empty { display: grid; justify-items: center; gap: 4px; padding: 22px 10px; text-align: center; }
.sccx-empty-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center; color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-bg) 50%, transparent); margin-bottom: 8px; }
.sccx-empty-ico .ico { width: 26px; height: 26px; }
.sccx-empty small { color: var(--text-2); }

.sccx-chart svg { width: 100%; height: auto; display: block; }
.scc-area-1 { stop-color: var(--accent); stop-opacity: .28; } .scc-area-2 { stop-color: var(--accent); stop-opacity: 0; }
.sccx-details { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.sccx-details summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--text-2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.sccx-details summary::-webkit-details-marker { display: none; }
.sccx-details summary::before { content: "›"; display: inline-block; transition: transform .15s ease; font-size: 1.1em; }
.sccx-details[open] summary::before { transform: rotate(90deg); }
.sccx-details > :not(summary) { margin-top: 10px; }
.sccx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sccx-chip { font-size: .76rem; padding: 4px 9px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.sccx-mono { font-family: var(--f-mono); }

.sccx-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sccx-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.sccx-tabs > label { padding: 7px 12px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600; color: var(--text-2); cursor: pointer; border: 1px solid transparent; }
.sccx-tabs > label:hover { color: var(--text); background: var(--hover); }
.sccx-tabs > input:checked + label { background: var(--cur-bg); color: var(--cur-text); border-color: var(--border); }
.sccx-tabs > label:focus, .sccx-tabs > input:focus + label { outline: none; }
.sccx-tabs > input:focus-visible + label { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }   /* keyboard only, soft accent ring */
.sccx-pane { display: none; width: 100%; margin-top: 12px; }
#sccx-t1:checked ~ .sccx-p1, #sccx-t2:checked ~ .sccx-p2, #sccx-t3:checked ~ .sccx-p3 { display: block; animation: sccx-in .25s ease both; }
@keyframes sccx-in { from { opacity: 0; transform: translateY(4px); } }
.sccx-pane-t { margin: 0 0 8px; font-size: .8rem; font-weight: 700; color: var(--text-2); letter-spacing: var(--label-track); text-transform: var(--label-case); }
.sccx-kv { list-style: none; margin: 0; padding: 0; }
.sccx-kv li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.sccx-kv li:first-child { border-top: 0; }
.sccx-kv span { color: var(--text-2); }
.sccx-kv b { font-weight: 600; text-align: right; display: grid; justify-items: end; }
.sccx-kv b small { font-weight: 500; font-size: .74rem; color: var(--text-2); }
.sccx-kv b.is-ok, .sccx-kv b.is-warn, .sccx-kv b.is-bad { display: inline-flex; flex-direction: column; align-items: flex-end; }
.sccx-kv b.is-ok::before, .sccx-kv b.is-warn::before, .sccx-kv b.is-bad::before { content: none; }
.sccx-kv b.is-ok { color: var(--ok); } .sccx-kv b.is-warn { color: var(--warn); } .sccx-kv b.is-bad { color: var(--err); }

.sccx-feed { list-style: none; margin: 0; padding: 0 0 0 4px; }
.sccx-feed li { position: relative; padding: 0 0 12px 20px; display: grid; gap: 2px; font-size: .86rem; }
.sccx-feed li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border); }
.sccx-feed li::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.sccx-feed li:last-child::after { display: none; }
.sccx-feed li.sccx-dot-bad::before { background: var(--err); } .sccx-feed li.sccx-dot-good::before { background: var(--ok); }
.sccx-feed a { color: var(--text); } .sccx-feed a:hover { text-decoration: underline; }
.sccx-feed small { color: var(--text-2); font-size: .75rem; }

@media (max-width: 1100px) { .sccx-grid { grid-template-columns: minmax(0, 1fr); } .sccx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sccx-hero { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 18px; }
  .sccx-hero-side { grid-column: 1 / -1; justify-items: start; } .sccx-actions { justify-content: flex-start; } .sccx-when, .sccx-when div { text-align: left; justify-content: flex-start; }
  .sccx-ring { width: 104px; height: 104px; } .sccx-ring-in b { font-size: 2.1rem; }
}
@media (max-width: 460px) { .sccx-kpis { grid-template-columns: minmax(0, 1fr); } .sccx-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .sccx-arc, .sccx-pane { animation: none !important; } .sccx-kpi, .sccx-sev { transition: none; } }

/* ---------- Staff dashboard (v0.19) ---------- */
.dsx a { text-decoration: none; }
.dsx-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 30px; margin-bottom: 16px;
  border-radius: var(--ui-r-lg); border: 1px solid var(--border); overflow: hidden; isolation: isolate; --dsx-tone: var(--accent);
  background: radial-gradient(110% 160% at 0% 0%, color-mix(in srgb, var(--dsx-tone) 22%, transparent) 0%, transparent 55%),
              radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--info) 14%, transparent) 0%, transparent 60%), var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -26px color-mix(in srgb, var(--dsx-tone) 60%, transparent); }
.dsx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 100%); mask-image: linear-gradient(105deg, transparent 35%, #000 100%); }
.dsx-hero.is-busy { --dsx-tone: var(--warn); }
.dsx-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .76rem; font-weight: 700; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--text-2); }
.dsx-kicker .ico { width: 15px; height: 15px; color: var(--accent-text); }
.dsx-title { margin: 0; font: var(--h-weight) clamp(1.8rem, 3.2vw, 2.5rem)/1.08 var(--f-head); letter-spacing: -.025em; color: var(--text); }
.dsx-sub { margin: 8px 0 0; color: var(--text-2); font-size: 1rem; }
.dsx-hero-money { display: grid; justify-items: end; gap: 2px; padding: 14px 18px; border-radius: var(--ui-r-sm); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: right; }
.dsx-hero-money span { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.dsx-hero-money b { font: 800 1.9rem/1.1 var(--f-head); letter-spacing: -.02em; color: var(--text); }
.dsx-hero-money small { font-size: .76rem; color: var(--text-2); }

.dsx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dsx-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--ui-r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dsx-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 12px 26px -18px rgba(16, 24, 40, .4); }
.dsx-tile-ico { width: 38px; height: 38px; border-radius: var(--ui-r-sm); display: grid; place-content: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.dsx-tile-ico .ico { width: 19px; height: 19px; }
.dsx-tile-txt { min-width: 0; display: grid; gap: 1px; }
.dsx-tile-txt span { font-size: .86rem; font-weight: 600; line-height: 1.25; color: var(--text-2); }
.dsx-tile-txt small { font-size: .74rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsx-tile b { font: 800 1.7rem/1 var(--f-head); letter-spacing: -.02em; }
.dsx-tile.is-hot { border-color: var(--warn-line); background: linear-gradient(135deg, var(--warn-bg), var(--surface) 75%); }
.dsx-tile.is-hot .dsx-tile-ico { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.dsx-tile.is-hot b { color: var(--warn); }

.dsx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.dsx-col { display: grid; gap: 18px; min-width: 0; }
.dsx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.dsx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -2px 0 14px; }
.dsx-card-h h2 { margin: 0; font-size: 1.02rem; }
.dsx-card-h > a { font-size: .84rem; font-weight: 600; color: var(--text-2); } .dsx-card-h > a:hover { color: var(--text); }
.dsx-muted { color: var(--text-2); font-size: .84rem; margin: 0; }
.dsx-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); }
.dsx-seg a { padding: 5px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; color: var(--text-2); }
.dsx-seg a:hover { color: var(--text); }
.dsx-seg a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.dsx-figures { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 26px; margin-bottom: 6px; }
.dsx-figures > div:not(.dsx-figures-note) { display: grid; gap: 2px; }
.dsx-figures span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.dsx-figures span i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dsx-figures b { font: 800 1.45rem/1.1 var(--f-head); letter-spacing: -.02em; color: var(--text); }
.dsx-figures-note { margin-left: auto; font-size: .76rem; color: var(--text-2); }
.dsx-chart { margin-top: 6px; }

.dsx-feed { list-style: none; margin: 0 -6px; padding: 0; }
.dsx-feed li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 6px; border-radius: var(--ui-r-sm); }
.dsx-feed li:hover { background: var(--hover); }
.dsx-feed li + li { border-top: 1px solid var(--border); }
.dsx-who { width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; font-size: .72rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); color: var(--text); border: 1px solid var(--border); }
.dsx-feed li.is-bad .dsx-who { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }
.dsx-feed-main { min-width: 0; font-size: .88rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsx-feed-main b { color: var(--text); font-weight: 600; }
.dsx-feed-main a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.dsx-feed-meta { font-size: .76rem; color: var(--text-2); white-space: nowrap; }
.dsx-pill-bad { margin-left: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill); background: var(--err-bg); color: var(--err); }

.dsx-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dsx-money div { padding: 12px 14px; border-radius: var(--ui-r-sm); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; }
.dsx-money span { font-size: .76rem; font-weight: 600; color: var(--text-2); }
.dsx-money b { font: 800 1.25rem/1.15 var(--f-head); letter-spacing: -.015em; color: var(--text); }
.dsx-money .is-today { background: linear-gradient(135deg, var(--ok-bg), var(--surface-2)); } .dsx-money .is-today b { color: var(--ok); }
.dsx-money .is-month { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); } .dsx-money .is-month b { color: var(--accent-text); }
.dsx-money .is-year { background: linear-gradient(135deg, var(--info-bg), var(--surface-2)); } .dsx-money .is-year b { color: var(--info); }

.dsx-health { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: center; --dsx-h: var(--ok); }
.dsx-h-warn { --dsx-h: #D9A400; } .dsx-h-err { --dsx-h: var(--err); }
.dsx-health svg { width: 52px; height: 52px; grid-row: span 2; }
.dsx-h-track { fill: none; stroke: color-mix(in srgb, var(--dsx-h) 15%, var(--border)); stroke-width: 6; }
.dsx-h-arc { fill: none; stroke: var(--dsx-h); stroke-width: 6; stroke-linecap: round; animation: sccx-fill 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.dsx-health > div:first-of-type { display: grid; } .dsx-health > div:first-of-type span { font-size: .76rem; color: var(--text-2); }
.dsx-health > div:first-of-type b { font: 800 1.35rem/1.15 var(--f-head); color: var(--dsx-h); }
.dsx-health-counts { display: flex; gap: 14px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.dsx-health-counts .is-warn { color: var(--warn); } .dsx-health-counts .is-err { color: var(--err); }
.dsx-issues { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: .84rem; }
.dsx-issues li { display: flex; align-items: center; gap: 8px; }
.dsx-issues li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); flex: none; }
.dsx-issues li.is-warn::before { background: #D9A400; } .dsx-issues li.is-err::before { background: var(--err); }

.dsx-servers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dsx-servers div { padding: 12px 14px; border-radius: var(--ui-r-sm); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; }
.dsx-servers b { font: 800 1.35rem/1.15 var(--f-head); color: var(--text); } .dsx-servers span { font-size: .76rem; color: var(--text-2); }
.dsx-servers .dsx-span { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface-2)), var(--surface-2)); }

.dsx-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dsx-people li { display: flex; align-items: center; gap: 12px; }
.dsx-people li > span:last-child { display: grid; } .dsx-people small { font-size: .76rem; color: var(--text-2); }
.dsx-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center; font-size: .8rem; font-weight: 700; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface-2)), var(--surface-2)); color: var(--text); border: 1px solid var(--border); }
.dsx-avatar .dot-on { position: absolute; right: -1px; bottom: -1px; }

@media (max-width: 1180px) { .dsx-grid { grid-template-columns: minmax(0, 1fr); } .dsx-grid > aside { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 640px) { .dsx-hero { padding: 22px 20px; } .dsx-hero-money { justify-items: start; text-align: left; width: 100%; } .dsx-feed-meta { display: none; } .dsx-figures-note { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dsx-h-arc { animation: none; } .dsx-tile { transition: none; } }

/* ---------- Design layer (v0.20): every staff and client page in the dashboard style ----------
   Visual only (radius, depth, colour, motion): no layout changes, so every page keeps working as before.
   Theme C (brand industrial) keeps its square corners and flat look through the --ui-* tokens. */
:root, .theme-a, .theme-b { --ui-r: 16px; --ui-r-lg: 20px; --ui-r-sm: 12px; --ui-ctl: 10px;
  --ui-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px -20px rgba(16, 24, 40, .28); --ui-lift: 0 14px 30px -18px rgba(16, 24, 40, .35); }
.theme-b { --ui-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 12px 30px -22px rgba(0, 0, 0, .9); --ui-lift: 0 16px 34px -20px rgba(0, 0, 0, .95); }
.theme-c { --ui-r: 3px; --ui-r-lg: 3px; --ui-r-sm: 3px; --ui-ctl: 3px; --ui-shadow: none; --ui-lift: none; }

/* Page background: a soft wash of the accent at the top (A and B). */
.theme-a #main, .theme-b #main { background: radial-gradient(1100px 380px at 12% -120px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }

/* Page header becomes a hero band, like the dashboards. */
#main .page-head { position: relative; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--ui-r-lg); isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 170% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%),
              radial-gradient(80% 150% at 100% 0%, color-mix(in srgb, var(--info) 9%, transparent) 0%, transparent 60%), var(--surface);
  box-shadow: var(--ui-shadow); }
#main .page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 100%); mask-image: linear-gradient(105deg, transparent 45%, #000 100%); }
.theme-c #main .page-head { background: var(--surface); }
.theme-c #main .page-head::after { display: none; }
#main .page-head h1 { letter-spacing: -.02em; }
.theme-c #main .page-head h1 { letter-spacing: var(--h-track); }
#main .crumbs + h1, #main .page-head .crumbs { margin-bottom: 4px; }

/* Cards, tables, stat tiles. */
.card, .table-wrap { border-radius: var(--ui-r); box-shadow: var(--ui-shadow); }
.stat { border-radius: var(--ui-r-sm); box-shadow: var(--ui-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--ui-lift); border-color: var(--border-strong); }
.theme-a .stat-hot, .theme-b .stat-hot { background: linear-gradient(135deg, var(--warn-bg), var(--surface) 75%); border-color: var(--warn-line); }
.theme-a .stat-hot b, .theme-b .stat-hot b { color: var(--warn); }
th { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
tbody tr { transition: background .12s ease; }
tbody tr:hover > td { background: color-mix(in srgb, var(--hover) 70%, transparent); }
tbody tr:last-child > td { border-bottom: 0; }

/* Controls. */
.btn { border-radius: var(--ui-ctl); transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.btn-signal { box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-signal:hover, .btn-ink:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.theme-c .btn, .theme-c .btn-signal { box-shadow: none; transform: none; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], input[type=time], input[type=month], input[type=search], input:not([type]), select, textarea { border-radius: var(--ui-ctl); }
.theme-a input:focus, .theme-a select:focus, .theme-a textarea:focus, .theme-b input:focus, .theme-b select:focus, .theme-b textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 75%, var(--border-strong)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); }

/* Tabs as a soft pill bar (A and B); theme C keeps its underlined tabs. */
.theme-a .tabs, .theme-b .tabs { border-bottom: 0; gap: 4px; padding: 4px; margin: 0 0 20px; width: fit-content; max-width: 100%; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); }
.theme-a .tabs a, .theme-b .tabs a { border-bottom: 0; margin-bottom: 0; padding: 7px 14px; border-radius: var(--r-pill); font-size: .88rem; }
.theme-a .tabs a[aria-current="page"], .theme-b .tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .14); }
.theme-b .tabs a[aria-current="page"] { background: var(--strong); color: #fff; }

/* Notices and flashes with a coloured edge. */
.flash, .notice { border-radius: var(--ui-r-sm); border-left-width: 4px; box-shadow: var(--ui-shadow); }
.flash-ok { border-left-color: var(--ok); } .flash-warn, .notice { border-left-color: var(--warn); } .flash-err { border-left-color: var(--err); }

/* Menu: rounded active item with a glow (A and B). */
.theme-a .nav a, .theme-b .nav a { border-radius: var(--ui-ctl); transition: background .15s ease, color .15s ease; }
.theme-a .nav a[aria-current="page"], .theme-b .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent), 0 6px 16px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.theme-a.layout-top .nav a[aria-current="page"], .theme-b.layout-top .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }

.badge { letter-spacing: .04em; }
.empty { padding: 40px 20px; }

@media (max-width: 640px) { #main .page-head { padding: 18px; } .theme-a .tabs, .theme-b .tabs { width: auto; overflow-x: auto; flex-wrap: nowrap; } .theme-a .tabs a, .theme-b .tabs a { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .stat, .btn, tbody tr { transition: none; } a.stat:hover, .btn-signal:hover, .btn-ink:hover { transform: none; } }
.cdx-hero { align-items: center; }
.cdx-hero-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Marketing (v0.21) */
.b-won, .b-live, .b-running { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.b-new, .b-scheduled, .b-sending { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.b-contacted, .b-quoted { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.b-lost, .b-draft, .b-ended, .b-stopped, .b-cancelled { background: var(--surface-2); color: var(--text-2); }
.check.is-locked { opacity: .6; }
.notice-ok { border-left-color: var(--ok); }
.notice-warn { border-left-color: var(--warn); }
.notice-info { border-left-color: var(--info); }
.plain-list { margin: 0; padding-left: 1.1em; }
.plain-list li { margin: 0 0 6px; }
.msg-body { white-space: normal; overflow-wrap: anywhere; }
.dsx-mkt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dsx-mkt > div { padding: 12px 14px; border-radius: var(--ui-r-sm); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; min-width: 0; }
.dsx-mkt > div span { font-size: .76rem; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsx-mkt > div b { font: 800 1.25rem/1.15 var(--f-head); letter-spacing: -.015em; color: var(--text); }
.dsx-mkt .is-rev { background: linear-gradient(135deg, var(--ok-bg), var(--surface-2)); } .dsx-mkt .is-rev b { color: var(--ok); }
.dsx-mkt .is-ret { grid-column: 1 / -1; margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .86rem; color: var(--text-2); }
.dsx-mkt .is-ret b { color: var(--text); font-weight: 700; }
.dsx-mkt .is-ret small { flex-basis: 100%; font-size: .76rem; opacity: .85; }

/* v0.21.6: "How does this work?" links to the Help centre guides */
.help-link { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.help-link svg { flex: none; opacity: .8; }
.help-link:hover, .help-link:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.help-row { margin: 10px 0 0; }
.ctl-head .help-link, .page-head .help-link { margin-left: auto; }
.page-head .help-link { align-self: center; }

/* v0.21.8 — client list: services column, filter buttons, per-month column */
.cl-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 14px 0 16px; }
.seg-n { font-weight: 500; opacity: .7; margin-left: 3px; }
.cl-svc-link { display: inline-flex; flex-wrap: wrap; gap: 4px; text-decoration: none; }
.cl-svc-link:hover .badge { filter: brightness(.96); }
@media (max-width: 640px) { .cl-bar .seg { flex-wrap: wrap; } }

/* v0.21.8 — leads: close / reopen */
.lead-close { position: relative; }
.lead-close > summary { list-style: none; }
.lead-close > summary::-webkit-details-marker { display: none; }
.lead-close[open] { flex-basis: 100%; }
.lead-close[open] > summary { display: none; }
.lead-close-form { max-width: 560px; margin: 4px 0 0; box-shadow: none; }
.lc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lc-choices { border: 0; padding: 0; margin: 0 0 12px; }
.lc-choices legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.lc-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 6px; cursor: pointer; }
.lc-opt input { margin-top: 3px; flex: none; }
.lc-opt span { display: grid; gap: 2px; }
.lc-opt small { color: var(--text-2); font-size: .82rem; }
.lc-opt:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.lead-close-form:not(:has(input[value="lost"]:checked)) .lc-reason[data-for="lost"],
.lead-close-form:not(:has(input[value="junk"]:checked)) .lc-reason[data-for="junk"] { display: none; }
.lead-closed { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lead-closed form { margin: 0; }
.lead-seg { margin-bottom: 6px; }
.lead-rate { margin: 6px 0 14px; }
.b-junk { background: var(--surface-2); color: var(--text-2); }


/* v0.21.9: server page. One pattern for every card: title left, its main button right; actions in a bar under a rule. */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head .head-acts { margin-left: auto; }
.act-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.act-bar form { margin: 0; display: contents; }
.act-bar .act-end { margin-left: auto; }
.act-note { margin: 10px 0 0; }
.kvm-form .check { margin-top: 4px; }
.ctl-row .btn, .rdns-row .btn { min-width: 112px; }
.rdns-row .btn { min-width: 84px; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.task-list li:first-child { border-top: 0; padding-top: 0; }
.task-list li:last-child { padding-bottom: 0; }
.task-list a { font-weight: 500; }
.side-card .btn-block-sm { width: 100%; }
.side-card .side-save { margin-top: 8px; }
@media (max-width: 520px) {
  .act-bar .btn { flex: 1 1 100%; }
  .act-bar .act-end { margin-left: 0; }
  .card-head .head-acts { margin-left: 0; }
}
#kvm .act-note + details.ctl, #kvm > details.ctl { margin-top: 14px; }
.side-card .rl-status:empty { display: none; }
.side-card [data-rl-go] { margin-bottom: 4px; }

/* v0.21.11: customers online (client page, client list, Live chat) */
.dot-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); margin-right: 8px; vertical-align: middle; flex: none; animation: dg-pulse 2s ease-in-out infinite; }
@keyframes dg-pulse { 50% { box-shadow: 0 0 0 5px var(--ok-bg); } }
@media (prefers-reduced-motion: reduce) { .dot-online { animation: none; } }
.badge.b-online { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.b-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lc-online { border-top: 1px solid var(--border); padding-top: 12px; }
.lc-online h3 { gap: 0; align-items: center; }
.lc-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.lc-on:first-child { border-top: 0; padding-top: 2px; }
.lc-on-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-on-name { font-weight: 600; text-decoration: none; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-on-name:hover { text-decoration: underline; }
.lc-on .lc-item-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-on .btn { flex: none; }
.lc-on-state { font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.chatinv .loginas-pop textarea { min-height: 84px; }
/* Pop-ups that open from the page header (Start chat, Log in as client) must not be cut off by the header's rounded box. */
#main .page-head:has(details[open]) { overflow: visible; z-index: 20; }
.lc-online h3 .lc-n { margin-left: 6px; }
/* v0.21.12: the KVM login appears inside the console card */
.kvm-login { margin-top: 16px; border: 2px solid var(--accent); border-radius: var(--r-sm); background: var(--warn-bg); padding: 14px 16px; }
.kvm-login-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.kvm-login-head .small { color: var(--text-2); }
.kvm-login-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.kvm-login-rows label { font-weight: 600; font-size: .9rem; }
.kvm-login-rows .copy-row { margin: 0; max-width: none; }
.kvm-login-rows input { background: var(--surface); }
@media (max-width: 560px) { .kvm-login-rows { grid-template-columns: 1fr; } .kvm-login-rows label { margin-top: 6px; } }

/* v0.21.16: long lists on the client page show their first rows and a "Show all" button (no scrolling inside the page) */
.is-collapsible tr[hidden], .is-collapsible > li[hidden] { display: none; }
.table-wrap.is-collapsible { margin-bottom: 0; }
.more-bar { display: flex; justify-content: center; margin: 10px 0 22px; }
.ledger-list + .more-bar { margin: 8px 0 0; }
.more-btn { min-width: 140px; }
/* Recent activity for one client: no sideways scrolling */
.act-table { table-layout: fixed; }
.act-table th:nth-child(1) { width: 25%; } .act-table th:nth-child(2) { width: 32%; } .act-table th:nth-child(3) { width: 13%; } .act-table th:nth-child(4) { width: 30%; }
.act-table td { vertical-align: top; overflow-wrap: anywhere; }
.act-sub { display: block; margin-top: 3px; font-size: .8rem; color: var(--text-2); }
.act-action { display: block; overflow-wrap: anywhere; }
.act-meta dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 8px; margin: 0; }
.act-meta dt { color: var(--text-2); font-weight: 500; }
.act-meta dd { margin: 0; overflow-wrap: anywhere; font-family: var(--f-mono, monospace); font-size: .78rem; }
@media (max-width: 640px) { .act-table th:nth-child(4), .act-table td:nth-child(4) { display: none; } .act-table th:nth-child(1) { width: 34%; } .act-table th:nth-child(2) { width: 44%; } .act-table th:nth-child(3) { width: 22%; } }
.act-meta dl { align-items: baseline; line-height: 1.45; }
.act-meta dd:empty::before { content: "–"; color: var(--text-2); }
.act-table th:nth-child(1) { width: 21%; } .act-table th:nth-child(2) { width: 38%; } .act-table th:nth-child(3) { width: 12%; } .act-table th:nth-child(4) { width: 29%; }
.act-action { overflow-wrap: break-word; word-break: normal; }

/* v0.21.14: Credit card on the client page */
.credit-card .card-head { margin-bottom: 10px; }
.credit-bal { font: 700 1.25rem/1 var(--f-body); font-variant-numeric: tabular-nums; }
.btn-block-sm { width: 100%; }
.ledger-h { margin: 20px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.ledger-list li:first-child { border-top: 0; }
.ledger-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.ledger-date { font-size: .78rem; color: var(--text-2); }
.ledger-amt { flex: none; white-space: nowrap; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ledger-amt.is-plus { color: var(--ok); }
.ledger-amt.is-minus { color: var(--err); }

/* v0.21.15: client list fits the page, no sideways scrolling */
.cl-table td { vertical-align: top; }
.cl-who { min-width: 200px; }
.cl-who > a { font-weight: 600; }
.cl-id { margin-left: 6px; font-size: .78rem; color: var(--text-2); }
.cl-sub { display: block; margin-top: 2px; font-size: .84rem; color: var(--text-2); overflow-wrap: anywhere; }
.cl-table .cl-svc-link { max-width: 220px; }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.cl-meta .badge { padding: 3px 7px; font-size: .66rem; }
.cl-table th:first-child { width: 42%; }
@media (max-width: 640px) {
  .cl-table th:nth-child(2), .cl-table td:nth-child(2), .cl-table th:nth-child(3), .cl-table td:nth-child(3) { display: none; }
  .cl-table th, .cl-table td { padding-left: 10px; padding-right: 10px; }
  .cl-who { min-width: 0; }
  .cl-table .cl-svc-link { max-width: 120px; }
}
@media (max-width: 640px) { .cl-table .cl-svc .badge { white-space: normal; } .cl-table th { white-space: normal; } }

/* v0.21.17: live chat composer: one box (text on top, quick replies + send underneath) */
.lc-compose { padding: 12px; }
.lc-box { border: 1px solid var(--border-strong, var(--border)); border-radius: var(--r-md, 10px); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.lc-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.lc-box textarea { display: block; width: 100%; border: 0; box-shadow: none; outline: 0; background: transparent; resize: none; min-height: 64px; max-height: 200px; padding: 12px 14px 6px; font: inherit; line-height: 1.5; }
.lc-box textarea:focus { box-shadow: none; outline: 0; }
.lc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 8px 10px; }
.lc-bar .lc-tools { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 10px; }
.lc-bar select[data-quick] { width: auto; flex: none; min-height: 32px; height: 32px; padding: 4px 28px 4px 10px; font-size: .84rem; border-radius: var(--r-sm, 8px); }
.lc-hint { font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lc-bar .btn { flex: none; min-width: 84px; }
@media (max-width: 560px) { .lc-hint { display: none; } }
.lc-bar select[data-quick] { max-width: 170px; }
/* Keep the reply box clear of the floating team "Chat" button */
body:has(.chat-fab) .lc { height: calc(100vh - 262px); }
@media (max-width: 1280px) { body:has(.chat-fab) .lc { height: auto; } body:has(.chat-fab) .lc-side, body:has(.chat-fab) .lc-main { height: calc(100vh - 262px); } }
@media (max-width: 820px) { body:has(.chat-fab) .lc-side { height: auto; } body:has(.chat-fab) .lc-main { height: 75vh; } body:has(.chat-fab) .lc { margin-bottom: 76px; } }
.act-time { display: block; white-space: nowrap; }

/* v0.22 multi-currency: price editor, currency chooser */
.price-table td { vertical-align: middle; }
.price-in { width: 110px; max-width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
.price-in::placeholder { color: var(--text-3, #9aa3ad); }
.cur-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cur-pick select { width: auto; min-width: 150px; }

/* v0.22.4: a note right under buttons, a form, a summary or a chooser gets breathing room (it had only a bottom margin). */
:is(.actions, form, dl, .sum, .cur-row, select, .table-wrap, .act-bar, .btn, .btn-block) + p,
:is(.actions, form, dl, .sum, .cur-row, .act-bar) + .small,
.cur-box > p:first-child { margin-top: 12px; }
.cur-box { margin-top: 14px; }
.cur-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }

/* v0.23 billing terms: the term chooser on the order page */
.term-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.term-opt { position: relative; display: block; border: 1.5px solid var(--line, #d5d9dc); border-radius: 10px; padding: 12px 14px 12px 40px; cursor: pointer; background: var(--card, #fff); transition: border-color .15s, box-shadow .15s; }
.term-opt:hover { border-color: var(--ink-3, #8a949a); }
.term-opt.is-on, .term-opt:has(input:checked) { border-color: var(--signal, #F2B300); box-shadow: 0 0 0 3px rgba(242,179,0,.18); }
.term-opt input { position: absolute; left: 14px; top: 15px; margin: 0; width: 16px; height: 16px; accent-color: var(--signal, #F2B300); }
.term-body { display: flex; flex-direction: column; gap: 3px; }
.term-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.term-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.term-line { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.term-line select { width: auto; padding: 3px 6px; font-size: .85rem; }
.term-price { white-space: nowrap; }
.term-price .muted { font-weight: 500; font-size: .85em; }
.term-pick + p { margin-top: 12px; }
/* v0.23.1: plan code / location sit clear of the spec box; term card prices fit narrow cards (long ₹ amounts) */
.plate-head + .plate-specs { margin-top: 12px; }
.term-price { white-space: normal; display: flex; flex-direction: column; gap: 1px; }
.term-price .amt-n { white-space: nowrap; font-size: 1.05rem; }
.term-price .muted { font-size: .82em; }
.term-opt { min-width: 0; }
.term-body > .small { white-space: nowrap; }

/* v0.25.1 Provisioning nodes (Settings → Server controls) */
.pn { display: grid; gap: 18px; }
.pn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pn-head h3 { margin: 0 0 4px; font-size: var(--h2); }
.pn-head p { margin: 0; color: var(--text-2); font-size: .9rem; max-width: 60ch; }
.pn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pn-node { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.pn-node.is-paused { opacity: .7; }
.pn-node-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.pn-node-text { flex: 1; min-width: 0; }
.pn-node-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-node-meta { color: var(--text-2); font-size: .85rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-node-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pn-node-actions form { margin: 0; }
.pn-danger { color: var(--err); }
.pn-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.pn-logo.vz { background: var(--info-bg); color: var(--info); }
.pn-logo.sv { background: var(--ok-bg); color: var(--ok); }
.pn-edit { border-top: 1px solid var(--border); }
.pn-edit > summary { padding: 8px 16px; font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer; list-style: none; }
.pn-edit > summary::-webkit-details-marker { display: none; }
.pn-edit > summary::after { content: " ▾"; }
.pn-edit[open] > summary::after { content: " ▴"; }
.pn-edit .pn-form { padding: 0 16px 16px; }
.pn-form { display: grid; gap: 14px; }
.pn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.pn-grid .field { margin: 0; }
@media (max-width: 720px) { .pn-grid { grid-template-columns: 1fr; } .pn-node-main { flex-wrap: wrap; } }
.pn-add { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 0 18px; background: var(--surface-2); }
.pn-add[open] { border-style: solid; border-color: var(--border); background: var(--surface); padding-bottom: 18px; }
.pn-add > summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.pn-add > summary::-webkit-details-marker { display: none; }
.pn-add > summary::before { content: "+ "; color: var(--accent-text); }
.pn-types { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pn-types legend { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.pn-type { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; background: var(--surface); }
.pn-type input { position: absolute; opacity: 0; pointer-events: none; }
.pn-type b { display: block; }
.pn-type small { color: var(--text-2); font-size: .8rem; }
.pn-type:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pn-type:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pn-adv > summary { font-size: .88rem; font-weight: 600; color: var(--text-2); cursor: pointer; padding: 4px 0; }
.pn-adv[open] { display: grid; gap: 10px; padding-top: 4px; }
.pn-note { margin: 0; font-size: .85rem; color: var(--text-2); }
.pn-how { margin-top: 4px; font-size: .82rem; }
.pn-how summary { cursor: pointer; color: var(--accent-text); }
.pn-how code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--code-bg); color: var(--code-text); white-space: pre-wrap; word-break: break-all; font-size: .78rem; }
.pn-check { display: flex; gap: 10px; align-items: flex-start; grid-column: 1 / -1; padding: 6px 0; }
.pn-check.inline { grid-column: auto; padding: 0; align-items: center; }
.pn-check small { display: block; color: var(--text-2); font-size: .8rem; }
.pn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-foot .btn:only-child { margin-left: auto; }
/* Show only what fits the chosen type (needs :has; older browsers simply show both). */
.pn-form.is-vz .for-sv, .pn-form.is-sv .for-vz { display: none; }
.pn-form:not(.is-vz):not(.is-sv):has(input[name="provider"][value="solusvm1"]:checked) .for-vz { display: none; }
.pn-form:not(.is-vz):not(.is-sv):not(:has(input[name="provider"][value="solusvm1"]:checked)) .for-sv { display: none; }
@media (max-width: 720px) {
  .pn-node-text { flex: 1 1 calc(100% - 52px); }
  .pn-node-actions { flex: 1 1 100%; }
  .pn-types { grid-template-columns: 1fr; }
  .pn-head p { font-size: .85rem; }
}
.pn-logo.rb { background: var(--err-bg); color: var(--err); }
.pn-foot .pn-note { flex: 1; }
.pn, .pn-list { grid-template-columns: minmax(0, 1fr); }
.pn > *, .pn-node, .pn-node-main { min-width: 0; }
@media (max-width: 720px) { .pn-node-meta { white-space: normal; } }

/* v0.26 plan provisioning card */
.pp { display: grid; gap: 16px; }
.pp-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-modes a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.pp-modes a:hover { border-color: var(--text-3, var(--border)); }
.pp-modes a[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pp-modes a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pp-modes b { display: block; }
.pp-modes small { display: block; color: var(--text-2); font-size: .8rem; }
.pp-modes a > span:last-child { min-width: 0; }
.pp-node { display: flex; align-items: flex-end; gap: 10px; }
.pp-node .field { flex: 1; margin: 0; }
.pp-form { display: grid; gap: 16px; }
.pp-form .field { min-width: 0; }
.pp-copy { margin-top: 8px; font-size: .85rem; font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.pp-copy input { margin-top: 3px; }
.pp-os-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.pp-label { font-size: .85rem; font-weight: 600; }
.pp-os { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pp-os li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); }
.pp-os li + li { border-top: 1px solid var(--border); }
.pp-os li:has(.pp-os-pick input:checked) { background: var(--accent-soft); }
.pp-os li:not(:has(.pp-os-pick input:checked)) > input[type="text"],
.pp-os li:not(:has(.pp-os-pick input:checked)) .pp-def { opacity: .45; }
.pp-os-pick { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; min-width: 0; margin: 0; }
.pp-os-src { min-width: 0; overflow-wrap: anywhere; }
.pp-os-src small { font-weight: 500; font-size: .7rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 99px; }
.pp-os li > input[type="text"] { width: 100%; min-width: 0; padding: 7px 10px; font-size: .9rem; }
.pp-def { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); cursor: pointer; margin: 0; white-space: nowrap; }
.pp-def:has(input:checked) { color: var(--accent); font-weight: 600; }
.pp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.pp-link:hover { text-decoration: none; }
.pp-empty { padding: 18px; border: 1.5px dashed var(--border); border-radius: var(--r-md); color: var(--text-2); text-align: center; }
@media (max-width: 640px) {
  .pp-modes { grid-template-columns: 1fr; }
  .pp-os li { grid-template-columns: minmax(0, 1fr) auto; }
  .pp-os li > input[type="text"] { grid-column: 1 / -1; grid-row: 2; }
  .pp .pn-foot { flex-direction: column; align-items: stretch; }
  .pp .pn-foot .btn { width: 100%; }
}

/* v0.27 masters list on the plan provisioning card */
.pp-list-head, .pp-edit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pp-list-head { flex-direction: column; align-items: flex-start; }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-pl { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.pp-pl.is-off { opacity: .6; }
.pp-num { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--surface-2, var(--border)); color: var(--text-2); }
.pp-pl-main { min-width: 0; display: grid; gap: 2px; }
.pp-pl-main .pn-meta { display: block; white-space: normal; overflow-wrap: anywhere; }
.pp-role { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.pp-role.is-first { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.pp-warn { color: var(--warn, #9a6700); }
.pp-pl-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pp-pl-act form { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.pp-icon { min-width: 32px; padding-inline: 8px; }
.pp-remove { color: var(--danger, #b42318); }
.pp-add { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border: 1.5px dashed var(--border); border-radius: var(--r-md); color: var(--text); text-decoration: none; font-weight: 600; }
.pp-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.pp-add small { font-weight: 400; color: var(--text-2); }
.pp-add > span { color: var(--accent); font-size: 1.1rem; }
.pp-login { display: grid; gap: 10px; }
@media (max-width: 640px) {
  .pp-pl { grid-template-columns: auto auto minmax(0, 1fr); }
  .pp-pl-act { grid-column: 1 / -1; justify-content: flex-start; }
}
.pp-pl-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pp-pl-main .pn-meta { font-size: .85rem; color: var(--text-2); }
.pp-pl-main .pp-warn { color: var(--warn, #9a6700); }

/* v0.32 order page groups */
.order-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.order-groups a { padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; font-size: .85rem; text-decoration: none; color: var(--text); }
.order-groups a:hover { border-color: var(--accent); background: var(--accent-soft); }
.order-group-h { margin: 18px 0 8px; font-size: 1.05rem; }
.plan-features { margin: 12px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; font-size: .9rem; color: var(--text-2); }
.plan-features li { break-inside: avoid; margin: 2px 0; }
@media (max-width: 640px) { .plan-features { columns: 1; } }
/* v0.33 Website → Prices for generator websites */
.site-links { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-links .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.site-links form { margin: 0; }
.filters-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 18px; }
.filters-row select, .filters-row input[type=search] { width: auto; min-width: 160px; }
.site-prices .row-group th { background: var(--bg-2, #f4f5f7); text-align: left; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); padding: 10px 14px; }
.site-prices input.w-sm { width: 96px; }
.filters-row.plain { padding: 0 0 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg a { padding: 7px 12px; font-size: .9rem; text-decoration: none; color: var(--text-2); }
.seg a[aria-current] { background: var(--ink, #14181c); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* v0.34.2 currency picker on order pages */
.cur-pick-order { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: .9rem; color: var(--text-2); }
.cur-pick-order select { width: auto; min-width: 104px; padding: 6px 30px 6px 10px; }
.cfg-head { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; margin: 0 0 24px; }
.cfg-head h1 { margin: 0 auto 0 0; }
@media (max-width: 640px) { .cur-pick-order { margin: 0; } .cfg-head { margin-bottom: 20px; } .cfg-head .cur-pick-order { margin: 0; } }
/* v0.35: short sign-up and welcome discount */
.mid-narrow { max-width: 460px; }
.welcome-pitch { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin: 0 0 16px; border: 1px dashed var(--ok); border-radius: var(--r-sm); background: var(--ok-bg); font-weight: 600; font-size: .95rem; }
.welcome-pitch .ico { flex: none; width: 20px; height: 20px; color: var(--ok); }

/* ---------- v0.35.3: header cart button, cart slide-over (desktop) / bottom sheet (phones), "added" toast ---------- */
.cart-btn { position: relative; order: 2; flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--hdr-strong); border: 1px solid var(--hdr-border); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cart-btn:hover { border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(17, 24, 39, .08); }
.cart-btn:active { transform: scale(.96); }
.cart-btn .ico { width: 20px; height: 20px; }
.cart-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--hdr-bg); font: 800 .7rem/16px var(--f-body); text-align: center; }
.top-row > .logo { order: 0; } .top-row > .nav-panel, .top-row > .top-actions { order: 1; } .top-row > .nav-toggle { order: 3; }
.layout-top .top-row > .cart-btn { margin-left: 4px; }
@media (min-width: 901px) {
  .layout-side .top-row > .cart-btn { position: fixed; top: 18px; right: 24px; z-index: 30; box-shadow: 0 6px 18px rgba(17, 24, 39, .08); }
  .layout-side.has-cart main .wrap { padding-right: 88px; }
}
@media (max-width: 900px) {
  .top-row > .cart-btn { margin-left: auto; }
  .top-row > .cart-btn ~ .nav-toggle { margin-left: 0; }
  .top-row > .cart-btn ~ .top-actions { margin-left: 0; }
  .layout-top .top-row > .top-actions { order: 1; }
}

.cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 90; }
.cd-scrim { position: absolute; inset: 0; background: rgba(17, 24, 39, .38); opacity: 0; transition: opacity .25s ease; }
.cd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; box-sizing: border-box; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); box-shadow: -24px 0 60px rgba(17, 24, 39, .2); transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.cart-drawer.is-open .cd-scrim { opacity: 1; }
.cart-drawer.is-open .cd-panel { transform: none; }
.cd-grab { display: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.cd-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.cd-head p { margin: 2px 0 0; font-size: .8rem; color: var(--text-2); }
.cd-x { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cd-x:hover { background: var(--hover); }
.cd-body { flex: 1 1 auto; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.cd-line { display: flex; gap: 12px; align-items: flex-start; }
.cd-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.cd-what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cd-what b { font-size: .95rem; }
.cd-what span { font-size: .8rem; color: var(--text-2); }
.cd-what .cd-err { color: var(--err); font-weight: 600; }
.cd-line.is-bad .cd-price { text-decoration: line-through; color: var(--text-2); }
.cd-price { flex: none; font-weight: 700; font-size: .95rem; }
.cd-disc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: .85rem; font-weight: 600; }
.cd-disc span { display: inline-flex; align-items: center; gap: 8px; }
.cd-disc .ico { width: 16px; height: 16px; }
.cd-disc.is-wait { background: var(--surface-2); color: var(--text-2); font-weight: 500; }
.cd-edit { align-self: flex-start; font-size: .82rem; color: var(--text-2); }
.cd-foot { padding: 18px 24px 22px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.cd-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--text-2); }
.cd-total { color: var(--text); font-weight: 700; }
.cd-total b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.cd-go { min-height: 52px; font-size: 1rem; gap: 8px; border-radius: 14px; }
.cd-go .ico { width: 18px; height: 18px; }
.cd-go[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.cd-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .78rem; color: var(--text-2); }
.cd-note .ico { width: 14px; height: 14px; }
html.cart-open { overflow: hidden; }
@media (max-width: 640px) {
  .cd-panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(100%); box-shadow: 0 -20px 50px rgba(17, 24, 39, .22); }
  .cd-grab { display: block; align-self: center; width: 40px; height: 5px; margin: 10px 0 0; border-radius: 3px; background: var(--border); }
  .cd-head { padding: 14px 20px 16px; } .cd-body { padding: 16px 20px; } .cd-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .cd-panel, .cd-scrim, .toast { transition: none; } }

.toast { position: fixed; left: 50%; top: 20px; z-index: 95; transform: translate(-50%, -16px); opacity: 0; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 9px 16px 9px 9px; border-radius: 999px; background: #111827; color: #FFFFFF; font-size: .88rem; box-shadow: 0 14px 34px rgba(17, 24, 39, .28); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.no-js .toast, html:not(.js) .toast { position: static; transform: none; opacity: 1; margin: 12px auto; width: max-content; }
.toast-ok { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #047857; display: inline-flex; align-items: center; justify-content: center; }
.toast-ok .ico { width: 16px; height: 16px; color: #FFFFFF; stroke-width: 2.6; }
.toast a { color: var(--accent); font-weight: 700; text-decoration: none; margin-left: 4px; white-space: nowrap; }
.toast a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .toast { left: 12px; right: 12px; top: 12px; transform: translateY(-16px); border-radius: 16px; padding: 10px 14px 10px 10px; font-size: .85rem; }
  .toast.is-on { transform: none; }
  .toast > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
}

/* ---------- v0.36: plan list (order page): line tabs, category strip, sticky tools, plan cards ---------- */
.cat-intro { margin: -4px 0 18px; }
.cat-bar { position: sticky; top: 0; z-index: 20; margin: 0 0 22px; padding: 10px 0 12px; display: flex; flex-direction: column; gap: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.cat-bar.is-stuck { box-shadow: 0 10px 24px -18px rgba(17, 24, 39, .35); }
.cat-lines { display: flex; width: max-content; margin: 0 0 12px; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; }
.cat-lines a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.cat-lines a span { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.cat-lines a:hover { color: var(--text); background: var(--hover); }
.cat-lines a[aria-current="page"] { background: var(--strong); color: var(--on-strong); }
.cat-lines a[aria-current="page"] span { background: var(--accent); color: var(--on-accent); }
.cat-groups { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: thin; }
.cat-groups a { scroll-snap-align: start; flex: none; display: flex; flex-direction: column; gap: 2px; min-width: 128px; padding: 10px 14px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-groups a b { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.cat-groups a span { font-size: .74rem; color: var(--text-2); white-space: nowrap; }
.cat-groups a:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cat-groups a[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 18px -8px rgba(242, 179, 0, .6); background: var(--accent-soft); }
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cat-tools[hidden] { display: none; }
.cat-search { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.cat-search .ico { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.cat-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: .92rem; color: var(--text); box-sizing: border-box; }
.cat-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cat-sel select { height: 44px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--border); background-color: var(--surface); font: inherit; font-size: .9rem; color: var(--text); width: auto; }
.cat-count { margin-left: auto; font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.cat-sec { margin: 0 0 30px; scroll-margin-top: 190px; }
.cat-sec[hidden] { display: none; }
.cat-sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.cat-sec-h h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.cat-sec-h span { font-size: .82rem; color: var(--text-2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.cat-empty { padding: 40px 20px; text-align: center; color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: 16px; }
.cat-empty[hidden] { display: none; }

.pc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pc[hidden] { display: none; }
.pc:hover, .pc:focus-within { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 70%, var(--border)); box-shadow: 0 18px 36px -20px rgba(17, 24, 39, .35); }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.pc-tier { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.pc-t2 .pc-tier { background: #EAF1FF; color: #1D4ED8; }
.pc-t3 .pc-tier { background: var(--accent-soft); color: var(--accent-text); }
.pc-t4 .pc-tier { background: var(--strong); color: var(--on-strong); }
.pc-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--text-2); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-loc .ico { width: 14px; height: 14px; flex: none; }
.pc-name { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.pc-name a { color: var(--text); text-decoration: none; }
.pc-name a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.pc-name a:focus-visible { outline: none; }
.pc:has(.pc-name a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.pc-specs li { display: flex; align-items: flex-start; gap: 9px; font-size: .84rem; color: var(--text); line-height: 1.35; }
.pc-specs .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--text-2); }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--border); }
.pc-price { display: flex; flex-direction: column; min-width: 0; }
.pc-amt { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.pc-amt small { font-size: .62em; font-weight: 700; color: var(--text-2); letter-spacing: 0; }
.pc-per { font-size: .74rem; color: var(--text-2); }
.pc-setup { font-size: .72rem; color: var(--ok); font-weight: 600; margin-top: 2px; }
.pc-go { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .86rem; text-decoration: none; transition: background .15s, gap .15s; }
.pc-go .ico { width: 16px; height: 16px; }
.pc:hover .pc-go { background: var(--accent-hover); gap: 9px; }
@media (max-width: 640px) {
  .cat-bar { position: static; padding-top: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .cat-count { margin-left: 0; width: 100%; }
  .cat-sel { flex: 1 1 140px; } .cat-sel select { width: 100%; }
  .pc-amt { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .pc, .cat-groups a { transition: none; } .pc:hover { transform: none; } }

/* v0.36.1: arrows on the category strip (shown only when it overflows; edges fade) */
.cat-strip { position: relative; }
.cat-strip.can-prev .cat-groups { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px); mask-image: linear-gradient(to right, transparent 0, #000 64px); }
.cat-strip.can-next .cat-groups { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 64px); mask-image: linear-gradient(to left, transparent 0, #000 64px); }
.cat-strip.can-prev.can-next .cat-groups { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); }
.cat-arrow { position: absolute; top: calc(50% - 4px); z-index: 2; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(17, 24, 39, .14); cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; }
.cat-arrow[hidden] { display: none; }
.cat-arrow:hover { box-shadow: 0 8px 22px rgba(17, 24, 39, .2); border-color: var(--border-strong); }
.cat-arrow:active { transform: translateY(-50%) scale(.94); }
.cat-arrow .ico { width: 18px; height: 18px; }
.cat-prev { left: -6px; } .cat-prev .ico { transform: rotate(180deg); }
.cat-next { right: -6px; }
.cat-groups { scroll-behavior: smooth; }
@media (hover: none) and (max-width: 640px) { .cat-arrow { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .cat-groups { scroll-behavior: auto; } }

/* =====================================================================================================
   v0.37: website themes for HomeRDP (D top menu, E navy sidebar, F light sidebar). Colours, type and shapes from
   homerdp.com: ink #0E1B33, orange #FF7A45, blue #2F7BFF, Bricolage Grotesque headings over Inter, big radii.
   Shared rules use .site-look; each theme then sets its own header / menu.
   ===================================================================================================== */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
.theme-d, .theme-e, .theme-f {
  --bg: #F6F8FC; --surface: #FFFFFF; --surface-2: #F3F6FB; --hover: #EEF2F8; --text: #0E1B33; --text-2: #3C4A66;
  --border: #E2E8F3; --border-strong: #7D8AA3; --input-bg: #FFFFFF;
  --accent: #0E1B33; --accent-hover: #1E2D4D; --on-accent: #FFFFFF; --accent-soft: #FFF4EE; --accent-text: #B4471B;
  --strong: #0E1B33; --strong-hover: #1E2D4D; --on-strong: #FFFFFF; --strong-border: #0E1B33;
  --ghost-border: #D3DDEE; --ghost-hover: #EEF2F8;
  --hdr-bg: #FFFFFF; --hdr-text: #3C4A66; --hdr-strong: #0E1B33; --hdr-hover: #EEF2F8; --hdr-border: #E2E8F3;
  --cur-bg: #FFF4EE; --cur-text: #0E1B33; --cur-ico: #FF7A45;
  --ok: #15803D; --ok-bg: #ECFDF3; --ok-line: #A6E9BF; --warn: #8A3A12; --warn-bg: #FFF4EE; --warn-line: #FFD9C6;
  --err: #B42318; --err-bg: #FEF3F2; --err-line: #FECDCA; --info: #1D5FD6; --info-bg: #EAF3FF;
  --code-bg: #0E1B33; --code-text: #FFB089; --focus: #2F7BFF;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --h-weight: 800; --h-case: none; --h-track: -.03em; --h1: clamp(1.8rem, 3vw, 2.35rem); --h2: 1.25rem; --h3: 1.05rem;
  --label-case: uppercase; --label-track: .06em;
  --r-sm: 12px; --r-md: 18px; --shadow: 0 1px 2px rgba(14, 27, 51, .04);
  --ui-r: 18px; --ui-r-lg: 22px; --ui-r-sm: 12px; --ui-ctl: 12px;
  --ui-shadow: 0 1px 2px rgba(14, 27, 51, .04), 0 18px 40px -30px rgba(14, 27, 51, .35); --ui-lift: 0 24px 50px -28px rgba(14, 27, 51, .4);
  --site-orange: #FF7A45; --site-blue: #2F7BFF; --site-orange-ink: #8A3A12; --site-blue-bg: #EAF3FF; --site-blue-ink: #12408F;
  /* v0.66.8: every brand colour the website looks use, as tokens, so another brand (AmazingRDP) can bring its own palette */
  --site-ink: #0E1B33; --site-ink-2: #1E2D4D; --site-ink-3: #13244A; --site-ink-rgb: 14, 27, 51;
  --site-orange-rgb: 255, 122, 69; --site-orange-hi: #FF8A4C; --site-orange-lo: #FF5B3A; --site-orange-deep-rgb: 255, 106, 64;
  --site-orange-soft: #FFF4EE; --site-orange-soft-2: #FFF1EA; --site-orange-line: #FFD9C6; --site-orange-light: #FFB089;
  --site-blue-rgb: 47, 123, 255; --site-nav-text: #B8C2D6; --site-nav-dim: #5B6884;
}
/* v0.66.9: AmazingRDP wears the same three website looks in design F's colours: ink #0B1020, blue #3D5AFE, amber #FFC24B,
   grey #F5F7FB, Outfit headings over Inter, slightly rounded corners. Two classes win over the HomeRDP block above. */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.brand-amazingrdp.theme-d, .brand-amazingrdp.theme-e, .brand-amazingrdp.theme-f {
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #F0F3FA; --hover: #ECEFFA; --text: #0B1020; --text-2: #3A4360;
  --border: #E1E6F2; --border-strong: #7C86A3; --input-bg: #FFFFFF;
  --accent: #0B1020; --accent-hover: #1A2140; --on-accent: #FFFFFF; --accent-soft: #FFF7E3; --accent-text: #8A5A00;
  --strong: #0B1020; --strong-hover: #1A2140; --on-strong: #FFFFFF; --strong-border: #0B1020;
  --ghost-border: #D5DCEC; --ghost-hover: #ECEFFA;
  --ok: #15803D; --ok-bg: #ECFDF3; --ok-line: #A6E9BF; --warn: #8A5A00; --warn-bg: #FFF7E3; --warn-line: #FFE3A3;
  --err: #B42318; --err-bg: #FEF3F2; --err-line: #FECDCA; --info: #2A3FCC; --info-bg: #EEF1FF;
  --code-bg: #0B1020; --code-text: #FFD98A; --focus: #3D5AFE;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: "Outfit", "Inter", system-ui, sans-serif;
  --h-weight: 700; --h-track: -.02em;
  --r-sm: 10px; --r-md: 14px; --ui-r: 14px; --ui-r-lg: 18px; --ui-r-sm: 10px; --ui-ctl: 10px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .05);
  --ui-shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 18px 40px -30px rgba(11, 16, 32, .35); --ui-lift: 0 24px 50px -28px rgba(11, 16, 32, .4);
  --site-orange: #FFC24B; --site-blue: #3D5AFE; --site-orange-ink: #8A5A00; --site-blue-bg: #EEF1FF; --site-blue-ink: #2A3FCC;
  --site-ink: #0B1020; --site-ink-2: #1A2140; --site-ink-3: #141B36; --site-ink-rgb: 11, 16, 32;
  --site-orange-rgb: 255, 194, 75; --site-orange-hi: #FFD06E; --site-orange-lo: #FFB627; --site-orange-deep-rgb: 245, 170, 30;
  --site-orange-soft: #FFF7E3; --site-orange-soft-2: #FFF3D6; --site-orange-line: #FFE3A3; --site-orange-light: #FFD98A;
  --site-blue-rgb: 61, 90, 254; --site-nav-text: #B9C1DA; --site-nav-dim: #5D6789;
}
/* menus: D's top bar and F's light sidebar in AmazingRDP's greys; E keeps its own ink sidebar (the .theme-e block above,
   which reads --site-ink and the amber --site-orange for the open item) */
.brand-amazingrdp.theme-d, .brand-amazingrdp.theme-f { --hdr-text: #3A4360; --hdr-strong: #0B1020; --hdr-border: #E1E6F2; }
.brand-amazingrdp.theme-d { --hdr-bg: #FFFFFF; --hdr-hover: #ECEFFA; --cur-bg: #EEF1FF; --cur-text: #0B1020; --cur-ico: #3D5AFE; }
/* amber is light: words on it are ink, never white */
.brand-amazingrdp.theme-e .guest-join, .brand-amazingrdp.theme-e .top-row:has(.guest-actions):has(> .cart-btn) .guest-login { color: var(--site-ink); }
.brand-amazingrdp.site-look .logo b { color: var(--site-blue); }
.brand-amazingrdp.theme-e .logo b { color: #8496FF; }
.brand-amazingrdp.theme-e .logo-ar .ar-stand { fill: #FFFFFF; }
.brand-amazingrdp.site-look .logo-mark.logo-ar { width: 32px; height: 34px; }
.brand-amazingrdp .sw-d i:nth-child(2), .brand-amazingrdp .sw-e i:nth-child(1) { background: #0B1020; }
.brand-amazingrdp .sw-d i:nth-child(3), .brand-amazingrdp .sw-e i:nth-child(3) { background: #FFC24B; } .brand-amazingrdp .sw-f i:nth-child(3) { background: #3D5AFE; }
.brand-amazingrdp .sw-d, .brand-amazingrdp .sw-e, .brand-amazingrdp .sw-f { background: #F5F7FB; }
/* the website's dotted paper with soft orange and blue light */
.theme-d body, .theme-e #main, .theme-f #main {
  background-color: var(--bg);
  background-image: radial-gradient(640px 420px at 6% 0%, rgba(var(--site-orange-rgb), .11), transparent 70%), radial-gradient(700px 460px at 100% 0%, rgba(var(--site-blue-rgb), .11), transparent 70%),
    radial-gradient(rgba(var(--site-ink-rgb), .085) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px; background-attachment: scroll; }
.site-look h1, .site-look h2, .site-look .pc-name, .site-look .cd-head h2 { font-family: var(--f-head); }
.site-look .logo { font: 800 1.3rem/1 var(--f-head); letter-spacing: -.02em; }
.site-look .logo-mark { width: 32px; height: 32px; }
.site-look .btn { border-radius: 14px; font-weight: 700; }
.site-look .btn-signal { box-shadow: 0 10px 22px -14px rgba(var(--site-ink-rgb), .7); }
.site-look .card, .site-look .stat, .site-look .table-wrap { border-radius: var(--ui-r); }
.site-look main a:not(.btn):not(.stat):not(.pc-go):not(.cd-go):hover { color: var(--site-orange-ink); }
.site-look .avatar { border-radius: 12px; background: var(--site-blue); color: #FFFFFF; border: 0; font-weight: 800; }
.site-look #main .page-head { background: radial-gradient(120% 170% at 0% 0%, rgba(var(--site-orange-rgb), .12) 0%, transparent 55%), radial-gradient(80% 150% at 100% 0%, rgba(var(--site-blue-rgb), .12) 0%, transparent 60%), var(--surface); }
.site-look #main .page-head h1 { font-weight: 800; letter-spacing: -.035em; }
/* plan list and cart in the website style: orange highlights, navy actions */
.site-look .cart-n { background: var(--site-orange); color: var(--site-ink); }
.site-look .cat-lines { border-radius: 999px; padding: 5px; }
.site-look .cat-lines a { border-radius: 999px; }
.site-look .cat-lines a[aria-current="page"] span { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
.site-look .cat-groups a { border-radius: 16px; }
.site-look .cat-groups a[aria-current="true"] { border-color: var(--site-orange); box-shadow: 0 0 0 1px var(--site-orange), 0 10px 22px -14px rgba(var(--site-orange-rgb), .7); background: var(--site-orange-soft); }
.site-look .cat-search input, .site-look .cat-sel select { border-radius: 14px; height: 48px; }
.site-look .cat-search input:focus { outline-color: var(--site-blue); }
.site-look .pc { border-radius: 22px; padding: 20px; }
.site-look .pc:hover, .site-look .pc:focus-within { border-color: var(--site-orange); box-shadow: 0 24px 50px -28px rgba(var(--site-ink-rgb), .4); }
.site-look .pc-name { font-size: 1.2rem; letter-spacing: -.02em; }
.site-look .pc-specs .ico { color: var(--site-orange); }
.site-look .pc-loc { font-family: var(--f-mono); font-size: .72rem; }
.site-look .pc-t1 .pc-tier { background: var(--hover); color: var(--text-2); }
.site-look .pc-t2 .pc-tier { background: var(--site-blue-bg); color: var(--site-blue-ink); }
.site-look .pc-t3 .pc-tier { background: var(--site-orange-soft); color: var(--site-orange-ink); box-shadow: inset 0 0 0 1px var(--site-orange-line); }
.site-look .pc-t4 .pc-tier { background: var(--site-ink); color: #FFFFFF; }
.site-look .pc-amt { font-family: var(--f-head); font-size: 1.75rem; letter-spacing: -.035em; }
.site-look .pc-foot { border-top-style: solid; }
.site-look .pc-go { height: 44px; border-radius: 14px; background: var(--site-ink); color: #FFFFFF; }
.site-look .pc:hover .pc-go { background: var(--site-ink-2); }
.site-look .cd-ico { background: var(--site-orange-soft); color: var(--site-orange); }
.site-look .cd-total b { font-family: var(--f-head); }
.site-look .cd-go { background: var(--site-ink); color: #FFFFFF; }
.site-look .welcome-pitch { border-color: var(--site-orange); background: var(--site-orange-soft); }
.site-look .welcome-pitch .ico { color: var(--site-orange); }
.site-look .toast-ok { background: #16A34A; }
.site-look .toast a { color: var(--site-orange-light); }
.sw-d { background: #F6F8FC; } .sw-d i:nth-child(1) { background: #FFFFFF; box-shadow: 0 0 0 1px #E2E8F3; } .sw-d i:nth-child(2) { background: #0E1B33; } .sw-d i:nth-child(3) { background: #FF7A45; }
.sw-e { background: #F6F8FC; } .sw-e i:nth-child(1) { background: #0E1B33; } .sw-e i:nth-child(2) { background: #FFFFFF; box-shadow: 0 0 0 1px #E2E8F3; } .sw-e i:nth-child(3) { background: #FF7A45; }
.sw-f { background: #F6F8FC; } .sw-f i:nth-child(1) { background: #EEF2F8; box-shadow: 0 0 0 1px #E2E8F3; } .sw-f i:nth-child(2) { background: #FFFFFF; box-shadow: 0 0 0 1px #E2E8F3; } .sw-f i:nth-child(3) { background: #2F7BFF; }

/* D: website top menu: a floating white pill bar like homerdp.com */
.theme-d.layout-top .top { background: transparent; color: var(--hdr-text); padding: 14px 0 0; position: sticky; top: 0; z-index: 40; }
.theme-d.layout-top .top-row { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 18px 40px -30px rgba(var(--site-ink-rgb), .45); padding: 8px 10px 8px 18px; min-height: 64px; }
.theme-d.layout-top .nav { justify-content: center; }
.theme-d.layout-top .nav a { border-radius: 999px; font-weight: 600; color: var(--text); padding: 9px 14px; }
.theme-d.layout-top .nav a[aria-current="page"] { background: var(--site-orange-soft); color: var(--site-orange-ink); }
.theme-d.layout-top .nav a[aria-current="page"] .ico { color: var(--site-orange); }
.theme-d.layout-top .logo .tag { background: var(--hover); color: var(--site-nav-dim); }
.theme-d.layout-top .who { padding: 4px 12px 4px 4px; border-radius: 16px; background: var(--site-ink); color: #FFFFFF; }
.theme-d.layout-top .who-name { color: #FFFFFF; }
.theme-d.layout-top .top-actions .linkbtn { color: var(--text-2); }
.theme-d.layout-top .cart-btn { border-radius: 14px; }
.theme-d.layout-top .cat-bar { top: 92px; }
@media (max-width: 900px) {
  .theme-d.layout-top .top { padding-top: 10px; }
  .theme-d.layout-top .top-row { border-radius: 18px; padding: 8px 10px 8px 14px; }
  .theme-d.layout-top .cat-bar { top: 0; }
  .theme-d.layout-top .nav { justify-content: flex-start; }
}

/* E: navy sidebar with an orange current item */
.theme-e { --hdr-bg: var(--site-ink); --hdr-text: var(--site-nav-text); --hdr-strong: #FFFFFF; --hdr-hover: rgba(255, 255, 255, .07); --hdr-border: rgba(255, 255, 255, .1);
  --cur-bg: rgba(var(--site-orange-rgb), .16); --cur-text: #FFFFFF; --cur-ico: var(--site-orange); }
.theme-e .logo-house .hm-body { fill: #FFFFFF; }
.theme-e .logo .tag { background: rgba(255, 255, 255, .1); color: var(--site-nav-text); }
.theme-e .nav a { border-radius: 14px; font-weight: 600; }
.theme-e .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--site-orange); }
.theme-e .nav-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #FFFFFF; }
.theme-e .top .cart-btn { background: #FFFFFF; color: var(--site-ink); border-color: var(--border); }
.theme-e .cart-n { border-color: var(--site-ink); }
@media (min-width: 901px) {
  .theme-e.layout-side .side-help { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: var(--site-nav-text); }
  .theme-e.layout-side .side-help b, .theme-e.layout-side .side-help a { color: #FFFFFF; }
  .theme-e.layout-side .top-row > .cart-btn { border-color: var(--border); }
  .theme-e .cart-n { border-color: #FFFFFF; }
}
.theme-e .avatar { background: var(--site-blue); }
.theme-e .linkbtn:hover { color: #FFFFFF; }

/* F: light sidebar (the site's soft grey-blue) with white current item */
.theme-f { --hdr-bg: var(--hover); --hdr-hover: rgba(255, 255, 255, .7); --cur-bg: #FFFFFF; --cur-text: var(--site-ink); --cur-ico: var(--site-orange); }
.theme-f .nav a { border-radius: 14px; font-weight: 600; border: 1px solid transparent; }
.theme-f .nav a[aria-current="page"] { border-color: var(--border); box-shadow: 0 6px 18px -10px rgba(var(--site-ink-rgb), .35); }
.theme-f .side-help { background: #FFFFFF !important; }
.theme-f .avatar { background: var(--site-ink); }
.theme-f .logo .tag { background: #FFFFFF; }

/* v0.37.1: order page header: title (+ help link) left, currency picker on the right; price above a full-width Configure */
.cat-head { align-items: center; }
.cat-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.cat-title .help-link, .cat-title a { font-size: .85rem; }
.page-head .cat-title .help-link { margin-left: 0; align-self: flex-start; }
.cat-head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.cat-head-side .cur-pick-order { margin: 0; }
.pc-foot { flex-direction: column; align-items: stretch; gap: 14px; }
.pc-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px; }
.pc-price .pc-setup { flex-basis: 100%; margin-top: 0; }
.pc-go { justify-content: center; width: 100%; height: 46px; }
@media (max-width: 640px) { .cat-head-side { margin-left: 0; width: 100%; } }

/* ---------- v0.38: cart page: server cards with descriptions + a clean order summary ---------- */
.co-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.co-head h1 { margin: 0 0 4px; }
.co-head p { margin: 0; }
.co-more { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text); }
.co-more .ico { width: 16px; height: 16px; }
.co-more:hover { border-color: var(--border-strong); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .co-grid { grid-template-columns: 1fr; } }
.co-items { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r-lg, 18px); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--ui-shadow, none); }
.co-item.is-bad { border-color: var(--err-line); }
.co-item-top { display: flex; align-items: flex-start; gap: 14px; }
.co-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.co-ico .ico { width: 22px; height: 22px; }
.co-what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.co-what h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.co-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.co-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.co-tag-soft { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .74rem; }
.co-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--text-2); }
.co-loc .ico { width: 14px; height: 14px; }
.co-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 1px; }
.co-price b { font: 800 1.35rem/1.15 var(--f-head); letter-spacing: -.02em; white-space: nowrap; }
.co-price span { font-size: .78rem; color: var(--text-2); }
.co-price .co-pm { color: var(--ok); font-weight: 600; }
.co-specs { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--border); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.co-specs li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; line-height: 1.35; }
.co-specs .ico { width: 17px; height: 17px; margin-top: 1px; color: var(--text-2); }
.site-look .co-specs .ico { color: var(--site-orange); }
.co-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.co-meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text); }
.co-meta .ico { width: 14px; height: 14px; color: var(--text-2); }
.co-meta .co-setup { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); font-weight: 600; }
.co-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err); font-weight: 600; font-size: .88rem; }
.co-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.co-term { display: flex; align-items: center; gap: 10px; margin: 0; flex: 1 1 280px; }
.co-term label { font-size: .85rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.co-term select { flex: 1 1 auto; max-width: 340px; height: 44px; border-radius: 12px; }
.co-remove { margin: 0; }
.co-remove .linkbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: .88rem; }
.co-remove .linkbtn .ico { width: 15px; height: 15px; }
.co-remove .linkbtn:hover { color: var(--err); }

.co-sum { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r-lg, 20px); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--ui-lift, 0 14px 30px -18px rgba(16, 24, 40, .35)); }
.theme-d .co-sum { top: 100px; }
.co-sum h2 { margin: 0; font-size: 1.15rem; }
.co-rows { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.co-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--text-2); }
.co-rows dt { display: inline-flex; align-items: center; gap: 6px; }
.co-rows dd { margin: 0; color: var(--text); font-weight: 600; white-space: nowrap; }
.co-rows .ico { width: 15px; height: 15px; }
.co-rows .co-off, .co-rows .co-off dd { color: var(--ok); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 2px; border-top: 1px solid var(--border); }
.co-total span { font-weight: 700; font-size: 1rem; }
.co-total b { font: 800 2rem/1 var(--f-head); letter-spacing: -.03em; white-space: nowrap; }
.co-fine { margin: 0; font-size: .8rem; color: var(--text-2); line-height: 1.5; }
.co-fine-tight { margin-top: -8px; }
.co-gift { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); border: 1px dashed var(--ok); color: var(--text); }
.co-gift > .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.co-gift > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.co-gift > div span { color: var(--text-2); font-size: .8rem; }
.co-gift form { margin: 0; }
.co-gift.is-wait { background: var(--surface-2); border-color: var(--border-strong); }
.co-gift.is-wait > .ico { color: var(--text-2); }
.co-gift.is-bad { background: var(--err-bg); border-color: var(--err); }
.site-look .co-gift:not(.is-wait):not(.is-bad) { background: var(--site-orange-soft); border-color: var(--site-orange); }
.site-look .co-gift:not(.is-wait):not(.is-bad) > .ico { color: var(--site-orange); }
.co-coupon summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--text); }
.co-coupon summary span { font-weight: 400; color: var(--text-2); }
.co-coupon .coupon-row { margin-top: 10px; }
.co-cur { display: flex; align-items: center; gap: 10px; margin: 0; }
.co-cur label { font-size: .85rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.co-cur select { flex: 1 1 auto; height: 44px; border-radius: 12px; }
.co-go-box { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.co-terms { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--text-2); }
.co-terms a { color: var(--text); }
.co-go { width: 100%; min-height: 56px; justify-content: center; text-align: center; gap: 10px; font-size: 1.02rem; border-radius: 16px; }
.co-go .ico { width: 18px; height: 18px; }
.co-go-alt { width: 100%; justify-content: center; }
.co-pay { margin: -4px 0 0; text-align: center; font-size: .78rem; color: var(--text-2); }
@media (max-width: 640px) {
  .co-item { padding: 16px; }
  .co-item-top { flex-wrap: wrap; }
  .co-price { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; }
  .co-sum { position: static; }
}

/* ---------- v0.38.1: modern dropdowns everywhere: chevron in a soft round chip, solid on hover/focus ---------- */
select:not([multiple]):not([size]) { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23EEF2F8'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%233C4A66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 24px 24px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
select:not([multiple]):not([size]):hover { border-color: var(--border-strong); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230E1B33'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select:not([multiple]):not([size]):focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230E1B33'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select:not([multiple]):not([size]):disabled { cursor: default; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23EEF2F8'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%233C4A66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); opacity: .7; }
select::-ms-expand { display: none; }
.theme-b select:not([multiple]):not([size]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23262C33'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%23E6E8EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.theme-b select:not([multiple]):not([size]):hover, .theme-b select:not([multiple]):not([size]):focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23F2B300'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%2314181C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.theme-c select:not([multiple]):not([size]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23CDD1D3'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%2323282B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.theme-c select:not([multiple]):not([size]):hover, .theme-c select:not([multiple]):not([size]):focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2323282B'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%23F2B300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.site-look select:not([multiple]):not([size]):hover, .site-look select:not([multiple]):not([size]):focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230E1B33'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border-color: var(--site-ink); }
/* small dropdowns (tables, compact tools) keep a smaller chip */
.role-form select, .lc-tools select, .lc-bar select[data-quick], .fw-table select, .term-line select { padding-right: 34px; background-size: 20px 20px; background-position: right 7px center; }
select option { color: var(--text); background: var(--surface); }

/* ---------- v0.38.4: invoice page: hero with amount due, the invoice as a sheet, pay panel with progress ---------- */
.iv-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin: 0 0 22px;
  border: 1px solid var(--border); border-radius: var(--ui-r-lg, 20px); overflow: hidden; isolation: isolate; box-shadow: var(--ui-shadow, none);
  background: radial-gradient(120% 170% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%), radial-gradient(80% 150% at 100% 0%, color-mix(in srgb, var(--info) 10%, transparent) 0%, transparent 60%), var(--surface); }
.site-look .iv-hero { background: radial-gradient(120% 170% at 0% 0%, rgba(var(--site-orange-rgb), .13) 0%, transparent 55%), radial-gradient(80% 150% at 100% 0%, rgba(var(--site-blue-rgb), .12) 0%, transparent 60%), var(--surface); }
.iv-hero-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iv-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.iv-kicker .ico { width: 15px; height: 15px; }
.iv-hero h1 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.035em; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.iv-chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; color: var(--text); }
.iv-chips .ico { width: 14px; height: 14px; color: var(--text-2); }
.iv-chips .is-soon { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.iv-chips .is-late { border-color: var(--err-line); background: var(--err-bg); color: var(--err); font-weight: 600; }
.iv-hero-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.iv-hero-amt b { font: 800 clamp(2rem, 4vw, 2.9rem)/1 var(--f-head); letter-spacing: -.04em; white-space: nowrap; }
.iv-hero-amt > span:last-child { font-size: .82rem; color: var(--text-2); }
.iv-paid .iv-hero-amt b { color: var(--ok); }
.iv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .iv-grid { grid-template-columns: 1fr; } .iv-hero-amt { align-items: flex-start; text-align: left; } }
.iv-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.iv-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r-lg, 20px); padding: 26px 28px; box-shadow: var(--ui-shadow, none); display: flex; flex-direction: column; gap: 22px; }
.iv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
@media (max-width: 640px) { .iv-parties { grid-template-columns: 1fr; } .iv-sheet, .iv-hero { padding: 20px; } }
.iv-parties > div { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.iv-parties b { color: var(--text); font-size: .98rem; margin-bottom: 2px; }
.iv-lbl { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.iv-lines, .iv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.iv-lines li, .iv-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.iv-lines li:first-child, .iv-list li:first-child { padding-top: 0; }
.iv-lines li:last-child, .iv-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.iv-li-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.site-look .iv-li-ico { background: var(--site-orange-soft); color: var(--site-orange); }
.iv-li-ico .ico { width: 19px; height: 19px; }
.iv-li-ico.ok, .iv-lines .is-off .iv-li-ico { background: var(--ok-bg); color: var(--ok); }
.iv-li-what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.iv-li-what b { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.iv-li-what span { font-size: .8rem; color: var(--text-2); }
/* v0.64.115: specs written into an invoice line (moved WHMCS lines) as a plain bullet list under the title */
.iv-li-what .iv-specs { list-style: disc; margin: 2px 0 2px; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 1px; }
.iv-lines .iv-li-what .iv-specs li { display: list-item; padding: 0; border: 0; gap: 0; font-size: .85rem; line-height: 1.5; color: var(--text); }
.iv-li-what .iv-specs li::marker { color: var(--text-2); }
.iv-li-what .iv-specs em { font-style: normal; color: var(--text-2); }
.iv-li-amt { flex: none; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.iv-lines .is-off .iv-li-amt, .iv-lines .is-off .iv-li-what b { color: var(--ok); }
.iv-totals { margin: 0 0 0 auto; width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.iv-totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--text-2); }
.iv-totals dd { margin: 0; color: var(--text); font-weight: 600; white-space: nowrap; }
.iv-totals .iv-total { align-items: baseline; color: var(--text); font-weight: 700; font-size: 1rem; }
.iv-totals .iv-total dd { font: 800 1.6rem/1 var(--f-head); letter-spacing: -.03em; }
.iv-totals .iv-incl { font-size: .8rem; }
.iv-totals .iv-incl dd { font-weight: 500; color: var(--text-2); }
.iv-totals .iv-paid, .iv-totals .iv-paid dd { color: var(--ok); }
.iv-note { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; }
.iv-note p { margin: 4px 0 0; }
.iv-docs { display: flex; flex-wrap: wrap; gap: 10px; }
.iv-docs .btn { border-radius: 14px; gap: 8px; }
.iv-docs .btn .ico { width: 16px; height: 16px; transform: rotate(90deg); }
.iv-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r-lg, 20px); padding: 22px 26px; }
.iv-block h2 { margin: 0 0 14px; font-size: 1.05rem; }
.iv-pay { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r-lg, 20px); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--ui-lift, 0 14px 30px -18px rgba(16, 24, 40, .35)); }
.theme-d .iv-pay { top: 100px; }
@media (max-width: 1000px) { .iv-pay { position: static; } }
.iv-steps { list-style: none; margin: 0 0 4px; padding: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--border); position: relative; }
.iv-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .74rem; font-weight: 600; color: var(--text-2); position: relative; }
.iv-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.iv-steps li:first-child::before { display: none; }
.iv-steps li.is-done::before, .iv-steps li.is-now::before { background: var(--ok); }
.iv-steps span { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; background: var(--surface-2); border: 2px solid var(--border); color: var(--text-2); }
.iv-steps span .ico { width: 15px; height: 15px; stroke-width: 3; }
.iv-steps .is-done span { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.iv-steps .is-done { color: var(--text); }
.iv-steps .is-now span { background: var(--strong); border-color: var(--strong); color: var(--on-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--strong) 15%, transparent); }
.site-look .iv-steps .is-now span { background: var(--site-orange); border-color: var(--site-orange); color: var(--site-ink); box-shadow: 0 0 0 4px rgba(var(--site-orange-rgb), .2); }
.iv-steps .is-now { color: var(--text); }
.iv-pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.iv-pay-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.iv-pay-head .help-link { margin-left: 0; }
.iv-fine { margin: -6px 0 0; font-size: .82rem; color: var(--text-2); }
.iv-methods { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.iv-method { width: 100%; min-height: 54px; justify-content: space-between; border-radius: 14px; padding: 10px 18px; font-size: .98rem; }
.iv-nopay { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.iv-nopay .ico { flex: none; width: 20px; height: 20px; color: var(--text-2); margin-top: 2px; }
.iv-nopay p { margin: 0; font-size: .9rem; }
.iv-secure { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-2); }
.iv-secure .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--ok); }
.iv-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0; }
.iv-state h2 { margin: 6px 0 0; font-size: 1.1rem; }
.iv-state p { margin: 0; }
.iv-state-ico { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); }
.iv-state-ico .ico { width: 26px; height: 26px; }
.iv-state-paid .iv-state-ico { background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 10%, transparent); }
@media (max-width: 1000px) { .iv-g-unpaid .iv-pay { order: -1; } }

/* v0.38.5 ticket form: full width, editor grows with the page */
.tk-form { max-width: none; }
.tk-form .row2 { grid-template-columns: 1fr 1fr; }
.tk-form .rt-editor textarea { min-height: 260px; font-size: .98rem; line-height: 1.55; padding: 14px 16px; }
.tk-form .rt-editor { border-radius: 12px; }
.tk-form .rt-bar { border-radius: 12px 12px 0 0; padding: 6px 10px; }
.tk-form > .btn-signal[type=submit] { min-width: 180px; }
.reply-card .rt-editor textarea { min-height: 140px; }
@media (max-width: 640px) { .tk-form .row2 { grid-template-columns: 1fr; } .tk-form > .btn-signal[type=submit] { width: 100%; } }
.tk-form input[type=file], .reply-card input[type=file] { font: .9rem var(--f-body); color: var(--text-2); }
.tk-form input[type=file]::file-selector-button, .reply-card input[type=file]::file-selector-button { font: 600 .88rem var(--f-body); color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.tk-form input[type=file]::file-selector-button:hover, .reply-card input[type=file]::file-selector-button:hover { border-color: var(--accent); background: var(--surface); }

/* v0.38.6 guest header: Log in / Sign up pills, aligned on every screen size */
.top-actions.guest-actions { flex-direction: row; align-items: center; gap: 8px; margin-left: auto; border-top: 0; padding-top: 0; }
.guest-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 .9rem/1 var(--f-body); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.guest-btn .ico { width: 16px; height: 16px; flex: none; }
.guest-login { color: var(--hdr-strong, #fff); border: 1px solid var(--hdr-border, rgba(255,255,255,.18)); background: rgba(255, 255, 255, .06); }
.guest-login:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); }
.guest-join { color: #fff; background: var(--accent); border: 1px solid transparent; box-shadow: 0 6px 16px -6px var(--accent); }
.guest-join:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px var(--accent); }
.guest-join .ico { transition: transform .15s; } .guest-join:hover .ico { transform: translateX(2px); }
.guest-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-d.layout-top .guest-login { color: var(--text); border-color: var(--border); background: var(--surface); }
.theme-d.layout-top .guest-login:hover { border-color: var(--accent); background: var(--surface); }
@media (max-width: 900px) {
  .top-actions.guest-actions { margin-left: auto; border-top: 0; padding-top: 0; justify-content: flex-end; }
  .top-row:has(.guest-actions) { flex-wrap: nowrap; }
}
@media (max-width: 420px) {
  .guest-btn { height: 38px; padding: 0 13px; font-size: .86rem; }
  .guest-login .ico { display: none; }
  .guest-join .ico { display: none; }
}
.theme-e .guest-join { background: linear-gradient(135deg, var(--site-orange-hi), var(--site-orange-lo)); box-shadow: 0 8px 20px -8px rgba(var(--site-orange-deep-rgb), .8); }
.theme-e .guest-join:hover { box-shadow: 0 12px 26px -8px rgba(var(--site-orange-deep-rgb), .9); }
/* guest with items in the cart: logo, Log in, Sign up, cart; on small phones Sign up folds into Log in (the login page links to sign-up) */
.top-row:has(.guest-actions) > .cart-btn { order: 2; margin-left: 0; }
.top-row:has(.guest-actions) { flex-wrap: nowrap; }
.top-row:has(.guest-actions) > .logo { min-width: 0; }
@media (max-width: 480px) {
  .top-row:has(.guest-actions) { gap: 8px; }
  .top-row:has(.guest-actions):has(> .cart-btn) .guest-join { display: none; }
  .top-row:has(.guest-actions):has(> .cart-btn) .guest-login { background: var(--accent); border-color: transparent; color: #fff; }
  .theme-e .top-row:has(.guest-actions):has(> .cart-btn) .guest-login { background: linear-gradient(135deg, var(--site-orange-hi), var(--site-orange-lo)); }
}
.top-row > .top-actions.guest-actions, .top-row > .cart-btn ~ .top-actions.guest-actions { margin-left: auto; }
.theme-c .cart-btn { background: rgba(255, 255, 255, .06); }
.cart-btn:focus:not(:focus-visible), .guest-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* v0.38.8 cart: Remove is a small pill at the right end of the actions row, on every screen size */
.co-remove { margin: 0 0 0 auto; }
.co-remove .linkbtn, main .co-remove .linkbtn { height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .85rem; line-height: 1; transition: color .15s, border-color .15s, background .15s; }
main .co-remove .linkbtn:hover, main .co-remove .linkbtn:focus-visible { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent); background: color-mix(in srgb, var(--err) 7%, var(--surface)); }
@media (max-width: 560px) {
  .co-actions { row-gap: 12px; }
  .co-term { flex-basis: 100%; }
  .co-term select { max-width: none; }
}

/* v0.38.9 order page on phones: product lines as a full-width segmented control, categories as compact swipeable chips */
.cat-groups a span em, .cat-groups a span i { font-style: normal; }
.cat-lines::-webkit-scrollbar, .cat-groups::-webkit-scrollbar { display: none; }
.cat-lines, .cat-groups { scrollbar-width: none; }
@media (max-width: 640px) {
  .cat-lines, .site-look .cat-lines { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 4px; padding: 4px; border-radius: 16px; overflow: visible; }
  .cat-lines a, .site-look .cat-lines a { flex-direction: column; justify-content: center; gap: 3px; padding: 9px 4px; min-width: 0; border-radius: 12px; font-size: .84rem; line-height: 1.15; text-align: center; white-space: normal; }
  .cat-lines a span { font-size: .68rem; padding: 1px 7px; }
  .cat-arrow { display: none !important; }
  .cat-strip { margin: 0 calc(-1 * var(--gutter)); }
  .cat-groups { gap: 8px; padding: 2px var(--gutter) 4px; margin: 0; scroll-padding-inline: var(--gutter); }
  .cat-strip.can-prev .cat-groups, .cat-strip.can-next .cat-groups, .cat-strip.can-prev.can-next .cat-groups { -webkit-mask-image: none; mask-image: none; }
  .cat-groups a, .site-look .cat-groups a { flex-direction: row; align-items: center; gap: 8px; min-width: 0; height: 42px; padding: 0 8px 0 15px; border-radius: 999px; }
  .cat-groups a b { font-size: .86rem; }
  .cat-groups a span { display: inline-flex; }
  .cat-groups a span i { display: none; }
  .cat-groups a span em { min-width: 22px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-size: .72rem; font-weight: 700; }
  .cat-groups a[aria-current="true"] span em { background: var(--accent); color: var(--on-accent); }
  .site-look .cat-groups a[aria-current="true"] span em { background: var(--site-orange, var(--accent)); color: #fff; }
  .cat-groups a:hover { transform: none; }
}

/* v0.39 SWIFT bank transfer page */
.sw { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.sw-main { display: grid; gap: 18px; min-width: 0; }
.sw-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.sw-send { padding: 22px 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); }
.sw-eyebrow { margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.sw-h { margin: 6px 0 -4px; font-size: 1.05rem; }
.sw-banks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sw-bank { padding: 18px 20px 10px; }
.sw-bank header { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.sw-bank header b { display: block; font-size: 1.02rem; }
.sw-bank header span:not(.sw-bank-ico) { font-size: .78rem; color: var(--text-2); }
.sw-bank-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft, var(--surface-2)); color: var(--accent); }
.sw-bank-ico .ico { width: 20px; height: 20px; }
.sw-row { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.sw-row:last-child { border-bottom: 0; }
.sw-k { font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
.sw-v { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sw-in { flex: 1; min-width: 0; border: 0; background: transparent; padding: 2px 0; font-size: .93rem; color: var(--text); text-overflow: ellipsis; }
.sw-in:focus { outline: none; }
.sw-key .sw-in { font-weight: 700; letter-spacing: .02em; }
.sw-big { border-bottom: 0; padding: 6px 0; }
.sw-big .sw-in { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.sw-copy { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .78rem var(--f-body); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.sw-copy:hover { border-color: var(--accent); color: var(--accent); }
.sw-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.sw-tip .ico { width: 18px; height: 18px; flex: none; color: var(--ok, #16a34a); margin-top: 2px; }
.sw-tip p { margin: 0; font-size: .88rem; color: var(--text-2); }
.sw-tip b { color: var(--text); }
.sw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sw-steps li { display: flex; gap: 12px; }
.sw-steps li > span { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; background: var(--strong); color: var(--on-strong); }
.sw-steps b { font-size: .93rem; }
.sw-steps p { margin: 3px 0 0; font-size: .85rem; color: var(--text-2); line-height: 1.5; }
.sw-report .field { margin-bottom: 12px; }
.sw-fine { margin: 10px 0 0; text-align: center; }
.sw-reported { display: flex; gap: 12px; }
.sw-reported > span { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ok, #16a34a) 14%, transparent); color: var(--ok, #16a34a); }
.sw-reported p { margin: 4px 0 0; font-size: .88rem; color: var(--text-2); }
.site-look .sw-send { background: linear-gradient(135deg, var(--site-orange-soft), var(--surface) 65%); }
.site-look .sw-bank-ico { background: var(--site-orange-soft-2); color: var(--site-orange, var(--accent)); }
@media (max-width: 980px) { .sw { grid-template-columns: 1fr; } .sw-side { position: static; } }
@media (max-width: 560px) { .sw-send { padding: 18px; } .sw-big .sw-in { font-size: 1.25rem; } .sw-report .row2 { grid-template-columns: 1fr; } }
.sw .sw-in { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sw-v { position: relative; justify-content: space-between; }
.sw-t { min-width: 0; font-size: .95rem; font-weight: 500; color: var(--text); overflow-wrap: anywhere; line-height: 1.4; }
.sw-key .sw-t { font-family: var(--f-mono, ui-monospace, monospace); font-weight: 700; letter-spacing: .03em; }
.sw-big .sw-t { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; font-family: var(--f-display, inherit); }
.sw-big + .sw-big .sw-t { font-family: var(--f-mono, ui-monospace, monospace); font-size: 1.3rem; letter-spacing: .02em; }
.sw-row { padding: 10px 0; }
@media (max-width: 560px) { .sw-big .sw-t { font-size: 1.35rem; } }
/* v0.39.3 cart: switch between the welcome discount and a coupon code */
.co-swap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--border); font-size: .85rem; color: var(--text-2); }
.co-swap .linkbtn { font-weight: 600; font-size: .85rem; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.co-swap .linkbtn:hover { color: var(--accent); }
.site-look .co-swap .linkbtn:hover { color: var(--site-orange, var(--accent)); }

/* v0.39.4: the chat buttons move up above the sticky "unsaved changes" bar instead of covering its Save button */
.chat-fab, .lcw { transition: bottom .2s ease; }
body:has(.save-bar.is-dirty) .chat-fab { bottom: 98px; }
body:has(.save-bar.is-dirty) .lcw:not(.lcw-open) { bottom: 96px; }
@media (max-width: 600px) {
  body:has(.save-bar.is-dirty) .chat-fab { bottom: 150px; }
  body:has(.save-bar.is-dirty) .lcw:not(.lcw-open) { bottom: 148px; }
}
@media (prefers-reduced-motion: reduce) { .chat-fab, .lcw { transition: none; } }

/* v0.40 Staff → Settings: find a setting, grouped menu, filters, parts strip, review page */
.settings-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-attn { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn-bg, #FEF3C7); color: var(--warn, #92400E); font: 700 .7rem/1 var(--f-body); flex: none; }
.ss { position: relative; margin: 2px 0 6px; }
.ss-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg, var(--surface)); color: var(--text-2); cursor: text; transition: border-color .15s, box-shadow .15s; }
.ss-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ss-box .ico { width: 16px; height: 16px; flex: none; }
.ss-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; height: auto; font: 500 .9rem var(--f-body); color: var(--text); box-shadow: none; }
.ss-box input::-webkit-search-cancel-button { display: none; }
.ss-kbd { font: 600 .66rem/1 var(--f-body); padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); background: var(--surface); white-space: nowrap; }
.ss-box:focus-within .ss-kbd { display: none; }
.ss-results { position: absolute; z-index: 60; left: 0; top: calc(100% + 6px); width: min(420px, calc(100vw - 40px)); max-height: 60vh; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .28); }
.ss-results li a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.ss-results li b { font-weight: 600; font-size: .9rem; }
.ss-results li span { font-size: .76rem; color: var(--text-2); }
.ss-results li.is-cur a { background: var(--cur-bg, var(--hover)); }
.ss-results mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ss-none { padding: 10px; font-size: .86rem; color: var(--text-2); }
.settings-nav a.ss-review { margin-bottom: 2px; font-size: .86rem; color: var(--text-2); border: 1px dashed var(--border); }
.sf { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 .84rem var(--f-body); cursor: pointer; }
.sf-chip span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--surface-2); font-size: .72rem; }
.sf-chip.is-on { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.sf-chip.is-on span { background: rgba(255, 255, 255, .2); color: inherit; }
.sf-chip.sf-attn:not([disabled]) span { background: var(--warn-bg, #FEF3C7); color: var(--warn, #92400E); }
.sf-chip[disabled] { opacity: .5; cursor: default; }
.sg-strip { position: sticky; top: 0; z-index: 15; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 8px 0; background: color-mix(in srgb, var(--bg, #F6F7F9) 92%, transparent); backdrop-filter: blur(6px); }
.sg-strip::-webkit-scrollbar { display: none; }
.sg-strip a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600; }
.sg-strip a:hover { border-color: var(--border-strong); }
.sg-strip a.is-cur { border-color: var(--accent); color: var(--accent); }
.settings-group { scroll-margin-top: 64px; }
.set-item { scroll-margin-top: 90px; border-radius: 10px; transition: background .4s, box-shadow .4s; }
.set-item[hidden], .settings-group[hidden] { display: none; }
.set-item.is-attn { box-shadow: inset 3px 0 0 var(--warn, #D97706); padding-left: 10px; }
.set-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.set-item.is-flash { animation: setFlash 2.2s ease-out; }
@keyframes setFlash { 0%, 35% { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .set-item.is-flash { animation: none; outline: 2px solid var(--accent); } }
.rv { padding: 0; overflow: hidden; }
.rv-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.rv-h h3 { margin: 0; font-size: 1rem; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.rv-list li:last-child { border-bottom: 0; }
.rv-list li.is-attn { box-shadow: inset 3px 0 0 var(--warn, #D97706); }
.rv-list a { text-decoration: none; color: var(--text); min-width: 0; }
.rv-list a:hover b { text-decoration: underline; }
.rv-v { flex: none; max-width: 50%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) { .ss { width: 100%; } .settings-nav a.ss-review { width: 100%; } .ss-results { width: 100%; } }
.settings-nav { z-index: 30; }
.ss-results, .ss-results li a { text-align: left; align-items: flex-start; }
.sn-all { display: flex; flex-direction: column; gap: 2px; }
.sn-all > summary { display: none; }
@media (max-width: 820px) {
  .sn-all { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .sn-all > summary { display: flex; align-items: center; justify-content: space-between; width: 100%; list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, var(--hover)); font-weight: 600; font-size: .9rem; }
  .sn-all > summary::-webkit-details-marker { display: none; }
  .sn-all > summary small { font-weight: 500; color: var(--text-2); }
  .sn-all > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 10px; transition: transform .15s; }
  .sn-all[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
}
.sn-all > summary::after { display: block; flex: none; box-sizing: border-box; }
@media (max-width: 820px), (hover: none) { .ss-kbd { display: none; } }

/* v0.40.1 settings toolbar: segmented filter, status, "On this page" */
.stb { position: sticky; top: 10px; z-index: 16; margin: 4px 0 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); overflow: hidden; }
.stb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 10px 8px 8px; }
.stb .sf { display: inline-flex; gap: 2px; margin: 0; padding: 4px; border-radius: 12px; background: var(--surface-2, #F1F3F7); }
.stb .sf-chip { height: 36px; gap: 7px; padding: 0 14px 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 .86rem var(--f-body); transition: background .18s, color .18s, box-shadow .18s; }
.stb .sf-chip .ico { width: 16px; height: 16px; opacity: .8; }
.stb .sf-chip span { min-width: 22px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); color: inherit; font-size: .72rem; font-weight: 700; }
.stb .sf-chip:not([disabled]):hover { color: var(--text); }
.stb .sf-chip.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -6px rgba(15, 23, 42, .25); }
.stb .sf-chip.is-on .ico { opacity: 1; color: var(--accent); }
.stb .sf-chip.is-on span { background: var(--accent); color: var(--on-accent, #fff); }
.stb .sf-chip.sf-attn span, .stb .sf-chip.sf-attn.is-on span { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line, transparent); }
.stb .sf-chip.sf-attn.is-on .ico { color: var(--warn); }
.stb .sf-chip[disabled] { opacity: .45; }
.stb-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 .8rem var(--f-body); white-space: nowrap; }
.stb-state .ico { width: 15px; height: 15px; }
.stb-state.is-ok { color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line, transparent); }
.stb-state.is-warn { color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line, transparent); }
.stb-state.is-warn i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); animation: stbPulse 2s ease-in-out infinite; }
@keyframes stbPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); } }
.stb .sg-strip { position: static; margin: 0; padding: 0 14px; gap: 2px; background: transparent; backdrop-filter: none; border-top: 1px solid var(--border); align-items: stretch; }
.stb .sg-lab { flex: none; align-self: center; margin-right: 8px; font: 700 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.stb .sg-strip a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px; border: 0; border-radius: 0; background: transparent; color: var(--text-2); font-size: .84rem; font-weight: 600; text-decoration: none; transition: color .15s; }
.stb .sg-strip a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.stb .sg-strip a:hover { color: var(--text); }
.stb .sg-strip a.is-cur { color: var(--text); }
.stb .sg-strip a.is-cur::after { transform: scaleX(1); }
.sg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.site-look .stb .sf-chip.is-on .ico { color: var(--site-orange, var(--accent)); }
.site-look .stb .sf-chip.is-on:not(.sf-attn) span, .site-look .stb .sg-strip a::after { background: var(--site-orange, var(--accent)); }
@media (prefers-reduced-motion: reduce) { .stb-state.is-warn i { animation: none; } }
@media (max-width: 640px) {
  .stb { top: 6px; border-radius: 14px; }
  .stb-top { padding: 6px; }
  .stb .sf { width: 100%; }
  .stb .sf-chip { flex: 1; justify-content: center; padding: 0 8px; font-size: .8rem; }
  .stb .sf-chip .ico { display: none; }
  .stb-state { width: 100%; justify-content: center; }
  .stb .sg-lab { display: none; }
}
.stb .sf-chip { white-space: nowrap; }
.stb .sf-chip em { font-style: normal; }
.stb .sf-s { display: none; }
@media (max-width: 640px) {
  .stb .sf-l { display: none; }
  .stb .sf-s { display: inline; }
  .stb-state.is-warn { display: none; }
}
/* v0.40.2 "customised" label: hover or focus shows the starting value and the current one */
.set-cust { position: relative; cursor: help; }
.set-cust-tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 25; width: max-content; max-width: 340px; padding: 8px 11px; border-radius: 9px; background: var(--strong, #0F172A); color: #fff; font: 500 .78rem/1.4 var(--f-body); letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .5); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.set-cust:hover .set-cust-tip, .set-cust:focus .set-cust-tip { opacity: 1; transform: none; }
.rv-was { display: block; margin-top: 2px; font-size: .78rem; color: var(--text-2); }

/* v0.40.4 Settings menu: group names read as headings, sections sit under them */
.settings-nav .settings-nav-h { margin: 16px 6px 6px; padding-top: 14px; border-top: 1px solid var(--border); font: 700 1.02rem/1.2 var(--f-head, var(--f-body)); letter-spacing: -.01em; text-transform: none; color: var(--text); }
.settings-nav .sn-all > .settings-nav-h:first-of-type { margin-top: 8px; padding-top: 12px; }
.settings-nav a:not(.ss-review) { padding: 7px 10px 7px 14px; font-size: .88rem; font-weight: 500; color: var(--text-2); }
.settings-nav a:not(.ss-review):hover { color: var(--text); }
.settings-nav a[aria-current]:not(.ss-review) { color: var(--cur-text, var(--text)); font-weight: 600; }
.site-look .settings-nav .settings-nav-h { font-family: var(--f-display, var(--f-head, var(--f-body))); }
@media (max-width: 820px) { .settings-nav .settings-nav-h { width: 100%; margin: 12px 4px 4px; } }

/* v0.40.5 settings groups fold: a compact header row, open to see the settings */
.sg-tools { display: flex; justify-content: flex-end; gap: 16px; margin: 0 0 10px; }
.sg-tools .linkbtn { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.sg-tools .linkbtn:hover { color: var(--text); }
.sg-tools .ico { width: 14px; height: 14px; }
details.sg-fold { padding: 0; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
details.sg-fold[open] { box-shadow: 0 12px 30px -20px rgba(15, 23, 42, .35); }
.sg-sum { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; user-select: none; }
.sg-sum::-webkit-details-marker { display: none; }
.sg-sum:hover { background: var(--hover); }
.sg-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: inherit; }
.sg-chev { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s; }
.sg-chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); margin-left: -2px; }
details.sg-fold[open] > .sg-sum .sg-chev { transform: rotate(90deg); background: var(--cur-bg, var(--surface-2)); }
.sg-title { font: 700 1rem/1.25 var(--f-head, var(--f-body)); color: var(--text); flex: 1; min-width: 0; }
.sg-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sg-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 .72rem/1 var(--f-body); }
.sg-pill.is-on { color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line, transparent); }
.sg-pill.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sg-pill.is-off { color: var(--text-2); background: var(--surface-2); }
.sg-pill.is-warn { color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line, transparent); }
.sg-pill.is-cust { color: var(--info, #1D4ED8); background: var(--info-bg, #EFF6FF); }
.sg-count { font-size: .78rem; color: var(--text-2); min-width: 74px; text-align: right; }
.sg-body { padding: 4px 20px 18px; border-top: 1px solid var(--border); }
.sg-body > .hookbox:first-child, .sg-body > .set-item:first-child { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .sg-chev { transition: none; } }
@media (max-width: 640px) { .sg-sum { flex-wrap: wrap; padding: 14px; } .sg-meta { width: 100%; justify-content: flex-start; padding-left: 38px; } .sg-count { min-width: 0; text-align: left; } .sg-body { padding: 4px 14px 16px; } }

/* v0.40.6 flash messages: icon badge, short title, close button, soft tint, success fades out */
.flash.fl { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; margin-bottom: 20px; border: 1px solid var(--fl-line); border-left-width: 1px; border-radius: 16px; background: linear-gradient(100deg, var(--fl-bg) 0%, var(--surface) 70%); box-shadow: 0 14px 34px -22px var(--fl-shadow), 0 1px 2px rgba(15, 23, 42, .05); overflow: hidden; animation: flIn .45s cubic-bezier(.2, .8, .2, 1.1) both; }
.flash.fl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fl-c); }
.flash.fl.flash-ok { --fl-c: var(--ok); --fl-bg: var(--ok-bg); --fl-line: var(--ok-line); --fl-shadow: color-mix(in srgb, var(--ok) 55%, transparent); }
.flash.fl.flash-err { --fl-c: var(--err); --fl-bg: var(--err-bg); --fl-line: var(--err-line); --fl-shadow: color-mix(in srgb, var(--err) 55%, transparent); }
.flash.fl.flash-warn, .flash.fl.flash-info { --fl-c: var(--warn); --fl-bg: var(--warn-bg); --fl-line: var(--warn-line); --fl-shadow: color-mix(in srgb, var(--warn) 50%, transparent); }
.fl-ico { position: relative; width: 38px; height: 38px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--fl-c); box-shadow: 0 6px 16px -6px var(--fl-c); }
.fl-ico .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.flash-ok .fl-ico .ico path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: flTick .5s .25s ease-out forwards; }
.fl-ico::after { content: ""; position: absolute; inset: -5px; border-radius: 15px; border: 2px solid var(--fl-c); opacity: 0; animation: flRing 1.1s .2s ease-out; }
.fl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.fl-title { font: 700 .95rem/1.2 var(--f-head, var(--f-body)); color: var(--text); }
.fl-msg { font-size: .9rem; color: var(--text-2); }
.fl-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.fl-x:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.fl-x .ico { width: 16px; height: 16px; }
.fl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fl-c); opacity: .55; transform-origin: left; animation: flBar 7s linear forwards; }
.fl.is-paused .fl-bar { animation-play-state: paused; }
.fl.is-out { animation: flOut .3s ease-in forwards; }
@keyframes flIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flOut { to { opacity: 0; transform: translateY(-8px) scale(.98); margin-bottom: 0; padding-top: 0; padding-bottom: 0; height: 0; } }
@keyframes flTick { to { stroke-dashoffset: 0; } }
@keyframes flRing { 0% { opacity: .6; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes flBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .flash.fl, .fl-ico::after, .flash-ok .fl-ico .ico path, .fl-bar { animation: none; } .flash-ok .fl-ico .ico path { stroke-dashoffset: 0; } .fl-bar { display: none; } }
@media (max-width: 560px) { .flash.fl { gap: 12px; padding: 12px; border-radius: 14px; } .fl-ico { width: 34px; height: 34px; } }

/* v0.40.7 plan specs on hover / focus (staff pages) */
.spop { position: relative; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
.spop > a, .spop-l { text-decoration-style: dotted; text-decoration-line: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.spop-i { display: inline-flex; width: 20px; height: 20px; border-radius: 6px; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); transition: background .15s, color .15s; }
.spop-i .ico { width: 13px; height: 13px; }
.spop-i:hover, .spop.is-open .spop-i { background: var(--accent); color: var(--on-accent, #fff); }
.spop:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.spop-card { position: absolute; z-index: 40; left: 0; top: calc(100% + 10px); width: 320px; max-width: calc(100vw - 40px); display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .06); opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top left; transition: opacity .16s, transform .16s, visibility 0s .16s; cursor: default; font-size: .86rem; color: var(--text); text-align: left; }
.spop-card::before { content: ""; position: absolute; left: 22px; top: -7px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.spop.is-open .spop-card { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.spop-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.spop-h b { font: 700 .95rem/1.25 var(--f-head, var(--f-body)); }
.spop-h i { font-style: normal; font: 700 .66rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.spop-r { display: grid; grid-template-columns: 18px 72px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 0; }
.spop-r .ico { width: 16px; height: 16px; color: var(--accent); }
.spop-r em { font-style: normal; color: var(--text-2); font-size: .8rem; }
.spop-r strong { font-weight: 600; }
.spop-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.spop-meta > span { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 9px; border-radius: 9px; background: var(--surface-2); font-size: .78rem; font-weight: 600; }
.spop-meta em { font-style: normal; font-weight: 500; color: var(--text-2); }
.site-look .spop-r .ico, .theme-d .spop-r .ico { color: var(--site-orange, var(--accent)); }
@media (prefers-reduced-motion: reduce) { .spop-card { transition: none; } }
.spop-f { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.spop-f > span { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-2); }
.spop-f .ico { width: 14px; height: 14px; color: var(--ok); flex: none; }

/* v0.40.8 spec cards on every staff page: fixed placement (panel.js), arrow follows the name, flips above */
.spop-card.spop-fx { position: fixed; }
.spop-card.spop-fx::before { left: var(--spop-arrow, 22px); }
.spop-card.spop-up { transform-origin: bottom left; }
.spop-card.spop-up::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.spop:not(.is-open) .spop-card.spop-up { transform: translateY(-6px) scale(.98); }
.tk-svc .spop, .tk-svc .spop-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tk-svc .spop { overflow: visible; }
.tk-svc .spop-l { white-space: nowrap; }
.tk-svc .spop-i { width: 16px; height: 16px; }
.inv-lines .srv-sub-line .spop-i, .tk-svc .spop-i { margin-left: 0; }
.spop-card.spop-fx { overflow: auto; overscroll-behavior: contain; }
.spop-card.spop-side::before { display: none; }
.spop:not(:hover):not(:focus-within) .spop-card.spop-side { transform: translateX(-6px) scale(.98); }

/* v0.40.9 invoice: Payments sit under the pay / status card in the right column */
.iv-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.iv-side > .iv-pay { position: static; }
.iv-payments { padding: 20px 22px; box-shadow: var(--ui-lift, 0 14px 30px -18px rgba(16, 24, 40, .35)); }
.iv-payments h2 { font-size: 1rem; }
.iv-payments .iv-list li { gap: 12px; }
.iv-payments .iv-li-amt { white-space: nowrap; font-weight: 700; }
.iv-payments .iv-li-what span { font-size: .8rem; }

/* v0.40.10 a form whose Save button sits outside its cards (plan page): space before the next card */
form:has(.save-bar):not(:has(.card .save-bar)) + :is(.card, section, form) { margin-top: 30px; }

/* v0.41 shared RDP: plan provisioning choice, staff hand-over form, customer login card */
.pp-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pp-modes { grid-template-columns: 1fr; } }
.pn-logo.sh { background: var(--ok-bg, #e8f6ee); color: var(--ok, #1a7f4b); }
.sh-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sh-head h2 { margin: 0 0 4px; }
.sh-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sh-ico .ico { width: 22px; height: 22px; }
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.sh-pass { display: flex; gap: 8px; align-items: stretch; }
.sh-pass input { flex: 1; min-width: 0; }
@media (max-width: 700px) { .sh-grid { grid-template-columns: 1fr; } .sh-grid > .field { grid-column: 1 / -1 !important; } }
.rdp-rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.rdp-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; }
.rdp-row + .rdp-row { border-top: 1px solid var(--border); }
.rdp-k { color: var(--text-2); font-size: .86rem; }
.rdp-v { font-weight: 600; overflow-wrap: anywhere; }
.rdp-v form { margin: 0; }
.rdp-go { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rdp-go .btn { align-self: flex-start; gap: 8px; }
.rdp-go .btn .ico { width: 16px; height: 16px; }
.rdp-go p { margin: 0; }
@media (max-width: 520px) { .rdp-row { grid-template-columns: 1fr auto; } .rdp-k { grid-column: 1 / -1; } .rdp-go .btn { align-self: stretch; justify-content: center; } }
/* v0.41.1 shared RDP hand-over: saved-login notice, email choice, two buttons */
.sh-saved { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r-md); background: var(--ok-bg, #e8f6ee); color: var(--text); font-size: .9rem; }
.sh-saved .ico { flex: none; width: 18px; height: 18px; color: var(--ok, #1a7f4b); margin-top: 2px; }
.sh-notify { margin: 6px 0 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); align-items: flex-start; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .sh-actions .btn { flex: 1 1 100%; justify-content: center; } }
/* v0.41.2 hand-over form: room between the email box, the buttons and the note under them */
.sh-form .sh-notify { margin: 10px 0 0; }
.sh-form .sh-actions { margin-top: 24px; gap: 12px; }
.sh-form .sh-actions + p { margin-top: 14px; }

/* v0.42 Staff → Transactions */
.tx-head { align-items: flex-end; }
.tx-head .btn .ico { width: 15px; height: 15px; }
.tx-periods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.tx-periods > a, .tx-custom > summary { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .86rem; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.tx-custom > summary::-webkit-details-marker { display: none; }
.tx-periods > a:hover, .tx-custom > summary:hover { border-color: var(--text-3, var(--border)); color: var(--text); }
.tx-periods > a[aria-current="page"], .tx-custom > summary[aria-current="page"] { background: var(--ink, #0f172a); border-color: var(--ink, #0f172a); color: #fff; }
.tx-custom { position: relative; }
.tx-custom[open] > .tx-dates { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .35); }
.tx-dates label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--text-2); }
.tx-dates input { min-width: 150px; }
@media (max-width: 600px) { .tx-custom[open] > .tx-dates { position: static; flex-wrap: wrap; margin-top: 8px; } }
.tx-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--ui-r, 16px); padding: 16px 18px; box-shadow: var(--ui-shadow, var(--shadow)); display: flex; flex-direction: column; }
.tx-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.tx-card-top small { color: var(--text-2); font-size: .78rem; }
.tx-cur { font: 800 .72rem/1 var(--f-body); letter-spacing: .08em; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.tx-net { font: 800 1.65rem/1.1 var(--f-head, var(--f-body)); letter-spacing: -.02em; color: var(--ok, #15803d); }
.tx-net.is-neg { color: var(--err, #b42318); }
.tx-sub { font-size: .76rem; color: var(--text-2); margin-top: 2px; }
.tx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.tx-split dt { font-size: .74rem; color: var(--text-2); }
.tx-split dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.tx-in { color: var(--ok, #15803d); }
.tx-out { color: var(--err, #b42318); }
.tx-usd { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.tx-warn { margin: 10px 0 0; font-size: .76rem; color: var(--warn, #b54708); }
.tx-empty-card b { font-size: 1.4rem; }
.tx-table td { vertical-align: top; }
.tx-ref { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tx-row-out { background: color-mix(in srgb, var(--err, #b42318) 4%, transparent); }
.tx-row-credit td { color: var(--text-2); }
.tx-pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 24px; }
.tx-table .srv-sub-line { display: block; }
.tx-split .tx-zero { color: var(--text-2); font-weight: 600; }

/* v0.42.1 shared RDP: connect section (navy header, login tiles, three steps) */
.card.rdpx { padding: 0; overflow: hidden; border-radius: 24px; }
.rdpx-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 28px 30px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #2A4B8F 0%, #0E1B33 55%); color: #fff; }
.rdpx-hero::after { content: ""; position: absolute; right: -70px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 69, .42), transparent 65%); pointer-events: none; }
.rdpx-id, .rdpx-go { position: relative; z-index: 1; min-width: 0; }
.rdpx-st { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(46, 204, 113, .15); color: #9FE3BF; font: 600 .78rem/1.2 var(--f-body); }
.rdpx-st i { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 4px rgba(46, 204, 113, .25); animation: rdpx-pulse 2.4s ease-in-out infinite; }
.rdpx-st.is-off { background: rgba(255, 179, 0, .16); color: #FFD38A; }
.rdpx-st.is-off i { background: #FFB300; box-shadow: 0 0 0 4px rgba(255, 179, 0, .25); animation: none; }
@keyframes rdpx-pulse { 50% { box-shadow: 0 0 0 7px rgba(46, 204, 113, .08); } }
.rdpx-ip { margin: 12px 0 4px; font: 700 clamp(1.6rem, 3.4vw, 2.2rem)/1.1 var(--f-head, var(--f-body)); letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.rdpx-sub { margin: 0; color: #AAB6D3; font-size: .88rem; }
.rdpx-go { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: none; }
.rdpx-go > span { font-size: .76rem; color: #AAB6D3; text-align: center; }
.rdpx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: #FF7A45; color: #0E1B33 !important; font: 700 1rem/1.2 var(--f-body); text-decoration: none !important;
  box-shadow: 0 14px 30px -12px rgba(255, 122, 69, .85); transition: transform .15s, box-shadow .15s, background .15s; }
.rdpx-btn:hover { background: #FF8B5C; transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(255, 122, 69, .95); }
.rdpx-btn:focus-visible, .rdpx-dl:focus-visible, .rdpx-ic:focus-visible { outline: 3px solid #FFB08C; outline-offset: 2px; }
.rdpx-btn .ico, .rdpx-dl .ico { width: 18px; height: 18px; }
.rdpx-creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.rdpx-cell { padding: 18px 22px; min-width: 0; }
.rdpx-cell + .rdpx-cell { border-left: 1px solid var(--border); }
.rdpx-k { font: 600 .7rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.rdpx-v { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 36px; }
.rdpx-v > .mono { flex: 1; min-width: 0; font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.rdpx-v form { margin: 0; }
.rdpx-pw { background: #0E1B33; color: #FFB08C; padding: 3px 9px; border-radius: 8px; flex: 0 1 auto !important; margin-right: auto; }
.rdpx-dots { flex: 1; letter-spacing: .14em; font-weight: 700; color: var(--text); }
.rdpx-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.rdpx-ic:hover { border-color: #FF7A45; color: #B4471B; background: #FFF4EE; }
.rdpx-ic .ico { width: 16px; height: 16px; }
.rdpx-steps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.rdpx-steps-head h3 { margin: 0; font: 700 1.02rem/1.2 var(--f-head, var(--f-body)); }
.rdpx-steps { list-style: none; margin: 0; padding: 14px 24px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rdpx-steps li { padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.rdpx-steps li.is-first { border-color: #FF7A45; box-shadow: 0 0 0 3px rgba(255, 122, 69, .14); background: linear-gradient(180deg, #FFF6F1, var(--surface)); }
.rdpx-n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 10px; background: #0E1B33; color: #fff; font: 700 .85rem/1 var(--f-body); }
.is-first .rdpx-n { background: #FF7A45; color: #0E1B33; }
.rdpx-steps b { display: block; margin-bottom: 4px; font: 700 1rem/1.25 var(--f-head, var(--f-body)); }
.rdpx-steps p { margin: 0; color: var(--text-2); font-size: .86rem; line-height: 1.5; }
.rdpx-steps p b { display: inline; font: inherit; font-weight: 600; color: var(--text); margin: 0; }
.rdpx-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #0E1B33; color: #fff !important; font: 700 .86rem/1.2 var(--f-body); text-decoration: none !important; }
.rdpx-dl:hover { background: #1E2D4D; }
@media (max-width: 860px) {
  .rdpx-hero { flex-direction: column; align-items: stretch; }
  .rdpx-creds { grid-template-columns: 1fr; }
  .rdpx-cell + .rdpx-cell { border-left: 0; border-top: 1px solid var(--border); }
  .rdpx-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rdpx-st i { animation: none; } .rdpx-btn { transition: none; } }
@media (max-width: 480px) { .rdpx-hero { padding: 24px 20px; } .rdpx-btn { white-space: nowrap; font-size: .92rem; padding: 14px 16px; } .rdpx-cell { padding: 16px 20px; } .rdpx-steps, .rdpx-steps-head { padding-left: 16px; padding-right: 16px; } }

/* v0.43 server status checks */
.rdpx-st.is-down { background: rgba(255, 99, 82, .18); color: #FFB4A8; }
.rdpx-st.is-down i { background: #FF6352; box-shadow: 0 0 0 4px rgba(255, 99, 82, .28); animation: rdpx-pulse-err 1.4s ease-in-out infinite; }
@keyframes rdpx-pulse-err { 50% { box-shadow: 0 0 0 7px rgba(255, 99, 82, .06); } }
.live-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font: 600 .76rem/1.3 var(--f-body); background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); white-space: nowrap; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-down { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }
.live-maint { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.ctl-head .live-chip { margin-left: auto; margin-right: 8px; }
/* v0.44.10: chip and help link share the right side (two auto margins put the chip in the middle) */
.ctl-head:has(.live-chip) { align-items: center; }
.ctl-head .live-chip + .help-link { margin-left: 0; }
.live-note { margin: -4px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.mon-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.mon-k { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.mon-k i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3, #94A3B8); }
.mon-k b { font: 700 1.5rem/1.1 var(--f-head, var(--f-body)); }
.mon-k span { font-size: .8rem; color: var(--text-2); }
.mon-k.mon-up i { background: #22C55E; } .mon-k.mon-down i { background: #EF4444; } .mon-k.mon-maint i { background: #F59E0B; }
.mon-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: #94A3B8; }
.mon-up .mon-dot { background: #22C55E; } .mon-down .mon-dot { background: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); } .mon-maint .mon-dot { background: #F59E0B; }
.mon-table tr.mon-down td { background: var(--err-bg); }
.mon-host { font-weight: 600; }
.mon-proto { margin-left: 6px; font-size: .68rem; }
.mon-svc { display: block; font-weight: 600; }
.mon-table td:first-child { white-space: nowrap; }
.mon-table td:nth-child(2) { min-width: 170px; }
.mon-act { width: 230px; }
.mon-act-in { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.mon-act form { display: flex; gap: 6px; align-items: center; margin: 0; }
.mon-act form .btn { flex: 1; }
.mon-act select { padding: 5px 8px; font-size: .8rem; width: 84px; flex: none; }
.mon-list { list-style: none; margin: 0 0 14px; padding: 0; }
.mon-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.mon-task .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.mon-task .actions form { margin: 0; }
@media (max-width: 860px) { .mon-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mon-act { white-space: normal; text-align: left; } }
.rdpx-id { flex: 1 1 auto; }
.rdpx-ip { overflow-wrap: normal; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.rdpx-ip span { display: inline-block; }
/* v0.43.1: a closed spec card is fixed (taken out of the page) so it never makes a table box scroll on its own */
.spop-card { position: fixed; top: 0; left: 0; }
/* v0.43.2: login details as rows (label · value · copy), so the address and long passwords never break mid-way */
.rdpx-creds { grid-template-columns: 1fr; }
.rdpx-cell { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 24px; }
.rdpx-cell + .rdpx-cell { border-left: 0; border-top: 1px solid var(--border); }
.rdpx-v { margin-top: 0; }
.rdpx-v > .mono { overflow-wrap: normal; word-break: normal; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.rdpx-v > .mono::-webkit-scrollbar { display: none; }
.rdpx-pw { max-width: calc(100% - 44px); }
.rdpx-v .rdpx-ic, .rdpx-v form { margin-left: auto; }
@media (max-width: 480px) {
  .rdpx-cell { grid-template-columns: 1fr; gap: 8px; padding: 14px 20px; }
  .rdpx-v > .mono { white-space: normal; overflow-wrap: anywhere; }
}

/* v0.44 suspension holds */
.hold-card { position: relative; scroll-margin-top: 90px; }
.hold-card h2 { margin: 0 0 6px; padding-right: 44px; min-height: 36px; display: flex; align-items: center; }
.hold-ic { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #FFF4EE; color: #C2561F; }
.hold-ic .ico { width: 18px; height: 18px; }
.hold-card.is-on { border-color: var(--ok-line); background: linear-gradient(180deg, var(--ok-bg), var(--surface) 70%); }
.hold-card.is-on .hold-ic { background: var(--ok-bg); color: var(--ok); }
.hold-card.is-wait .hold-ic { background: var(--info-bg); color: var(--info); }
.hold-card.is-no { border-color: var(--err-line); }
.hold-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 12px 0 14px; }
.hold-days label { position: relative; display: block; cursor: pointer; }
.hold-days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hold-days span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.hold-days b { font-size: .92rem; }
.hold-days small { color: var(--text-2); font-size: .76rem; }
.hold-days input:checked + span { border-color: #FF7A45; background: #FFF6F1; box-shadow: 0 0 0 3px rgba(255, 122, 69, .16); }
.hold-days input:focus-visible + span { outline: 2px solid #FF7A45; outline-offset: 2px; }
.hold-card input[type=text] { margin-top: 6px; }
dd > .inline-form { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.hold-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.hold-acts form { display: flex; gap: 8px; align-items: center; margin: 0; }
.hold-acts .hold-no { flex: 1 1 260px; }
.hold-acts .hold-no input { flex: 1; min-width: 0; }
.hold-acts select { width: auto; }
.theme-picker > .btn { margin-top: 18px; }
/* v0.44.2 staff holds until a date */
.hold-row .hold-set { margin-top: 6px; }
.hold-row .hold-set summary { cursor: pointer; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.hold-until { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 6px; }
.hold-until input[type=date] { width: auto; }
.hold-until input[type=text] { flex: 1 1 220px; min-width: 0; }
.hold-until + form { margin: 0; }
.hold-list { margin: 0 0 10px; padding-left: 18px; }
/* v0.44.3 staff shared RDP login rows */
.cp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-row .inline-form { display: inline-flex; margin: 0; }
.cp-row .btn .ico { width: 14px; height: 14px; }
.cp-ic { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; padding: 0; }
.cp-ic:hover { border-color: var(--accent); color: var(--text); }
.cp-ic .ico { width: 14px; height: 14px; }
.cp-ic.is-copied, .rdpx-ic.is-copied { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
/* v0.44.4 RDP account steps on tasks */
.rdp-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- v0.45.0: VPS page, design A ("command center") ---------- */
.vpx { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 38px); margin-bottom: 18px; color: #fff;
  background: radial-gradient(900px 380px at 88% -25%, rgba(255,122,69,.55), transparent 60%), radial-gradient(700px 400px at -10% 125%, rgba(47,123,255,.42), transparent 60%), linear-gradient(135deg, #0E1B33, #13244A);
  box-shadow: 0 24px 60px -30px rgba(14,27,51,.55); }
.vpx::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.vpx-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.vpx-tag { font: 600 .74rem/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #9FB3D9; }
.vpx-name { font-family: var(--f-head); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 6px 0 12px; color: #fff; letter-spacing: -.02em; }
.vpx-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.vpx-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: #E6ECF7; }
.vpx-meta .ico { width: 14px; height: 14px; color: #FFB08C; }
.vpx-live { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border-radius: 14px; font-weight: 600; font-size: .9rem; white-space: nowrap;
  background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.4); color: #DCFCE7; }
.vpx-live i { width: 10px; height: 10px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 5px rgba(74,222,128,.2), 0 0 16px #4ADE80; }
.vpx-live.is-down { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.45); color: #FEE2E2; } .vpx-live.is-down i { background: #F87171; box-shadow: 0 0 0 5px rgba(248,113,113,.2); }
.vpx-live.is-maint, .vpx-live.is-off { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.45); color: #FEF3C7; } .vpx-live.is-maint i, .vpx-live.is-off i { background: #FBBF24; box-shadow: 0 0 0 5px rgba(251,191,36,.2); }
.vpx-addr { display: flex; align-items: flex-end; gap: 18px 24px; flex-wrap: wrap; margin-top: clamp(20px, 3vw, 30px); }
.vpx-ip { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; letter-spacing: .02em; line-height: 1.15; overflow-wrap: anywhere; }
.vpx-ip small { font-size: .95rem; color: #9FB3D9; margin-left: 6px; }
.vpx-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.vpx-acts form { margin: 0; }
.vpx-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font: 600 .92rem/1.2 var(--f-body); cursor: pointer; text-decoration: none;
  color: #fff !important; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); transition: background .15s, transform .15s; }
.vpx-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.vpx-btn .ico { width: 17px; height: 17px; }
.vpx-btn.is-main { background: linear-gradient(135deg, #FF7A45, #FF9A5C); border: 0; box-shadow: 0 10px 28px -8px rgba(255,122,69,.75); }
.vpx-btn.is-main:hover { background: linear-gradient(135deg, #FF6A30, #FF8C49); }
.vpx-k { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: .82rem; }
.vpx-k .ico { width: 15px; height: 15px; }
.vpx-login .vpx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.vpx-login .vpx-row:first-of-type { border-top: 0; }
.vpx-row > span { color: var(--text-2); }
.vpx-row > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; text-align: right; font-weight: 600; min-width: 0; }
.vpx-row > div form { margin: 0; }
.vpx-row .mono { overflow-wrap: anywhere; }
.vpx-dots { letter-spacing: .12em; }
.vpx-manage .ctl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.ctl.tile { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); margin: 0; padding: 0; }
.ctl.tile > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 16px; font-weight: 600; font-size: .9rem; text-align: center; border: 0; }
.ctl.tile > summary::-webkit-details-marker { display: none; }
.ctl.tile > summary::before, .ctl.tile > summary::after { display: none; }
.ctl.tile > summary i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #EAF1FF; color: #2F7BFF; }
.ctl.tile > summary i.t-or { background: #FFF1EA; color: #FF7A45; }
.ctl.tile > summary .ico { width: 20px; height: 20px; }
.ctl.tile:hover { border-color: #C9D6EE; box-shadow: 0 8px 22px -14px rgba(14,27,51,.35); }
.ctl.tile[open] { grid-column: 1 / -1; padding: 0 18px 18px; }
.ctl.tile[open] > summary { flex-direction: row; justify-content: flex-start; padding: 14px 0; font-size: 1rem; }
.ctl.tile[open] > summary i { width: 36px; height: 36px; border-radius: 11px; }
.vpx-due { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.vpx-due b { font: 700 1.9rem/1.2 var(--f-head); }
.vpx-due span { color: var(--text-2); font-size: .9rem; }
.vpx-bar { height: 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); margin: 10px 0 14px; overflow: hidden; }
.vpx-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #FF7A45, #FFA36E); }
.vpx-bar.is-soon i { background: linear-gradient(90deg, #EF4444, #F97316); }
.vpx-bar i.w-5{width:5%}.vpx-bar i.w-10{width:10%}.vpx-bar i.w-15{width:15%}.vpx-bar i.w-20{width:20%}.vpx-bar i.w-25{width:25%}.vpx-bar i.w-30{width:30%}.vpx-bar i.w-35{width:35%}.vpx-bar i.w-40{width:40%}.vpx-bar i.w-45{width:45%}.vpx-bar i.w-50{width:50%}
.vpx-bar i.w-55{width:55%}.vpx-bar i.w-60{width:60%}.vpx-bar i.w-65{width:65%}.vpx-bar i.w-70{width:70%}.vpx-bar i.w-75{width:75%}.vpx-bar i.w-80{width:80%}.vpx-bar i.w-85{width:85%}.vpx-bar i.w-90{width:90%}.vpx-bar i.w-95{width:95%}.vpx-bar i.w-100{width:100%}
@media (max-width: 640px) {
  .vpx-acts { margin-left: 0; width: 100%; }
  .vpx-acts .vpx-btn, .vpx-acts form { flex: 1 1 auto; justify-content: center; }
  .vpx-acts form .vpx-btn { width: 100%; justify-content: center; }
  .vpx-login .vpx-row { flex-direction: column; align-items: flex-start; }
  .vpx-row > div { justify-content: flex-start; text-align: left; }
}

/* v0.45.1: real usage — live tiles, Performance and Traffic cards (usage.js) */
.ux-card { position: relative; }
.ux-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ux-head h2 { margin: 0; }
.ux-upd { font-size: .8rem; color: var(--text-2); }
.ux-upd.is-stale { color: #B45309; }
.ux-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ux-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.ux-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-2); font: 600 .84rem/1 var(--f-body); padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.ux-seg button .ico { width: 15px; height: 15px; }
.ux-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(14,27,51,.08), 0 0 0 1px var(--border); }
.ux-seg button:focus-visible { outline: 2px solid #2F7BFF; outline-offset: 1px; }
.ux-sum { margin: 14px 0 6px; font-size: .88rem; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.ux-chart { position: relative; height: 220px; }
.ux-chart.is-bars { height: 180px; }
.ux-svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.ux-grid { stroke: var(--border); stroke-width: 1; }
.ux-ax { fill: var(--text-2); font: 500 11px var(--f-body); font-variant-numeric: tabular-nums; }
.ux-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ux-guide { stroke: var(--border-strong); stroke-dasharray: 3 3; }
.ux-pt { stroke: var(--surface); stroke-width: 2; }
.ux-hit { fill: transparent; cursor: crosshair; }
.ux-c0.ux-line { stroke: #2F7BFF; } .ux-c0.ux-st { stop-color: #2F7BFF; } .ux-c0.ux-pt { fill: #2F7BFF; }
.ux-c1.ux-line { stroke: #FF7A45; } .ux-c1.ux-st { stop-color: #FF7A45; } .ux-c1.ux-pt { fill: #FF7A45; }
.ux-c2.ux-line { stroke: #8B5CF6; } .ux-c2.ux-st { stop-color: #8B5CF6; } .ux-c2.ux-pt { fill: #8B5CF6; }
.ux-c3.ux-line { stroke: #0EA5A4; } .ux-c3.ux-st { stop-color: #0EA5A4; } .ux-c3.ux-pt { fill: #0EA5A4; }
.ux-in { fill: #2F7BFF; } .ux-out { fill: #FF7A45; }
.ux-col:hover .ux-in { fill: #1F63E0; } .ux-col:hover .ux-out { fill: #F2622A; }
.ux-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: 11px; background: #0E1B33; color: #fff; font-size: .8rem; line-height: 1.45; box-shadow: 0 10px 28px -10px rgba(14,27,51,.55); font-variant-numeric: tabular-nums; }
.ux-tip b { display: block; font-weight: 600; margin-bottom: 3px; color: #C9D6EE; }
.ux-tip span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.ux-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ux-bg0, .ux-dot.is-in { background: #2F7BFF; } .ux-bg1, .ux-dot.is-out { background: #FF7A45; } .ux-bg2 { background: #8B5CF6; } .ux-bg3 { background: #0EA5A4; }
.ux-empty { margin: 0; padding: 40px 0; text-align: center; }
.ux-live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: #EAF1FF; color: #1F4FB8; font: 600 .82rem/1 var(--f-body); white-space: pre; font-variant-numeric: tabular-nums; }
.ux-live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: uxPulse 2s infinite; }
@keyframes uxPulse { 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .ux-live-pill::before { animation: none; } .ut-bar i { transition: none; } }
.ux-bw { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 18px; }
.ux-bw-main, .ux-bw-side > div { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.ux-bw-side { display: grid; gap: 10px; }
.ux-bw-side > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 12px 16px; }
.ux-bw-side b { font-variant-numeric: tabular-nums; }
.ux-k { font-size: .8rem; color: var(--text-2); }
.ux-bw-big { margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.ux-bw-big b { font: 700 1.9rem/1.1 var(--f-head); letter-spacing: -.01em; }
.ux-bw-big span { color: var(--text-2); font-weight: 600; margin-left: 4px; }
.ux-meter { height: 10px; border-radius: 99px; background: #EAF1FF; overflow: hidden; margin-bottom: 8px; }
.ux-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2F7BFF, #6AA2FF); transition: width .6s ease; }
.ux-meter i.is-warm { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.ux-meter i.is-hot { background: linear-gradient(90deg, #EF4444, #FF7A45); }
.ux-sub { font-size: .95rem; margin: 6px 0 10px; }
.ux-mon { margin-top: 22px; }
.ux-mon .ux-sub { margin: 0; }
@media (max-width: 720px) {
  .ux-bw { grid-template-columns: 1fr; }
  .ux-bar-row { align-items: stretch; }
  .ux-bar-row > .ux-seg { width: 100%; }
  .ux-seg button { flex: 1 1 0; justify-content: center; padding: 9px 6px; }
  .ux-chart { height: 200px; }
}

/* v0.45.2: Performance and Traffic open and close from their heading */
.ux-card .ux-head { margin-bottom: 0; }
.ux-toggle { display: inline-flex; align-items: center; gap: 10px; margin: -6px -10px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.ux-toggle:hover { background: var(--hover); }
.ux-toggle:focus-visible { outline: 2px solid #2F7BFF; outline-offset: 2px; }
.ux-toggle:disabled { cursor: default; background: transparent; }
.ux-toggle .ico { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 8px; background: #EAF1FF; color: #2F7BFF; transform: rotate(-90deg); transition: transform .2s ease; box-sizing: content-box; }
.ux-card.is-open .ux-toggle .ico { transform: rotate(0deg); }
.ux-peek { margin: 8px 0 0 40px; font-size: .88rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ux-peek:empty { display: none; }
.ux-card.is-open .ux-peek { display: none; }
.ux-body { margin-top: 16px; }
.ux-err { margin: 10px 0 0 40px; }
@media (prefers-reduced-motion: reduce) { .ux-toggle .ico { transition: none; } }

/* v0.45.3: metric tiles — colour per metric, ring gauge, trend line along the bottom edge */
.vpx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ut-ring[hidden] { display: none; }
.ut-spark:empty { display: none; }
.vpx-tile { --c: #2F7BFF; --c2: #EAF1FF; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  min-height: 168px; padding: 16px 18px 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 12px 28px -18px rgba(14,27,51,.28); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.vpx-tile::before { content: ""; position: absolute; z-index: -1; width: 160px; height: 160px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, var(--c2) 0%, transparent 70%); opacity: .9; }
.vpx-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 18px 34px -18px color-mix(in srgb, var(--c) 45%, transparent); }
.vpx-tile.ut-cpu { --c: #2F7BFF; --c2: #E6EFFF; }
.vpx-tile.ut-ram { --c: #8B5CF6; --c2: #F0E9FF; }
.vpx-tile.ut-disk { --c: #0EA5A4; --c2: #DDF6F4; }
.vpx-tile.ut-net { --c: #FF7A45; --c2: #FFEDE4; }
.vpx-tile.is-warm { --c: #F59E0B; --c2: #FEF3D7; }
.vpx-tile.is-hot { --c: #EF4444; --c2: #FDE4E4; }
.ut-top { display: flex; align-items: center; gap: 9px; }
.ut-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c2); color: var(--c); flex: none; }
.ut-ic .ico { width: 17px; height: 17px; }
.ut-lbl { font: 600 .86rem/1 var(--f-body); color: var(--text); }
.ut-spec { margin-left: auto; padding: 4px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font: 600 .72rem/1 var(--f-body); color: var(--text-2); white-space: nowrap; }
.vpx-tile:not(.has-live) .ut-spec { display: none; }
.ut-main { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.ut-ring { width: 52px; height: 52px; flex: none; transform: rotate(-90deg); }
.ut-ring-bg { fill: none; stroke: var(--c2); stroke-width: 6; }
.ut-ring-fg { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2,.7,.2,1); }
.ut-fig { min-width: 0; }
.ut-fig b { display: block; font: 700 1.55rem/1.1 var(--f-head); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vpx-tile.has-live .ut-fig b { color: var(--c); }
.ut-fig small { display: block; margin-top: 4px; font-size: .8rem; color: var(--text-2); line-height: 1.3; }
.ut-spark { display: block; height: 44px; width: calc(100% + 36px); margin: auto -18px 0; }
.ut-spark .ut-st { stop-color: var(--c); }
.ut-spark .ut-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; }
.vpx-tile:not(.has-live) { min-height: 0; padding-bottom: 16px; }
.vpx-tile:not(.has-live) .ut-spark { display: none; }
@media (prefers-reduced-motion: reduce) { .vpx-tile, .ut-ring-fg { transition: none; } .vpx-tile:hover { transform: none; } }
@media (max-width: 520px) { .vpx-tiles { gap: 10px; } .vpx-tile { min-height: 150px; padding: 14px 14px 0; } .ut-spark { width: calc(100% + 28px); margin: auto -14px 0; } .ut-ring { width: 40px; height: 40px; } .ut-fig b { font-size: 1.2rem; } .ut-spec { display: none; } }

/* v0.45.4: tiles that are switched off leave no gap */
.vpx-tiles.n-1 { grid-template-columns: 1fr; }
.vpx-tiles.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .vpx-tiles.n-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vpx-tiles.n-3 > :last-child { grid-column: 1 / -1; } }

/* v0.45.5: Manage tiles stay in one row; the open tile is highlighted and its options show in a panel below */
.ctl-grid.is-tabs .ctl.tile[open] { grid-column: auto; padding: 0; border-color: #2F7BFF; background: linear-gradient(180deg, #F3F7FF, #EAF1FF); box-shadow: 0 0 0 3px rgba(47,123,255,.14); }
.ctl-grid.is-tabs .ctl.tile[open] > summary { flex-direction: column; justify-content: center; padding: 18px 10px 16px; font-size: .9rem; color: #1F4FB8; }
.ctl-grid.is-tabs .ctl.tile[open] > summary i { width: 44px; height: 44px; border-radius: 14px; background: #2F7BFF; color: #fff; }
.ctl-grid.is-tabs .ctl.tile[open] > summary i.t-or { background: #FF7A45; }
.ctl-grid.is-tabs .ctl.tile { position: relative; }
.ctl-grid.is-tabs .ctl.tile[open]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: #EAF1FF; border-right: 1px solid #2F7BFF; border-bottom: 1px solid #2F7BFF; }
.ctl-panel { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2); animation: ctlIn .18s ease; }
.ctl-panel > :first-child { margin-top: 0; }
.ctl-panel > :last-child { margin-bottom: 0; }
@keyframes ctlIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ctl-panel { animation: none; } }
@media (max-width: 720px) { .ctl-grid.is-tabs .ctl.tile[open]::after { display: none; } }

/* v0.45.6: staff VPS page (admin/_vpsx.php) */
.vpx-tag a { color: #C9D6EE; text-decoration: none; border-bottom: 1px dashed rgba(201,214,238,.5); }
.vpx-tag a:hover { color: #fff; }
.vpx-meta a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(47,123,255,.22); border: 1px solid rgba(122,168,255,.45); font-size: .82rem; color: #fff; text-decoration: none; }
.vpx-meta a:hover { background: rgba(47,123,255,.34); }
.vpx-meta a .ico { color: #9CC0FF; }
.vpx-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.vpx-head-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vpx-head-acts .btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #E6ECF7; }
.vpx-head-acts .btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.vpx-head-acts .btn .ico { width: 15px; height: 15px; }
.vpx-ip .cp-ic.is-dark { margin-left: 12px; vertical-align: middle; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #C9D6EE; }
.vpx-ip .cp-ic.is-dark:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.sx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sx-fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 12px 28px -20px rgba(14,27,51,.3); }
.sx-k { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-2); }
.sx-k .ico { width: 15px; height: 15px; color: #2F7BFF; }
.sx-fact b { font: 700 1.05rem/1.25 var(--f-body); color: var(--text); overflow-wrap: anywhere; }
.sx-fact b .badge, .sx-fact b .live-chip { font-size: .78rem; }
.sx-fact small { font-size: .76rem; color: var(--text-2); overflow-wrap: anywhere; }
.ctl.tile > summary i.t-red { background: #FDECEC; color: #DC2626; }
.ctl-grid.is-tabs .ctl.tile.is-danger[open] { border-color: #DC2626; background: linear-gradient(180deg, #FFF6F6, #FDECEC); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.ctl-grid.is-tabs .ctl.tile.is-danger[open] > summary { color: #B91C1C; }
.ctl-grid.is-tabs .ctl.tile.is-danger[open] > summary i { background: #DC2626; color: #fff; }
.ctl-grid.is-tabs .ctl.tile.is-danger[open]::after { background: #FDECEC; border-color: #DC2626; }
.ctl-panel .ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ctl-panel .ctl-row select, .ctl-panel .ctl-row input[type=text] { flex: 1 1 220px; width: auto; }
.ctl-panel .hold-until { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.ctl-panel .hold-until input[type=text] { flex: 1 1 260px; }
.sx-kv dd { min-width: 0; }
.sx-jobs { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.sx-jobs > summary { cursor: pointer; font-weight: 600; }
.sx-jobs[open] > summary { margin-bottom: 10px; }
.vpx-page .sx-off, .sx-off { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }   /* v0.48.1: room above, quieter than the jobs */
.sx-off > summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); }
.sx-off[open] > summary { margin-bottom: 8px; }
.sx-term { margin-top: 12px; }
.sx-edit > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.sx-edit > summary::-webkit-details-marker { display: none; }
.sx-edit > summary h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.sx-edit > summary h2::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.sx-edit[open] > summary h2::after { transform: rotate(-135deg); }
.sx-edit[open] > summary { margin-bottom: 14px; }
@media (max-width: 980px) { .sx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vpx-side { align-items: flex-start; } .vpx-head-acts { justify-content: flex-start; } }
.sx-edit > summary .small { font-weight: 400; }

/* v0.46.0: dashboard + servers list (command-center style) */
:is(.cdx-stat, .cdx-card, .sl-row, .cdx-empty) { --c: #2F7BFF; --c2: #E6EFFF; }
:is(.cdx-stat, .cdx-card, .sl-row).ut-ram { --c: #8B5CF6; --c2: #F0E9FF; }
:is(.cdx-stat, .cdx-card, .sl-row).ut-disk { --c: #0EA5A4; --c2: #DDF6F4; }
:is(.cdx-stat, .cdx-card, .sl-row).ut-net { --c: #FF7A45; --c2: #FFEDE4; }
.cdx-stat.is-hot { --c: #EF4444; --c2: #FDE4E4; }
.vpx.cdx .vpx-name { margin-bottom: 6px; }
.cdx-sub { margin: 0; color: #C9D6EE; font-size: 1rem; max-width: 52ch; }
.cdx-health { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cdx-acts { margin-top: clamp(18px, 2.6vw, 26px); }
.vpx.cdx.is-slim { padding-top: clamp(20px, 2.6vw, 28px); padding-bottom: clamp(20px, 2.6vw, 28px); }
.vpx.cdx.is-slim .vpx-top { align-items: center; }
.vpx.cdx.is-slim .vpx-name { margin: 4px 0 0; }
.vpx.cdx.is-slim .cdx-acts { margin-top: 0; }
.cdx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.cdx-stat { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic lbl" "val val" "sub sub"; align-items: center; gap: 6px 10px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 12px 28px -20px rgba(14,27,51,.3); transition: transform .2s ease, border-color .2s ease; }
.cdx-stat::before { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, var(--c2) 0%, transparent 70%); }
a.cdx-stat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); }
.cdx-stat .ut-ic { grid-area: ic; }
.cdx-stat small { grid-area: lbl; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.cdx-stat b { grid-area: val; font: 700 1.6rem/1.15 var(--f-head); letter-spacing: -.02em; margin-top: 4px; color: var(--c); }
.cdx-stat > span:last-child { grid-area: sub; font-size: .8rem; color: var(--text-2); min-width: 0; }
.cdx-stat .stat-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdx-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.cdx-h2 h2 { margin: 0; }
.cdx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.cdx-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 14px 32px -22px rgba(14,27,51,.35); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cdx-card::before { content: ""; position: absolute; z-index: -1; width: 200px; height: 200px; right: -80px; top: -100px; border-radius: 50%; background: radial-gradient(circle, var(--c2) 0%, transparent 70%); }
.cdx-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 18px 36px -20px color-mix(in srgb, var(--c) 40%, transparent); }
.cdx-card-top { display: flex; align-items: center; gap: 10px; }
.cdx-kind { display: flex; flex-direction: column; gap: 2px; font: 600 .84rem/1.2 var(--f-body); color: var(--text); min-width: 0; }
.cdx-kind small { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: .76rem; color: var(--text-2); }
.cdx-kind small .ico { width: 12px; height: 12px; }
.cdx-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font: 600 .76rem/1 var(--f-body); white-space: nowrap; background: #E8F7EE; color: #15803D; border: 1px solid #BBE5CB; }
.cdx-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.cdx-pill.is-maint { background: #FEF6E4; color: #B45309; border-color: #F5DDA8; }
.cdx-pill.is-down { background: #FDECEC; color: #B91C1C; border-color: #F5C2C2; }
.cdx-pill.is-off { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.cdx-name { margin: 6px 0 0; font: 700 1.25rem/1.2 var(--f-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cdx-name a { color: var(--text); text-decoration: none; }
.cdx-name a:hover { color: var(--c); }
.cdx-plan { margin: -6px 0 0; font-size: .84rem; color: var(--text-2); }
.cdx-ip { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.cdx-ip .mono { font-size: .98rem; font-weight: 600; }
.cdx-renew-t { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--text-2); margin-bottom: 6px; }
.cdx-renew-t b { color: var(--text); font-weight: 600; }
.cdx-renew-t b.is-soon { color: #EA580C; }
.cdx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.cdx-price { font-size: .84rem; color: var(--text-2); }
.cdx-price b { font: 700 1.2rem/1 var(--f-head); color: var(--text); }
.cdx-btns { display: flex; gap: 8px; }
.cdx-btns .btn .ico { width: 15px; height: 15px; }
.cdx-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px; text-align: center; }
.cdx-empty .ut-ic { width: 46px; height: 46px; border-radius: 14px; }
.cdx-empty > span:not(.ut-ic) { color: var(--text-2); font-size: .9rem; }
.cdx-empty .btn { margin-top: 6px; }
/* servers list */
.sl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sl-chips button .sl-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .72rem; }
.sl-chips button[aria-pressed="true"] .sl-n { background: #EAF1FF; border-color: #C9D6EE; color: #1F4FB8; }
.sl-search { display: flex; align-items: center; gap: 8px; flex: 0 1 320px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sl-search:focus-within { border-color: #2F7BFF; box-shadow: 0 0 0 3px rgba(47,123,255,.15); }
.sl-search .ico { width: 16px; height: 16px; color: var(--text-2); flex: none; }
.sl-search input { border: 0; box-shadow: none; background: transparent; padding: 10px 0; width: 100%; outline: none; }
.sl-list { display: flex; flex-direction: column; gap: 10px; }
.sl-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 2.2fr) minmax(0, 1.4fr) auto minmax(0, 1.3fr) auto auto; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(14,27,51,.04); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.sl-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: .8; }
.sl-row:hover { border-color: color-mix(in srgb, var(--c) 35%, var(--border)); box-shadow: 0 12px 26px -18px rgba(14,27,51,.35); transform: translateY(-1px); }
.sl-row.is-ended { opacity: .72; }
.sl-row[hidden] { display: none; }
.sl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sl-name { font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.sl-name:hover { color: var(--c); }
.sl-sub { font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-ip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sl-ip .mono { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-row .cdx-pill { margin-left: 0; }
.sl-renew { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--text-2); }
.sl-price { text-align: right; white-space: nowrap; }
.sl-price b { display: block; font: 700 1.02rem/1.1 var(--f-head); }
.sl-price span { font-size: .76rem; color: var(--text-2); }
.sl-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.sl-go:hover { background: var(--c); border-color: var(--c); color: #fff; }
.sl-go .ico { width: 16px; height: 16px; }
@media (max-width: 1100px) { .sl-row { grid-template-columns: auto minmax(0, 2fr) minmax(0, 1.3fr) auto auto auto; } .sl-renew { display: none; } }
@media (max-width: 980px) { .cdx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cdx-health { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .sl-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic main go" "ip ip pill" "renew renew price"; gap: 10px 12px; }
  .sl-row > .ut-ic { grid-area: ic; } .sl-main { grid-area: main; } .sl-go { grid-area: go; } .sl-ip { grid-area: ip; } .sl-row .cdx-pill { grid-area: pill; justify-self: end; }
  .sl-renew { grid-area: renew; display: flex; } .sl-price { grid-area: price; align-self: end; }
  .sl-search { flex: 1 1 100%; }
  .sl-chips { width: 100%; overflow-x: auto; }
  .sl-chips button { flex: none; }
}
@media (max-width: 520px) { .cdx-stats { gap: 10px; } .cdx-stat { padding: 14px; } .cdx-stat b { font-size: 1.3rem; } }
/* v0.46.0: fixed columns so rows line up */
.sl-row { grid-template-columns: 34px minmax(0, 1fr) 190px 136px 170px 84px 34px; }
@media (max-width: 1100px) { .sl-row { grid-template-columns: 34px minmax(0, 1fr) 180px 130px 84px 34px; } }
@media (max-width: 720px) { .sl-row { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* v0.46.1: shared RDP connect guide as its own card (hero + login details come from _vpx) */
.rdpx-guide .rdpx-steps-head { padding: 0; }
.rdpx-guide .rdpx-steps-head h2 { margin: 0; }
.rdpx-guide .rdpx-steps { padding: 14px 0 0; }
@media (max-width: 860px) { .rdpx-guide .rdpx-steps { grid-template-columns: 1fr; } }
/* v0.46.1: tiles without live figures (shared RDP, dedicated): the plan value wraps instead of being cut off */
.vpx-tile:not(.has-live) .ut-fig b { white-space: normal; font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
.ut-fig small:empty { display: none; }
.vpx-tile:not(.has-live) .ut-main { margin-bottom: 0; }
.ctl-panel > p.small.muted.mt0:first-child::first-letter { text-transform: uppercase; }

/* ---------- v0.46.2: invoices, invoice page, order pages and cart in the command-center style ---------- */
.il-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cdx-stat.is-late, .sl-row.is-late { --c: #EF4444; --c2: #FDE4E4; }
.il-row { grid-template-columns: 34px minmax(0, 1fr) 120px 160px 110px 136px; }
.il-row .cdx-pill { justify-self: start; }
.il-date { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; white-space: nowrap; }
.il-date small { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.il-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.il-acts .btn { border-radius: 11px; }
@media (max-width: 1100px) { .il-row { grid-template-columns: 34px minmax(0, 1fr) 150px 110px 136px; } .il-date { display: none; } }
@media (max-width: 720px) {
  .il-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .il-stats .cdx-stat:first-child { grid-column: 1 / -1; }
  .il-stats .cdx-stat:not(:first-child) .ut-ic { display: none; }
  .il-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic main main" "pill pill price" "date date acts"; }
  .il-row .il-date { grid-area: date; display: flex; } .il-row .il-acts { grid-area: acts; } .il-row .cdx-pill { justify-self: start; }
}
/* help link and currency picker on the dark hero */
.vpx .help-link { color: #C9D6EE; padding: 0 4px; }
.vpx .help-link:hover { color: #fff; }
.vpx .cur-pick-order { margin: 0; color: #C9D6EE; padding: 4px 6px 4px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.vpx .cur-pick-order select { background-color: #fff; border-color: transparent; }
.ox-acts { align-items: center; }
.ox-hero + .cat-intro, .ox-hero + .notice { margin-top: 0; }
/* order steps in the cart hero */
.ox-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.ox-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; color: #9FB3D9; }
.ox-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .74rem; font-weight: 800; color: #fff; }
.ox-steps li span .ico { width: 13px; height: 13px; stroke-width: 3; }
.ox-steps .is-done span { background: #22C55E; }
.ox-steps .is-now { color: #fff; border-color: rgba(255,122,69,.6); background: rgba(255,122,69,.16); }
.ox-steps .is-now span { background: linear-gradient(135deg, #FF7A45, #FF9A5C); }
/* invoice page hero: the dark command-center look */
.iv-hero, .site-look .iv-hero { color: #fff; border: 0; border-radius: 26px; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 38px); box-shadow: 0 24px 60px -30px rgba(14,27,51,.55);
  background: radial-gradient(900px 380px at 88% -25%, rgba(255,122,69,.55), transparent 60%), radial-gradient(700px 400px at -10% 125%, rgba(47,123,255,.42), transparent 60%), linear-gradient(135deg, #0E1B33, #13244A); }
.iv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.iv-hero h1 { color: #fff; }
.iv-kicker, .iv-hero-amt > span:last-child { color: #9FB3D9; }
.iv-chips > span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #E6EDFA; }
.iv-chips .ico { color: #9FB3D9; }
.iv-chips .is-soon { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.5); color: #FCD34D; }
.iv-chips .is-late { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.55); color: #FCA5A5; }
.iv-hero-amt b { color: #fff; }
.iv-paid .iv-hero-amt b { color: #4ADE80; }
.iv-unpaid .iv-hero-amt b { background: linear-gradient(135deg, #FFB088, #FF7A45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iv-sheet, .iv-block, .iv-pay { border-radius: 22px; }
@media (max-width: 640px) { .iv-hero { padding: 22px 20px; } }

/* ---------- v0.46.3: support tickets and account pages in the command-center style ---------- */
/* ticket list */
.tl-row { grid-template-columns: 34px minmax(0, 1fr) 170px 150px 34px; }
.tl-row .cdx-pill { justify-self: start; }
.tl-row.ut-net .sl-name { color: var(--text); }
@media (max-width: 720px) {
  .tl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .tl-row .sl-main { flex: 1 1 calc(100% - 104px); order: 1; } .tl-row > .ut-ic { order: 0; } .tl-row .sl-go { order: 2; }
  .tl-row .cdx-pill { order: 3; } .tl-row .il-date { order: 4; display: flex; margin-left: auto; text-align: right; align-items: flex-end; }
  .tl-row .sl-sub { white-space: normal; }
}
/* ticket page hero */
.tkx .vpx-name { margin-bottom: 10px; }
.tkx .vpx-name.h1-long { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.tkx-main { min-width: 0; flex: 1 1 420px; }
.tkx-st { align-self: flex-start; }
.tkx-st.is-off { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #C9D6EE; } .tkx-st.is-off i { background: #94A3B8; box-shadow: none; }
.tkx-about { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #E6ECF7; text-decoration: none; max-width: 640px; }
.tkx-about:hover { background: rgba(255,255,255,.12); }
.tkx-about .ut-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(47,123,255,.3); color: #fff; }
.tkx-about .ut-ic .ico { width: 18px; height: 18px; }
.tkx-about > span:nth-child(2) { flex: 1 1 auto; min-width: 0; font-size: .86rem; overflow-wrap: anywhere; }
.tkx-about small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB3D9; }
.tkx-about b { color: #fff; }
.tkx-about > .ico { width: 16px; height: 16px; color: #9FB3D9; flex: none; }
section.vpx .tkx-about + .vpx-acts.cdx-acts { margin-top: 16px; }   /* v0.64.96: space between "This ticket is about" and the buttons */
.tkx .cdx-acts { margin-top: 16px; }
/* account hero */
.acx-who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.acx-av { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font: 800 1.4rem/1 var(--f-head); color: #fff; background: linear-gradient(135deg, #FF7A45, #2F7BFF); box-shadow: 0 12px 30px -12px rgba(255,122,69,.7); }
.acx .vpx-name { margin-bottom: 10px; }
.vpx-meta .is-ok .ico { color: #86EFAC; }
.vpx-meta .is-warn { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.16); color: #FDE68A; }
.vpx-meta .is-warn .ico { color: #FCD34D; }
.acx-tabs { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.acx-tabs::-webkit-scrollbar { display: none; }
.acx-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: #C9D6EE; text-decoration: none; font: 600 .88rem/1.2 var(--f-body); border: 1px solid transparent; }
.acx-tabs a .ico { width: 16px; height: 16px; }
.acx-tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.acx-tabs a[aria-current="page"] { background: #fff; color: #0E1B33; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.acx-tabs a[aria-current="page"] .ico { color: #FF7A45; }
@media (max-width: 640px) { .acx-av { width: 52px; height: 52px; border-radius: 16px; font-size: 1.15rem; } .acx-who { align-items: flex-start; } }
/* account details: forms + checklist side column */
.tkx .vpx-name { margin-bottom: 14px; }
.acx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.acx-forms > .card.mid, .acx-forms > .card, .acx-forms > form { max-width: none; }
.acx-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
@media (max-width: 1100px) { .acx-grid { grid-template-columns: 1fr; } .acx-side { position: static; order: -1; } }
.acx-chk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.acx-chk-head h2 { margin: 0; font-size: 1.05rem; }
.acx-chk .vpx-bar { margin-bottom: 14px; }
.acx-chk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.acx-chk li { display: flex; gap: 12px; align-items: flex-start; }
.acx-chk li > div { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; min-width: 0; }
.acx-chk li > div span { color: var(--text-2); font-size: .8rem; }
.acx-tick { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #FEF6E4; color: #B45309; }
.acx-tick .ico { width: 15px; height: 15px; stroke-width: 2.5; }
.acx-chk li.is-ok .acx-tick { background: #E8F7EE; color: #15803D; }
.acx-help h2 { margin: 0 0 6px; font-size: 1rem; }

/* ---------- v0.46.4: staff dashboard, tasks, clients, orders (+ their pages) in the command-center style ---------- */
/* slim staff hero: figures on the right, search inside, popovers allowed to overflow */
.sxh-pop { overflow: visible; }
.sxh-figs { display: flex; gap: 10px; flex-wrap: wrap; }
.sxh-figs > * { display: flex; flex-direction: column; gap: 2px; min-width: 104px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.sxh-figs > a:hover { background: rgba(255,255,255,.13); }
.sxh-figs b { font: 800 1.45rem/1.1 var(--f-head); letter-spacing: -.02em; }
.sxh-figs span { font-size: .74rem; color: #9FB3D9; }
.sxh-figs .is-hot { background: rgba(255,122,69,.2); border-color: rgba(255,122,69,.55); }
.sxh-figs .is-hot b { color: #FFB088; }
.sxh-search { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 6px 6px 14px; max-width: 620px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.sxh-search .ico { width: 17px; height: 17px; color: #9FB3D9; flex: none; }
.sxh-search input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; box-shadow: none; color: #fff; padding: 8px 0; outline: none; }
.sxh-search input::placeholder { color: #9FB3D9; }
.sxh-search .vpx-btn { padding: 9px 16px; }
.sxh-badges .badge { align-self: center; }
.vpx-meta a .ico { color: #9FB3D9; }
.vpx-meta .is-late { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.2); color: #FECACA; }
.sxh-acts { margin-top: 0; align-items: center; }
.vpx .head-acts .btn-ghost, .vpx .head-acts summary.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.vpx .head-acts .btn-ghost:hover { background: rgba(255,255,255,.16); }
.vpx .head-acts .btn-ink, .vpx .head-acts summary.btn-ink { background: #fff; color: #0E1B33; border-color: #fff; }
.vpx .head-acts .small.muted { color: #C9D6EE; }
.vpx .loginas-pop { color: var(--text); text-align: left; }
.acx-av.is-on { box-shadow: 0 0 0 3px #0E1B33, 0 0 0 5px #4ADE80; }
.sxh + .crumbs, .crumbs + .sxh { margin-top: 0; }
/* tabs and segmented filters become chips */
.tabs.sx-chips, .seg.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0 0 14px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: visible; width: fit-content; max-width: 100%; }
.sx-chips a { border: 0 !important; margin: 0; padding: 8px 13px; border-radius: 11px; font-size: .86rem; font-weight: 600; color: var(--text-2); background: transparent; text-decoration: none; }
.sx-chips a:hover { background: var(--surface-2); color: var(--text); }
.sx-chips a[aria-current] { background: #0E1B33; color: #fff; }
.sx-chips a[aria-current] .tab-n, .sx-chips a[aria-current] .seg-n { background: rgba(255,255,255,.18); color: #fff; opacity: 1; }
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cl-bar .sx-chips { margin-bottom: 0; }
.cl-bar + .sx-list { margin-top: 14px; }
/* rows */
.sx-list { margin-top: 4px; }
.sx-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; font-weight: 700; font-size: .98rem; min-width: 0; overflow-wrap: anywhere; }
.sx-title a { color: var(--text); text-decoration: none; }
.sx-title a:hover { color: var(--c); }
.sx-id { font: 600 .82rem/1 var(--f-mono, ui-monospace, monospace); color: var(--text-2) !important; }
.sx-row .sl-sub { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sx-row .il-date.is-late span { color: #DC2626; font-weight: 700; }
.tk-row { grid-template-columns: 34px minmax(0, 1fr) 120px 150px 34px; }
.or-row { grid-template-columns: 34px minmax(0, 1fr) 110px 130px 90px 100px 34px; }
.cl-row { grid-template-columns: 38px minmax(0, 1fr) 70px 120px minmax(0, 220px) 100px 34px; }
.or-geo { font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.or-risk { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; font-size: .78rem; color: var(--text-2); }
.or-risk b { font-size: .95rem; color: var(--text); text-align: right; }
.or-risk i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #22C55E, #F59E0B, #EF4444); background-size: 100px 5px; display: block; }
.or-risk.is-hi i { background: #EF4444; }
.or-risk i.w-5{width:5%}.or-risk i.w-10{width:10%}.or-risk i.w-15{width:15%}.or-risk i.w-20{width:20%}.or-risk i.w-25{width:25%}.or-risk i.w-30{width:30%}.or-risk i.w-35{width:35%}.or-risk i.w-40{width:40%}.or-risk i.w-45{width:45%}.or-risk i.w-50{width:50%}.or-risk i.w-55{width:55%}.or-risk i.w-60{width:60%}.or-risk i.w-65{width:65%}.or-risk i.w-70{width:70%}.or-risk i.w-75{width:75%}.or-risk i.w-80{width:80%}.or-risk i.w-85{width:85%}.or-risk i.w-90{width:90%}.or-risk i.w-95{width:95%}.or-risk i.w-100{width:100%}
.sx-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font: 800 .82rem/1 var(--f-head); color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0E1B33)); }
.sx-av.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #22C55E; }
.cl-svc .badge { margin: 1px 0; }
@media (max-width: 1200px) { .cl-row { grid-template-columns: 38px minmax(0, 1fr) 120px minmax(0, 200px) 100px 34px; } .cl-row .or-geo { display: none; } .or-row { grid-template-columns: 34px minmax(0, 1fr) 130px 90px 100px 34px; } .or-row .or-geo { display: none; } }
@media (max-width: 720px) {
  .sx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .sx-row .sl-main { flex: 1 1 calc(100% - 110px); order: 1; } .sx-row > .ut-ic, .sx-row > .sx-av { order: 0; } .sx-row .sl-go { order: 2; }
  .sx-row > :not(.sl-main):not(.ut-ic):not(.sx-av):not(.sl-go) { order: 3; }
  .sx-row .sl-price { margin-left: auto; }
  .sx-row .il-date { display: flex; }
  .sx-row .or-geo { display: flex; }
  .sxh-figs { width: 100%; } .sxh-figs > * { flex: 1 1 0; min-width: 0; }
  .tabs.sx-chips, .seg.sx-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .sx-chips a { flex: none; }
}
/* staff dashboard: dark hero and tile look */
.dsx-hero, .dsx-hero.is-busy { color: #fff; border: 0; border-radius: 26px; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 38px); overflow: hidden; isolation: isolate; box-shadow: 0 24px 60px -30px rgba(14,27,51,.55);
  background: radial-gradient(900px 380px at 88% -25%, rgba(255,122,69,.55), transparent 60%), radial-gradient(700px 400px at -10% 125%, rgba(47,123,255,.42), transparent 60%), linear-gradient(135deg, #0E1B33, #13244A); }
.dsx-hero::after { opacity: 1; background: none; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; }
.dsx-kicker { color: #9FB3D9; } .dsx-kicker .ico { color: #FFB08C; }
.dsx-title { color: #fff; }
.dsx-sub { color: #C9D6EE; }
.dsx-hero-money { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); border-radius: 18px; }
.dsx-hero-money span, .dsx-hero-money small { color: #9FB3D9; }
.dsx-hero-money b { color: #fff; }
.dsx-tile { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); --c: #2F7BFF; --c2: #E6EFFF; }
.dsx-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 18%, transparent), transparent); pointer-events: none; }
.dsx-tile:nth-child(2) { --c: #8B5CF6; --c2: #F0E9FF; } .dsx-tile:nth-child(3) { --c: #FF7A45; --c2: #FFEDE4; } .dsx-tile:nth-child(4) { --c: #0EA5A4; --c2: #DDF6F4; }
.dsx-tile-ico { border: 0; border-radius: 12px; background: var(--c2); color: var(--c); }
.dsx-tile b { color: var(--c); }
.dsx-tile.is-hot { --c: #EF4444; --c2: #FDE4E4; background: var(--surface); border-color: color-mix(in srgb, #EF4444 35%, var(--border)); }
.dsx-tile.is-hot .dsx-tile-ico { background: var(--c2); color: var(--c); border: 0; }
.dsx-tile.is-hot b { color: var(--c); }
.dsx-card { border-radius: 22px; }
/* v0.46.4 fixes: chip state wins over theme tab rules, wider columns */
.tabs.sx-chips a[aria-current], .seg.sx-chips a[aria-current] { background: #0E1B33 !important; color: #fff !important; box-shadow: none !important; }
.tabs.sx-chips a::after, .tabs.sx-chips a::before { display: none !important; }
.sx-row .il-date { white-space: normal; }
.tk-row { grid-template-columns: 34px minmax(0, 1fr) 110px 200px 34px; }
.or-row { grid-template-columns: 34px minmax(0, 1fr) 100px 170px 90px minmax(100px, max-content) 34px; }
/* v0.64.129: order rows line up: country + IP chip on one line, risk label and score side by side with the bar on a full-width track under them */
.or-row { grid-template-columns: 34px minmax(0, 1fr) 130px 170px 96px minmax(100px, max-content) 34px; }
.or-row .or-geo { flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
.or-row .or-risk { grid-template-columns: auto auto 1fr; justify-content: start; align-items: baseline; gap: 4px 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  background: linear-gradient(var(--border), var(--border)) left bottom / 100% 5px no-repeat; border-radius: 5px; }
.or-row .or-risk b { text-align: left; letter-spacing: 0; font-size: 1rem; line-height: 1; }
.or-row .or-risk i { grid-column: 1 / -1; min-width: 5px; }
@media (max-width: 1200px) { .or-row { grid-template-columns: 34px minmax(0, 1fr) 170px 90px minmax(100px, max-content) 34px; } }   /* v0.64.42: a long total (₹77,512.86) never runs into the arrow */
.sxh-pop .sxh-acts { margin-top: 16px; }

/* ---------- v0.46.5: every remaining page in the command-center style ----------
   Any page heading (.page-head with an h1) becomes the slim dark hero; tabs become chips; tables and cards get the
   rounder, softer look. Markup is unchanged, so every form, link and test hook stays as it was. */
#main .page-head.page-head:has(h1) { position: relative; isolation: isolate; align-items: center; gap: 14px 20px; margin: 0 0 18px; padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3vw, 38px); border-radius: 26px; color: #fff;
  background: radial-gradient(900px 380px at 88% -25%, rgba(255,122,69,.55), transparent 60%), radial-gradient(700px 400px at -10% 125%, rgba(47,123,255,.42), transparent 60%), linear-gradient(135deg, #0E1B33, #13244A);
  box-shadow: 0 24px 60px -30px rgba(14,27,51,.55); }
#main .page-head.page-head:has(h1)::after { opacity: 1; content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
#main .page-head.page-head:has(h1) h1 { color: #fff; font-family: var(--f-head); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -.02em; }
#main .page-head.page-head:has(h1) h1.h1-long { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
#main .page-head.page-head:has(h1) h1 .muted { color: #9FB3D9; }
#main .page-head.page-head:has(h1) p, #main .page-head.page-head:has(h1) .muted, #main .page-head.page-head:has(h1) .small { color: #C9D6EE; }
#main .page-head.page-head:has(h1) p.muted { margin-top: 6px; max-width: 760px; }
#main .page-head.page-head:has(h1) a:not(.btn) { color: #fff; }
#main .page-head.page-head:has(h1) .help-link { color: #C9D6EE; }
#main .page-head.page-head:has(h1) .help-link:hover { color: #fff; }
#main .page-head.page-head:has(h1) .status-err { color: #FCA5A5; font-weight: 700; }
#main .page-head.page-head:has(h1) .btn-ghost, #main .page-head.page-head:has(h1) .btn-white { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
#main .page-head.page-head:has(h1) .btn-ghost:hover, #main .page-head.page-head:has(h1) .btn-white:hover { background: rgba(255,255,255,.16); }
#main .page-head.page-head:has(h1) .btn-ink { background: #fff; color: #0E1B33; border-color: #fff; }
#main .page-head.page-head:has(h1) .loginas-pop, #main .page-head.page-head:has(h1) .card { color: var(--text); }
#main .page-head.page-head:has(h1) .card p, #main .page-head.page-head:has(h1) .card .muted, #main .page-head.page-head:has(h1) .card .small { color: var(--text-2); }
#main .page-head.page-head:has(h1) .card a:not(.btn) { color: var(--link, var(--text)); }
#main .page-head.page-head:has(h1) label { color: #C9D6EE; }
#main .page-head.page-head:has(h1) .vis-pulse { color: #C9D6EE; }
/* Breadcrumb on the dark header (v0.64.142): back button and current page were white-on-white and dark-on-dark. */
#main .page-head.page-head:has(h1) .crumbs a:not(.btn) { color: #C9D6EE; }
#main .page-head.page-head:has(h1) .crumbs a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.10); }
#main .page-head.page-head:has(h1) .crumbs li + li::before { border-color: #9FB3D9; }
#main .page-head.page-head:has(h1) .crumbs [aria-current="page"] span { color: #fff; }
#main .page-head.page-head:has(h1) .crumbs .crumbs-up { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
#main .page-head.page-head:has(h1) .crumbs .crumbs-up:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.45); }
/* any heading straight after a breadcrumb sits snug under it */
.crumbs + #main .page-head.page-head:has(h1) { margin-top: 2px; }
/* tabs and segmented links: chips everywhere */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--border) !important; margin: 0 0 18px; padding: 5px; border-radius: 16px; background: var(--surface); width: fit-content; max-width: 100%; box-shadow: none; }
.tabs a { border: 0 !important; margin: 0 !important; padding: 8px 13px; border-radius: 11px; font-size: .86rem; font-weight: 600; color: var(--text-2); background: transparent; box-shadow: none !important; }
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a[aria-current="page"], .theme-a .tabs a[aria-current="page"], .theme-b .tabs a[aria-current="page"] { background: #0E1B33 !important; color: #fff !important; }
.tabs a[aria-current="page"] .tab-n { background: rgba(255,255,255,.18); color: #fff; }
.tabs a::after, .tabs a::before { display: none !important; }
@media (max-width: 720px) { .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .tabs a { flex: none; } }
/* tables and cards: same rounding and softness as the new rows */
.table-wrap { border-radius: 20px; box-shadow: 0 1px 2px rgba(14,27,51,.04); }
.table-wrap > table th:first-child { border-top-left-radius: 20px; } .table-wrap > table th:last-child { border-top-right-radius: 20px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover > td { background: color-mix(in srgb, #2F7BFF 4%, transparent); }
.card { border-radius: 20px; }
.split > aside .card, .grid > .card { border-radius: 20px; }
/* website editor tabs: same chips */
.site-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--border) !important; padding: 5px; border-radius: 16px; background: var(--surface); margin-bottom: 18px; }
.site-tabs a { border: 0 !important; margin: 0 !important; padding: 8px 13px; border-radius: 11px; font-size: .86rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.site-tabs a:hover { background: var(--surface-2); color: var(--text); }
.site-tabs a[aria-current="page"] { background: #0E1B33; color: #fff; }
/* v0.46.7: client page hero aligned: buttons under the name column, status badges top right, even chips */
.sxh-pop .vpx-top { align-items: flex-start; }
.sxh-pop .acx-who { align-items: flex-start; flex: 1 1 auto; }
.sxh-pop .acx-who > div { min-width: 0; }
.sxh-pop .vpx-name { margin: 2px 0 14px; }
.sxh-st { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; max-width: 46%; }
.sxh-st .badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; }
.sxh-pop .sxh-acts { margin: 20px 0 0 calc(64px + 18px); gap: 8px; }
.vpx .head-acts .btn, .vpx .head-acts summary.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; line-height: 1; }
/* v0.64.137: client page buttons a little narrower, so all of them fit on one line on a normal screen (Windows scrollbar too) */
.sxh-pop .head-acts .btn, .sxh-pop .head-acts summary.btn { padding: 0 13px; }
.vpx .head-acts .btn-signal, .vpx .head-acts summary.btn-signal { background: linear-gradient(135deg, #FF7A45, #FF9A5C); border: 1px solid transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(255,122,69,.8); }
.vpx .head-acts .btn-signal:hover, .vpx .head-acts summary.btn-signal:hover { filter: brightness(1.06); }
.vpx .head-acts details { position: relative; }
@media (max-width: 900px) { .sxh-st { max-width: none; justify-content: flex-start; width: 100%; } .sxh-pop .sxh-acts { margin-left: 0; } }
section.vpx.sxh-pop > .vpx-acts.sxh-acts { margin-top: 22px; }
section.vpx.sxh-pop .sxh-st { align-self: flex-start; margin-top: 0; }

/* v0.46.8: plan details open on click */
.spop-i { border: 0; padding: 0; cursor: pointer; font: inherit; flex: none; }
.spop-i:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spop-l { cursor: pointer; }

/* v0.46.11: staff VPS status-check tile */
.sx-k .sx-k-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: .74rem; font-weight: 600; color: var(--text-2); text-decoration: none; padding: 2px 6px 2px 8px; border-radius: 999px; }
.sx-k .sx-k-more:hover { color: #2F7BFF; background: color-mix(in srgb, #2F7BFF 10%, transparent); }
.sx-k .sx-k-more .ico { width: 13px; height: 13px; color: currentColor; }
.sx-mon .mon-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sx-mon .mon-top .live-chip { font-size: .78rem; }
.sx-mon .mon-proto { font-size: .72rem; color: var(--text-2); background: var(--surface-2, #F3F6FB); border: 1px solid var(--border); border-radius: 8px; padding: 2px 7px; }
.sx-mon .mon-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.sx-mon .mon-stats > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sx-mon .mon-stats b { font: 700 1rem/1.2 var(--f-mono, ui-monospace, monospace); color: var(--text); }
.sx-mon .mon-stats em { font-style: normal; font-size: .72rem; color: var(--text-2); }
.sx-mon .mon-up-ok b { color: #15803D; } .sx-mon .mon-up-warn b { color: #B45309; } .sx-mon .mon-up-bad b { color: #DC2626; }
.sx-mon .mon-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.sx-mon .mon-days i { height: 8px; border-radius: 3px; background: #E5E9F0; }
.sx-mon .mon-days i.is-ok { background: #22C55E; } .sx-mon .mon-days i.is-warn { background: #F59E0B; } .sx-mon .mon-days i.is-bad { background: #EF4444; }
.sx-mon .sx-k { white-space: nowrap; }
@media (max-width: 720px) { .sx-facts .sx-mon, .sx-facts .sx-runs { grid-column: 1 / -1; } }
/* v0.46.12: create a plan on the master */
.pp-newplan > summary { font-weight: 600; }
.pp-newplan .pp-np-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* v0.46.14: IP pool picker — even grid, filter, tick all/none */
.pp-newplan .pp-pools { margin-top: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.pp-pools-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--text) 3%, transparent); }
.pp-pools-bar .pp-pools-q { flex: 1 1 240px; width: auto; min-height: 36px; padding: 6px 12px; }
.pp-pools-n { font-size: .82rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pp-pool-grid { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; }
.pp-pool-grid > li { min-width: 0; }
.pp-pool-grid > li[hidden] { display: none; }
.pp-pool { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); min-width: 0; }
.pp-pool:hover { border-color: color-mix(in srgb, #2F7BFF 45%, var(--border)); }
.pp-pool.is-on { border-color: color-mix(in srgb, #2F7BFF 55%, var(--border)); background: color-mix(in srgb, #2F7BFF 6%, var(--surface)); }
.pp-pool input { margin: 0; }
.pp-pool-name { font: 600 .84rem/1.25 var(--f-mono, ui-monospace, monospace); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pp-pool-meta { display: flex; gap: 6px; align-items: center; font-size: .72rem; color: var(--text-2); white-space: nowrap; }
.pp-pool-meta b { font-weight: 600; color: #15803D; }
.pp-pool-meta b.is-zero { color: #B45309; }
.pp-pool-grid label.pp-pool { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; margin: 0; font-weight: 400; }
.pp-pool-grid label.pp-pool > input { grid-row: 1 / 3; align-self: center; }
.pp-pool-grid label.pp-pool > .pp-pool-meta { grid-column: 2; }

/* v0.46.15/16: Set up provisioning (many plans at once), modern look */
.bp-head-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.bp-master { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 20px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 16px 32px -24px rgba(14,27,51,.35); }
.bp-master-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2F7BFF, #1D4ED8); color: #fff; box-shadow: 0 8px 18px -8px rgba(47,123,255,.7); }
.bp-master-ic .ico { width: 22px; height: 22px; }
.bp-master-main { display: grid; gap: 4px; min-width: 260px; }
.bp-master-main label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 0; }
.bp-master-main select { min-height: 42px; font-weight: 600; border-radius: 12px; }
.bp-master-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.bp-master-stats > span { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); font-size: .8rem; color: var(--text-2); }
.bp-master-stats > span b { font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.bp-refresh { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface); }
.bp-refresh:hover { border-color: #2F7BFF; color: #1D4ED8; }
.bp-refresh .ico { width: 15px; height: 15px; }
.bp-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.bp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .84rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.bp-chip b { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .74rem; text-align: center; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); font-variant-numeric: tabular-nums; }
.bp-chip.is-warn b { background: #FFF1D6; color: #B45309; } .bp-chip.is-blue b { background: #E1ECFF; color: #1D4ED8; } .bp-chip.is-ok b { background: #DDF5E7; color: #15803D; }
.bp-chip:hover { color: var(--text); }
.bp-chip[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(14,27,51,.08), 0 4px 12px -6px rgba(14,27,51,.25); }
.bp-find { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-find .bp-line { width: auto; min-height: 40px; border-radius: 12px; }
.bp-search { position: relative; display: flex; align-items: center; margin: 0; }
.bp-search .ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-2); pointer-events: none; }
.bp-search input { width: 260px; min-height: 40px; padding-left: 36px; border-radius: 12px; }
.bp-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: 12px; position: sticky; top: 8px; z-index: 6; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.bp-bulk.has-ticked { border-color: color-mix(in srgb, #2F7BFF 45%, var(--border)); box-shadow: 0 10px 28px -18px rgba(47,123,255,.6); }
.bp-bulk-n { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; }
.bp-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: #0E1B33; color: #fff; font-size: .82rem; font-variant-numeric: tabular-nums; }
.bp-mini { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: inherit; font-size: .8rem; font-weight: 600; color: var(--text); cursor: pointer; }
.bp-mini:hover { border-color: #2F7BFF; color: #1D4ED8; }
.bp-mini .ico { width: 14px; height: 14px; }
.bp-sep { width: 1px; height: 26px; background: var(--border); margin: 0 2px; }
.bp-bulk-l { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.bp-bulk select { width: auto; min-height: 38px; max-width: 280px; border-radius: 10px; }
.bp-os-pick { position: relative; }
.bp-os-pick > summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: .84rem; font-weight: 600; list-style: none; background: var(--surface); }
.bp-os-pick > summary .ico { width: 15px; height: 15px; }
.bp-os-pick > summary::-webkit-details-marker { display: none; }
.bp-os-pick[open] > summary { border-color: #2F7BFF; color: #1D4ED8; }
.bp-os-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px -16px rgba(14,27,51,.4); display: grid; gap: 4px; min-width: 300px; max-height: 360px; overflow-y: auto; }
.bp-os-menu .btn { margin-top: 6px; }
.bp-check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 9px; border-radius: 9px; font-size: .84rem; font-weight: 500; cursor: pointer; }
.bp-check:hover { background: color-mix(in srgb, #2F7BFF 7%, transparent); }
.bp-check input, .bp-tick { width: 18px; height: 18px; margin: 0; accent-color: #2F7BFF; cursor: pointer; }
.bp-wrap { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 1px 2px rgba(14,27,51,.04), 0 18px 36px -28px rgba(14,27,51,.4); }
.bp-table { table-layout: fixed; width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; }
.bp-table thead th { position: sticky; top: 0; background: color-mix(in srgb, var(--text) 3%, var(--surface)); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); padding: 12px 12px; border-bottom: 1px solid var(--border); }
.bp-table th:nth-child(1), .bp-table td.bp-c-on { width: 48px; text-align: center; }
.bp-table th:nth-child(2) { width: 22%; } .bp-table th:nth-child(3) { width: 19%; } .bp-table th:nth-child(4) { width: 27%; } .bp-table th:nth-child(5) { width: 17%; } .bp-table th:nth-child(6) { width: 130px; }
.bp-table td { vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--border); }
.bp-table tbody tr:last-child td { border-bottom: 0; }
.bp-row { transition: background .15s ease; }
.bp-row:hover { background: color-mix(in srgb, var(--text) 2%, transparent); }
.bp-row.is-on { background: color-mix(in srgb, #2F7BFF 5%, transparent); }
.bp-row.is-on td:first-child { box-shadow: inset 3px 0 0 #2F7BFF; }
.bp-row.is-skip { background: color-mix(in srgb, var(--text) 2%, transparent); }
.bp-row.is-skip .bp-name { color: var(--text-2); }
.bp-row[hidden] { display: none; }
.bp-name { display: block; font-weight: 700; font-size: .95rem; color: var(--text); text-decoration: none; line-height: 1.3; }
.bp-name:hover { color: #1D4ED8; }
.bp-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: .76rem; color: var(--text-2); }
.bp-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.bp-meta .ico { width: 12px; height: 12px; }
.bp-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.bp-specs i { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; font-style: normal; font-size: .72rem; font-weight: 600; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); font-variant-numeric: tabular-nums; }
.bp-specs .ico { width: 12px; height: 12px; color: var(--text-2); }
.bp-sel { width: 100%; min-height: 40px; font-size: .84rem; border-radius: 11px; }
.bp-note { font-size: .84rem; color: var(--text-2); }
.bp-note .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; }
.bp-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .76rem; margin-top: 7px; font-weight: 600; }
.bp-hint > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; }
.bp-hint .ico { width: 13px; height: 13px; }
.bp-hint .is-ok { color: #15803D; background: #E7F7EE; } .bp-hint .is-bad { color: #B91C1C; background: #FDECEC; } .bp-hint .is-warn { color: #B45309; background: #FFF4E0; }
.bp-hint a { font-weight: 700; color: #1D4ED8; }
.bp-os > summary { position: relative; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 8px; list-style: none; padding: 8px 10px; min-height: 40px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.bp-os > summary::-webkit-details-marker { display: none; }
.bp-os > summary > .ico { width: 14px; height: 14px; color: var(--text-2); transition: transform .2s ease; }
.bp-os[open] > summary { border-color: #2F7BFF; }
.bp-os[open] > summary > .ico { transform: rotate(180deg); }
.bp-os-n { font-size: .74rem; padding: 2px 8px; border-radius: 7px; background: #E1ECFF; color: #1D4ED8; white-space: nowrap; }
.bp-os-n.is-warn { background: #FFF4E0; color: #B45309; }
.bp-os-names { font-size: .76rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bp-os-list { display: grid; gap: 2px; padding: 6px 0 0; max-height: 230px; overflow-y: auto; }
.bp-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: #EEF1F6; color: #475569; }
.bp-st > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bp-st-set { background: #E7F7EE; color: #15803D; } .bp-st-suggested { background: #E8F0FF; color: #1D4ED8; }
.bp-st-needs_plan, .bp-st-incomplete { background: #FFF4E0; color: #B45309; }
.bp-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px; color: var(--text-2); font-size: .9rem; }
.bp-empty[hidden] { display: none; }
.bp-empty .ico { width: 18px; height: 18px; }
.bp-save { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 150px 12px 14px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, rgba(47,123,255,.35), transparent 55%), #0E1B33; border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(14,27,51,.6); z-index: 6; }
.bp-save-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); }
.bp-save-ic .ico { width: 18px; height: 18px; }
.bp-save-txt { flex: 1; font-size: .86rem; color: #C9D6EE; }
.bp-save-txt b { color: #fff; }
.bp-save .btn { flex: none; }
.bp-errs { margin: 6px 0 0 18px; }
@media (max-width: 720px) {
  .bp-master-stats { margin-left: 0; } .bp-master-main { min-width: 0; flex: 1; }
  .bp-find, .bp-search, .bp-search input, .bp-find .bp-line { width: 100%; flex: 1 1 100%; }
  .bp-bulk { position: static; } .bp-sep { display: none; } .bp-bulk select { max-width: 100%; flex: 1 1 100%; }
  .bp-save { flex-wrap: wrap; padding: 12px 14px 74px; } .bp-save-ic { display: none; }
}
/* v0.46.18: save bar vs. chat button; save button always orange on the dark bar */
/* the bar stops short of the chat button, which sits beside it */
@media (min-width: 721px) { body:has(.chat-fab) .bp-save { margin-right: 170px; } }
.bp-save { padding-right: 16px; }
.bp-save[hidden] { display: none; }
.bp-save .btn.btn-signal { background: linear-gradient(135deg, #FFB547, #F58A1F); border-color: transparent; color: #1A1206; font-weight: 700; padding: 11px 22px; box-shadow: 0 10px 22px -10px rgba(245,138,31,.75); }
.bp-save .btn.btn-signal:hover { background: linear-gradient(135deg, #FFC266, #F79A3A); color: #1A1206; }
@media (max-width: 720px) { .bp-save { padding-bottom: 12px; bottom: 84px; } }

/* v0.46.19: "Change website to …" next to a spec difference */
.bp-fix { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 8px; border: 1px solid #BFD3FF; background: #EEF4FF; color: #1D4ED8; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.bp-fix:hover { background: #DCE8FF; border-color: #93B4FF; }
.bp-fix:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }
.bp-fix .ico { width: 13px; height: 13px; }
.bp-fix[hidden] { display: none; }

/* v0.46.24: "Create HR …" / "Use HR …" under the plan on Set up provisioning */
.bp-hr { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 4px 11px; border-radius: 8px; border: 1px dashed #F5A04A; background: #FFF6EC; color: #B45309; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-hr:hover { background: #FFEBD4; border-style: solid; }
.bp-hr:focus-visible { outline: 2px solid #B45309; outline-offset: 2px; }
.bp-hr .ico { width: 13px; height: 13px; flex: none; }
.bp-hr[hidden] { display: none; }

/* v0.47.0: location choice on the order page */
.loc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.loc-opt { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line, #d5d9dc); border-radius: 12px; padding: 12px 14px 12px 40px; cursor: pointer; background: var(--card, #fff); transition: border-color .15s, box-shadow .15s; }
.loc-opt:hover { border-color: var(--ink-3, #8a949a); }
.loc-opt.is-on, .loc-opt:has(input:checked) { border-color: var(--signal, #F2B300); box-shadow: 0 0 0 3px rgba(242,179,0,.18); }
.loc-opt input { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); margin: 0; width: 16px; height: 16px; accent-color: var(--signal, #F2B300); }
.loc-flag { font-size: 1.5rem; line-height: 1; width: 28px; text-align: center; flex: none; }
.loc-flag .ico { width: 20px; height: 20px; color: var(--ink-3, #8a949a); }
.loc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-body b { font-weight: 700; }
.loc-opt.is-out { opacity: .5; cursor: not-allowed; }

/* v0.47.1: location rows and "Set up all N locations" on Set up provisioning */
.bp-loc { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 3px 10px; border-radius: 999px; background: #EEF4FF; color: #1E3A8A; font-weight: 700; font-size: .82rem; }
.bp-loc small { font-weight: 600; color: #475569; }
.bp-loc .is-out { color: #B91C1C; }
.bp-loc .ico { width: 13px; height: 13px; }
.bp-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 9px; border: 0; background: linear-gradient(135deg,#FFB547,#F58A1F); color: #1A1206; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(245,138,31,.25); }
.bp-all:hover { filter: brightness(1.05); }
.bp-all:focus-visible { outline: 2px solid #B45309; outline-offset: 2px; }
.bp-all .ico { width: 14px; height: 14px; }

/* v0.47.4: the settings menu is sticky; when it is taller than the window its list scrolls on its own
   (the search box stays on top so its results pop-up is not cut off). */
@media (min-width: 821px) {
  .settings-nav { max-height: calc(100vh - 32px); }
  .settings-nav > .sn-all { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; }
}

/* v0.47.6: plan type badges and filter */
.badge.kind-shared { background: #EEF4FF; color: #2952CC; border-color: #C9D8FF; }
.badge.kind-vps { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }
.badge.kind-dedicated { background: #F4F3FF; color: #5925DC; border-color: #D9D6FE; }
.kind-tabs { margin: 10px 0 14px; }
.bp-kinds { margin: -4px 0 14px; }

/* v0.47.10: Set up provisioning without tick boxes: a Save button on each row */
.bp-rowsave { display: block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 600 .8rem/1.2 var(--f-body); color: var(--text); cursor: pointer; }
.bp-rowsave[hidden] { display: none; }
.bp-rowsave .ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.bp-rowsave:hover { border-color: #2F7BFF; color: #2F7BFF; }
.bp-row.is-on .bp-rowsave { background: #2F7BFF; border-color: #2F7BFF; color: #fff; }

/* v0.49.7: calmer, even Settings pages.
   - section header: title + one short line, Open all / Close all on the same line
   - every setting is one row: name and help on the left, the box on the right (all boxes the same width)
   - on/off settings are a switch at the right end of the row
   - Robot accounts and Provisioning nodes fold like the other groups
   - the settings menu is tighter so it fits on a laptop screen */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 2px 0 14px; }
.sec-head h2 { margin: 0 0 3px; font-size: 1.3rem; letter-spacing: -.01em; }
.sec-head p { margin: 0; font-size: .86rem; color: var(--text-2); }
.sec-head .sg-tools { margin: 0; }
.sg-sub { display: inline; margin-left: 8px; font: 500 .82rem/1.2 var(--f-body); color: var(--text-2); }
.sg-intro { margin: 14px 0 14px; font-size: .88rem; color: var(--text-2); max-width: 70ch; }
details.sg-fold.pn { padding: 0; display: block; }
details.sg-fold.pn .pn-add { margin-top: 12px; }
details.sg-fold.pn .pn-list + .pn-add { margin-top: 12px; }
.sg-body > .set-item:first-child { margin-top: 0; }
.sg-body > .hookbox { margin: 14px 0 6px; }

@media (min-width: 761px) {
  .sg-body > .set-item { padding: 16px 0; margin: 0; border-radius: 0; }
  .sg-body > .test-row { padding-top: 14px; border-top: 1px solid var(--border); }
  .sg-body > .set-item + .set-item, .sg-body > .hookbox + .set-item { border-top: 1px solid var(--border); }
  .sg-body > .set-item.is-attn { padding-left: 12px; }
  .sg-body .set-item > .field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); grid-template-rows: auto 1fr; column-gap: 36px; align-items: start; margin: 0; }
  .sg-body .set-item > .field > * { grid-column: 2; }
  .sg-body .set-item > .field > label:first-child { grid-column: 1; grid-row: 1; margin: 9px 0 0; font-weight: 600; font-size: .92rem; }
  .sg-body .set-item > .field > .hint { grid-column: 1; grid-row: 2; margin-top: 3px; }
  .sg-body .set-item > .field > input, .sg-body .set-item > .field > select, .sg-body .set-item > .field > textarea { grid-row: 1 / span 2; width: 100%; max-width: none; }
  .sg-body .set-item > .field > .error, .sg-body .set-item > .field > label.check { grid-row: auto; }
  .sg-body .set-item > .field > label.check { margin: 8px 0 0; }
  .sg-body .set-item > .set-flags { margin-bottom: 6px; }
}
.sg-body .set-item > .field > .w-sm { width: 100%; }

/* on/off rows: text on the left, a switch on the right */
.sg-body .switch-row { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.sg-body .switch-row > span { flex: 1; min-width: 0; order: 1; }
.sg-body .switch-row > span > b { font-weight: 600; font-size: .92rem; }
.sg-body .switch-row > input[type="checkbox"] { order: 2; -webkit-appearance: none; appearance: none; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 99px;
  background: var(--border-strong, #CBD5E1); position: relative; cursor: pointer; transition: background .15s; border: 0; }
.sg-body .switch-row > input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .15s; }
.sg-body .switch-row > input[type="checkbox"]:checked { background: var(--ok, #16A34A); }
.sg-body .switch-row > input[type="checkbox"]:checked::after { transform: translateX(18px); }
.sg-body .switch-row > input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sg-body .switch-row > input, .sg-body .switch-row > input::after { transition: none; } }
@media (max-width: 760px) { .sg-body > .set-item { padding: 12px 0; } .sg-body > .set-item + .set-item { border-top: 1px solid var(--border); } }

/* tighter settings menu */
@media (min-width: 821px) {
  .settings-nav { padding: 8px; }
  .settings-nav .settings-nav-h { margin: 8px 6px 2px; padding-top: 8px; font: 700 .7rem/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
  .site-look .settings-nav .settings-nav-h { font-family: var(--f-body); }
  .settings-nav a:not(.ss-review) { padding: 5px 10px; font-size: .86rem; }
  .settings-nav a.ss-review { padding: 6px 10px; font-size: .82rem; }
  .settings-nav > .sn-all { mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); padding-bottom: 14px; }
}

/* v0.50.0: Add a client / Add a server */
.mc-form h2 { margin: 22px 0 10px; font-size: 1.05rem; }
.mc-form > h2:first-of-type { margin-top: 14px; }
.mc-more { margin: 6px 0 4px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 14px; }
.mc-more > summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.mc-more[open] { padding-bottom: 6px; }
.mc-how { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mc-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; font-weight: 600; font-size: .9rem; background: var(--surface); }
.mc-opt input { margin: 0; flex: none; }
.mc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, var(--hover)); }
.mc-form .for-vps, .mc-form .for-shared, .mc-form .for-server { display: none; }
.mc-form[data-how="vps"] .for-vps, .mc-form[data-how="shared"] .for-shared, .mc-form[data-how="server"] .for-server { display: block; }
.mc-form .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 640px) { .mc-how { grid-template-columns: 1fr; } }
.section-head .sh-btns { display: inline-flex; gap: 8px; align-items: center; }
.section-head .sh-btns form { margin: 0; }
.sxh-row { display: flex; align-items: stretch; gap: 12px; margin-top: 18px; }
.sxh-row .sxh-search { margin-top: 0; flex: 1 1 auto; }
.sxh-row .cl-add { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 20px; border-radius: 16px; font-weight: 700; white-space: nowrap; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.sxh-row .cl-add:hover { background: rgba(255,255,255,.18); }
.sxh-row .cl-add .ico { width: 16px; height: 16px; }
@media (max-width: 640px) { .sxh-row { flex-direction: column; } .sxh-row .cl-add { justify-content: center; padding: 12px 20px; } }

/* v0.51.0: server requests (servers run by hand) */
.sr-card .sr-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.sr-card .sr-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2, var(--surface)); }
.sr-card .sr-list li > span:nth-child(2), .sr-card .sr-list.is-past li > span:first-child { flex: 1; min-width: 0; }
.sr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn, #D97706); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn, #D97706) 20%, transparent); }
.sreq-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; align-items: start; }
.sr-act { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.sr-act[open] { grid-column: 1 / -1; box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .35); }
.sr-act > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.sr-act > summary::-webkit-details-marker { display: none; }
.sr-act > summary .ico { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.sr-act > summary:hover { background: var(--hover); border-radius: inherit; }
.sr-act form { padding: 0 14px 14px; }
.sr-warn { padding: 10px 12px; border-radius: var(--r-sm); background: var(--err-bg, #FEF2F2); }
.sr-probs { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.sr-past { margin-top: 14px; }
.sr-past > summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.sr-past .sr-list { margin-top: 10px; }

/* v0.52.0: Fleet → Other suppliers, supplier cost card */
.sup-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sup-stats .stat.is-alert b { color: var(--err); }
.sup-table tr.is-alert td { background: color-mix(in srgb, var(--err, #DC2626) 6%, transparent); }
.sup-table td { vertical-align: top; }
@media (max-width: 900px) { .sup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.sc-figs div { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); }
.sc-figs b { display: block; font-size: 1.05rem; }
.sc-figs span { font-size: .8rem; color: var(--text-2); }
.sup-table td .btn { white-space: normal; text-align: left; }
.mc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* v0.53.1: Staff accounts page even */
.staff-row { grid-template-columns: minmax(150px, 1.2fr) minmax(240px, 1.2fr) minmax(130px, .9fr) minmax(180px, 1fr) minmax(120px, .9fr) 128px; gap: 20px; padding: 18px 22px; }
.staff-row .role-form { display: flex; gap: 6px; align-items: center; }
.staff-row .role-form select { flex: 1 1 auto; min-width: 110px; }
.staff-row .sr-who b { font-size: 1rem; }
.staff-row .srv-sub-line { overflow-wrap: anywhere; }
.staff-row .sr-acts { align-self: center; padding-top: 0; }
.role-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-pick .role-opt { display: flex; align-items: flex-start; margin: 0; font-weight: 400; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; background: var(--surface); }
.role-pick .role-opt input { margin: 3px 0 0; flex: none; }
.role-pick .role-opt span { display: grid; gap: 2px; }
.role-opt small { color: var(--text-2); font-size: .84rem; line-height: 1.35; }
.role-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, var(--hover)); }
.role-pick { border: 0; padding: 0; margin: 4px 0 0; }
.staff-add-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.staff-list { container-type: inline-size; }
@media (max-width: 1440px) { .staff-row { grid-template-columns: minmax(150px, 1.2fr) minmax(240px, 1.2fr) minmax(130px, .9fr) minmax(180px, 1fr) minmax(120px, .9fr) 128px; } .staff-row .sr-acts { align-self: center; text-align: right; } .staff-acts { left: auto; right: 0; } }
.staff-row .sr-acts .btn { width: auto; white-space: nowrap; }
/* v0.65.2: six columns since the Amaze Orbit column (v0.65.0); below about 1100px the row folds into three */
@container (max-width: 1100px) {
  /* v0.65.5: fixed third track so every row lines up (each row is its own grid; "auto" made them differ) */
  .staff-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px; row-gap: 14px; column-gap: 24px; }
  .staff-row .sr-acts { grid-column: 3; grid-row: 1; align-self: start; text-align: right; }
  .staff-row > div:nth-child(5) { text-align: right; }
  .staff-row .role-form select { min-width: 0; }
}
@container (max-width: 520px) { .staff-row { grid-template-columns: minmax(0, 1fr) 130px; } .staff-row .sr-acts { grid-column: 2; } .staff-row > div:nth-child(5) { text-align: left; } }
.staff-row .mono { overflow-wrap: anywhere; }
@media (max-width: 760px) { .role-opts { grid-template-columns: 1fr; } }
.staff-add-note { margin: 16px 0 12px; }

/* v0.54.0: staff roles and permissions */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; margin: 14px 0; }
.perm-group { display: grid; gap: 4px; align-content: start; }
.perm-group > b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 2px; }
.perm-group .check.perm { margin: 0; padding: 4px 0; font-size: .9rem; align-items: flex-start; }
.perm-group .check.perm input:disabled + span { color: var(--text-2); }
.staff-row .staff-perms { grid-column: 1 / -1; margin-top: -4px; }
.staff-row .staff-perms > summary { cursor: pointer; color: var(--text-2); }
.staff-row .staff-perms-note { grid-column: 1 / -1; margin: -4px 0 0; } /* v0.65.84 */
.staff-row .staff-perms[open] { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2, var(--surface)); }
.role-del { margin-top: 10px; }
.role-h { margin: 10px 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; }

/* v0.55.0: customer numbers in staff views — the number customers see, a copy button, the internal number in grey */
.refn { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.refn-m { font-family: var(--f-mono, ui-monospace, monospace); letter-spacing: .01em; }
.refn-id { font-size: .78em; font-weight: 400; color: var(--text-3, var(--text-2)); font-family: var(--f-mono, ui-monospace, monospace); }
h1 .refn-id { font-size: .55em; color: inherit; opacity: .55; }
h1 .refn-m { font-family: inherit; letter-spacing: -.01em; }
h1 .refn-copy { width: 24px; height: 24px; color: inherit; opacity: .7; }
h1 .refn-copy:hover { opacity: 1; background: rgba(127,127,127,.18); color: inherit; }
h1 .refn-copy::before { inset: 4px 8px 8px 4px; }
h1 .refn-copy::after { inset: 8px 4px 4px 8px; }
.refn-copy { align-self: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; color: var(--text-2); position: relative; }
.refn-copy::before { content: ""; position: absolute; inset: 3px 6px 6px 3px; border: 1.5px solid currentColor; border-right: 0; border-bottom: 0; border-radius: 2px 0 0 0; }
.refn-copy::after { content: ""; position: absolute; inset: 6px 3px 3px 6px; border: 1.5px solid currentColor; border-radius: 2px; }
.refn-copy:hover { color: var(--accent, #2563eb); background: var(--surface-2, rgba(0,0,0,.05)); }
.refn-copy.is-copied::before { inset: 3px 6px 5px 7px; border: solid var(--ok, #16a34a); border-width: 0 2px 2px 0; border-radius: 0; transform: rotate(45deg); }
.refn-copy.is-copied::after { display: none; }
.refn-copy:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 1px; }
/* v0.55.0: Find any number */
.nav-find { position: relative; margin: 0 0 10px; }
.nav-find svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.nav-find input { width: 100%; padding: 7px 10px 7px 32px; font-size: .85rem; border-radius: 8px; }
.find-box label { display: block; font-weight: 600; margin-bottom: 8px; }
.find-row { display: flex; gap: 8px; }
.find-row input { flex: 1; min-width: 0; font-family: var(--f-mono, ui-monospace, monospace); }
.find-list { padding: 4px; }
.find-hit { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; }
.find-hit + .find-hit { border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.find-hit:hover { background: var(--surface-2, rgba(0,0,0,.04)); }
.find-kind { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.find-main { display: flex; flex-direction: column; min-width: 0; }
.find-main b { font-family: var(--f-mono, ui-monospace, monospace); font-weight: 600; overflow-wrap: anywhere; }
.find-main small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-how { font-size: .78rem; color: var(--text-2); text-align: right; }
.find-hit.is-internal { opacity: .72; }
@media (max-width: 640px) { .find-hit { grid-template-columns: 1fr; gap: 2px; } .find-how { text-align: left; } }
.ni-form { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 260px) auto; gap: 12px; align-items: end; }
.ni-form .field { margin: 0; }
@media (max-width: 640px) { .ni-form { grid-template-columns: 1fr; } }
/* v0.56.0: Website → Seasonal */
.sn-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.sn-status .badge { margin-right: 8px; }
.sn-pv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sn-ev { margin: 16px 0 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.sn-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sn-theme { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; cursor: pointer; background: var(--surface, #fff); }
.sn-theme input { position: absolute; opacity: 0; pointer-events: none; }
.sn-theme:has(input:checked) { border-color: var(--accent, #2563eb); box-shadow: 0 0 0 2px var(--accent, #2563eb); }
.sn-theme:has(input:focus-visible) { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.sn-name { font-weight: 600; font-size: .92rem; }
.sn-sw { position: relative; display: block; height: 86px; border-radius: 8px; overflow: hidden; background: #F6F8FC; border: 1px solid rgba(0,0,0,.06); }
.sn-sw i { position: absolute; left: 0; right: 0; top: 0; height: 14px; }
.sn-sw b { position: absolute; left: 26%; right: 26%; top: 34px; height: 9px; border-radius: 3px; background: #0E1B33; box-shadow: 0 14px 0 -1px #0E1B33; }
.sn-sw s { position: absolute; left: 40%; right: 40%; bottom: 10px; height: 10px; border-radius: 4px; }
.sn-sw-frost { background: linear-gradient(180deg, #EAF3FD, #F6F8FC); }
.sn-sw-frost i { background: #DCEBFA; } .sn-sw-frost s { background: #123A63; }
.sn-sw-frost::after { content: ""; position: absolute; inset: 14px 0 0; background: radial-gradient(circle, #fff 1.6px, transparent 2.2px) 0 0/22px 18px; opacity: .9; filter: drop-shadow(0 0 2px #7AA9DA); }
.sn-sw-evergreen i { background: #0F3B2E; } .sn-sw-evergreen s { background: #0F3B2E; }
.sn-sw-evergreen::after { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 8px; background: radial-gradient(circle, #C9A24A 2px, transparent 2.5px) 0 0/16px 8px, radial-gradient(circle, #B23A3A 2px, transparent 2.5px) 8px 0/16px 8px; }
.sn-sw-lights i { background: #0B1220; } .sn-sw-lights s { background: #0E1B33; }
.sn-sw-lights::after { content: ""; position: absolute; left: 4px; right: 4px; top: 18px; height: 6px; background: radial-gradient(circle, #FF5A5F 2.4px, transparent 3px) 0 0/40px 6px, radial-gradient(circle, #3EE07E 2.4px, transparent 3px) 10px 0/40px 6px, radial-gradient(circle, #FFC93C 2.4px, transparent 3px) 20px 0/40px 6px, radial-gradient(circle, #4DA3FF 2.4px, transparent 3px) 30px 0/40px 6px; filter: drop-shadow(0 0 2px rgba(255,255,255,.5)); }
.sn-sw-blackout i { background: #000; } .sn-sw-blackout s { background: #000; box-shadow: inset -6px 0 0 #FFE14D; }
.sn-sw-blackout::after { content: "−60%"; position: absolute; left: 0; right: 0; top: 16px; text-align: center; font: 800 46px/1 var(--f-head, system-ui); color: transparent; -webkit-text-stroke: 1px rgba(14,27,51,.12); }
.sn-sw-gold { background: linear-gradient(180deg, #FBF8F1, #F6F8FC); } .sn-sw-gold i { background: #0D0D0F; border-bottom: 2px solid #D9B865; } .sn-sw-gold s { background: #0D0D0F; box-shadow: 0 0 0 1px #B08A3E; }
.sn-sw-terminal i { background: #070B1A; } .sn-sw-terminal s { background: #0B1226; box-shadow: 0 0 8px rgba(34,211,238,.6); }
.sn-sw-terminal::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -6px; height: 34px; background: linear-gradient(rgba(34,211,238,.4) 1px, transparent 1px) 0 0/100% 8px, linear-gradient(90deg, rgba(139,92,246,.35) 1px, transparent 1px) 0 0/14px 100%; transform: perspective(60px) rotateX(45deg); }
.sn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.sn-grid .sn-wide { grid-column: span 2; }
.sn-dates { grid-template-columns: repeat(2, minmax(0, 260px)); margin-top: 12px; }
.sn-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sn-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; cursor: pointer; }
.sn-mode:has(input:checked) { border-color: var(--accent, #2563eb); box-shadow: 0 0 0 1px var(--accent, #2563eb); }
.sn-mode input { margin-top: 3px; }
.sn-mode span { display: flex; flex-direction: column; gap: 2px; }
.sn-mode small { color: var(--text-2); font-size: .84rem; }
@media (max-width: 760px) { .sn-grid, .sn-modes, .sn-dates { grid-template-columns: 1fr; } .sn-grid .sn-wide { grid-column: auto; } }
/* v0.56.1: swatches for the other periods */
.sn-sw-midnight i { background: #0B1530; } .sn-sw-midnight s { background: #0B1530; box-shadow: inset -6px 0 0 #F5D98B; }
.sn-sw-midnight::after { content: ""; position: absolute; inset: 14px 0 0; background: radial-gradient(circle, #F5C451 1.6px, transparent 2px) 0 0/19px 15px, radial-gradient(circle, #8FB3FF 1.4px, transparent 1.8px) 9px 7px/23px 17px; }
.sn-sw-backup i { background: #0D3B3A; } .sn-sw-backup s { background: #0D3B3A; }
.sn-sw-backup::after { content: ""; position: absolute; left: 22%; right: 22%; top: 21px; height: 5px; border-radius: 9px; background: linear-gradient(90deg, #14B8A6, #38BDF8); }
.sn-sw-colours { background: radial-gradient(40px 30px at 15% 40%, rgba(236,72,153,.45), transparent), radial-gradient(40px 30px at 85% 35%, rgba(34,197,94,.4), transparent), radial-gradient(40px 30px at 30% 90%, rgba(245,158,11,.45), transparent), radial-gradient(40px 30px at 75% 90%, rgba(59,130,246,.4), transparent), #F6F8FC; }
.sn-sw-colours i { background: linear-gradient(90deg, #FFD3E6, #FFF0BF, #D4F5DC, #D6E7FF); } .sn-sw-colours s { background: #0E1B33; }
.sn-sw-uptime i { background: #0A0F0C; } .sn-sw-uptime s { background: #0A0F0C; box-shadow: 0 0 6px rgba(74,222,128,.7); }
.sn-sw-uptime::after { content: "99.99%"; position: absolute; left: 0; right: 0; top: 22px; text-align: center; font: 700 30px/1 ui-monospace, monospace; color: transparent; -webkit-text-stroke: 1px rgba(22,163,74,.25); }
.sn-sw-hex i { background: #1E1B2E; } .sn-sw-hex s { background: #1E1B2E; box-shadow: inset -6px 0 0 #86EFAC; }
.sn-sw-hex::after { content: "0x100"; position: absolute; left: 0; right: 0; top: 22px; text-align: center; font: 700 32px/1 ui-monospace, monospace; color: transparent; -webkit-text-stroke: 1px rgba(124,58,237,.25); }
.sn-sw-diya { background: linear-gradient(180deg, #FFF3E2, #F6F8FC); } .sn-sw-diya i { background: #7A2410; } .sn-sw-diya s { background: #7A2410; }
.sn-sw-diya::after { content: ""; position: absolute; left: 6px; right: 6px; top: 17px; height: 10px; background: radial-gradient(ellipse 4px 6px at 50% 40%, #FCD34D 70%, transparent 100%) 0 0/24px 10px; filter: drop-shadow(0 0 3px rgba(249,115,22,.8)); }
.sn-sw-pumpkin i { background: #1F1530; } .sn-sw-pumpkin s { background: #1F1530; box-shadow: inset -6px 0 0 #FDBA74; }
.sn-sw-pumpkin { background: radial-gradient(50px 40px at 20% 90%, rgba(249,115,22,.3), transparent), radial-gradient(50px 40px at 85% 85%, rgba(124,58,237,.25), transparent), #F6F8FC; }
.sn-sw-pumpkin::after { content: "︶ ︶"; position: absolute; left: 10px; right: 10px; top: 18px; display: flex; justify-content: space-between; color: #4C3575; font-size: 14px; letter-spacing: 60px; }
.sn-name small { display: block; font-weight: 400; font-size: .8rem; color: var(--text-2); margin-top: 1px; }
/* v0.56.3: real thumbnails of each theme; hover shows it large */
.sn-sw { height: auto; aspect-ratio: 480 / 273; background: #F6F8FC; }
.sn-sw::after, .sn-sw::before { content: none !important; }
.sn-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.sn-zoom { position: fixed; left: 50%; top: 50%; z-index: 300; width: min(960px, 88vw); transform: translate(-50%, -48%) scale(.97); opacity: 0; visibility: hidden; pointer-events: none;
  border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -20px rgba(10,20,40,.55), 0 0 0 1px rgba(0,0,0,.08); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.sn-zoom img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (min-width: 900px) {
  .sn-theme:hover .sn-zoom { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition-delay: .35s, .35s, 0s; }
}
.sn-view { align-self: flex-start; margin-top: -2px; color: var(--text-2); }
@media (hover: hover) and (min-width: 900px) { .sn-view { display: none; } }
@media (prefers-reduced-motion: reduce) { .sn-zoom { transition: none; } }
/* v0.57.0: Website → Site-wide → Footer design */
.fd-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.fd-style { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; cursor: pointer; }
.fd-style:has(input:checked) { border-color: var(--accent, #2563eb); box-shadow: 0 0 0 2px var(--accent, #2563eb); }
.fd-style input { position: absolute; opacity: 0; pointer-events: none; }
.fd-style:has(input:focus-visible) { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.fd-style img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(0,0,0,.06); }
.fd-style span { display: flex; flex-direction: column; gap: 2px; } .fd-style small { color: var(--text-2); font-size: .84rem; }
.fd-mid { margin-top: 6px; }
@media (max-width: 760px) { .fd-styles { grid-template-columns: 1fr; } }
/* v0.59.0: preparation mode */
.prep-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; font-size: .92rem;
  background: repeating-linear-gradient(135deg, rgba(245,158,11,.12) 0 12px, rgba(245,158,11,.06) 12px 24px); border: 1px solid rgba(217,119,6,.45); }
.prep-banner a { margin-left: auto; font-weight: 600; white-space: nowrap; }
.prep-dot { width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,.2); flex: none; }
.prep-card { border-color: rgba(217,119,6,.45); }
.prep-card h2 small { font-size: .8rem; font-weight: 500; margin-left: 8px; }
.prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.prep-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2, rgba(0,0,0,.03)); border: 1px solid var(--line, rgba(0,0,0,.08)); }
.prep-grid b { font-size: 1.5rem; line-height: 1; }
.prep-grid span { font-size: .86rem; color: var(--text-2); }
.prep-grid .is-warn { border-color: rgba(217,119,6,.5); background: rgba(245,158,11,.08); }
.badge.b-held { background: rgba(245,158,11,.14); color: #92400E; }

/* v0.60.0: Move from WHMCS */
.wm-intro ol.wm-steps { margin: .4rem 0 .8rem 1.2rem; padding: 0; }
.wm-intro ol.wm-steps li { margin: .25rem 0; }
.wm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.wm-grid .card { margin: 0; }
.wm-grid h2, .wm-table + h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.wm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.wm-kpis .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wm-kpis .stat b { font-size: 1.3rem; }
.wm-kpis .stat span { font-size: .85rem; color: var(--text-2); }
.wm-scroll { overflow-x: auto; }
.wm-table th, .wm-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.wm-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.wm-table tr.wm-has-warn td { border-bottom: 0; }
.wm-warn-row td { padding-top: 0; }
ul.wm-warn { margin: 0; padding-left: 1.1rem; font-size: .86rem; color: var(--warn); }
ul.wm-warn li { margin: 2px 0; }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary h2 { font-size: 1.05rem; }
.sx-edit > summary h2 { display: flex; }   /* v0.64.58: keeps its own chevron on the right */
/* v0.64.58: folding cards: a chevron box on the left (v0.64.60: not on cards with their own marker: settings folds, refund, backup help) (like Performance / Traffic), title and help text beside it */
details.card:not(.sx-edit):not(.sg-fold):not(.refund-card):not(.bk-help) > summary { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card:not(.sx-edit):not(.sg-fold):not(.refund-card):not(.bk-help) > summary::before { content: ''; grid-row: 1 / span 2; align-self: start; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft, #EEF2FF) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B5BDB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .15s; }
details.card:not(.sx-edit):not(.sg-fold):not(.refund-card):not(.bk-help)[open] > summary::before { transform: rotate(90deg); }
details.card:not(.sx-edit):not(.sg-fold):not(.refund-card):not(.bk-help) > summary > * { grid-column: 2; margin: 0; }
details.card:not(.sx-edit):not(.sg-fold):not(.refund-card):not(.bk-help) > summary h2 { display: block; }
.wm-kpis .stat b { order: -1; }
.wm-live .wm-now { font-size: 1.1rem; font-weight: 600; margin: .6rem 0 .4rem; }
.wm-log pre { max-height: 360px; overflow: auto; font-size: .82rem; line-height: 1.45; background: var(--code-bg); color: var(--code-text); padding: 10px 12px; border-radius: 8px; margin: .5rem 0 0; white-space: pre-wrap; }
/* v0.60.8: Server status tabs */
.mon-sum.mon-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
a.mon-k { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.mon-k:hover { border-color: var(--accent, #3B82F6); transform: translateY(-1px); }
a.mon-k.is-on { border-color: var(--accent, #3B82F6); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #3B82F6) 25%, transparent); }
a.mon-k.mon-down.is-on { border-color: #EF4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, .2); }
a.mon-k.mon-up.is-on { border-color: #22C55E; box-shadow: 0 0 0 2px rgba(34, 197, 94, .2); }
a.mon-k.mon-maint.is-on { border-color: #F59E0B; box-shadow: 0 0 0 2px rgba(245, 158, 11, .2); }
.mon-k.mon-all i { background: var(--text-2); }
@media (max-width: 860px) { .mon-sum.mon-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v0.60.12: client page, ended servers folded */
details.svc-ended { margin: 10px 0 4px; }
details.svc-ended > summary { cursor: pointer; font-weight: 600; padding: 8px 2px; color: var(--text-2); }
details.svc-ended > summary:hover { color: var(--text); }
details.svc-ended .table-wrap { margin-top: 6px; opacity: .85; }

/* v0.60.18: "Can't check" (firewalled, switched off, checks off): grey, never red */
.mon-sum.mon-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mon-sum.mon-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .mon-sum.mon-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mon-k.mon-quiet i { background: #64748B; }
.mon-quiet .mon-dot { background: #94A3B8; }
.mon-table tr.mon-quiet td { background: var(--surface-2, #F8FAFC); }
.mon-off { width: 100%; }
.mon-off > summary { list-style: none; width: 100%; text-align: center; cursor: pointer; }
.mon-off > summary::-webkit-details-marker { display: none; }
.mon-off[open] > summary { margin-bottom: 6px; }
.mon-off form { display: grid; gap: 6px; }
.mon-off input[type="text"] { width: 100%; font-size: .8rem; padding: 6px 8px; }
.mon-off .check span { font-size: .78rem; }
.live-blocked { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.live-nocheck { background: var(--surface-2, #F1F5F9); color: var(--text-2, #475569); border-color: var(--border, #E2E8F0); }
.vpx-live.is-blocked { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.45); color: #FDE68A; } .vpx-live.is-blocked i { background: #FBBF24; box-shadow: none; }
.vpx-live.is-nocheck { background: rgba(148,163,184,.16); border-color: rgba(148,163,184,.45); color: #E2E8F0; } .vpx-live.is-nocheck i { background: #94A3B8; box-shadow: none; }

/* v0.60.19: Server status actions: one row of round tools; maintenance and "Don't check" live in the ⋯ menu */
.mon-table td.mon-act { width: 1%; white-space: nowrap; vertical-align: middle; }
.mon-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.mon-tools form { margin: 0; display: contents; }
.mon-ico, .mon-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; font: 600 .8rem/1 var(--f-body); transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s; }
.mon-ico { width: 34px; padding: 0; list-style: none; }
.mon-ico::-webkit-details-marker { display: none; }
.mon-pill { padding: 0 14px 0 11px; color: var(--text); }
.mon-ico svg, .mon-pill svg { width: 16px; height: 16px; }
.mon-ico:hover, .mon-pill:hover { border-color: var(--accent, #3B82F6); color: var(--accent, #3B82F6); box-shadow: 0 2px 10px -4px color-mix(in srgb, var(--accent, #3B82F6) 50%, transparent); }
.mon-ico:active, .mon-pill:active { transform: scale(.96); }
.mon-ico:focus-visible, .mon-pill:focus-visible { outline: 2px solid var(--accent, #3B82F6); outline-offset: 2px; }
.mon-pill.is-signal { background: linear-gradient(135deg, #EF4444, #DC2626); border-color: transparent; color: #fff; box-shadow: 0 4px 14px -6px rgba(220, 38, 38, .7); }
.mon-pill.is-signal:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 6px 18px -6px rgba(220, 38, 38, .8); }
.mon-menu { position: relative; }
.mon-menu[open] > .mon-ico { background: var(--text, #0F172A); color: #fff; border-color: transparent; }
.mon-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 50px -12px rgba(15, 23, 42, .28), 0 2px 6px rgba(15, 23, 42, .06); white-space: normal; text-align: left; animation: mon-pop .14s ease-out; }
.mon-pop.is-fixed { position: fixed; right: auto; top: auto; }
@keyframes mon-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.mon-pop-h { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3, #64748B); }
.mon-pop-h svg { width: 14px; height: 14px; }
.mon-pop-sep { height: 1px; background: var(--border); margin: 12px -14px; }
.mon-chips { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; }
.mon-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2, #F8FAFC); color: var(--text); font: 600 .78rem/1 var(--f-body); cursor: pointer; transition: all .15s; }
.mon-chip:hover { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
.mon-chip.is-end { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
.mon-offf { display: grid !important; gap: 8px; }
.mon-offf input[type="text"] { width: 100%; height: 34px; border-radius: 10px; font-size: .82rem; padding: 0 10px; }
.mon-offf .check span { font-size: .8rem; }
.mon-offf .btn { justify-self: start; border-radius: 999px; }
@media (max-width: 860px) { .mon-tools { justify-content: flex-start; } }
.mon-offf .btn { height: 32px; padding: 0 16px; background: var(--text, #0F172A); color: #fff; border: 0; font-weight: 600; }
.mon-offf .btn:hover { filter: brightness(1.15); }
.mon-offf p { margin-top: 2px; }
.mon-chips .mon-chip { flex: 1 0 auto; }
/* v0.60.20: Stop checking lines up with the reason box (same width, height and corners) */
.mon-offf input[type="text"], .mon-offf .btn { height: 38px; border-radius: 10px; box-sizing: border-box; }
.mon-offf .btn { justify-self: stretch; width: 100%; display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.mon-offf .check { margin: 0; }
.mon-offf p { margin: 0; text-align: center; font-size: .76rem; }
.mon-chips { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mon-chips .mon-chip { width: 100%; height: 34px; border-radius: 10px; }
.mon-chips > span { grid-column: span 2; align-self: center; }

/* v0.62.2: compact drop-down (select[data-pick]): the list is at most ~6 rows tall and scrolls inside */
.pick { position: relative; width: 100%; }
.pick-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
.pick-btn { width: 100%; min-height: 42px; display: flex; align-items: center; text-align: left; font: inherit; font-size: .95rem; padding: 10px 46px 10px 12px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--ui-ctl, var(--r-sm)); background: var(--input-bg) no-repeat right 10px center / 24px 24px; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23EEF2F8'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%233C4A66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: border-color .15s ease, box-shadow .15s ease; }
.pick-btn:hover, .pick.is-open .pick-btn { border-color: var(--border-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230E1B33'/%3E%3Cpath d='M8 10.5l4 4 4-4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pick-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); }
.pick-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface, #fff); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(14, 27, 51, .35); padding: 6px; }
.pick.is-up .pick-pop { top: auto; bottom: calc(100% + 6px); }
.pick-q { margin-bottom: 6px; min-height: 36px !important; padding: 7px 10px !important; font-size: .9rem !important; }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pick-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .93rem; line-height: 1.3; }
.pick-list li:hover, .pick-list li:focus { background: var(--surface-2, #F1F4F9); outline: none; }
.pick-list li[aria-selected=true] { font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--accent, #FF7A45) 12%, transparent); }
.pick-list li[aria-selected=true]::after { content: '✓'; float: right; color: var(--accent, #FF7A45); }
.pick-list li[hidden] { display: none; }
.mid-center { margin-left: auto; margin-right: auto; }   /* v0.62.6: full sign-up form centred like the log-in page */

/* ---------------------------------------------------------------- v0.64.0: Live chat "Mission Control" (always dark) */
.lcx { --x-bg: #070B16; --x-card: rgba(15,23,42,.78); --x-line: rgba(255,255,255,.08); --x-line2: rgba(255,255,255,.14); --x-text: #E2E8F0; --x-dim: #94A3B8; --x-mute: #8391A7;
  --x-hi: #F8FAFC; --x-acc: #FF7A30; --x-acc-soft: rgba(255,122,48,.12); --x-go: #34D399; --x-go-soft: rgba(52,211,153,.12); --x-warm: #FDBA74;
  color: var(--x-text); background: radial-gradient(1100px 420px at 75% -12%, rgba(255,122,48,.13), transparent 60%), radial-gradient(900px 380px at -10% 110%, rgba(59,130,246,.10), transparent 60%), var(--x-bg);
  border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; font-family: var(--f-body, Inter, system-ui, sans-serif); color-scheme: dark; }
.lcx a { color: var(--x-warm); }
.lcx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.lcx-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lcx-title h1 { margin: 0; color: var(--x-hi); font-size: 1.9rem; letter-spacing: -.02em; }
.lcx-agents { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--x-go-soft); color: #6EE7B7; }
.lcx-agents.is-on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--x-go); animation: lcx-ring 1.8s infinite; }
.lcx-agents.is-off { background: rgba(251,191,36,.12); color: #FCD34D; }
.lcx-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.lcx-stat { display: flex; flex-direction: column; min-width: 104px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--x-line); }
.lcx-stat span { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--x-dim); }
.lcx-stat b { font-family: var(--f-head, 'Space Grotesk', sans-serif); font-size: 1.55rem; line-height: 1.2; color: var(--x-hi); font-variant-numeric: tabular-nums; }
.lcx-stat.is-warm b { color: var(--x-warm); } .lcx-stat.is-go b { color: #6EE7B7; }
.lcx-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lcx-links a { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--x-line2); color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: .88rem; }
.lcx-links a:hover { background: rgba(255,255,255,.06); color: var(--x-hi); }
.lcx .lc { grid-template-columns: 330px minmax(0, 1fr) 320px; height: calc(100vh - 300px); min-height: 560px; }
.lcx .lc-side, .lcx .lc-main, .lcx .lc-info { background: var(--x-card); border: 1px solid var(--x-line); border-radius: 18px; color: var(--x-text); box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.lcx .lc-info { background: transparent; border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.lcx-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.lcx-tabs button { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--x-line2); background: transparent; color: #CBD5E1; font: inherit; font-size: .8rem; cursor: pointer; }
.lcx-tabs button span:empty { display: none; }
.lcx-tabs button span { font-size: .72rem; opacity: .85; }
.lcx-tabs button[aria-selected="true"] { background: var(--x-acc); border-color: var(--x-acc); color: #1A0B02; font-weight: 700; }
.lcx .lc-group[hidden] { display: none; }
.lcx .lc-group h3 { color: var(--x-dim); font-size: .72rem; letter-spacing: .1em; }
.lcx .lc-n:not(:empty) { background: var(--x-acc); color: #1A0B02; }
.lcx .lc-none { color: var(--x-mute); }
.lcx .lc-item { flex-direction: row; align-items: center; gap: 11px; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 9px 10px; margin-bottom: 2px; color: var(--x-text); }
.lcx .lc-item:hover { background: rgba(255,255,255,.045); border-color: transparent; }
.lcx .lc-item.is-cur { background: var(--x-acc-soft); border-color: rgba(255,122,48,.45); box-shadow: none; }
.lcx .lc-item.is-waiting { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.35); animation: lcx-wait 1.6s ease-in-out infinite; }
.lcx-ib { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lcx .lc-item-top b { color: #F1F5F9; font-size: .92rem; }
.lcx .lc-item-meta, .lcx .lc-item-sub { color: var(--x-dim); }
.lcx .lc-item-sub { overflow: hidden; text-overflow: ellipsis; }
.lcx .lc-head .lc-acts .btn { min-height: 34px; padding: 5px 11px; }
.lcx .lc-item-last { color: #CBD5E1; }
.lcx .lc-dot { background: var(--x-acc); color: #1A0B02; right: 10px; bottom: auto; top: 10px; }
.lcx-av { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 700 .82rem/1 var(--f-head, 'Space Grotesk', sans-serif); color: #0B1020; background: #CBD5E1; letter-spacing: .02em; }
.lcx-mono { font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.lcx-tag { flex: none; align-self: flex-start; padding: 3px 8px; border-radius: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lcx-tag.is-chat { background: var(--x-acc-soft); color: var(--x-warm); }
.lcx-tag.is-hot { background: var(--x-go-soft); color: #6EE7B7; }
.lcx-tag.is-new { background: rgba(147,197,253,.14); color: #BFDBFE; }
.lcx-vitem.is-hot .lcx-av { box-shadow: 0 0 0 2px var(--x-go); }
.lcx-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--x-go); animation: lcx-ring 1.8s infinite; flex: none; }
.lcx .lc-online { border-top-color: var(--x-line); }
.lcx .lc-on { border-top-color: var(--x-line); }
.lcx .lc-on-name { color: #F1F5F9; }
.lcx .btn-ghost { background: transparent; color: #CBD5E1; border-color: var(--x-line2); }
.lcx .btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--x-hi); }
.lcx .btn-signal { background: var(--x-acc); border-color: var(--x-acc); color: #1A0B02; font-weight: 700; }
.lcx .btn-signal:hover { background: #FF8F52; border-color: #FF8F52; }
.lcx .lc-danger { color: #FCA5A5; }
.lcx .lc-empty { color: var(--x-dim); }
.lcx .lc-empty svg { color: var(--x-warm); opacity: .8; }
.lcx .lc-empty b { color: var(--x-hi); font-size: 1.05rem; }
.lcx .lc-head { border-bottom-color: var(--x-line); padding: 14px 18px; }
.lcx-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lcx-who .lcx-av { width: 44px; height: 44px; border-radius: 14px; font-size: .9rem; }
.lcx .lc-head-t { display: flex; flex-direction: column; min-width: 0; }
.lcx .lc-head-t b { color: var(--x-hi); font-size: 1.08rem; }
.lcx .lc-head-t .small { color: var(--x-dim); }
.lcx .lc-transfer { background: transparent; color: #CBD5E1; border-color: var(--x-line2); }
.lcx .lc-msgs { background: transparent; padding: 18px 20px; gap: 12px; }
.lcx .lc-m-visitor .lc-bubble { background: #1E293B; border: 0; color: var(--x-text); border-radius: 16px 16px 16px 4px; }
.lcx .lc-m-staff .lc-bubble { background: linear-gradient(135deg, #FF7A30, #F05A28); color: #1A0B02; font-weight: 500; border-radius: 16px 16px 4px 16px; }
.lcx .lc-m-staff .lc-bubble a { color: #1A0B02; }
.lcx .lc-sys { background: rgba(255,255,255,.05); color: var(--x-dim); }
.lcx .lc-meta, .lcx .lc-seen { color: var(--x-mute); }
.lc-m-ev { align-self: center; max-width: 92%; }
.lcx-ev { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; background: rgba(147,197,253,.08); color: #BFDBFE; animation: lcx-in .4s ease-out; overflow-wrap: anywhere; }
.lcx-ev.lcx-k-order { background: var(--x-go-soft); color: #6EE7B7; }
.lcx-ev.lcx-k-signup { background: var(--x-acc-soft); color: var(--x-warm); }
.lcx .lc-typing { display: flex; align-items: center; gap: 10px; padding: 4px 20px 8px; color: var(--x-dim); }
.lcx .lc-typing[hidden] { display: none; }
.lcx-dots { display: inline-flex; gap: 4px; padding: 9px 12px; border-radius: 14px; background: #1E293B; }
.lcx-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--x-dim); animation: lcx-blink 1.2s infinite; }
.lcx-dots i:nth-child(2) { animation-delay: .2s; } .lcx-dots i:nth-child(3) { animation-delay: .4s; }
.lcx .lc-compose { border-top-color: var(--x-line); padding: 14px 16px; }
.lcx .lc-box { background: #0B1222; border-color: var(--x-line2); }
.lcx .lc-box:focus-within { border-color: var(--x-acc); box-shadow: 0 0 0 3px rgba(255,122,48,.18); }
.lcx .lc-box textarea { color: #F1F5F9; }
.lcx .lc-box textarea::placeholder { color: var(--x-mute); }
.lcx .lc-bar select[data-quick] { background-color: transparent; color: #CBD5E1; border-color: var(--x-line2); }
.lcx .lc-hint { color: var(--x-mute); }
.lcx .lc-banner { margin: 0 16px 12px; }
.lcx .lc-banner.is-ok { background: var(--x-go-soft); color: #6EE7B7; border-color: rgba(52,211,153,.3); }
.lcx .lc-banner.is-bad { background: rgba(248,113,113,.12); color: #FCA5A5; border-color: rgba(248,113,113,.3); }
.lcx-vpane { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lcx-vpane[hidden] { display: none; }
.lcx-vbody { flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.lcx-vnow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 1rem; color: #CBD5E1; }
.lcx-vnow b { color: var(--x-warm); font-size: .95rem; }
.lcx-hello { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,122,48,.14), rgba(255,122,48,.03)); border: 1px solid rgba(255,122,48,.25); }
.lcx-hello label { font-weight: 600; color: var(--x-hi); }
.lcx-hello textarea { background: #0B1222; color: #F1F5F9; border: 1px solid var(--x-line2); border-radius: 12px; padding: 12px 14px; font: inherit; resize: vertical; }
.lcx-hello-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--x-dim); }
.lcx-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: 18px; padding: 16px; }
.lcx-card[hidden] { display: none; }
.lcx-card h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--x-dim); }
.lcx-livetag { display: inline-flex; align-items: center; gap: 6px; color: #6EE7B7; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lcx-livetag[hidden] { display: none; }
.lcx-journey { list-style: none; margin: 0; padding: 0; }
.lcx-j { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.lcx-j > i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #64748B; position: relative; z-index: 1; }
.lcx-j:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 2px; background: rgba(255,255,255,.08); }
.lcx-j > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lcx-j b { color: var(--x-text); font-weight: 500; overflow-wrap: anywhere; }
.lcx-j small { color: var(--x-mute); font-size: .75rem; }
.lcx-j.lcx-k-src > i { background: #93C5FD; } .lcx-j.lcx-k-src b { font-family: inherit; color: #BFDBFE; font-size: .85rem; }
.lcx-j.lcx-k-order > i { background: var(--x-go); } .lcx-j.lcx-k-signup > i { background: var(--x-warm); } .lcx-j.lcx-k-client > i { background: #C4B5FD; }
.lcx-j.is-now > i { animation: lcx-ring 1.8s infinite; background: var(--x-go); }
.lcx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lcx-facts:not([hidden]) { display: grid; }
.lcx-facts span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--x-dim); }
.lcx-facts b { font-size: .9rem; color: var(--x-hi); font-weight: 600; overflow-wrap: anywhere; }
.lcx [data-info] .lc-sec h3 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--x-dim); }
.lcx [data-info] .lc-sec + .lc-sec { border-top-color: var(--x-line); }
.lcx .lc-kv span { color: var(--x-dim); } .lcx .lc-kv b { color: var(--x-text); }
.lcx .lc-asst { color: #CBD5E1; }
.lcx-nudge { background: linear-gradient(135deg, rgba(255,122,48,.16), rgba(255,122,48,.04)); border-color: rgba(255,122,48,.25); }
.lcx-nudge h3 { color: var(--x-warm); font-size: .9rem; letter-spacing: 0; text-transform: none; margin-bottom: 6px; }
.lcx-nudge p { margin: 0 0 12px; font-size: .86rem; color: #CBD5E1; line-height: 1.5; }
.lcx-ticker { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; background: rgba(15,23,42,.6); border: 1px solid var(--x-line); overflow: hidden; }
.lcx-ticker > b { color: #6EE7B7; font-size: .78rem; letter-spacing: .12em; flex: none; }
.lcx-ticker-row { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; font-size: .84rem; color: var(--x-dim); scrollbar-width: none; }
.lcx-tick { display: inline-flex; align-items: center; gap: 6px; }
.lcx-tick b { color: #CBD5E1; font-weight: 600; }
.lcx-tick em { font-style: normal; color: var(--x-mute); font-size: .76rem; }
.lcx-tick.lcx-k-order svg { color: var(--x-go); } .lcx-tick.lcx-k-signup svg { color: var(--x-warm); }
.lcx-tick.is-new { animation: lcx-in .5s ease-out; color: var(--x-hi); }
@keyframes lcx-ring { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes lcx-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes lcx-blink { 50% { opacity: .25; } }
@keyframes lcx-wait { 50% { border-color: rgba(251,191,36,.75); } }
@media (prefers-reduced-motion: reduce) { .lcx *, .lcx *::before { animation: none !important; } }
@media (max-width: 1280px) { .lcx .lc { grid-template-columns: 290px minmax(0, 1fr); height: auto; } .lcx .lc-side, .lcx .lc-main { height: calc(100vh - 300px); min-height: 520px; }
  .lcx .lc-info { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 820px) { .lcx { padding: 12px; border-radius: 16px; } .lcx .lc { grid-template-columns: 1fr; } .lcx .lc-side { height: auto; max-height: 360px; } .lcx .lc-main { height: 75vh; } }
/* v0.64.1: cart and unsent text in Live chat */
.lcx-cartline { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .76rem; color: #6EE7B7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lcx-cartline svg { flex: none; }
.lcx-cart { background: linear-gradient(135deg, rgba(52,211,153,.10), rgba(52,211,153,.02)); border-color: rgba(52,211,153,.25); }
.lcx-cart h3 b { color: #6EE7B7; font-size: .95rem; letter-spacing: 0; text-transform: none; font-family: var(--f-head, 'Space Grotesk', sans-serif); }
.lcx-cart ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lcx-cart li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lcx-cart li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.lcx-cart li b { color: var(--x-hi); font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.lcx-cart li small { color: var(--x-dim); font-size: .76rem; }
.lcx-cart-p { flex: none; color: #CBD5E1; font-weight: 600; font-size: .86rem; }
.lcx-cart-more { color: var(--x-dim); font-size: .8rem; }
.lcx-draft { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lcx-draft q { quotes: "\201C" "\201D"; font-style: italic; color: #E2E8F0; font-size: .9rem; overflow-wrap: anywhere; }
.lcx-draft q[hidden] { display: none; }
.lcx .lcx-dots[hidden] { display: none; }

/* v0.64.2/v0.64.3: staff sidebar folds to icons (button beside the search box, or the "[" key); remembered per browser */
.side-head { display: contents; }
.side-toggle { display: none; }
@media (min-width: 901px) {
  .layout-side.is-staff .side-head { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
  .layout-side.is-staff .side-head .nav-find { flex: 1; min-width: 0; margin: 0; }
  .layout-side.is-staff .side-toggle { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 9px; cursor: pointer;
    border: 1px solid var(--hdr-border); background: transparent; color: var(--hdr-text); transition: background .15s, color .15s; }
  .layout-side.is-staff .side-toggle:hover, .layout-side.is-staff .side-toggle:focus-visible { background: var(--hdr-hover); color: var(--hdr-strong); }
  .layout-side.is-staff .side-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
  .is-staff.side-mini { --side-w: 76px; }
  .side-mini .side-toggle svg { transform: scaleX(-1); }
  .side-mini.layout-side.is-staff .side-head { flex-direction: column-reverse; width: 100%; }
  .side-mini.layout-side .top { overflow-x: hidden; scrollbar-width: none; }
  .side-mini.layout-side .top-row { padding: 18px 10px; gap: 16px; align-items: center; }
  .side-mini.layout-side .logo { padding: 0; justify-content: center; }
  .side-mini.layout-side .logo-word, .side-mini.layout-side .logo .tag { display: none; }
  .side-mini.layout-side .nav-panel { align-items: center; width: 100%; }
  .side-mini .nav-find { width: 44px; flex: none !important; cursor: pointer; }
  .side-mini .nav-find input { width: 44px; height: 40px; padding: 0; color: transparent; cursor: pointer; }
  .side-mini .nav-find input::placeholder { color: transparent; }
  .side-mini .nav-find svg { left: 50%; transform: translate(-50%, -50%); }
  .side-mini.layout-side .nav { width: 100%; align-items: center; }
  .side-mini .nav a { position: relative; justify-content: center; width: 48px; height: 44px; padding: 0; gap: 0; }
  .side-mini .nav a > span:not(.count) { display: none; }
  .side-mini .nav .count { position: absolute; top: 3px; right: 1px; min-width: 17px; padding: 0 4px; font-size: .62rem; line-height: 1.55; margin: 0; }
  .side-mini .nav .count .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .side-mini .nav-h { width: 28px; height: 1px; margin: 10px auto; padding: 0; overflow: hidden; color: transparent; background: var(--hdr-border); opacity: 1; }
  .side-mini.layout-side .top-actions { width: 100%; align-items: center; }
  .side-mini .top-actions .who { justify-content: center; padding: 6px; }
  .side-mini .who-name, .side-mini .top-actions .linkbtn span { display: none; }
  .side-mini.layout-side .top-actions .linkbtn { width: 48px; display: grid; place-items: center; padding: 9px 0; }
  .side-mini.layout-side .side-help { display: none; }
  .side-mini.theme-c.layout-side .nav a { border-left: 0; }
}
/* Live chat uses the whole width (more room when the menu is folded) */
.app-body main .wrap:has(> .lcx), main .wrap:has(.lcx) { max-width: none; }
/* v0.64.4: staff pages fill the window next to the sidebar (no empty strip on the right, also when the menu is folded) */
@media (min-width: 901px) { .is-staff.layout-side { --wrap: 100%; } .is-staff.layout-side main .wrap { max-width: none; } }
/* v0.64.6: dashboard chart hover card, guide line, income area; refresh buttons on dashboard cards */
.ch-inc-area { fill: var(--ok); opacity: .1; }
.ch-dot.is-zero { opacity: 0; }
.ch-dot.is-on { opacity: 1; r: 5.5; fill: var(--ok); stroke: var(--surface); stroke-width: 2.5; }
.ch-guide { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; pointer-events: none; vector-effect: non-scaling-stroke; }
.ch-hit { cursor: crosshair; }
.ch-hit:hover { opacity: .045; }
.ch-tip { position: absolute; z-index: 5; min-width: 180px; padding: 10px 12px; border-radius: 10px; background: #0F172A; color: #E2E8F0; font-size: .82rem; line-height: 1.35;
  box-shadow: 0 14px 34px -14px rgba(2,6,23,.6); pointer-events: none; display: grid; gap: 5px; }
.ch-tip[hidden] { display: none; }
.ch-tip-t { color: #fff; font-size: .86rem; margin-bottom: 2px; }
.ch-tip div { display: flex; align-items: center; gap: 8px; }
.ch-tip div span { flex: 1; color: #CBD5E1; }
.ch-tip div b { color: #fff; font-variant-numeric: tabular-nums; }
.ch-tip i { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.ch-tip i.lg-new { background: #94A3B8; opacity: 1; } .ch-tip i.lg-inc { height: 3px !important; }
.dsx-h-acts { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dsx-h-acts > a { font-size: .84rem; font-weight: 600; color: var(--text-2); } .dsx-h-acts > a:hover { color: var(--text); }
.dsx-refresh { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; }
.dsx-refresh:hover, .dsx-refresh:focus-visible { color: var(--text); background: var(--surface-2); }
.dsx-refresh svg { width: 16px; height: 16px; }
.dsx-refresh.is-spin svg { animation: dsx-spin .8s linear infinite; }
.dsx-card.is-loading > :not(.dsx-card-h) { opacity: .55; transition: opacity .15s; }
@keyframes dsx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dsx-refresh.is-spin svg { animation: none; } }
/* v0.64.10: New room / Members list: checkbox and name on one line (the dialog's "inputs full width" rule stretched the boxes) */
.chat-dialog-in input[type="checkbox"], .chat-dialog-in input[type="radio"] { width: auto; flex: none; margin: 0; }
.chat-pick { gap: 6px; max-height: 260px; padding: 2px; }
.chat-pick .check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--text); }
.chat-pick .check:hover { background: var(--surface-2); }
.chat-pick .check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.chat-pick .check:has(input:disabled) { cursor: default; opacity: .85; }
.chat-pick .check span { min-width: 0; overflow-wrap: anywhere; }
.chat-dialog-in .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* v0.64.13: long payment references wrap inside the Payments card; status line centred on one row */
.iv-payments .iv-li-what span, .iv-payments .mono { overflow-wrap: anywhere; word-break: break-all; }
.iv-payments .iv-list li { min-width: 0; }
.iv-state > p { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }

/* v0.64.24: Website → Help pictures */
.hp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;margin-top:16px}
.hp-card{display:flex;flex-direction:column;gap:12px;padding:14px}
.hp-img{background:var(--bg-soft,#f4f6fa);border-radius:10px;display:flex;align-items:center;justify-content:center;height:220px;overflow:hidden}
.hp-img img{max-width:100%;max-height:220px;object-fit:contain}
.hp-meta{display:flex;flex-direction:column;gap:8px}
.hp-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hp-form input[type=file]{flex:1;min-width:0;font-size:13px}

/* v0.64.27: Live chat, customers online are clickable */
.lcx .lcx-crow { cursor: pointer; border-radius: 12px; padding: 8px 10px; margin: 0 -10px; }
.lcx .lcx-crow:hover { background: rgba(255,255,255,.05); }
.lcx .lcx-crow.is-cur { background: rgba(255,122,69,.12); box-shadow: 0 0 0 1px rgba(255,122,69,.5) inset; }
/* v0.64.30: staff client page, servers as a list (no side scrolling) */
.svc-list { list-style: none; margin: 14px 0 22px; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.svc-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.svc-row:first-child { border-top: 0; }
.svc-row:hover { background: var(--hover, rgba(14,27,51,.03)); }
.svc-main { flex: 1; min-width: 0; }
.svc-title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-title a { color: inherit; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.svc-meta a { color: var(--muted); font-family: var(--mono, ui-monospace, monospace); }
.svc-side { text-align: right; flex: none; }
.svc-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.svc-price { font-size: 15px; white-space: nowrap; }
.svc-price small { font-weight: 400; color: var(--muted); margin-left: 1px; }
.svc-when { margin-top: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.svc-row.is-ended { opacity: .8; }
.svc-none { padding: 18px 20px; color: var(--muted); }
details.svc-ended .svc-list { margin-top: 6px; }
@media (max-width: 560px) { .svc-row { flex-direction: column; align-items: stretch; gap: 8px; } .svc-side { text-align: left; } .svc-top { justify-content: flex-start; } }

/* v0.64.36: default plan to copy + New plan form */
.bp-default { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px; margin: -6px 0 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.bp-default label { font-weight: 600; margin: 0; }
.bp-default select { max-width: 420px; }
.bp-default .small { flex: 1 1 260px; }
a.bp-hr { text-decoration: none; }
.np-form .settings-group { margin-bottom: 16px; }
.np-fam { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.np-fam-on { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--signal, #FF7A45); color: #fff; font-weight: 600; }
.np-fam-on .ico { width: 16px; height: 16px; }
.np-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; margin: 4px 0 8px; }
.np-list .check { margin: 0; }
.np-unsure { margin-top: 10px; }
.np-unsure summary { cursor: pointer; color: var(--muted); }
.np-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 6px 0 30px; }
.np-form #f-np_recipe { max-width: 460px; }

/* v0.64.37: location dropdown, resource options, copy to other plans */
.loc-sel { width: 100%; }
.res-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.res-pick .field { margin-bottom: 10px; }
.res-pick select { width: 100%; }
@media (max-width: 640px) { .res-pick { grid-template-columns: 1fr; } }
.res-table td { vertical-align: middle; }
.copyto { margin: 12px 0 4px; }
.copyto summary { cursor: pointer; font-weight: 600; }
.copyto-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px; margin-top: 8px; max-height: 320px; overflow: auto; padding: 4px; }
.copyto-h { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.copyto-list .check { margin: 0; }
.loc-fold { margin: 10px 0; } .loc-fold summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }

/* v0.64.42: amount columns grow for long totals (rupees, thousands) instead of running into the arrow */
.cl-row { grid-template-columns: 38px minmax(0, 1fr) 70px 120px minmax(0, 220px) minmax(100px, max-content) 34px; }
@media (max-width: 1200px) { .cl-row { grid-template-columns: 38px minmax(0, 1fr) 120px minmax(0, 200px) minmax(100px, max-content) 34px; } }
a.bp-all { text-decoration: none; }

/* v0.64.54: invite email preview (Clients → Invite all): wraps inside the card */
.inv-prev { max-height: 460px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: var(--bg-soft, #f8fafc); font-size: .9rem; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }

/* v0.64.55: staff area on phones (≤ 640 px). Desktop is unchanged. */
@media (max-width: 640px) {
  /* list tables become one compact card per row (panel.js adds .rt, data-label, rt-title / rt-act / rt-wide):
     title on top, then the values two per line with a small label above each, buttons at the bottom right */
  .is-staff table.rt, .is-staff table.rt tbody { display: block; width: auto !important; min-width: 0 !important; border: 0; background: none; }
  .is-staff table.rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .is-staff table.rt tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(14,27,51,.04); }
  .is-staff table.rt td { display: block !important; width: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; word-break: normal; font-size: .88rem; line-height: 1.35; }
  .is-staff table.rt td::before { content: attr(data-label); display: block; margin: 0 0 2px; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #64748B); }
  .is-staff table.rt td:not([data-label])::before, .is-staff table.rt td[data-label=""]::before { content: none; }
  .is-staff table.rt td.rt-title { grid-column: 1 / -1; order: -1; font-weight: 600; font-size: .95rem; }
  .is-staff table.rt td.rt-title::before { content: none; }
  .is-staff table.rt td.rt-title .srv-sub-line, .is-staff table.rt td.rt-title .small { font-weight: 400; }
  .is-staff table.rt td.rt-wide, .is-staff table.rt td.rt-full { grid-column: 1 / -1; }
  .is-staff table.rt td.rt-full::before { content: none; }
  .is-staff table.rt td.rt-act { grid-column: 1 / -1; display: flex !important; justify-content: flex-end; gap: 8px; flex-wrap: wrap; order: 99; }
  .is-staff table.rt td.rt-act::before { content: none; }
  .is-staff table.rt td.rt-empty { display: none !important; }
  /* v0.65.49: totals under a list (Subtotal, Total, Paid, Balance due) stay plain lines: label left, amount right */
  .is-staff table.rt tfoot { display: block; margin: 2px 16px 4px; }
  .is-staff table.rt tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 7px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .is-staff table.rt tfoot td { font-size: .92rem; }
  .is-staff table.rt tfoot td::before { content: none; }
  .is-staff table.rt tfoot td:empty, .is-staff table.rt tfoot td.col-wide:empty { display: none !important; }
  .is-staff table.rt tfoot td.num { text-align: right !important; white-space: nowrap !important; }
  .is-staff table.rt tfoot .t-sub, .is-staff table.rt tfoot .t-due { border-top: 1px solid var(--border); padding-top: 11px; }
  .is-staff table.rt tfoot .t-total td { font-weight: 700; font-size: 1rem; }
  .is-staff table.rt tfoot .t-due td { font-weight: 700; font-size: 1.05rem; }
  .is-staff table.rt .srv-sub-line { display: block; }
  .is-staff table.rt td .badge { white-space: nowrap; }
  .is-staff .rt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .is-staff .card:has(> table.rt), .is-staff .tbl-wrap:has(> table.rt) { padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
  /* tab rows: one line that scrolls, with a fade where more tabs are hidden */
  .is-staff #main .tabs, .is-staff #main .seg, .is-staff #main .sx-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; width: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .is-staff #main .tabs::-webkit-scrollbar, .is-staff #main .seg::-webkit-scrollbar, .is-staff #main .sx-chips::-webkit-scrollbar { display: none; }
  .is-staff #main .tabs > *, .is-staff #main .seg > *, .is-staff #main .sx-chips > * { flex: 0 0 auto; white-space: nowrap; }
  .is-staff #main .rt-more { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .is-staff #main .rt-less { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
  .is-staff #main .rt-more.rt-less { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  /* hero figures (Tasks, Orders…): two even columns */
  .is-staff .sxh-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .is-staff .sxh-figs > * { min-width: 0; padding: 9px 12px; }
  .is-staff .sxh-figs span { font-size: .72rem; line-height: 1.25; }
  /* filter forms: every box inside the screen */
  .is-staff .mail-filters, .is-staff .mail-filters > * { max-width: 100%; }
  .is-staff .mail-filters select, .is-staff .mail-filters input { width: 100%; min-width: 0; }
  .is-staff #main select { max-width: 100%; }
  /* client rows: no empty "–" / "none" bits */
  .is-staff .cl-row > .is-blank { display: none !important; }
  /* the chat button: smaller, and the page ends above it */
  .is-staff .chat-fab { right: 12px; bottom: 12px; padding: 11px; }
  .is-staff .chat-fab .chat-fab-label { display: none; }
  .is-staff #main { padding-bottom: 80px; }
}
@media (max-width: 820px) {
  /* Live chat: no big empty panel under the list until a chat or visitor is opened */
  .is-staff .lc-main:has(> [data-empty]:not([hidden])) { display: none; }
}

/* v0.64.56: staff menu on phones and small tablets: a full-screen panel over the page (not pushed into it), tiles in two columns */
@media (max-width: 900px) {
  .is-staff .staff-top { position: sticky; top: 0; z-index: 1000; }
  html.is-staff.js.nav-open, html.is-staff.js.nav-open body { overflow: hidden; }
  .is-staff .staff-top .top-row > .nav-toggle { order: 1; margin-left: auto; }
  html.js.nav-open .is-staff .staff-top .nav-panel, html.js.nav-open body.is-staff .nav-panel { display: flex; position: fixed; left: 0; right: 0; top: var(--hdr-h, 64px); bottom: 0; z-index: 999; margin: 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--hdr-bg, #fff); border-top: 1px solid var(--hdr-border); box-shadow: 0 18px 40px rgba(14,27,51,.18); gap: 14px; }
  body.is-staff .nav-panel .side-head { display: flex; gap: 8px; align-items: center; }
  body.is-staff .nav-panel .side-head .nav-find { flex: 1; min-width: 0; margin: 0; }
  body.is-staff .nav-panel .side-head [data-side-toggle] { display: none; }
  body.is-staff .nav-panel .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.is-staff .nav-panel .nav a { position: relative; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 50px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--hdr-border); background: var(--surface, #fff); font-size: .9rem; line-height: 1.2; }
  body.is-staff .nav-panel .nav a[aria-current="page"] { border-color: transparent; }
  body.is-staff .nav-panel .nav a .ico { width: 20px; height: 20px; }
  body.is-staff .nav-panel .nav a .count { margin-left: auto; }
  body.is-staff .nav-panel .nav a span:not(.count) { min-width: 0; line-height: 1.2; }
  body.is-staff .nav-panel .nav-h { grid-column: 1 / -1; margin: 10px 2px 0; }
  body.is-staff .nav-panel .top-actions { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--hdr-border); }
  body.is-staff .chat-fab { z-index: 990; }
  html.nav-open body.is-staff .chat-fab { display: none; }
}
/* v0.64.127: on phones the chat window sits above the sticky staff top bar (z 1000), so its close / back buttons are never hidden */
@media (max-width: 760px) {
  .chat-panel:not(.chat-full) { z-index: 1002; height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .chat-panel:not(.chat-full) .chat-winbtns { top: calc(10px + env(safe-area-inset-top)); }
}
/* v0.64.56: Emails list on computers: the address on one line (cut with … if very long), the subject gets the rest */
@media (min-width: 641px) {
  .mail-table { table-layout: auto; width: 100%; }
  .mail-table .mail-to { white-space: nowrap; overflow-wrap: normal; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
  .mail-table td:first-child { white-space: nowrap; }
}

/* v0.64.57: a server name in the facts strip keeps its own case and breaks at a dot, not mid-word */
.inv-facts .spop, .inv-facts .spop * { text-transform: none; letter-spacing: normal; font-size: inherit; }
.inv-facts > div > :not(span:first-child) { overflow-wrap: break-word; }

/* v0.64.60: Settings → Blog → Cloudflare page cache */
.cf-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cf-box .flash { margin: 10px 0 0; }
.cf-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* v0.64.66: business reports (Income, GST, Unpaid, Customers, Support team, Exports) */
.rp-note { flex-basis: 100%; margin: 4px 0 0; }
.rp-table .rp-barcol { width: 28%; min-width: 120px; }
.rp-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; border-radius: 99px; background: var(--hover); vertical-align: middle; }
.rp-bar::-webkit-progress-bar { background: var(--hover); border-radius: 99px; }
.rp-bar::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.rp-bar::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
tr.rp-total td { border-top: 2px solid var(--border); font-weight: 700; background: var(--hover); }
tr.rp-current td { background: var(--accent-soft); }
.rp-late { color: var(--err); }
.warn-text { color: var(--err); font-weight: 600; }
.stat.rp-bad { border-color: var(--err); }
.stat.rp-bad b { color: var(--err); }
.rp-scroll { max-height: 420px; overflow-y: auto; }
.rp-month { margin-top: 28px; }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp-gst td, .rp-gst th { white-space: nowrap; }
@media (max-width: 640px) { .rp-table .rp-barcol { display: none; } }
.rp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 24px; }
/* v0.64.75: order summary */
.sum div[hidden], .sum-card [hidden] { display: none !important; }
.sum-plan { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sum-plan b { font-weight: 700; }
.sum .total { border-top: 1px solid var(--border); }
.sum .sum-gst dt, .sum .sum-gst dd { font-weight: 400; color: var(--text-2); font-size: .9em; }
.sum-save { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.sum-renew { margin: 8px 0 0; }
.sum-fast { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; color: var(--text-2); }
.sum-fast svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.pay-chips span { font-size: .75rem; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); }
/* v0.64.76: order page sticky bar on phones; quick checkout */
.cfg-bar { display: none; }
@media (max-width: 760px) {
  .cfg-bar { display: flex; position: sticky; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
  .cfg-bar { padding-right: 84px; }
  .cfg-bar > div { display: flex; flex-direction: column; line-height: 1.2; }
  .cfg-bar b { font: 700 1.1rem/1.2 var(--f-head); }
}
.co-change { margin: 4px 0; flex: 1 1 420px; max-width: 520px; }
.co-change > summary { cursor: pointer; color: var(--text-2); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border-radius: 6px; list-style: none; }
.co-change > summary::-webkit-details-marker { display: none; }
.co-change > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.co-change[open] > summary::before { transform: rotate(45deg); }
.co-change > summary:hover { color: var(--text); }
.co-change > summary:focus { outline: none; }
.co-change > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-change[open] > summary { margin-bottom: 10px; }
/* v0.64.82: labels in one column so both dropdowns start and end at the same place */
.co-change .co-term { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 10px; }
.co-change .co-term select { max-width: none; width: 100%; }
@media (max-width: 560px) { .co-change .co-term { grid-template-columns: 1fr; gap: 4px; } }
/* v0.64.83: coupon toggle like the one above; code box and Apply the same height */
.co-coupon > summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border-radius: 6px; list-style: none; color: var(--text-2); }
.co-coupon > summary::-webkit-details-marker { display: none; }
.co-coupon > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.co-coupon[open] > summary::before { transform: rotate(45deg); }
.co-coupon > summary:hover { color: var(--text); }
.co-coupon > summary:focus { outline: none; }
.co-coupon > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-coupon .coupon-row { align-items: stretch; }
.co-coupon .coupon-row input { flex: 1 1 auto; min-width: 0; height: 44px; border-radius: 12px; }
.co-coupon .coupon-row .btn { height: 44px; padding: 0 18px; border-radius: 12px; border-color: var(--border-strong, var(--ghost-border)); }
/* v0.64.85: "Pay in" over its box so the code box and the currency box share both edges; quiet focus on the toggles (Safari shows the ring on click) */
.co-cur { display: grid; gap: 6px; }
.co-cur select { width: 100%; }
/* v0.64.87: "Security check not working? Email me a login link" under the Log in button */
.login-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin-top: 12px; font-size: .86rem; color: var(--text-2); }
.login-alt .linkbtn { font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; padding: 0; background: none; border: 0; cursor: pointer; font-size: inherit; }
/* v0.64.86: how many of the same server, and the order page's "already in your checkout" */
.co-qty { display: inline-flex; align-items: center; margin: 0; border: 1px solid var(--border-strong); border-radius: 999px; height: 36px; overflow: hidden; background: var(--surface); }
.co-qty button { appearance: none; border: 0; background: transparent; width: 36px; height: 100%; font-size: 1.1rem; font-weight: 600; color: var(--text); cursor: pointer; line-height: 1; }
.co-qty button:hover:not(:disabled) { background: var(--accent-soft); }
.co-qty button:disabled { color: var(--text-2); opacity: .45; cursor: default; }
.co-qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-actions .co-qty { margin-left: auto; }
.co-actions .co-qty + .co-remove { margin-left: 10px; }
.co-qtytotal { margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--text); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.sum-incart { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--text); }
.sum-incart .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
.co-change > summary:focus-visible, .co-coupon > summary:focus-visible { outline: none; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.co-account { margin-top: 16px; }
.co-acc-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.co-acc-head h2 { margin: 0; }
/* v0.64.84: quiet "Already have an account? Log in" */
.co-acc-login { font-size: .85rem; color: var(--text-2); }
.co-acc-login a { font-weight: 600; color: var(--accent-text, var(--accent)); text-decoration: none; margin-left: 2px; }
.co-acc-login a:hover, .co-acc-login a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.co-paypick { border: 0; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.co-paypick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.co-payopt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .88rem; transition: border-color .15s, background .15s; }
.co-payopt:hover { border-color: var(--text-2); }
.co-payopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.co-paynow { max-width: 520px; margin: 40px auto; text-align: center; }
/* v0.64.77: order summary button full width */
.sum-card .actions { margin-top: 16px; }
.sum-card .actions .btn { width: 100%; justify-content: center; padding-top: 13px; padding-bottom: 13px; font-size: 1rem; }

/* v0.64.80: payment method icons, short checkout, billing banner */
.co-payopt input { flex: none; margin: 0; }
.co-payic { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.co-payic svg { width: 20px; height: 20px; }
.co-payic-card { color: #2563EB; } .co-payic-upi { color: #059669; } .co-payic-coin { color: #D97706; } .co-payic-wallet { color: #1D4ED8; } .co-payic-bank { color: #6B7280; } .co-payic-globe { color: #7C3AED; } .co-payic-transactions { color: #0D9488; }
.co-paytx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.co-paytx b { font-weight: 600; }
.co-paytx small { color: var(--text-2); font-size: .78rem; line-height: 1.3; }
.co-billnote { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.co-billnote > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
/* v0.64.91: one "Manage this server" card with Server / Account / Danger rows */
.vpx-manage .ctl-label { margin: 18px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vpx-manage h2 + .ctl-label, .vpx-manage h2 + p + .ctl-label { margin-top: 6px; }
.vpx-manage .ctl-label.is-danger { color: #B91C1C; }
/* v0.64.93: staff Arrange plans */
.arrange .arr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.arrange .arr-bar > .btn-signal { margin-left: auto; }
.arrange .arr-bar-end { justify-content: flex-end; }
.arrange .arr-dirty { color: #B45309; font-weight: 600; }
.arr-lines { margin-bottom: 4px; }
.arr-groups, .arr-plans { list-style: none; margin: 0; padding: 0; }
.arr-group { margin: 0 0 12px; padding: 12px 14px; }
.arr-ghead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: grab; }
.arr-ghead h3 { margin: 0; font-size: 1rem; }
.arr-btns { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.arr-handle { color: var(--muted); letter-spacing: -2px; cursor: grab; user-select: none; }
.arr-plans { margin-top: 10px; display: grid; gap: 6px; }
.arr-plan { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: grab; }
.arr-plan:hover { border-color: var(--border-strong); }
.arr-n { min-width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.arr-name { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.arr-loc { min-width: 0; }
.arr-price { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arr-plan .arr-btns { margin-left: 0; }
.arr-mv { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: .95rem; line-height: 1; }
.arr-mv:hover { background: var(--surface-2); }
.arr-mv:focus-visible { outline: 2px solid #2F7BFF; outline-offset: 1px; }
.is-drag { opacity: .45; }
@media (max-width: 720px) { .arr-loc { display: none; } .arr-plan { flex-wrap: wrap; } }
/* v0.64.98: ticket attachments: drop zone + file chips */
.fdrop { position: relative; }
.fdrop .fdrop-zone { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; margin: 0; padding: 14px 16px; border: 1.5px dashed var(--border-strong, #CBD2DC);
  border-radius: 14px; background: var(--surface-2); cursor: pointer; font-weight: 400; font-size: .9rem; transition: border-color .15s, background .15s; }
.fdrop .fdrop-zone:hover, .fdrop.is-over .fdrop-zone { border-color: #2F7BFF; background: rgba(47,123,255,.06); }
.fdrop-input:focus-visible + .fdrop-list, .fdrop:focus-within .fdrop-zone { outline: none; }
.fdrop:focus-within .fdrop-zone { border-color: #2F7BFF; box-shadow: 0 0 0 3px rgba(47,123,255,.15); }
.fdrop-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(47,123,255,.12); color: #2F7BFF; }
.fdrop-ic .ico { width: 18px; height: 18px; }
.fdrop-txt { display: grid; gap: 1px; min-width: 0; }
.fdrop-txt b { font-size: .92rem; }
.fdrop-txt span { color: var(--text-2); font-size: .82rem; }
.fdrop-txt u { color: #2F7BFF; text-decoration: none; font-weight: 600; }
.fdrop-lim { color: var(--muted, #6B7280); font-size: .76rem; line-height: 1.45; text-align: right; }
.fdrop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fdrop-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fdrop-list li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .84rem; }
.fdrop-list li.is-bad { border-color: #F3B4B4; background: #FFF5F5; }
.fdrop-list .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; font-weight: 600; }
.fdrop-list .fs { color: var(--text-2); font-size: .76rem; }
.fdrop-list button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; line-height: 1; font-size: 1rem; color: var(--text-2); }
.fdrop-list button:hover { background: #FEE2E2; color: #B91C1C; }
.fdrop-err { margin: 8px 0 0; color: #B91C1C; font-weight: 600; }
@media (max-width: 640px) { .fdrop .fdrop-zone { grid-template-columns: auto 1fr; } .fdrop-lim { grid-column: 1 / -1; text-align: left; } }
.reply-foot .field:has(.fdrop) { flex: 1 1 100%; }   /* v0.64.98: the drop zone takes the whole row; Send reply sits under it on the right */
.reply-foot:has(.fdrop) { justify-content: flex-end; }
/* v0.64.100: Set up provisioning: one card per plan sold in several locations (plan + OS once, a region per location) */
.bp-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.bp-table tbody:last-of-type tr:last-child td { border-bottom: 0; }
.bp-table tbody[hidden] { display: none; }
.bp-grp { background: color-mix(in srgb, #2F7BFF 2.5%, var(--surface)); }
.bp-grp-head td { border-bottom: 1px dashed var(--border); padding-bottom: 12px; }
.bp-grp-head td:first-child { box-shadow: inset 3px 0 0 #2F7BFF; }
.bp-grp.is-on .bp-grp-head td:first-child { box-shadow: inset 3px 0 0 #1F4FB8; }
.bp-grp-note { color: var(--text-2); font-size: .82rem; line-height: 1.45; }
.bp-locn { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 2px; padding: 2px 9px; border-radius: 999px; background: #EEF4FF; color: #1E3A8A; font-weight: 700; font-size: .76rem; }
.bp-locn .ico { width: 12px; height: 12px; }
.bp-grp-st { display: inline-block; font-weight: 700; font-size: .8rem; color: #B45309; }
.bp-grp-st.is-all { color: #15803D; }
.bp-loc-row td { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.bp-loc-row td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, #2F7BFF 35%, transparent); padding-left: 26px; }
.bp-loc-row.is-on td:first-child { box-shadow: inset 3px 0 0 #2F7BFF; }
.bp-loc-row.is-on { background: color-mix(in srgb, #2F7BFF 5%, transparent); }
.bp-loc-row .bp-loc { margin: 2px 0; }
.bp-own > summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--text-2); padding: 7px 0; list-style: none; }
.bp-own > summary::-webkit-details-marker { display: none; }
.bp-own > summary::before { content: "+ "; color: #2F7BFF; }
.bp-own[open] > summary::before { content: "− "; }
.bp-own[open] { padding: 6px 10px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.bp-own .bp-sel { margin: 6px 0; }
.bp-own-os { max-height: 160px; overflow: auto; }

/* v0.64.101: Plans list: one heading row per product line */
.cat-line-row th{background:var(--surface-2,rgba(127,127,127,.06));text-align:left;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;padding:10px 14px;font-weight:700}
.cat-line-row th .muted{text-transform:none;letter-spacing:0;font-weight:500;margin-left:6px}

/* v0.64.103: ticket hero: "This ticket is about" and the buttons on one line, buttons lined up on the right */
section.vpx .tkx-foot { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; }
section.vpx .tkx-foot .tkx-about { margin-top: 0; flex: 1 1 380px; max-width: 680px; }
section.vpx .tkx-foot .vpx-acts.cdx-acts { margin: 0 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 700px) {
  section.vpx .tkx-foot { flex-direction: column; align-items: stretch; }
  section.vpx .tkx-foot .tkx-about { flex-basis: auto; max-width: none; }
  section.vpx .tkx-foot .vpx-acts.cdx-acts { margin: 0; flex-wrap: wrap; }
  section.vpx .tkx-foot .vpx-acts.cdx-acts .vpx-btn { flex: 1 1 auto; justify-content: center; }
}
/* v0.64.104: ticket title: space under it even when it wraps (5 classes: beats .vpx.cdx.is-slim .vpx-name), smaller for long subjects */
section.vpx.cdx.is-slim.tkx .vpx-name { margin: 4px 0 14px; }
section.vpx.tkx .vpx-name.h1-mid { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.15; }
section.vpx.tkx .vpx-name.h1-long { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; }

/* v0.64.105: staff ticket header: small "Ticket number · department" line, subject as the title, status and chat on the right at one height */
#main .page-head.page-head.tk-head:has(h1) { align-items: flex-start; flex-wrap: wrap; }
#main .page-head.tk-head .tk-head-main { min-width: 0; flex: 1 1 320px; }
#main .page-head.tk-head .tk-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9FB3D9; margin: 2px 0 8px; }
#main .page-head.tk-head .tk-tag .refn { align-items: center; gap: 6px; letter-spacing: .04em; }
#main .page-head.tk-head .tk-tag .refn-m { color: #fff; font-size: .85rem; }
#main .page-head.tk-head .tk-tag .refn-id { color: #9FB3D9; font-size: .8rem; }
#main .page-head.tk-head .tk-tag .refn-copy { color: #C9D6EE; }
#main .page-head.tk-head .tk-tag .refn-copy:hover { color: #fff; background: rgba(255,255,255,.12); }
#main .page-head.page-head.tk-head h1 { margin: 0; overflow-wrap: anywhere; }
#main .page-head.page-head.tk-head h1.h1-mid { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
#main .page-head.tk-head .head-acts { flex: none; flex-wrap: nowrap; }
#main .page-head.tk-head .head-acts > .badge, #main .page-head.tk-head .head-acts > .btn { height: 36px; display: inline-flex; align-items: center; box-sizing: border-box; }
#main .page-head.tk-head .head-acts > .badge { padding: 0 14px; border-radius: 999px; }
@media (max-width: 760px) {
  #main .page-head.page-head.tk-head:has(h1) { flex-direction: column; flex-wrap: wrap; align-items: flex-start; }
  #main .page-head.tk-head .head-acts { flex-wrap: wrap; }
}

/* v0.64.106: staff ticket header: assigned / priority / opened / server link as chips, server box inside the header */
#main .page-head.tk-head .tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#main .page-head.tk-head .tk-take { display: contents; }
#main .page-head.tk-head .tk-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E6ECF7; font: inherit; font-size: .82rem; line-height: 1; white-space: nowrap; text-decoration: none; box-sizing: border-box; }
#main .page-head.tk-head .tk-chip .ico { width: 14px; height: 14px; color: #FFB08C; flex: none; }
#main .page-head.tk-head .tk-chip-l { color: #9FB3D9; }
#main .page-head.tk-head .tk-chip.is-act { cursor: pointer; background: rgba(47,123,255,.22); border-color: rgba(122,168,255,.45); color: #fff; }
#main .page-head.tk-head .tk-chip.is-act .ico { color: #9CC0FF; }
#main .page-head.tk-head .tk-chip.is-act:hover { background: rgba(47,123,255,.34); }
#main .page-head.tk-head .tk-chip.is-warn { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.16); color: #FDE68A; }
#main .page-head.tk-head .tk-chip.is-warn .ico { color: #FCD34D; }
#main .page-head.tk-head .tk-about { flex: 1 0 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #E6ECF7; font-size: .86rem; overflow-wrap: anywhere; box-sizing: border-box; }
#main .page-head.tk-head .tk-about-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(47,123,255,.3); color: #fff; }
#main .page-head.tk-head .tk-about-ic .ico { width: 18px; height: 18px; }
#main .page-head.tk-head .tk-about small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB3D9; }
#main .page-head.tk-head .tk-about b, #main .page-head.tk-head .tk-about b a { color: #fff; }
@media (max-width: 760px) { #main .page-head.tk-head .tk-chip { white-space: normal; height: auto; min-height: 32px; padding: 6px 12px; } #main .page-head.tk-head .tk-head-main { flex: 0 0 auto; width: 100%; } #main .page-head.tk-head .tk-about { flex: 0 0 auto; width: 100%; } }

/* v0.64.109: dashboard action cards (new ticket reply, two-factor tip) instead of plain notice strips */
.dash-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.dash-tips.is-one { grid-template-columns: minmax(0, 1fr); }
.dash-tip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); min-width: 0; }
.dash-tip-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.dash-tip-ic .ico, .dash-tip-ic svg { width: 20px; height: 20px; }
.dash-tip.is-blue .dash-tip-ic { background: color-mix(in srgb, #2F7BFF 14%, transparent); color: #2F7BFF; }
.dash-tip.is-amber .dash-tip-ic { background: color-mix(in srgb, #F59E0B 16%, transparent); color: #D97706; }
.dash-tip-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-tip-tx b { font-size: .95rem; }
.dash-tip-tx span { font-size: .84rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tip .btn { flex: none; }
.dash-inv-h { margin-top: 28px; }
@media (max-width: 760px) {
  .dash-tips { grid-template-columns: minmax(0, 1fr); }
  .dash-tip { flex-wrap: wrap; }
  .dash-tip-tx span { white-space: normal; }
  .dash-tip-tx { flex: 1 1 0; }
  .dash-tip .btn { flex: 1 0 100%; justify-content: center; }
}
/* v0.64.110: × on dashboard action cards */
.dash-tip { position: relative; padding-right: 40px; }
.dash-tip-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-3, var(--text-2)); cursor: pointer; }
.dash-tip-x .ico, .dash-tip-x svg { width: 14px; height: 14px; }
.dash-tip-x:hover { background: var(--surface-2, rgba(0,0,0,.06)); color: var(--text); }
.dash-tip-x:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 1px; }

/* v0.64.111: server page Billing card: the invoice for this server, Pay now / Pay with credit */
.svc-inv { margin-top: 16px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, #F59E0B 8%, var(--surface)); border: 1px solid color-mix(in srgb, #F59E0B 35%, var(--border)); display: grid; gap: 10px; }
.svc-inv.is-late { background: color-mix(in srgb, #EF4444 7%, var(--surface)); border-color: color-mix(in srgb, #EF4444 35%, var(--border)); }
.svc-inv-top { display: flex; gap: 12px; align-items: flex-start; }
.svc-inv-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, #F59E0B 18%, transparent); color: #B45309; }
.svc-inv.is-late .svc-inv-ic { background: color-mix(in srgb, #EF4444 15%, transparent); color: #DC2626; }
.svc-inv-ic .ico, .svc-inv-ic svg { width: 18px; height: 18px; }
.svc-inv-top > div { display: flex; flex-direction: column; min-width: 0; }
.svc-inv-top small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #B45309; }
.svc-inv.is-late .svc-inv-top small { color: #DC2626; }
.svc-inv-top b { font-size: 1.35rem; line-height: 1.2; }
.svc-inv-top span { font-size: .82rem; color: var(--text-2); overflow-wrap: anywhere; }
.svc-inv form { margin: 0; }
.svc-inv .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.svc-inv-note { margin: 0; font-size: .78rem; color: var(--text-2); }
@media (min-width: 1001px) { .pay-due.pay-due-sm { display: none; } }

/* v0.64.112: server page hero: the status pill stays top right; a long plan name wraps beside it instead of pushing it down */
.vpx-top.vpx-top-svc { flex-wrap: nowrap; }
.vpx-top.vpx-top-svc > .vpx-head { flex: 1 1 0; min-width: 0; }
.vpx-top.vpx-top-svc > .vpx-live { flex: none; white-space: nowrap; }
@media (max-width: 700px) { .vpx-top.vpx-top-svc { flex-wrap: wrap; } }
.vpx-top.vpx-top-svc .vpx-name.h1-mid { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.15; }
/* v0.64.116: specs of a moved WHMCS line on the staff invoice, one bullet line each */
.inv-specs { margin: 4px 0 0; padding-left: 18px; line-height: 1.45; }
/* v0.64.118: shared RDP plans are marked on the order pages */
.pc-shared { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; }
.pc-top:has(.pc-shared) { flex-wrap: wrap; row-gap: 6px; justify-content: flex-start; }
.pc-top:has(.pc-shared) .pc-tier + .pc-shared { margin-left: 0; }
.pc-top:has(.pc-shared) .pc-loc { flex-basis: 100%; }
.sum-plan .sum-shared { display: inline-block; margin: 4px 0 2px; align-self: flex-start; }
.plan-shared { margin: 10px 0 12px; padding: 10px 12px; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; font-size: .88rem; line-height: 1.45; }
.plan-shared b { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: #FEF3C7; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
/* v0.64.121: Provisioning "None: not on this master" */
.bp-hint .is-off { color: var(--text-2); background: var(--surface-2, #F1F5F9); }
.bp-st-none { background: #F1F5F9; color: #475569; }
/* v0.64.122: link an invoice line to a server (staff invoice page) */
.inv-lines .inv-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.inv-lines .inv-link select { flex: 1 1 260px; max-width: 420px; min-height: 36px; font-size: .88rem; }
.inv-lines .inv-link .btn { min-height: 36px; }
/* v0.64.125: staff New order: two kinds (tabs), chosen plan bar */
.so-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; }
.so-tab { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface, #fff); }
.so-tab b { font-size: .98rem; }
.so-tab small { color: var(--text-2); font-size: .82rem; }
a.so-tab:hover { border-color: var(--text-2); }
.so-tab.is-on { border-color: var(--accent, #F59E0B); box-shadow: inset 0 0 0 1px var(--accent, #F59E0B); background: color-mix(in srgb, var(--accent, #F59E0B) 8%, var(--surface, #fff)); }
.so-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; }
.so-plan > div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 600px) { .so-tabs { grid-template-columns: 1fr; } }
/* v0.64.130: Audit page with tabs (activity, payments, provisioning, API calls) */
.au-tabs { flex-wrap: wrap; }
.au-wrap { max-height: none; overflow-x: auto; }
.au-table { width: 100%; }
.au-table td { vertical-align: top; }
.au-table tr.au-bad td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.au-id { font-size: .76rem; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-err { max-width: 320px; overflow-wrap: anywhere; }
.toolbar .au-num { width: 120px; }
.toolbar .au-act { width: 190px; }
.toolbar .au-failed { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .9rem; }
.au-more { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.au-back { margin: 0 0 12px; }
.au-detail h1 { font-size: 1.3rem; margin: 0; }
.au-detail h2 { font-size: 1rem; margin: 20px 0 8px; }
.au-dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.au-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 16px 0 0; }
.au-facts div { min-width: 0; } .au-facts .au-wide { grid-column: 1 / -1; }
.au-facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.au-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.au-body { margin: 0; max-height: 520px; overflow: auto; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .au-facts { grid-template-columns: 1fr; } .toolbar .au-num, .toolbar .au-act { width: 100%; } }
.au-table .au-when { width: 150px; min-width: 130px; }
.au-table td:nth-child(2) { min-width: 120px; }
.au-table .au-err { min-width: 160px; }
.au-table .au-id { max-width: 300px; }
.bp-shared { display: inline-block; margin-left: 6px; font-size: .78rem; color: var(--warn); }   /* v0.64.131 */
/* v0.64.132: checkout "Use my account credit" */
.co-credit { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; background: var(--ok-bg); border: 1px solid var(--ok-line); }
.co-credit span { display: grid; gap: 2px; } .co-credit b { color: var(--ok); } .co-credit small { color: var(--text-2); font-size: .82rem; }

/* v0.64.138: Server activity (staff server page and client page) */
.sact { margin: 0 0 26px; }
.sact .section-head h2 { margin-bottom: 4px; }
.sact-note { margin: 0 0 12px; }
.sact-counts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sact-counts li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sact-counts b { font-size: 1.5rem; line-height: 1.1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sact-counts li.is-on b { color: var(--text); }
.sact-counts li.is-on { border-color: color-mix(in srgb, var(--accent, #FF7A45) 45%, var(--line)); }
.sact-counts span { font-size: .84rem; font-weight: 600; }
.sact-counts small { font-size: .74rem; color: var(--text-2); }
.act-label { display: block; font-weight: 600; font-size: .88rem; }
.au-only { margin: 0 0 12px; }

/* v0.64.146: Live chat as a light inbox (B) with a Visitors table (D). Overrides the dark "Mission Control" block above. */
.lcx { --x-bg: #F3F5FA; --x-card: #FFFFFF; --x-line: #E5EAF2; --x-line2: #D5DCE8; --x-text: #0E1B33; --x-dim: #4A5872; --x-mute: #5F6B82;
  --x-hi: #0E1B33; --x-acc: #C2410C; --x-acc-soft: #FFEDD5; --x-go: #15803D; --x-go-soft: #DCFCE7; --x-warm: #B4480F;
  background: var(--x-bg); color-scheme: light; border: 1px solid var(--x-line); }
.lcx a { color: #9A3412; }
.lcx-agents { color: var(--x-go); } .lcx-agents.is-off { background: #FEF3C7; color: #92400E; }
.lcx-views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #E8ECF4; }
.lcx-views button { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--x-dim); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.lcx-views button[aria-selected="true"] { background: #fff; color: var(--x-text); box-shadow: 0 1px 3px rgba(14,27,51,.14); }
.lcx-views button span:empty { display: none; }
.lcx-views button span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--x-acc); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.lcx-stat { background: #fff; border-color: var(--x-line); }
.lcx-stat.is-go b { color: var(--x-go); }
.lcx-links a { color: var(--x-text); background: #fff; }
.lcx-links a:hover { background: #F8FAFC; color: var(--x-text); }
.lcx .lc-side, .lcx .lc-main { box-shadow: 0 1px 2px rgba(14,27,51,.05); }
.lcx .lc-side { display: flex; flex-direction: column; min-height: 0; }
.lcx-scroll { flex: 1; min-height: 0; overflow: auto; }
.lcx-tabs { gap: 2px; padding: 3px; border-radius: 11px; background: #EEF1F6; flex-wrap: nowrap; }
.lcx-tabs button { flex: 1; justify-content: center; border: 0; border-radius: 8px; color: var(--x-dim); padding: 5px 6px; }
.lcx-tabs button[aria-selected="true"] { background: #fff; color: var(--x-text); box-shadow: 0 1px 3px rgba(14,27,51,.12); }
.lcx .lc-group.is-empty, .lcx .lc-group.is-folded .lc-list { display: none; }
.lcx .lc-group h3 { margin: 10px 0 4px; }
.lcx-fold { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 2px; border: 0; background: none; color: var(--x-dim); font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.lcx-fold::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.lcx-fold[aria-expanded="false"]::after { transform: rotate(-45deg); }
.lcx .lc-n:not(:empty) { color: #fff; }
.lcx .lc-item { color: var(--x-text); }
.lcx .lc-item:hover { background: #F4F6FA; }
.lcx .lc-item.is-cur { background: #FFF4EC; border-color: #FDBA74; }
.lcx .lc-item.is-waiting { background: #FFFBEB; border-color: #FCD34D; }
.lcx .lc-item-top b, .lcx .lc-on-name { color: var(--x-text); }
.lcx .lc-item-last { color: var(--x-dim); }
.lcx .lc-dot { color: #fff; }
.lcx-row { display: flex; align-items: center; gap: 4px; }
.lcx-row > .lc-item { flex: 1; min-width: 0; }
.lcx-row.is-gone .lc-item { opacity: .62; }
.lcx-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--x-mute); cursor: pointer; }
.lcx-x:hover, .lcx-x:focus-visible { background: #FEE2E2; color: #B91C1C; }
.lcx-rowbtn { flex: none; }
.lcx-quiet { margin: 12px 4px; color: var(--x-dim); font-size: .88rem; }
.lcx-quiet[hidden], .lcx-sidefoot[hidden] { display: none; }
.lcx-sidefoot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--x-line); color: var(--x-dim); }
.lcx-sidefoot .btn { width: 100%; justify-content: center; }
.lcx .btn-ghost { color: var(--x-text); background: #fff; }
.lcx .btn-ghost:hover { background: #F4F6FA; color: var(--x-text); }
.lcx .btn-signal { color: #fff; }
.lcx .btn-signal:hover { background: #9A3412; border-color: #9A3412; }
.lcx .lc-danger { color: #B91C1C; }
.lcx .btn[disabled] { opacity: .5; cursor: not-allowed; }
.lcx .btn-ink { background: #0E1B33; border-color: #0E1B33; color: #fff; font-weight: 700; }
.lcx .btn-ink:hover { background: #1E2B45; }
.lcx-end { display: inline-flex; align-items: center; gap: 6px; }
.lcx-iconbtn { display: inline-grid; place-items: center; width: 34px; padding: 0 !important; }
.lcx .lc-transfer, .lcx .lc-bar select[data-quick] { background-color: #fff; color: var(--x-text); }
.lcx .lc-msgs { background: #F8FAFC; }
.lcx .lc-m-visitor .lc-bubble { background: #fff; border: 1px solid var(--x-line); color: var(--x-text); }
.lcx .lc-m-staff .lc-bubble { background: #C2410C; color: #fff; }
.lcx .lc-m-staff .lc-bubble a { color: #fff; }
.lcx .lc-sys { background: #EEF1F6; color: var(--x-dim); }
.lcx-ev { background: #EFF6FF; color: #1D4ED8; }
.lcx-ev.lcx-k-order { color: var(--x-go); }
.lcx-dots { background: #EEF1F6; }
.lcx-draft q { color: var(--x-text); }
.lcx .lc-box { background: #fff; }
.lcx .lc-box textarea { color: var(--x-text); }
.lcx .lc-box:focus-within { box-shadow: 0 0 0 3px rgba(194,65,12,.18); }
.lcx .lc-banner.is-ok { color: var(--x-go); border-color: #BBF7D0; }
.lcx .lc-banner.is-bad { background: #FEE2E2; color: #B91C1C; border-color: #FECACA; }
.lcx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lcx-chips[hidden] { display: none; }
.lcx-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--x-line2); background: #fff; color: var(--x-text); font: inherit; font-size: .8rem; cursor: pointer; }
.lcx-chip:hover { border-color: var(--x-acc); color: var(--x-warm); }
.lcx-vnow { color: var(--x-dim); } .lcx-vnow b { color: var(--x-warm); }
.lcx-hello { background: #FFF7ED; border-color: #FED7AA; }
.lcx-hello textarea { background: #fff; color: var(--x-text); }
.lcx-card { box-shadow: 0 1px 2px rgba(14,27,51,.05); }
.lcx-livetag { color: var(--x-go); }
.lcx-j > i { background: #94A3B8; }
.lcx-j:not(:last-child)::before { background: var(--x-line); }
.lcx-j.lcx-k-src > i { background: #3B82F6; } .lcx-j.lcx-k-src b { color: #1D4ED8; } .lcx-j.lcx-k-client > i { background: #7C3AED; }
.lcx .lc-asst { color: var(--x-dim); }
.lcx-nudge { background: #FFF7ED; border-color: #FED7AA; }
.lcx-nudge p { color: var(--x-dim); }
.lcx-ticker { background: #fff; }
.lcx-ticker > b { color: var(--x-go); }
.lcx-tick b { color: var(--x-text); }
.lcx-tag.is-hot { color: var(--x-go); }
.lcx-tag.is-new { background: #DBEAFE; color: #1D4ED8; }
.lcx-tag.is-cust { background: #EDE9FE; color: #5B21B6; }
.lcx-cartline { color: var(--x-go); }
.lcx-cart { background: #F0FDF4; border-color: #BBF7D0; }
.lcx-cart h3 b { color: var(--x-go); }
.lcx-cart-p { color: var(--x-text); }
.lcx .lcx-crow:hover { background: #F4F6FA; }
.lcx .lcx-crow.is-cur { background: #FFF4EC; box-shadow: 0 0 0 1px #FDBA74 inset; }
/* person panel */
.lcx-phead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lcx-pwho { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lcx-pwho b { font-size: 1rem; overflow-wrap: anywhere; }
.lcx-pwho .small { color: var(--x-dim); }
.lcx-plink { flex: none; font-weight: 600; font-size: .86rem; text-decoration: none; }
.lcx-person .lc-kv { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; border-top: 1px solid var(--x-line); font-size: .86rem; }
.lcx-person .lc-kv b { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.lcx-psec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--x-line); }
.lcx-psec h3 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--x-dim); }
.lcx-psec p { margin: 0; }
.lcx-prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; font-size: .86rem; }
.lcx-prow a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcx-prow.is-due b { color: #B91C1C; }
.lcx-st { flex: none; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; text-transform: capitalize; background: #EEF1F6; color: var(--x-dim); }
.lcx-st-active { background: var(--x-go-soft); color: var(--x-go); }
.lcx-st-suspended, .lcx-st-overdue { background: #FEE2E2; color: #B91C1C; }
.lcx-st-pending, .lcx-st-provisioning { background: #FEF3C7; color: #92400E; }
.lcx-ptickets { margin: 10px 0 0; color: var(--x-dim); }
.lcx-past { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .86rem; }
.lcx-past li { display: flex; flex-direction: column; gap: 2px; }
.lcx-pnote { color: var(--x-dim); font-size: .8rem; font-style: italic; overflow-wrap: anywhere; }
.lcx-notecard textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--x-line2); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: .88rem; color: var(--x-text); background: #FFFBEB; resize: vertical; }
.lcx-notecard textarea:focus { outline: 2px solid var(--x-acc); outline-offset: 1px; }
.lcx-note-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: var(--x-dim); }
/* Visitors view */
.lcx-vis { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--x-line); }
.lcx-vis[hidden], .lcx-vgroup[hidden] { display: none; }
.lcx-vis-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; color: var(--x-dim); }
.lcx-vis-bar input { flex: 1; max-width: 360px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--x-line2); border-radius: 10px; font: inherit; color: var(--x-text); background: #fff; }
.lcx-vgroup h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; color: var(--x-text); }
.lcx-vgroup h2 small { font-weight: 400; color: var(--x-dim); font-size: .8rem; }
.lcx-vdot { width: 9px; height: 9px; border-radius: 50%; }
.lcx-vdot.is-active { background: var(--x-go); } .lcx-vdot.is-idle { background: #94A3B8; }
.lcx-tablewrap { overflow-x: auto; border: 1px solid var(--x-line); border-radius: 12px; }
.lcx-vtable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lcx-vtable th { text-align: left; padding: 9px 12px; background: #F8FAFC; color: var(--x-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--x-line); white-space: nowrap; }
.lcx-vtable td { padding: 9px 12px; border-bottom: 1px solid var(--x-line); vertical-align: middle; }
.lcx-vtable tbody tr:last-child td { border-bottom: 0; }
.lcx-vtable tbody tr { cursor: pointer; }
.lcx-vtable tbody tr:hover { background: #F8FAFC; }
.lcx-vtable tr.is-hot { background: #F0FDF4; }
.lcx-vtable tr.is-customer { background: #FAF5FF; }
.lcx-vtable td.lcx-mono { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcx-vtable .is-dim { color: var(--x-mute); }
.lcx-vname { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lcx-av-s { width: 28px; height: 28px; border-radius: 8px; font-size: .7rem; }
.lcx-vact { text-align: right; white-space: nowrap; }
.lcx [hidden] { display: none !important; }
.lcx-vtable td { white-space: nowrap; }
.lcx .lc { grid-template-columns: 300px minmax(0, 1fr) 300px; }
@media (max-width: 1280px) { .lcx .lc { grid-template-columns: 290px minmax(0, 1fr); } }
@media (max-width: 820px) { .lcx .lc { grid-template-columns: 1fr; } .lcx-views { width: 100%; } .lcx-views button { flex: 1; justify-content: center; } }
.lcx-vis, .lcx-vgroup, .lcx-tablewrap { min-width: 0; max-width: 100%; }
@media (max-width: 820px) {
  .lcx .lc-side { max-height: none; }
  .lcx-vtable th:nth-child(3), .lcx-vtable td:nth-child(3), .lcx-vtable th:nth-child(4), .lcx-vtable td:nth-child(4), .lcx-vtable th:nth-child(6), .lcx-vtable td:nth-child(6) { display: none; }
  .lcx-vtable td.lcx-mono { max-width: 140px; }
  .lcx-vname { white-space: normal; flex-wrap: wrap; }
}

/* v0.64.147: Live chat fills the screen; full-screen mode; visitors leaving */
@media (min-width: 821px) {
  .lcx { height: calc(100dvh - 56px); min-height: 640px; gap: 12px; padding: 14px; }
  .lcx .lc.lcx-grid { flex: 1; min-height: 0; height: auto; }
  .lcx .lcx-vis { flex: 1; min-height: 0; overflow: auto; }
  .lcx-stat { min-width: 0; padding: 4px 12px; flex-direction: row; align-items: baseline; gap: 6px; border-radius: 10px; }
  .lcx-stat b { font-size: 1.15rem; }
  .lcx-title h1 { font-size: 1.5rem; }
}
.lcx:fullscreen { height: 100vh; min-height: 0; border-radius: 0; border: 0; padding: 14px; overflow: auto; }
.lcx::backdrop { background: #F3F5FA; }
.lcx-fullbtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--x-line2); background: #fff; color: var(--x-text); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.lcx-fullbtn:hover { background: #F4F6FA; }
.lcx-fullbtn[aria-pressed="true"] { background: #0E1B33; border-color: #0E1B33; color: #fff; }
.lcx-fullbtn[hidden] { display: none; }
.lcx-vtable tr.is-leaving { opacity: .55; }
.lcx-tag.is-left { background: #FEE2E2; color: #B91C1C; }
.lcx .lc-m.is-pending .lc-bubble { opacity: .65; }
main:has(> .wrap > .lcx), main:has(.lcx) { padding: 10px 0 10px; }
@media (min-width: 821px) { .lcx { height: calc(100dvh - 24px); } }
.lcx-tabs button { white-space: nowrap; padding: 5px 4px; font-size: .78rem; gap: 4px; }
.lcx .lc-item.has-unread .lc-item-top { padding-right: 22px; }
/* v0.64.148: close the open chat / visitor view */
.lcx .lc-head { position: relative; padding-right: 54px; }
.lcx-closeview { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--x-line2); background: #fff; color: var(--x-dim); cursor: pointer; }
.lcx-closeview:hover, .lcx-closeview:focus-visible { background: #F4F6FA; color: var(--x-text); }

/* v0.64.149: theme C (DediGermany) — the command-center heroes, tiles and live chat in the website's RAL colours:
   7016 anthracite, 1003 signal yellow, 7035 grey; small corners like dedigermany.com. Red stays only for money due / errors. */
.theme-c .vpx, .theme-c #main .page-head.page-head:has(h1) {
  background: radial-gradient(900px 380px at 92% -30%, rgba(242,179,0,.30), transparent 60%), linear-gradient(135deg, #23282B, #2E353A);
  box-shadow: 0 18px 44px -30px rgba(35,40,43,.7); border-radius: 6px; border-bottom: 4px solid #F2B300; }
.theme-c .vpx::after, .theme-c #main .page-head.page-head:has(h1)::after { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); }
.theme-c .vpx-name, .theme-c #main .page-head.page-head:has(h1) h1 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .01em; }
.theme-c .vpx-tag, .theme-c .vpx-ip small, .theme-c #main .page-head.page-head:has(h1) h1 .muted { color: #C4CACD; }
.theme-c .vpx-meta span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #E7E9EA; border-radius: 3px; }
.theme-c .vpx-meta .ico { color: #F2B300; }
.theme-c .vpx-btn { border-radius: 3px; }
.theme-c .vpx-btn.is-main { background: #F2B300; color: #23282B !important; box-shadow: none; }
.theme-c .vpx-btn.is-main:hover { background: #D49C00; }
.theme-c .vpx-live, .theme-c .sxh-figs > * { border-radius: 3px; }
.theme-c .vpx-tile, .theme-c :is(.cdx-stat, .cdx-card, .sl-row, .cdx-empty) { --c: #3A4247; --c2: #E1E4E5; border-radius: 3px; }
.theme-c :is(.vpx-tile, .cdx-stat, .cdx-card, .sl-row).ut-ram, .theme-c :is(.vpx-tile, .cdx-stat, .cdx-card, .sl-row).ut-disk { --c: #3A4247; --c2: #E1E4E5; }
.theme-c :is(.vpx-tile, .cdx-stat, .cdx-card, .sl-row).ut-net, .theme-c .vpx-tile.is-warm { --c: #6B4E00; --c2: #FCEFC7; }
.theme-c .vpx-tile.is-hot, .theme-c .cdx-stat.is-hot { --c: #9B2C1F; --c2: #F6DAD5; }
.theme-c .ut-ic { border-radius: 3px; }
.theme-c .sx-av { border-radius: 3px; background: #3A4247; }
/* live chat console */
.theme-c .lcx { --x-acc: #F2B300; --x-acc-soft: #FCEFC7; --x-warm: #6B4E00; --x-text: #23282B; --x-hi: #23282B; --x-dim: #535D62; --x-bg: #E7E9EA; --x-line: #D4D8DA; --x-line2: #C4CACD;
  border-radius: 3px; font-family: var(--f-body); }
.theme-c .lcx h1, .theme-c .lcx-stat b { font-family: var(--f-head); text-transform: uppercase; }
.theme-c .lcx a { color: #23282B; text-decoration-color: #F2B300; }
.theme-c .lcx .btn-signal, .theme-c .lcx .lc-n:not(:empty), .theme-c .lcx .lc-dot, .theme-c .lcx-views button span { color: #23282B; }
.theme-c .lcx .btn-signal:hover { background: #D49C00; border-color: #D49C00; }
.theme-c .lcx .lc-m-staff .lc-bubble { background: #23282B; color: #FBFBFB; border-radius: 3px; }
.theme-c .lcx .lc-m-visitor .lc-bubble { border-radius: 3px; }
.theme-c .lcx .lc-item.is-cur, .theme-c .lcx .lcx-crow.is-cur { background: #FCEFC7; border-color: #E8D493; box-shadow: none; }
.theme-c :is(.lcx .lc-side, .lcx .lc-main, .lcx-card, .lcx-stat, .lcx-vis, .lcx-ticker, .lcx-tablewrap, .lcx-views, .lcx-tabs, .lcx-views button, .lcx-tabs button, .lcx-closeview, .lcx-fullbtn, .lcx-links a, .lcx .lc-box, .lcx-chip) { border-radius: 3px; }
/* theme C: small corners everywhere in the page (newer cards were drawn with 12–26 px) */
.theme-c #main :is(.card, .table-wrap, .dash-tip, .pc, .pc-go, .rt-bar, .rt-editor, .ux-seg, .ux-seg > *, .sl-search, .fdrop-zone, .cat-lines, .cat-lines > *, .vpx-bar, .acx-av, .btn, .tabs, .tabs > *, .site-tabs, .badge, .cdx-pill, .dsx-hero, .dsx-hero-money, input, select, textarea, button, summary.btn) { border-radius: 3px; }
.theme-c #main th { border-radius: 0; }
.theme-c .dash-tip .ut-ic, .theme-c .co-billnote .ut-ic { background: #FCEFC7; color: #6B4E00; }
/* theme C: staff dashboard hero, tiles and chips */
.theme-c .dsx-hero, .theme-c .dsx-hero.is-busy { border-radius: 6px; border-bottom: 4px solid #F2B300; box-shadow: 0 18px 44px -30px rgba(35,40,43,.7);
  background: radial-gradient(900px 380px at 92% -30%, rgba(242,179,0,.30), transparent 60%), linear-gradient(135deg, #23282B, #2E353A); }
.theme-c .dsx-hero::after { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); }
.theme-c .dsx-kicker, .theme-c .dsx-hero-money span, .theme-c .dsx-hero-money small { color: #C4CACD; } .theme-c .dsx-kicker .ico { color: #F2B300; }
.theme-c .dsx-sub { color: #E7E9EA; }
.theme-c .dsx-hero-money { border-radius: 3px; }
.theme-c .dsx-tile, .theme-c .dsx-tile:nth-child(n) { border-radius: 3px; --c: #3A4247; --c2: #E1E4E5; }
.theme-c .dsx-tile.is-hot { --c: #9B2C1F; --c2: #F6DAD5; }
.theme-c .dsx-tile::after { display: none; }
.theme-c .dsx-tile-ico { border-radius: 3px; }
.theme-c .dsx-card { border-radius: 3px; }
.theme-c .tabs.sx-chips a[aria-current], .theme-c .seg.sx-chips a[aria-current] { background: #23282B !important; }
/* theme C: the remaining navy parts (invoice and shared-RDP heroes, tips, current tabs, bulk bar) in anthracite */
.theme-c .iv-hero, .theme-c .rdpx-hero { border-radius: 6px; border-bottom: 4px solid #F2B300; box-shadow: 0 18px 44px -30px rgba(35,40,43,.7);
  background: radial-gradient(900px 380px at 92% -30%, rgba(242,179,0,.30), transparent 60%), linear-gradient(135deg, #23282B, #2E353A); }
.theme-c .iv-hero::after { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); }
.theme-c .iv-hero h1 { text-transform: uppercase; letter-spacing: .01em; }
.theme-c .iv-kicker, .theme-c .iv-hero-amt > span:last-child { color: #C4CACD; }
.theme-c .iv-unpaid .iv-hero-amt b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #F2B300; }
.theme-c .iv-hero .cdx-pill, .theme-c .iv-hero [class*="chip"] { border-radius: 3px; }
.theme-c :is(.rdpx-btn, .rdpx-pw, .rdpx-n, .rdpx-dl, .ux-tip, .bp-count, .bp-save) { border-radius: 3px; }
.theme-c :is(.ux-tip, .bp-save) { background: #23282B; }
.theme-c .rdpx-btn { background: #F2B300; color: #23282B; }
.theme-c :is(.acx-tabs a[aria-current="page"], .sx-chips a[aria-current], .vpx .head-acts .btn-ink, .vpx .head-acts summary.btn-ink, #main .page-head.page-head:has(h1) .btn-ink) { background: #23282B; border-color: #23282B; }
.theme-c #main .page-head.page-head:has(h1) .btn-ink, .theme-c .vpx .head-acts .btn-ink { background: #F2B300; border-color: #F2B300; color: #23282B; }
/* theme C: every card-like box with the newer large corners */
.theme-c :is(.card, .cat-empty, .cd-go, .cdx-card, .cdx-empty .ut-ic, .co-credit, .co-gift, .co-go, .co-ico, .ctl-panel, .ctl.tile, .flash.fl, .iv-method, .iv-nopay, .iv-note, .iv-pay, .iv-sheet,
  .iv-docs .btn, .lc-bubble, .mon-k, .mon-pop, .msg-card, .pp-pools, .rdpx-steps li, .sact-counts li, .spop-card, .stb, .svc-inv, .svc-list, .sx-fact, .sxh-search, .tkx-about,
  .tx-dates, .ux-bw-main, .ux-bw-side > div, .cur-pick-order, .seg.sx-chips) { border-radius: 3px; }
/* v0.64.149: rehearsal copy */
.offline-strip { position: sticky; top: 0; z-index: 1000; padding: 7px 16px; background: repeating-linear-gradient(135deg, #F2B300 0 14px, #E5A800 14px 28px); color: #23282B; font: 600 .86rem/1.3 system-ui, sans-serif; text-align: center; }

/* v0.65.0: Staff accounts: "Amaze Orbit" column */
/* (v0.65.2: the six-column grid and its fold now live with the other staff-row rules, by the list's own width) */
.staff-row form .badge { margin-right: 4px; }

/* v0.65.0: Amaze Orbit (design A, light inbox) */
.obc-1 { background: #C2410C; color: #FFF; } .obc-2 { background: #F2B300; color: #1A1400; } .obc-3 { background: #2F7D4F; color: #FFF; } .obc-4 { background: #2563EB; color: #FFF; }
.obc-5 { background: #7C3AED; color: #FFF; } .obc-6 { background: #BE185D; color: #FFF; } .obc-7 { background: #0E7490; color: #FFF; } .obc-8 { background: #4B5563; color: #FFF; }
.ob { display: flex; flex-direction: column; gap: 14px; }
.ob-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ob-head h1 { margin: 0; font-size: 1.6rem; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .9rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; min-height: 36px; }
.ob-chip b { font-weight: 700; color: var(--text-2); }
.ob-chip.is-on { background: #0E1B33; border-color: #0E1B33; color: #FFF; }
.ob-chip.is-on b { color: #C7CEFF; }
.ob-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ob-stats { margin-left: auto; display: flex; gap: 18px; color: var(--text-2); }
.ob-stats b { font-size: 1.15rem; color: var(--text); } .ob-stats b.hot { color: #B4480F; }
.ob-down { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FDECEC; color: #8B1A1A; border: 1px solid #F5C2C2; }
.ob-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(240px, 300px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-height: calc(100vh - 210px); }
.ob-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; overflow-y: auto; max-height: calc(100vh - 210px); }
.ob-search { margin: 12px; width: calc(100% - 24px); box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.ob-sec { margin: 12px 14px 6px; font: 700 .72rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ob-sec.hot { color: #8A4B0F; }
.ob-empty { margin: 14px; }
.ob-row { display: flex; align-items: center; gap: 6px; margin: 2px 8px; border-radius: 12px; }
.ob-row.is-wait { background: #FFF4E5; }
.ob-row.is-on { background: #EEF1FF; box-shadow: inset 3px 0 0 #3B4FD8; }
.ob-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.ob-open:hover { background: rgba(14, 27, 51, .04); }
.ob-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-who b, .ob-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-who small { color: var(--text-2); }
.ob-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--text-2); font-size: .78rem; white-space: nowrap; }
.ob-unread { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #3B4FD8; color: #FFF; font-weight: 700; text-align: center; }
.ob-gone { color: #8A4B0F; }
.ob-accept { margin-right: 6px; background: #C2410C; border-color: #C2410C; color: #FFF; }
.ob-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font: 700 .72rem/1.4 var(--f-body); letter-spacing: .02em; white-space: nowrap; }
.ob-conv { display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 210px); }
.ob-blank { margin: auto; text-align: center; padding: 40px; }
.ob-chead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ob-cname { font-size: 1.05rem; }
.ob-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ob-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text-2); }
.ob-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #FAFBFE; }
.ob-msg { max-width: 72%; padding: 9px 13px; border-radius: 14px; background: #FFF; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.ob-msg.is-staff { align-self: flex-end; background: #3B4FD8; border-color: #3B4FD8; color: #FFF; }
.ob-msg.is-staff .ob-mat, .ob-msg.is-staff .ob-mname { color: #DDE2FF; }
.ob-msg.is-pending { opacity: .6; }
.ob-msg.is-sys { align-self: center; background: none; border: 0; color: var(--text-2); font-size: .85rem; }
.ob-mtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.ob-mname, .ob-mat { font-size: .74rem; color: var(--text-2); }
.ob-file img { max-width: 240px; max-height: 180px; border-radius: 8px; display: block; }
.ob-typing { align-self: flex-start; margin: 0; color: var(--text-2); font-size: .85rem; }
.ob-reply { padding: 10px 16px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.ob-reply p { margin: 6px 0; }
.ob-as { font-size: .8rem; color: var(--text-2); } .ob-as b { color: #B4480F; }
.ob-sendrow { display: flex; gap: 8px; }
.ob-sendrow textarea { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; resize: vertical; min-height: 48px; }
.ob-side { border-left: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: calc(100vh - 210px); min-width: 0; }
.ob-who-card { display: flex; flex-direction: column; gap: 3px; }
.ob-big { font-size: 1.05rem; }
.ob-card { padding: 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.ob-card.is-warm { background: #FFF4E5; }
.ob-line { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; overflow-wrap: anywhere; }
.ob-st { font-weight: 600; } .ob-st.st-active { color: #15803D; } .ob-st.st-suspended { color: #B42318; }
.ob-note { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.ob-toast { position: fixed; right: 20px; bottom: 90px; margin: 0; padding: 12px 16px; border-radius: 12px; background: #0E1B33; color: #FFF; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 50; }
.ob-tq input { min-width: 300px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.ob-tq { margin-left: auto; }
.ob-views { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-views a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.ob-views a.is-on { background: #0E1B33; border-color: #0E1B33; color: #FFF; }
.ob-tablecard { padding: 0; overflow-x: auto; }
.ob-table { width: 100%; border-collapse: collapse; }
.ob-table th { text-align: left; font: 700 .72rem/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ob-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ob-table td small { display: block; }
.ob-tlink { font-weight: 600; }
.ob-late { color: #B42318; font-weight: 700; }
.ob-inline { display: inline; margin-left: 6px; }
.ob-thead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ob-thead h1 { margin: 0; font-size: 1.4rem; flex-basis: 100%; }
.ob-thead .btn { margin-left: auto; }
.ob-tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ob-tmsg { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.ob-tmsg header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ob-tmsg header small { margin-left: auto; }
.ob-tmsg.is-staff { background: #F3F5FF; border-color: #D9DEFF; }
.ob-tmsg.is-note { background: #FFF8DB; border-color: #F0DE9A; }
.ob-files { margin: 8px 0 0; padding-left: 18px; }
.ob-treply { display: flex; flex-direction: column; gap: 8px; }
.ob-treply textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.ob-treply-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ob-treply-row .btn { margin-left: auto; }
.ob-tform { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.ob-tform .btn { grid-column: 1 / -1; justify-self: start; }
.ob-tform .ob-tbtns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ob-tform .ob-tbtns .btn { grid-column: auto; }
.ob-brand-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ob-brand-head h2 { margin: 0; }
.ob-brand-acts { margin-left: auto; display: flex; gap: 6px; }
.ob-h3 { margin: 18px 0 8px; font-size: 1rem; }
.ob-links select { min-width: 260px; max-width: 100%; }
.ob-colors { border: 0; padding: 0; margin: 10px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ob-colors legend { font-weight: 600; margin-bottom: 6px; }
.ob-swatch { display: inline-flex; align-items: center; cursor: pointer; }
.ob-swatch .ob-dot { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; }
.ob-swatch input { position: absolute; opacity: 0; }
.ob-swatch input:checked + .ob-dot { border-color: #0E1B33; box-shadow: 0 0 0 2px #FFF inset; }
.ob-swatch input:focus-visible + .ob-dot { outline: 3px solid #3B4FD8; outline-offset: 2px; }
.ob-bform { margin: 12px 0; }
@media (max-width: 1100px) { .ob-grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); } .ob-side { display: none; } .ob-tgrid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ob-grid { grid-template-columns: 1fr; } .ob-list { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--border); } .ob-stats { margin-left: 0; } .ob-tq, .ob-tq input { min-width: 0; width: 100%; margin-left: 0; } }

/* v0.65.6: Staff accounts on a full-width page, laid out as one table */
.settings-wide { max-width: 1480px; }
.settings-back { margin: 0 0 6px; font-size: .9rem; }
.settings-back a { color: var(--text-2); text-decoration: none; }
.settings-back a:hover { color: var(--text); text-decoration: underline; }
.staff-row.staff-head { display: none; }
@container (min-width: 1101px) {
  .staff-row.staff-head { display: grid; padding-top: 12px; padding-bottom: 12px; background: var(--hover, rgba(0,0,0,.025)); border-top: 0;
    font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
  .staff-row { align-items: center; }
  .staff-row .sr-k { display: none; }
  .staff-row .sr-who { padding-top: 0; }
  .staff-row .sr-acts { align-self: center; text-align: right; }
  .staff-row .staff-perms { margin-top: 0; }
}
.staff-row .sr-orbit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.staff-row .sr-orbit .badge { margin: 0; }
.staff-row .srv-sub-line { display: block; margin-top: 3px; }

/* v0.65.7: Amaze Orbit uses the brand live chat console; a brand tag on every chat, visitor and customer */
.lcx .lcx-btag { margin-right: 6px; padding: 1px 6px; font-size: .68rem; vertical-align: 1px; }
.lcx .lc-item-top b, .lcx .lcx-vname { min-width: 0; }
.lcx-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lcx-brands .ob-chip { min-height: 34px; padding: 5px 12px; }
.lcx-brands .ob-chip .ob-tag { padding: 1px 6px; font-size: .68rem; }
.lcx-orbit .ob-down { margin: 0; }
/* v0.65.8: one tool row on the right of the brand chips: Full screen, History, Quick replies, Settings */
.lcx-otools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lcx-otools .lcx-fullbtn, .lcx-bmenu > summary, .lcx-tbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; box-sizing: border-box;
  border-radius: 999px; border: 1px solid var(--x-line2); background: #fff; color: var(--x-text); font: 600 .86rem/1 var(--f-body); cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(14,27,51,.06); transition: background .15s, border-color .15s, box-shadow .15s; }
.lcx-otools .lcx-fullbtn:hover, .lcx-bmenu > summary:hover, .lcx-tbtn:hover { background: #F4F6FA; border-color: #C5CEDD; box-shadow: 0 2px 6px rgba(14,27,51,.08); }
.lcx-otools svg { flex: none; color: var(--x-mute); }
.lcx-otools .lcx-fullbtn[aria-pressed="true"] svg { color: #fff; }
.lcx-tbtn[hidden], .lcx-otools .lcx-fullbtn[hidden] { display: none; }
.lcx-bmenu { position: relative; }
.lcx-bmenu > summary { list-style: none; }
.lcx-bmenu > summary::marker, .lcx-bmenu > summary::-webkit-details-marker { display: none; content: ""; }
.lcx-bmenu .lcx-chev { margin-left: -1px; transition: transform .15s; }
.lcx-bmenu[open] > summary { background: #0E1B33; border-color: #0E1B33; color: #fff; }
.lcx-bmenu[open] > summary svg { color: #fff; }
.lcx-bmenu[open] .lcx-chev { transform: rotate(180deg); }
.lcx-bmenu > summary:focus-visible, .lcx-tbtn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.lcx-bmenu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; padding: 6px; background: #fff; border: 1px solid var(--x-line2);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(14,27,51,.16); display: flex; flex-direction: column; gap: 2px; }
.lcx-bmenu-h { margin: 4px 10px 6px; font: 700 .68rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--x-mute); }
.lcx-links .lcx-bmenu-list a { display: flex; align-items: center; gap: 10px; border: 0; padding: 9px 10px; border-radius: 10px; background: transparent; font-weight: 600; }
.lcx-links .lcx-bmenu-list a:hover { background: #F4F6FA; }
.lcx-bmenu-list .ob-tag { padding: 2px 7px; font-size: .68rem; min-width: 22px; justify-content: center; }
.lcx-brands { row-gap: 10px; }
.theme-c :is(.lcx-otools .lcx-fullbtn, .lcx-bmenu > summary, .lcx-tbtn, .lcx-bmenu-list, .lcx-bmenu-list a) { border-radius: 3px; }
.lcx-orbit .lcx-vname { white-space: normal; flex-wrap: wrap; row-gap: 4px; }
.lcx-orbit .lcx-vtable td:nth-child(3) { white-space: normal; min-width: 120px; }
.lcx-orbit .lcx-vtable td.lcx-mono { max-width: 220px; }
/* v0.65.9 / v0.65.12: Amaze Orbit outside the staff path: an animated solar system (CSS only) */
.orbit-void { margin: 0; min-height: 100vh; overflow: hidden; display: grid; place-items: center; color: #E8ECF8; font-family: var(--f-body, Inter, system-ui, sans-serif);
  background: radial-gradient(1200px 700px at 50% 38%, #12163A 0%, #090B1E 45%, #04050C 100%); }
.ov-stars { position: fixed; inset: -50%; pointer-events: none; background-repeat: repeat; }
.ov-s1 { background-image: radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90px 140px, #cfd8ff 50%, transparent 51%), radial-gradient(1px 1px at 160px 60px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 230px 200px, #ffe9c7 50%, transparent 51%), radial-gradient(1px 1px at 40px 190px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 130px 100px, #dbe4ff 50%, transparent 51%), radial-gradient(1px 1px at 200px 15px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 245px 120px, #fff 50%, transparent 51%);
  background-size: 260px 240px; opacity: .55; animation: ov-drift 240s linear infinite, ov-twinkle 5s ease-in-out infinite alternate; }
.ov-s2 { background-image: radial-gradient(1.5px 1.5px at 60px 80px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 300px 260px, #bcd0ff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 420px 40px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 180px 330px, #ffe2b8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 360px 170px, #fff 50%, transparent 51%);
  background-size: 480px 380px; opacity: .7; animation: ov-drift 360s linear infinite reverse, ov-twinkle 7s ease-in-out -2s infinite alternate; }
.ov-s3 { background-image: radial-gradient(2px 2px at 120px 220px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 560px 120px, #ffd9a0 50%, transparent 51%);
  background-size: 700px 520px; animation: ov-drift 520s linear infinite, ov-twinkle 3.5s ease-in-out -1s infinite alternate; }
.ov-nebula { position: fixed; inset: 0; pointer-events: none; filter: blur(40px); opacity: .55;
  background: radial-gradient(40vw 28vw at 18% 78%, rgba(124,58,237,.35), transparent 70%), radial-gradient(34vw 24vw at 85% 18%, rgba(236,72,153,.22), transparent 70%), radial-gradient(30vw 20vw at 70% 85%, rgba(14,165,233,.18), transparent 70%);
  animation: ov-neb 30s ease-in-out infinite alternate; }
@keyframes ov-drift { to { transform: translate3d(-200px, -120px, 0); } }
@keyframes ov-twinkle { from { opacity: .35; } to { opacity: .9; } }
@keyframes ov-neb { to { transform: scale(1.12) translate3d(2vw, -2vh, 0); } }
.orbit-void-box { position: relative; z-index: 1; text-align: center; padding: 24px; perspective: 1400px; --s: min(560px, 88vw); }
.ov-sys { position: relative; width: var(--s); height: var(--s); margin: calc(var(--s) * -.2) auto calc(var(--s) * -.16); transform: rotateX(62deg); transform-style: preserve-3d; }
.ov-sun { position: absolute; left: 50%; top: 50%; width: 13%; height: 13%; margin: -6.5% 0 0 -6.5%; border-radius: 50%; transform: rotateX(-62deg);
  background: radial-gradient(circle at 38% 35%, #FFF7D6 0%, #FFD34E 30%, #FF9A1F 62%, #E2531A 100%);
  box-shadow: 0 0 30px 8px rgba(255,170,40,.55), 0 0 90px 30px rgba(255,120,30,.28), 0 0 180px 60px rgba(255,90,40,.12); animation: ov-pulse 4s ease-in-out infinite alternate; }
@keyframes ov-pulse { to { box-shadow: 0 0 38px 12px rgba(255,180,50,.65), 0 0 120px 44px rgba(255,120,30,.32), 0 0 220px 80px rgba(255,90,40,.16); } }
.ov-o { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); border-radius: 50%;
  border: 1px solid rgba(170,190,255,.14); box-shadow: 0 0 0 1px rgba(170,190,255,.03) inset; transform-style: preserve-3d; animation: ov-spin var(--t) linear var(--dl, 0s) infinite; }
.ov-p { position: absolute; left: 50%; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; background: var(--c);
  box-shadow: 0 0 12px 1px var(--g), inset -3px -3px 6px rgba(0,0,0,.45); animation: ov-face var(--t) linear var(--dl, 0s) infinite; }
@keyframes ov-spin { to { transform: rotateZ(360deg); } }
@keyframes ov-face { from { transform: rotateZ(0deg) rotateX(-62deg); } to { transform: rotateZ(-360deg) rotateX(-62deg); } }
.ov-o1 { --w: 24%; --t: 7s; --dl: -2s; --d: 8px; --c: radial-gradient(circle at 30% 30%, #E5E7EB, #8B8F99 60%, #4B4F58); --g: rgba(200,200,210,.35); }
.ov-o2 { --w: 35%; --t: 12s; --dl: -7s; --d: 12px; --c: radial-gradient(circle at 30% 30%, #FFE8B0, #E8B35A 55%, #9C6A2A); --g: rgba(240,190,90,.4); }
.ov-o3 { --w: 48%; --t: 19s; --dl: -4s; --d: 14px; --c: radial-gradient(circle at 30% 30%, #A7F3D0, #3B82F6 45%, #1E3A8A); --g: rgba(80,150,255,.55); }
.ov-o4 { --w: 61%; --t: 30s; --dl: -20s; --d: 11px; --c: radial-gradient(circle at 30% 30%, #FDBA74, #DC4A2A 55%, #7A1F12); --g: rgba(240,90,50,.45); }
.ov-o5 { --w: 78%; --t: 48s; --dl: -12s; --d: 22px; --c: radial-gradient(circle at 30% 30%, #FDE68A, #D9A15A 50%, #8A5A2B); --g: rgba(230,180,100,.4); }
.ov-o6 { --w: 96%; --t: 75s; --dl: -50s; --d: 15px; --c: radial-gradient(circle at 30% 30%, #E0E7FF, #8B5CF6 50%, #3B1F7A); --g: rgba(150,110,255,.5); }
.ov-moon { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #E5E7EB; box-shadow: 0 0 6px rgba(255,255,255,.6);
  animation: ov-moon 3s linear infinite; }
@keyframes ov-moon { from { transform: rotate(0deg) translateX(13px); } to { transform: rotate(360deg) translateX(13px); } }
.ov-ring { position: absolute; left: 50%; top: 50%; width: 220%; height: 70%; transform: translate(-50%, -50%) rotate(-18deg); border-radius: 50%;
  border: 2px solid rgba(253,230,138,.55); box-shadow: 0 0 8px rgba(253,230,138,.3); }
.ov-comet { position: fixed; top: 12vh; left: -20vw; width: 140px; height: 2px; border-radius: 2px; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); box-shadow: 0 0 10px rgba(180,200,255,.8); animation: ov-comet 11s ease-in 3s infinite; opacity: 0; }
@keyframes ov-comet { 0% { opacity: 0; transform: translate3d(0,0,0) rotate(18deg); } 4% { opacity: 1; } 16% { opacity: 0; transform: translate3d(70vw, 24vw, 0) rotate(18deg); } 100% { opacity: 0; transform: translate3d(70vw, 24vw, 0) rotate(18deg); } }
.orbit-void-box h1 { position: relative; margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(100deg, #FFE7A3 0%, #FFB347 30%, #FF6FA8 62%, #A78BFA 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255,140,80,.25)); }
.orbit-void-box p { position: relative; margin: 0; color: #9AA6C8; line-height: 1.6; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .orbit-void *, .orbit-void .ov-stars, .orbit-void .ov-nebula { animation: none !important; } }

/* v0.65.13: Amaze Orbit dashboard */
.od { display: flex; flex-direction: column; gap: 22px; max-width: 1480px; }
.od-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.od-head h1 { margin: 0; font-size: 1.9rem; letter-spacing: -.02em; }
.od-sub { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; }
.od-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.od-lg { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .88rem; }
.od .ob-tag { padding: 1px 6px; font-size: .68rem; }
.od-sec h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.od-sec h2 small { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--text-2); opacity: .8; }
.od-pulse { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: od-pulse 1.8s infinite; }
@keyframes od-pulse { 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.od-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.od-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(14,27,51,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.od-tile:hover { border-color: #C5CEDD; box-shadow: 0 6px 18px rgba(14,27,51,.08); transform: translateY(-1px); }
.od-k { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.od-v { font-size: 2rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.od-v small { font-size: .9rem; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.od-note { font-size: .82rem; color: var(--text-2); }
.od-split { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 2px; }
.od-split:empty { display: none; }
.od-sp { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.od-tile.is-warm .od-v { color: #B4480F; }
.od-tile.is-hot { border-color: #F4B183; background: linear-gradient(180deg, #FFF7EF, var(--surface)); }
.od-tile.is-hot .od-v { color: #C2410C; }
.od-tile.is-money { background: linear-gradient(180deg, #F0FDF4, var(--surface)); border-color: #BBF7D0; box-shadow: inset 0 3px 0 #22C55E; }
.od-tile.is-money .od-v { color: #15803D; }
.od-team { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.od-team > .od-k { margin-right: 6px; }
.od-person { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #F4F6FA; font-size: .86rem; font-weight: 600; }
.od-person small { margin-left: 2px; padding: 1px 6px; border-radius: 6px; background: #DCFCE7; color: #166534; font-size: .7rem; font-weight: 700; }
.od-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.od-dot.is-away { background: #F59E0B; } .od-dot.is-busy { background: #DC2626; }
.od-quiet { color: var(--text-2); font-size: .9rem; }
.od-tablewrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.od-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.od-table th, .od-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.od-table thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background: #F8FAFC; }
.od-table tbody th { text-align: left; font-weight: 700; }
.od-table th:first-child { text-align: left; }
.od-table tbody th .ob-tag { margin-right: 8px; }
.od-table tbody tr:last-child > * { border-bottom: 0; }
.od-table small { color: var(--text-2); }
.od-clear { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid #BBF7D0; border-radius: 14px; background: #F0FDF4; color: #166534; font-weight: 600; }
.od-clear i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #16A34A; color: #fff; font-style: normal; font-size: .8rem; }
.od-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.od-alerts li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-left: 4px solid #94A3B8; border-radius: 12px; background: var(--surface); }
.od-alerts li.is-bad { border-left-color: #DC2626; background: #FEF6F6; }
.od-alerts li.is-warn { border-left-color: #F59E0B; background: #FFFBF0; }
.od-al-t { font-weight: 600; }
.od-alerts b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.od-alerts a { font-size: .86rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .od-alerts li { grid-template-columns: auto 1fr auto; } .od-alerts a { grid-column: 1 / -1; } .od-v { font-size: 1.6rem; } }
.theme-c :is(.od-tile, .od-team, .od-tablewrap, .od-alerts li, .od-clear, .od-lg, .od-person) { border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .od-pulse { animation: none; } a.od-tile:hover { transform: none; } }
@media (max-width: 640px) { .od-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .od-tile { padding: 12px 14px; } .od-tile .od-note { font-size: .76rem; } }
/* v0.65.14: Orbit has no search box in the sidebar head: the fold button sits on the logo line (right), not alone under it */
@media (min-width: 901px) {
  .is-orbit.layout-side .top-row { position: relative; }
  .is-orbit.layout-side .logo .tag { display: none; }
  .is-orbit.layout-side:not(.side-mini) .side-head { position: absolute; top: 22px; right: 14px; margin: 0; }
  .is-orbit.layout-side:not(.side-mini) .side-toggle { width: 34px; height: 34px; }
  .theme-c.is-orbit.layout-side:not(.side-mini) .side-head { top: 0; }
}
/* v0.65.14: dashboard tiles in even rows (no lone tile on the last line) */
.od-sec { container-type: inline-size; }
.od-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 620px) { .od-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .od-grid.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 980px) { .od-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .od-grid.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* v0.65.16: Visitors tables: Active and Idle share the same columns; every cell centred, at most two lines */
.lcx-vtable .lcx-vname, .lcx-orbit .lcx-vtable .lcx-vname { flex-wrap: nowrap; white-space: nowrap; align-items: center; min-width: 0; }
.lcx-vtable .lcx-vname > * { align-self: center; }
.lcx-vwho { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; line-height: 1.2; }
.lcx-vwho > b, .lcx-vwho > a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcx-vwho .lcx-tag { align-self: flex-start; padding: 2px 7px; font-size: .64rem; }
.lcx-vsite { display: flex; flex-direction: column; line-height: 1.25; }
.lcx-vsite small { color: var(--x-mute); font-size: .76rem; }
@media (min-width: 821px) {
  .lcx-vtable { table-layout: fixed; }
  .lcx-vtable th:nth-child(1) { width: 26%; }
  .lcx-vtable th:nth-child(2) { width: 19%; }
  .lcx-vtable th:nth-child(3) { width: 17%; }
  .lcx-vtable th:nth-child(4) { width: 14%; }
  .lcx-vtable th:nth-child(5) { width: 12%; }
  .lcx-vtable th:nth-child(6) { width: 64px; text-align: center; }
  .lcx-vtable th:nth-child(7) { width: 150px; }
  .lcx-vtable td { height: 60px; overflow: hidden; text-overflow: ellipsis; }
  .lcx-vtable td.lcx-mono, .lcx-orbit .lcx-vtable td.lcx-mono { max-width: none; }
  .lcx-vtable td:nth-child(3), .lcx-vtable td:nth-child(4), .lcx-orbit .lcx-vtable td:nth-child(3) { min-width: 0; white-space: normal; line-height: 1.3; }
  .lcx-vtable td:nth-child(6) { text-align: center; }
}
  .lcx-vis .lcx-tablewrap { container-type: inline-size; }
@container (max-width: 1000px) {
  .lcx-vtable th:nth-child(4), .lcx-vtable td:nth-child(4) { display: none; }
  .lcx-vtable th:nth-child(1) { width: 30%; }
  .lcx-vtable th:nth-child(2) { width: 24%; }
  .lcx-vtable th:nth-child(3) { width: 20%; }
  .lcx-vtable th:nth-child(5) { width: 14%; }
  .lcx-vtable th:nth-child(6) { width: 56px; }
  .lcx-vtable th:nth-child(7) { width: 124px; }
  .lcx-vtable td:nth-child(3), .lcx-orbit .lcx-vtable td:nth-child(3) { white-space: nowrap; }
  .lcx-vwho .lcx-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* v0.65.17 Amaze Orbit → Updates */
.ou { display: flex; flex-direction: column; gap: 20px; }
.ou-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ou-head h1 { margin: 0; font-size: 1.9rem; letter-spacing: -.02em; }
.ou-sub, .ou-mute { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; }
.ou-helper { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .86rem; color: var(--text-2); }
.ou-dot { width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; }
.ou-helper.is-on { color: #166534; border-color: #BBF7D0; background: #F0FDF4; }
.ou-helper.is-on .ou-dot { background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: od-pulse 1.8s infinite; }
.ou-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .ou-grid { grid-template-columns: 1fr; } }
.ou-card { padding: 22px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ou-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.05rem; }
.ou-card h2 svg { width: 18px; height: 18px; }
.ou-side { display: flex; flex-direction: column; gap: 16px; }
.ou-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #0E1B33; color: #fff; font-size: .8rem; }
.ou-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 170px; padding: 24px; border: 2px dashed #CBD5E1; border-radius: 16px; background: #F8FAFC; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.ou-drop:hover, .ou-drop.is-over { border-color: #6366F1; background: #EEF2FF; }
.ou-drop.is-done { border-style: solid; border-color: #86EFAC; background: #F0FDF4; }
.ou-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ou-drop.is-busy input { pointer-events: none; }
.ou-drop-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.ou-drop-ic svg { width: 22px; height: 22px; transform: rotate(180deg); }
.ou-drop-t { font-size: 1rem; }
.ou-drop-s { color: var(--text-2); font-size: .86rem; }
.ou-upbar, .ou-bar { display: block; width: 100%; max-width: 420px; height: 8px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.ou-upbar > span, .ou-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6366F1, #8B5CF6); transition: width .35s ease; }
.ou-approve { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.ou-ways { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; max-width: 520px; }
.ou-touch { justify-content: center; min-height: 48px; font-size: 1rem; }
.ou-or { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.ou-or::before, .ou-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ou-code label { display: block; margin-bottom: 6px; font-weight: 600; }
.ou-code label small { font-weight: 400; color: var(--text-2); }
.ou-code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ou-code-row input { width: 160px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; font: 600 1.3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; text-align: center; }
.ou-code-row .btn { min-height: 46px; }
.ou-msg { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #EFF6FF; color: #1E3A8A; font-size: .9rem; }
.ou-msg.is-bad { background: #FEF2F2; color: #991B1B; }
.ou-msg.is-ok { background: #EFF6FF; }
.ou-run-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ou-run-top h2 { margin: 0; font-size: 1.35rem; }
.ou-pct { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ou-run .ou-bar { max-width: none; height: 10px; margin: 14px 0 16px; }
.ou-bar.is-run > span { background: linear-gradient(90deg, #6366F1, #8B5CF6, #6366F1); background-size: 200% 100%; animation: ou-flow 1.6s linear infinite; }
.ou-bar.is-ok > span { background: #16A34A; }
.ou-bar.is-bad > span { background: #DC2626; }
@keyframes ou-flow { to { background-position: -200% 0; } }
.ou-panels { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ou-panels li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #F8FAFC; }
.ou-panels li > span:not(.ou-pdot) { grid-column: 2; font-size: .82rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ou-panels li > em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.ou-pdot { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.ou-panels li.is-running { border-color: #C7D2FE; background: #EEF2FF; }
.ou-panels li.is-running .ou-pdot { background: #6366F1; animation: od-pulse 1.4s infinite; }
.ou-panels li.is-running em { color: #4338CA; }
.ou-panels li.is-done .ou-pdot { background: #16A34A; } .ou-panels li.is-done em { color: #15803D; }
.ou-panels li.is-failed { border-color: #FECACA; background: #FEF2F2; } .ou-panels li.is-failed .ou-pdot { background: #DC2626; } .ou-panels li.is-failed em { color: #B91C1C; }
.ou-done { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; }
.ou-done > div { display: flex; flex-direction: column; gap: 3px; }
.ou-done span:not(.ou-done-ic) { font-size: .84rem; opacity: .85; }
.ou-done-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.2rem; }
.ou-done.is-ok { background: #F0FDF4; color: #14532D; border: 1px solid #BBF7D0; } .ou-done.is-ok .ou-done-ic { background: #16A34A; animation: ou-pop .5s ease-out; }
.ou-done.is-bad { background: #FEF2F2; color: #7F1D1D; border: 1px solid #FECACA; } .ou-done.is-bad .ou-done-ic { background: #DC2626; }
@keyframes ou-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.ou-logbox summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.ou-log { margin: 0 0 14px; max-height: 360px; overflow: auto; padding: 14px 16px; border-radius: 14px; background: #0B1220; color: #CBD5E1; font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.ou-vers, .ou-keys, .ou-how ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ou-vers li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #F8FAFC; font-size: .9rem; }
.ou-vers b { font-variant-numeric: tabular-nums; }
.ou-keys { margin: 12px 0; }
.ou-keys li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--border); border-radius: 12px; }
.ou-kt { display: flex; flex-direction: column; min-width: 0; } .ou-kt small { color: var(--text-2); font-size: .76rem; }
.ou-addkey { display: flex; flex-direction: column; gap: 8px; }
.ou-addkey input { min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.ou-how li { position: relative; padding-left: 20px; font-size: .86rem; color: var(--text-2); }
.ou-how li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.ou-setup p { max-width: 70ch; }
.ou-cmd { padding: 12px 16px; border-radius: 12px; background: #0B1220; color: #E2E8F0; font: .9rem ui-monospace, Menlo, monospace; overflow-x: auto; }
.theme-c .ou-card, .theme-c .ou-drop, .theme-c .ou-panels li, .theme-c .ou-done, .theme-c .ou-log { border-radius: 4px; }
.ou [hidden] { display: none !important; }
.ou-panels { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ou-panels li > span:not(.ou-pdot) { white-space: nowrap; }
.ou-drop.is-done .ou-upbar { display: none; }
.ou-vers li span { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: .82rem; }
/* v0.65.18 Updates: history */
.ou-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ou-hist h2 small { font-weight: 500; font-size: .8rem; color: var(--text-2); }
.ou-hlist { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ou-hlist > li { border: 1px solid var(--border); border-radius: 12px; background: #FBFCFE; }
.ou-hlist summary { display: grid; grid-template-columns: auto 80px 150px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: .9rem; }
.ou-hlist summary::-webkit-details-marker { display: none; }
.ou-hlist details[open] summary { border-bottom: 1px solid var(--border); }
.ou-hdot { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; }
.ou-hlist li.is-bad .ou-hdot { background: #DC2626; }
.ou-hwhen { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ou-hwho { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ou-hbody { padding: 10px 16px 14px 35px; font-size: .88rem; max-height: 260px; overflow: auto; }
.ou-hbody h4 { margin: 10px 0 4px; font-size: .82rem; }
.ou-hbody ul { margin: 0; padding-left: 18px; color: var(--text-1, inherit); }
.ou-hbody li { margin: 2px 0; }
.ou-hpanels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ou-hpanels span { padding: 3px 8px; border-radius: 6px; background: #EEF2F7; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.ou-hpanels span.is-failed { background: #FEE2E2; color: #991B1B; }
.ou-hbody .ou-mute { margin: 8px 0 0; font-size: .8rem; }
.ou-log { max-height: 260px; }
.theme-c .ou-hlist > li { border-radius: 3px; }
/* v0.65.19 Updates: alignments */
.ou-head { align-items: center; }
.ou-ways { width: 100%; max-width: 560px; }
.ou-ways .ou-touch { width: 100%; }
.ou-or { width: 100%; }
.ou-code-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; }
.ou-code-row input { width: 100%; }
.ou-code-row .btn { width: 100%; justify-content: center; }
.ou-drop.is-done { min-height: 120px; padding: 18px; }
.ou-drop.is-done .ou-drop-ic { width: 38px; height: 38px; border-radius: 12px; }
.ou-approve h2, .ou-main > div > h2 { margin-bottom: 12px; }
.ou-hlist summary { grid-template-columns: 10px 84px 140px minmax(0, 1fr); }
.ou-keys li { align-items: center; }
.ou-kt small { line-height: 1.35; }
@media (max-width: 560px) { .ou-code-row { grid-template-columns: 1fr; } .ou-hlist summary { grid-template-columns: 10px 1fr; } .ou-hwhen, .ou-hwho { grid-column: 2; } }
/* v0.65.20 Updates: approve block centred in the card; texts line up with the buttons */
.ou-approve [data-ou-ver] { max-width: 560px; margin: 0 auto 4px; text-align: center; }
.ou-ways { margin-left: auto; margin-right: auto; }
.ou-code label { text-align: center; }
.ou-code-row input::placeholder { letter-spacing: .25em; }
/* v0.65.21 Updates: code box above the button, both full width */
.ou-code-row { grid-template-columns: 1fr; gap: 10px; }
.ou-code-row input { min-height: 50px; font-size: 1.4rem; }
.ou-code-row .btn { min-height: 48px; font-size: 1rem; }
.ou-touch { min-height: 50px; }
/* v0.65.23 invoice: pay from account credit */
.inv-credit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #BBF7D0; border-radius: 12px; background: #F0FDF4; font-size: .9rem; }

/* v0.65.24: Amaze Orbit on a phone works like an app (design A): tab bar at the bottom (Home, Live chat, Tickets, More),
   no menu button, big page titles, lists as cards, chips that scroll sideways, a chat that opens full screen.
   Only in Orbit and only up to 820 px; desktop Orbit and the brand panels are unchanged. */
.om-tabs, .om-me { display: none; }
@media (max-width: 820px) {
  html.is-orbit, html.is-orbit body { background: #F6F6F3; }
  html.is-orbit body { overflow-x: clip; padding-bottom: calc(66px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  html.is-orbit .staff-top { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: rgba(246,246,243,.94); border-bottom: 1px solid #E9E9E3; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
  html.is-orbit .staff-top .top-row { min-height: 56px; flex-wrap: nowrap; gap: 12px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  html.is-orbit .staff-top .nav-toggle, html.is-orbit .staff-top .nav-panel { display: none !important; }
  html.is-orbit .staff-top .logo .tag { display: none; }
  html.is-orbit .om-me { display: grid; margin-left: auto; text-decoration: none; }
  html.is-orbit .om-me .avatar, .om-me-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: #17181A; color: #FFF; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
  html.is-orbit main .wrap { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  html.is-orbit main { padding-top: 14px; }
  html.is-orbit main h1, html.is-orbit .lcx-title h1, html.is-orbit .od-head h1, html.is-orbit .ob-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }

  /* the tab bar */
  .om-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 2px max(6px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-right)); background: #FFF; border-top: 1px solid #E6E6E0; }
  .om-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: #6B6E76; text-decoration: none; font-size: 11px; font-weight: 700; }
  .om-tabs a .ico { width: 24px; height: 24px; }
  .om-tabs a[aria-current="page"] { color: #17181A; }
  .om-tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: #E2A50B; }
  .om-tabs a:active { background: #F2F2EE; }
  .om-badge { position: absolute; top: 5px; left: calc(50% + 5px); min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #E2A50B; color: #17181A; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
  .om-badge[hidden] { display: none; }

  /* sideways-scrolling chip rows instead of rows that wrap three times */
  html.is-orbit .ob-chips, html.is-orbit .ob-views, html.is-orbit .lcx-brands, html.is-orbit .od-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; width: calc(100% + 32px); }
  html.is-orbit .ob-chips::-webkit-scrollbar, html.is-orbit .ob-views::-webkit-scrollbar, html.is-orbit .lcx-brands::-webkit-scrollbar, html.is-orbit .od-legend::-webkit-scrollbar { display: none; }
  html.is-orbit .ob-chips > *, html.is-orbit .ob-views > *, html.is-orbit .lcx-brands > *, html.is-orbit .od-legend > * { flex: none; white-space: nowrap; }
  html.is-orbit .ob-chip, html.is-orbit .ob-views a { min-height: 40px; display: inline-flex; align-items: center; border-radius: 20px; }
  html.is-orbit .ob-views a.is-on { background: #17181A; border-color: #17181A; }

  /* dashboard */
  html.is-orbit .od-head { gap: 6px; }
  html.is-orbit .od-sub { font-size: 13px; }
  html.is-orbit .od-tile { border-radius: 18px; border-color: #ECECE7; padding: 14px; }
  html.is-orbit .od-tile.is-hot { background: #E2A50B; border-color: #E2A50B; }
  html.is-orbit .od-tile.is-hot .od-k, html.is-orbit .od-tile.is-hot .od-v, html.is-orbit .od-tile.is-hot .od-note { color: #17181A; }
  html.is-orbit .od-sec h2 { font-size: 13px; }

  /* tickets: each ticket is a card, the whole card opens it */
  html.is-orbit .ob-head { gap: 12px; }
  html.is-orbit .ob-tq { width: 100%; }
  html.is-orbit .ob-tq input { width: 100%; min-height: 46px; border-radius: 14px; font-size: 16px; box-sizing: border-box; }
  html.is-orbit .ob-tablecard { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible; }
  html.is-orbit .ob-table, html.is-orbit .ob-table tbody { display: block; width: 100%; }
  html.is-orbit .ob-table thead { display: none; }
  html.is-orbit .ob-table tr { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; margin-bottom: 10px; padding: 14px; border: 1px solid #ECECE7; border-radius: 18px; background: #FFF; }
  html.is-orbit .ob-table td { display: block; padding: 0; border: 0; min-width: 0; }
  html.is-orbit .ob-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  html.is-orbit .ob-table td:nth-child(5) { grid-column: 3; grid-row: 1; font-size: 12px; color: #5B5E66; text-align: right; }
  html.is-orbit .ob-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  html.is-orbit .ob-table td:nth-child(2) .ob-tlink { font-size: 16px; font-weight: 700; color: #17181A; text-decoration: none; }
  html.is-orbit .ob-table td:nth-child(2) .ob-tlink::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
  html.is-orbit .ob-table td:nth-child(3) { grid-column: 1 / 3; grid-row: 3; font-size: 13px; color: #5B5E66; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.is-orbit .ob-table td:nth-child(3) small { display: none; }
  html.is-orbit .ob-table td:nth-child(4) { grid-column: 3; grid-row: 3; }
  html.is-orbit .ob-table td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; font-size: 13px; color: #5B5E66; display: flex; gap: 8px; align-items: center; }
  html.is-orbit .ob-table td:nth-child(6)::before { content: "With"; color: #8A8C93; }
  html.is-orbit .ob-table .ob-inline { position: relative; z-index: 1; margin-left: auto; }
  html.is-orbit .ob-table .ob-inline .linkbtn { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #DCDCD6; background: #FFF; font-weight: 700; }

  /* live chat: the list fills the screen; a chat or visitor opens full screen over it, with a back button */
  html.is-orbit main:has(.lcx) { padding-top: 6px; }
  html.is-orbit .lcx { padding: 0; border: 0; border-radius: 0; background: transparent; height: auto; min-height: 0; }
  html.is-orbit .lcx-top { gap: 10px; }
  html.is-orbit .lcx-title { width: 100%; }
  html.is-orbit .lcx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
  html.is-orbit .lcx-stat { min-width: 0; padding: 8px 8px; border-radius: 12px; }
  html.is-orbit .lcx-stat b { font-size: 20px; }
  html.is-orbit .lcx-stat span { font-size: 10px; letter-spacing: .04em; }
  html.is-orbit .lcx-otools .lcx-fullbtn { display: none; }
  html.is-orbit .lcx-otools { flex-wrap: nowrap; }
  html.is-orbit .lcx .lc.lcx-grid { display: block; height: auto; }
  html.is-orbit .lcx .lc-side { max-height: none; height: auto; border-radius: 18px; }
  html.is-orbit .lcx .lc-info { display: none; }
  html.is-orbit .lcx .lc-main { display: none; }
  html.is-orbit .lcx .lc-main:has(> .lc-conv:not([hidden])), html.is-orbit .lcx .lc-main:has(> .lcx-vpane:not([hidden])) {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 80; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none;
    background: #FFF; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  html.is-orbit .lcx .lc-main > .lc-conv, html.is-orbit .lcx .lc-main > .lcx-vpane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  html.is-orbit .lcx .lc-main > .lc-empty { display: none; }
  html.is-orbit .lcx .lc-head { padding: 10px 12px 10px 64px; min-height: 64px; box-sizing: border-box; }
  html.is-orbit .lcx-closeview { left: 12px; right: auto; top: 10px; width: 44px; height: 44px; border-radius: 22px; background: #F2F2EE; border: 0; color: #17181A; }
  html.is-orbit .lcx-closeview svg { display: none; }
  html.is-orbit .lcx-closeview::before { content: ""; width: 11px; height: 11px; margin-left: 5px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
  html.is-orbit .lcx .lc-msgs { flex: 1; min-height: 0; background: #F6F6F3; }
  html.is-orbit .lcx .lc-compose { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  html.is-orbit .lcx .lc-compose textarea { font-size: 16px; }
  html.is-orbit .lcx .lcx-vbody { flex: 1; overflow: auto; padding: 16px; }
  html.is-orbit body:has(.lc-main .lc-conv:not([hidden])) .om-tabs, html.is-orbit body:has(.lc-main .lcx-vpane:not([hidden])) .om-tabs { display: none; }
  html.is-orbit .lcx-ticker { display: none; }
  html.is-orbit .lcx-sidefoot { display: none; }

  /* the More tab */
  .om-more { display: flex; flex-direction: column; gap: 16px; }
  .om-me-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #ECECE7; border-radius: 18px; background: #FFF; color: #17181A; text-decoration: none; }
  .om-group h2 { margin: 0 0 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B5E66; }
  .om-list { border: 1px solid #ECECE7; border-radius: 18px; background: #FFF; overflow: hidden; }
  .om-pad { padding: 14px 16px; }
  .om-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 14px; border-bottom: 1px solid #F0F0EC; color: #17181A; text-decoration: none; }
  .om-row:last-child { border-bottom: 0; }
  .om-row:active, .om-me-card:active { background: #F6F6F3; }
  .om-row > .ico:first-child { width: 22px; height: 22px; color: #5B5E66; }
  .om-row > .ico:last-child, .om-me-card > .ico:last-child { width: 18px; height: 18px; margin-left: auto; color: #A0A2A8; flex: none; }
  .om-row-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 16px; font-weight: 600; }
  .om-row-t small { font-size: 13px; font-weight: 400; color: #5B5E66; }
  .om-install details { border-top: 1px solid #F0F0EC; padding: 10px 0; }
  .om-install summary { min-height: 32px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
  .om-install ol { margin: 6px 0 0; padding-left: 22px; line-height: 1.6; }
  .om-installed { display: none; margin: 0 4px; }
  html.om-standalone .om-install .om-list { display: none; }
  html.om-standalone .om-installed { display: block; }
  .om-logout button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #F3C9C4; border-radius: 16px; background: #FFF; color: #A1281B; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
  .om-ver { text-align: center; margin: 0; }
}
/* the More page on a wide screen too (it is only linked from the phone tab bar) */
@media (min-width: 821px) { .om-more { max-width: 640px; display: flex; flex-direction: column; gap: 16px; } .om-me-card, .om-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; } .om-row-t { display: flex; flex-direction: column; } .om-group h2 { font-size: .8rem; text-transform: uppercase; } .om-installed { display: none; } .om-row > .ico:last-child, .om-me-card > .ico:last-child { margin-left: auto; } }
@media (max-width: 820px) {
  html.is-orbit .lcx .lc-head { flex-wrap: wrap; gap: 8px; }
  html.is-orbit .lcx .lc-head .lc-acts { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  html.is-orbit .lcx .lc-head .lc-acts::-webkit-scrollbar { display: none; }
  html.is-orbit .lcx .lc-head .lc-acts > * { flex: none; }
}
@media (max-width: 820px) {
  html.is-orbit .ob-table td::before { display: none !important; content: none !important; }
  html.is-orbit .ob-table td:nth-child(6)::before { display: inline !important; content: "With" !important; color: #8A8C93; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; margin: 0; position: static; width: auto; }
  html.is-orbit .ob-table td:nth-child(2) small { display: block; margin-top: 2px; font-size: 12px; }
}
@media (max-width: 820px) {
  html.is-orbit .ob-table td:nth-child(6)::before { margin-right: 6px !important; }
  html.is-orbit .ob-table td:nth-child(5) { justify-self: end; }
}
.om-back { display: none; }
@media (max-width: 820px) {
  html.is-orbit .om-back { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; margin: -6px 0 4px -6px; padding: 0 10px 0 2px; color: #17181A; font-weight: 700; font-size: 15px; text-decoration: none; }
  html.is-orbit .om-back .ico { width: 22px; height: 22px; transform: rotate(180deg); }
}
@media (min-width: 821px) { .om-logout button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid #F3C9C4; border-radius: 12px; background: #FFF; color: #A1281B; font: inherit; font-weight: 700; cursor: pointer; } .om-logout .ico { width: 18px; height: 18px; } }

/* v0.65.25: Orbit phone notifications card (More), Face ID sign-in on the login page */
.om-push { display: flex; flex-direction: column; gap: 12px; }
.om-push [hidden] { display: none !important; }
.om-push-state { font-weight: 700; }
.om-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #DCDCD6; border-radius: 14px; background: #FFF; color: #17181A; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.om-btn .ico { width: 18px; height: 18px; }
.om-btn:disabled { opacity: .55; cursor: default; }
.om-btn-main { width: 100%; min-height: 50px; border-color: #E2A50B; background: #E2A50B; }
.om-btn-quiet { color: #A1281B; border-color: #F3C9C4; }
.om-push-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.om-push-btns .om-btn { flex: 1 1 140px; }
.om-push-prefs { display: flex; flex-direction: column; gap: 10px; }
.om-switch { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid #F0F0EC; cursor: pointer; }
.om-switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 15px; background: #C9CBD0; cursor: pointer; transition: background .15s; order: 2; margin-left: auto; }
.om-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.om-switch input:checked { background: #1E9E4A; }
.om-switch input:checked::after { transform: translateX(20px); }
.om-switch input:focus-visible { outline: 2px solid #17181A; outline-offset: 2px; }
.om-switch > span { display: flex; flex-direction: column; gap: 2px; }
.om-switch small { font-size: 13px; color: #5B5E66; }
.om-push-msg { margin: 0; color: #1F6B3A; }
.om-push-msg:empty { display: none; }
.om-push-msg.is-bad { color: #A1281B; }
.om-nudge { border-color: #F2D58A; background: #FFF9EA; }
.om-nudge > .ico:first-child { width: 26px; height: 26px; color: #8A5A00; flex: none; }
@media (min-width: 821px) { .om-nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #F2D58A; border-radius: 14px; } .om-push { max-width: 640px; } }
.om-signin { text-align: center; }
.om-signin .btn { min-height: 52px; font-size: 16px; }
@media (max-width: 820px) {
  html.is-orbit .narrow { max-width: none; }
  html.is-orbit .om-signin + .or-line { margin: 18px 0; }
}

/* v0.65.26: sign-up shield (Clients → New sign-ups, Unconfirmed list) */
.cl-apart { opacity: .85; }
.sx-chips .cl-apart:first-of-type { margin-left: 10px; }
.cl-apart .ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.su-alarm { border-color: #F3B4AC; background: #FEF2F1; color: #7A1C12; }
.su-alarm p { margin-bottom: 10px; }
.su-hot { color: #B42318; }
.su-filters { margin: 14px 0; }
.su-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.su-table td { vertical-align: top; }
.su-table .su-ck { width: 34px; }
.su-table .su-ck input { width: 18px; height: 18px; }
.su-name, .su-host { display: block; margin-top: 2px; }
.su-table tr.su-flag td { background: #FFF8F1; }
.su-table .badge { margin: 0 2px 4px 0; }

/* v0.65.27: Amaze Orbit's own Staff accounts page has no "Amaze Orbit" column (that switch belongs to brand panels) */
.staff-list.is-hub .staff-row { grid-template-columns: minmax(150px, 1.3fr) minmax(240px, 1.2fr) minmax(150px, 1fr) minmax(120px, .9fr) 128px; }

/* v0.65.28: display name in the staff Manage menu */
.staff-acts .dn-form { display: grid; gap: 4px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.staff-acts .dn-row { display: flex; gap: 6px; }
.staff-acts .dn-row input { min-width: 0; flex: 1 1 auto; padding: 6px 10px; }
.staff-acts:has(.dn-form) { min-width: 270px; }

/* v0.65.30: Orbit Brands, account matched by email */
.ob-links .ob-match { display: block; margin-top: 4px; color: var(--ok, #1a7f4b); font-weight: 600; }

/* v0.65.31: Orbit Live chat + Tickets, cleaner on phones (search button, short chips, one stat strip, friendly empty states).
   Desktop keeps the full labels and the open search box. */
.om-searchbtn, .ob-views .v-short { display: none; }
.om-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 20px; text-align: center; }
.om-empty b { font-size: 1.05rem; }
.om-empty > span:not(.om-empty-ic) { color: var(--text-2, #5B5E66); font-size: .9rem; max-width: 34ch; }
.om-empty .btn { margin-top: 8px; }
.om-empty-ic { width: 56px; height: 56px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; background: #F2F2EE; color: #5B5E66; margin-bottom: 4px; }
.om-empty.is-good .om-empty-ic { background: #E4F5EA; color: #1A7F4B; }
@media (max-width: 820px) {
  /* one look for chips on both pages: tag + count, the name only on "All" */
  html.is-orbit .ob-chip { min-height: 36px; padding: 0 12px; gap: 6px; font-size: 14px; font-weight: 700; border-radius: 18px; background: #FFF; border: 1px solid #DCDCD6; color: #17181A; }
  html.is-orbit .ob-chip.is-on { background: #17181A; border-color: #17181A; color: #FFF; }
  html.is-orbit .ob-chip .ob-cname { display: none; }
  html.is-orbit .ob-chip b:empty { display: none; }
  html.is-orbit .ob-chips, html.is-orbit .ob-views, html.is-orbit .lcx-brands { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); gap: 8px; }
  /* Live chat: short "Online: Daniel" pill, stats as one strip, accent on the open view */
  html.is-orbit .lcx-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  html.is-orbit .lcx-agents { order: 2; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 16px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.is-orbit .lcx-views { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 14px; background: #ECECE7; border: 0; }
  html.is-orbit .lcx-views button { min-height: 40px; border-radius: 10px; border: 0; background: transparent; color: #5B5E66; font-size: 15px; font-weight: 700; }
  html.is-orbit .lcx-views button[aria-selected="true"] { background: #FFF; color: #17181A; box-shadow: 0 1px 2px rgba(23,24,26,.08), inset 0 -3px 0 var(--accent); }
  html.is-orbit .lcx-stats { display: flex; gap: 0; padding: 10px 4px; border-radius: 16px; background: #FFF; border: 1px solid #ECECE7; }
  html.is-orbit .lcx-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  html.is-orbit .lcx-stat + .lcx-stat { border-left: 1px solid #F0F0EC; }
  html.is-orbit .lcx-stat b { font-size: 20px; line-height: 1.1; }
  html.is-orbit .lcx-stat span { font-size: 12px; letter-spacing: 0; text-transform: none; color: #5B5E66; white-space: nowrap; }
  /* search behind a button */
  html.is-orbit [data-search-wrap] { display: flex; align-items: center; gap: 8px; }
  html.is-orbit .om-searchbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 22px; border: 1px solid #DCDCD6; background: #FFF; color: #17181A; padding: 0; }
  html.is-orbit [data-search-wrap] input[type=search] { display: none; }
  html.is-orbit [data-search-wrap].is-open input[type=search] { display: block; flex: 1; min-width: 0; min-height: 44px; border-radius: 22px; font-size: 16px; }
  html.is-orbit [data-search-wrap].is-open .om-searchbtn { border-color: #17181A; }
  html.is-orbit .lcx-vis-bar [data-vis-note] { display: none; }
  html.is-orbit .lcx-vis-bar { padding: 0 0 4px; border: 0; background: transparent; }
  html.is-orbit .ob-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  html.is-orbit .ob-head h1 { grid-column: 1; grid-row: 1; }
  html.is-orbit .ob-head .ob-tq { grid-column: 2; grid-row: 1; width: auto; justify-self: end; }
  html.is-orbit .ob-head .ob-tq.is-open { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  html.is-orbit .ob-head .ob-chips { grid-column: 1 / -1; grid-row: 2; }
  /* Tickets: short view names with counts; a waiting ticket has an accent stripe */
  html.is-orbit .ob-views .v-long { display: none; }
  html.is-orbit .ob-views .v-short { display: inline; }
  html.is-orbit .ob-views a { min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 700; }
  html.is-orbit .ob-table tr.is-wait { box-shadow: inset 4px 0 0 var(--accent); }
  /* friendly empty states */
  html.is-orbit .om-empty { background: #FFF; border: 1px solid #ECECE7; border-radius: 20px; padding: 36px 20px; }
  html.is-orbit .lcx .lcx-quiet.om-empty { margin: 8px 0; }
}
@media (max-width: 820px) {
  html.is-orbit .lcx-vis { background: transparent; border: 0; box-shadow: none; padding: 0; }
  html.is-orbit .lcx-vis-bar { justify-content: flex-end; }
}
/* v0.65.32: Orbit Live chat on phones: nothing wider than the screen; brand chips wrap; History / Quick replies / Settings
   on their own row with menus that open in place (they were cut off inside the sideways-scrolling row); visitors as cards. */
@media (max-width: 820px) {
  html.is-orbit, html.is-orbit body { overflow-x: hidden; max-width: 100%; }
  html.is-orbit .lcx, html.is-orbit .lcx-vis, html.is-orbit .lcx-vgroup { max-width: 100%; min-width: 0; overflow-x: hidden; }
  html.is-orbit .lcx-brands { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  html.is-orbit .lcx-brands > .lcx-otools { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; white-space: normal; }
  html.is-orbit .lcx-otools .lcx-bmenu, html.is-orbit .lcx-otools .lcx-tbtn { flex: none; }
  html.is-orbit .lcx-otools .lcx-bmenu > summary, html.is-orbit .lcx-otools .lcx-tbtn { height: 36px; padding: 0 12px; font-size: 14px; }
  html.is-orbit .lcx-otools .lcx-bmenu[open] { flex: 1 1 100%; }
  html.is-orbit .lcx-bmenu-list { position: static; margin-top: 8px; min-width: 0; width: 100%; box-sizing: border-box; }
  html.is-orbit .lcx-bmenu-list a { min-height: 44px; }
  /* visitors: one card per person, the page they are on under the name */
  html.is-orbit .lcx-tablewrap { overflow: visible; border: 0; border-radius: 0; }
  html.is-orbit .lcx-vtable, html.is-orbit .lcx-vtable tbody { display: block; width: 100%; table-layout: auto; }
  html.is-orbit .lcx-vtable thead { display: none; }
  html.is-orbit .lcx-vtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; margin-bottom: 10px; padding: 12px 14px; border: 1px solid #ECECE7; border-radius: 18px; background: #FFF; }
  html.is-orbit .lcx-vtable tr.is-hot { background: #F0FDF4; border-color: #CDEBD6; }
  html.is-orbit .lcx-vtable td { display: block; padding: 0; border: 0; height: auto; min-width: 0; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.is-orbit .lcx-vtable td:nth-child(1) { grid-column: 1; grid-row: 1; }
  html.is-orbit .lcx-vtable td:nth-child(5) { grid-column: 2; grid-row: 1; font-size: 13px; text-align: right; }
  html.is-orbit .lcx-vtable td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: #5B5E66; }
  html.is-orbit .lcx-vtable td:nth-child(3), html.is-orbit .lcx-vtable td:nth-child(4), html.is-orbit .lcx-vtable td:nth-child(6), html.is-orbit .lcx-vtable td:nth-child(7) { display: none; }
  html.is-orbit .lcx-vgroup h2 { font-size: 18px; margin: 6px 0 10px; }
}
/* v0.65.33: Orbit visitor page on phones: clear back button, compact header, "Now on" as a row, clean hello card */
.lcx-hello label small { display: block; margin-top: 2px; font-weight: 400; font-size: .85rem; color: var(--x-dim, #5B5E66); }
@media (max-width: 820px) {
  html.is-orbit .lcx .lcx-vpane { background: #F6F6F3; }
  html.is-orbit .lcx .lcx-vpane .lc-head { background: #FFF; border-bottom: 1px solid #ECECE7; padding: 12px 14px 12px 66px; min-height: 68px; }
  html.is-orbit .lcx-closeview { background: #FFF; border: 1px solid #DCDCD6; color: #17181A; top: 12px; }
  html.is-orbit .lcx-closeview::before { border-color: #17181A; }
  html.is-orbit .lcx-vpane .lcx-who { gap: 10px; }
  html.is-orbit .lcx-vpane .lcx-who .lcx-av { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  html.is-orbit .lcx-vpane .lc-head-t b { font-size: 17px; line-height: 1.25; color: #17181A; display: flex; align-items: center; gap: 6px; min-width: 0; }
  html.is-orbit .lcx-vpane .lc-head-t b > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.is-orbit .lcx-vpane .lc-head-t .small { font-size: 13px; line-height: 1.35; color: #5B5E66; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.is-orbit .lcx .lcx-vbody { gap: 12px; padding: 14px 16px 24px; }
  html.is-orbit .lcx-vnow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #FFF; border: 1px solid #ECECE7; font-size: 13px; color: #5B5E66; }
  html.is-orbit .lcx-vnow b { font-family: inherit; font-size: 15px; font-weight: 700; color: #17181A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  html.is-orbit .lcx-hello { padding: 16px; border-radius: 18px; background: #FFF; border: 1px solid #ECECE7; gap: 12px; }
  html.is-orbit .lcx-hello label { font-size: 17px; font-weight: 800; color: #17181A; }
  html.is-orbit .lcx-hello label small { font-size: 13px; color: #5B5E66; }
  html.is-orbit .lcx-hello textarea { background: #F6F6F3; color: #17181A; border: 1px solid #DCDCD6; border-radius: 14px; font-size: 16px; padding: 12px 14px; min-height: 96px; resize: none; }
  html.is-orbit .lcx-hello-bar { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  html.is-orbit .lcx-hello-bar .btn { width: 100%; min-height: 50px; border-radius: 25px; border: 0; background: var(--accent); color: #17181A; font-size: 16px; font-weight: 800; box-shadow: none; }
  html.is-orbit .lcx-hello-bar .small { text-align: center; }
}
@media (max-width: 820px) { html.is-orbit .lcx-vnow:empty { display: none; } }
/* v0.65.34: Orbit Live chat on phones: History / Replies / Settings as one even row of equal buttons, menus drop below
   the row; visitor search is a full-width box (no lone round button). */
.lcx-bmenu .bm-short { display: none; }
@media (max-width: 820px) {
  html.is-orbit .lcx-brands > .lcx-otools { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
  html.is-orbit .lcx-otools > .lcx-bmenu { position: static; flex: 1 1 0; min-width: 0; }
  html.is-orbit .lcx-otools > .lcx-bmenu[open] { flex: 1 1 0; }
  html.is-orbit .lcx-otools > .lcx-tbtn { flex: 1 1 100%; order: -1; justify-content: center; height: 44px; border-radius: 14px; }
  html.is-orbit .lcx-otools .lcx-bmenu > summary { width: 100%; justify-content: center; gap: 6px; height: 44px; padding: 0 8px; border-radius: 14px; font-size: 14px; font-weight: 700; background: #FFF; border: 1px solid #DCDCD6; color: #17181A; box-shadow: none; }
  html.is-orbit .lcx-otools .lcx-bmenu[open] > summary { background: #17181A; border-color: #17181A; color: #FFF; }
  html.is-orbit .lcx-otools .lcx-bmenu .lcx-chev { display: none; }
  html.is-orbit .lcx-otools .lcx-bmenu .bm-long { display: none; }
  html.is-orbit .lcx-otools .lcx-bmenu .bm-short { display: inline; }
  html.is-orbit .lcx-otools .lcx-bmenu-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); width: auto; margin: 0; z-index: 40; border-radius: 16px; box-shadow: 0 12px 32px rgba(23,24,26,.16); }
  html.is-orbit .lcx-vis-bar { display: block; }
  html.is-orbit .lcx-vis-bar .om-searchbtn { display: none; }
  html.is-orbit .lcx-vis-bar input[type=search] { display: block !important; width: 100%; min-height: 46px; border-radius: 23px; padding: 0 18px; font-size: 16px; box-sizing: border-box; border: 1px solid #DCDCD6; background: #FFF; }
}
/* v0.65.35: phone visitor cards use the page font for the current page; customers show minutes on site */
@media (max-width: 820px) {
  html.is-orbit .lcx-vtable td.lcx-mono { font-family: inherit; font-size: 14px; letter-spacing: 0; color: var(--x-mute, #6B6E73); }
}
/* v0.65.38: back button drawn as a real arrow (the browser's own dark mode hid the CSS-drawn one); customers' Invite / Open chat on phone cards */
.lcx-closeview .lcx-backarrow { display: none; }
@media (max-width: 820px) {
  html.is-orbit .lcx-closeview, html.is-orbit .lcx-closeview:hover, html.is-orbit .lcx-closeview:focus-visible { background: #17181A; border: 1px solid #17181A; color: #FFF; }
  html.is-orbit .lcx-closeview::before { content: none; display: none; }
  html.is-orbit .lcx-closeview .lcx-backarrow { display: block; color: #FFF; stroke: #FFF; }
  html.is-orbit .lcx-vtable tr.is-customer td:nth-child(7) { display: block; grid-column: 1 / -1; grid-row: 3; overflow: visible; }
  html.is-orbit .lcx-vtable tr.is-customer td:nth-child(7):empty { display: none; }
  html.is-orbit .lcx-vtable tr.is-customer td:nth-child(7) .btn { width: 100%; min-height: 40px; justify-content: center; border-radius: 12px; }
  html.is-orbit .lcx-vtable tr.is-customer td:nth-child(7) .small { color: #5B5E66; font-size: 13px; }
}
/* v0.65.41: Invoices → Duplicates */
.dup-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dup-bar p { max-width: 760px; }
.inv-table tr.is-busy td { background: #FFF7ED; }
@media (max-width: 720px) { .dup-bar { flex-direction: column; align-items: stretch; } }
.dup-table th:nth-child(2), .dup-table td:nth-child(2) { min-width: 220px; }
.dup-table td:nth-child(2) .srv-sub-line { white-space: normal; }
.dup-table td:nth-child(5) .srv-sub-line { white-space: normal; max-width: 300px; }
.dup-table td:nth-child(3) { white-space: normal; min-width: 120px; max-width: 150px; }
.dup-table th:first-child, .dup-table td:first-child { width: 36px; padding-right: 0; }
/* v0.65.43: theme C (DediGermany): "Log in as client" in a page header was dark text on a dark button (an ID-weight rule set the
   background; the yellow rule lost). Same yellow button as the other header actions; :not(#x) only lifts the weight. */
.theme-c .vpx .head-acts :is(.btn-ink, summary.btn-ink):not(#x), .theme-c #main .page-head.page-head:has(h1) summary.btn-ink:not(#x) { background: #F2B300; border-color: #F2B300; color: #23282B; }
.theme-c .vpx .head-acts :is(.btn-ink, summary.btn-ink):not(#x):hover { background: #FFC61A; border-color: #FFC61A; }
/* v0.65.44: open / close buttons inside <summary> (invoice: Credit note, Refund, Delete invoice): the button stays and reads
   Close / Hide when open (it used to vanish); a click no longer draws a focus box round the whole row, keyboard focus rings the button. */
.refund-card[open] > summary .btn, .dz-del[open] > summary .btn { visibility: visible; }
details:not([open]) > summary .sum-open, details[open] > summary .sum-closed { display: none; }
details > summary:has(> .btn):focus, details > summary.btn:focus { outline: none; }
details > summary:has(> .btn):focus-visible > .btn, details > summary.btn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.dz-del[open] > summary, .refund-card[open] > summary { padding-bottom: 10px; border-bottom: 1px dashed var(--border); }

/* v0.65.50: Confirm it is you: Confirm buttons centred */
.reauth-go { display: flex; margin: 8px auto 0; min-width: 160px; justify-content: center; }

/* v0.65.52: Orbit Sound button (Live chat tools; on phones it is on the More page) */
.lcx-tbtn.lcx-sound.is-off { color: #94A3B8; }
@media (max-width: 820px) { html.is-orbit .lcx-otools .lcx-sound { display: none; } }

/* v0.65.53: Orbit chat popups and chat boxes on every page (orbit-dock.js) */
.obd-toasts { position: fixed; top: 84px; right: 20px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 24px); pointer-events: none; }
.obd-toast { pointer-events: auto; background: #fff; border: 1px solid #E2E8F0; border-left: 4px solid #2563EB; border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(14,27,51,.18); animation: obdIn .18s ease-out; }
.obd-toast.is-urgent { border-left-color: #F2B300; }
@keyframes obdIn { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.obd-t-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.obd-t-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obd-x { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: #64748B; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.obd-x:hover { background: #F1F5F9; color: #0F172A; }
.obd-t-who { margin-top: 4px; font-weight: 600; font-size: .92rem; color: #0F172A; overflow-wrap: anywhere; }
.obd-t-msg { margin: 4px 0 0; font-size: .86rem; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.obd-t-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.obd-row { position: fixed; right: 20px; bottom: 0; z-index: 1150; display: flex; align-items: flex-end; gap: 12px; }
.obd-row[hidden] { display: none; }
.obd-box { width: 330px; height: 460px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: #fff; border: 1px solid #D6DEEA; border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 28px rgba(14,27,51,.18); overflow: hidden; }
.obd-box.is-min { height: auto; }
.obd-box.is-min > :not(.obd-head) { display: none; }
.obd-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; background: #0F1B33; color: #fff; }
.obd-box.has-new .obd-head { background: #B45309; animation: obdBlink 1.2s ease-in-out infinite alternate; }
@keyframes obdBlink { to { background: #0F1B33; } }
.obd-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 2px; }
.obd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.obd-tools { display: flex; gap: 2px; }
.obd-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: #CBD5E1; font-size: 1.05rem; line-height: 1; cursor: pointer; text-decoration: none; }
.obd-ic:hover { background: rgba(255,255,255,.12); color: #fff; }
.obd-sub { padding: 4px 12px; font-size: .76rem; color: #64748B; background: #F8FAFC; border-bottom: 1px solid #EEF2F7; min-height: 6px; }
.obd-msgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; }
.obd-m { display: flex; flex-direction: column; max-width: 85%; }
.obd-m-visitor { align-self: flex-start; }
.obd-m-staff, .obd-m-bot { align-self: flex-end; align-items: flex-end; }
.obd-m-system { align-self: center; max-width: 100%; }
.obd-b { padding: 7px 10px; border-radius: 12px; font-size: .88rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid #E2E8F0; color: #0F172A; }
.obd-m-staff .obd-b, .obd-m-bot .obd-b { background: #1E3A8A; border-color: #1E3A8A; color: #fff; }
.obd-m.is-pending { opacity: .6; }
.obd-at { font-size: .7rem; color: #94A3B8; margin-top: 2px; }
.obd-sys { font-size: .74rem; color: #64748B; text-align: center; }
.obd-typing { padding: 2px 12px 4px; font-size: .76rem; color: #64748B; background: #F8FAFC; }
.obd-typing[hidden], .obd-foot[hidden] { display: none; }
.obd-chips { display: flex; gap: 6px; padding: 6px 10px 0; overflow-x: auto; }
.obd-chips:empty { display: none; }
.obd-chip { flex: none; border: 1px solid #D6DEEA; background: #fff; border-radius: 999px; padding: 3px 10px; font-size: .76rem; cursor: pointer; white-space: nowrap; }
.obd-chip:hover { background: #F1F5F9; }
.obd-compose { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px; border-top: 1px solid #EEF2F7; }
.obd-compose textarea { flex: 1; min-width: 0; resize: none; min-height: 40px; max-height: 120px; padding: 8px 10px; border: 1px solid #D6DEEA; border-radius: 10px; font: inherit; font-size: .88rem; }
.obd-compose textarea:disabled { background: #F1F5F9; }
.obd-foot { display: flex; justify-content: flex-end; padding: 0 10px 8px; }
.obd-end { border: 0; background: none; color: #B91C1C; font-size: .78rem; cursor: pointer; padding: 2px 4px; }
.obd-end:hover { text-decoration: underline; }
.obd-more { position: relative; align-self: flex-end; margin-bottom: 10px; }
.obd-more-btn { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #0F1B33; color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(14,27,51,.25); }
.obd-more-btn::-webkit-details-marker { display: none; }
.obd-more-list { position: absolute; bottom: 54px; right: 0; min-width: 200px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 12px 32px rgba(14,27,51,.18); padding: 6px; display: flex; flex-direction: column; }
.obd-more-item { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .86rem; }
.obd-more-item:hover { background: #F1F5F9; }
@media (max-width: 820px) {
  .obd-toasts { top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 12px; left: 12px; width: auto; }
  .obd-row { display: none; }
}
@media (prefers-reduced-motion: reduce) { .obd-toast, .obd-box.has-new .obd-head { animation: none; } }

/* ---------- v0.65.54: Amaze Orbit "Night Grid" look (design B): dark / light / auto per person ----------
   html.is-orbit gets ob-dark or ob-light (ob-auto: boot.js picks one from the system setting). Tokens below; rules
   that set colours directly get their dark versions from orbit-dark.css (generated by tools/orbit-dark.py). */
html.is-orbit { --og-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace; --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: var(--f-body); }
html.is-orbit.ob-dark {
  --bg: #090D13; --surface: #0F151E; --surface-2: #121A25; --hover: #16202D; --text: #E6EDF6; --text-2: #A3B0C2;
  --border: #1E2836; --border-strong: #3A4759; --input-bg: #0B1118;
  --accent: #2DD4BF; --accent-hover: #5EEAD4; --on-accent: #04211D; --accent-soft: #0E2A27; --accent-text: #5EEAD4;
  --strong: #1E2A3A; --strong-hover: #26354A; --on-strong: #FFFFFF; --strong-border: #2A3647;
  --ghost-border: #2A3647; --ghost-hover: #16202D;
  --hdr-bg: #0B1018; --hdr-text: #A3B0C2; --hdr-strong: #FFFFFF; --hdr-hover: #16202D; --hdr-border: #1A2330;
  --cur-bg: #16202D; --cur-text: #FFFFFF; --cur-ico: #2DD4BF;
  --ok: #4ADE80; --ok-bg: #0F2A1F; --ok-line: #1E5A3C; --warn: #FBBF24; --warn-bg: #1E1708; --warn-line: #5B4A12;
  --err: #FF8A7A; --err-bg: #2E1412; --err-line: #6E2A22; --info: #8AB8FF; --info-bg: #12243A;
  --code-bg: #05080C; --code-text: #5EEAD4; --focus: #5EEAD4; --shadow: none;
  --ui-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 12px 30px -22px rgba(0, 0, 0, .9); --ui-lift: 0 16px 34px -20px rgba(0, 0, 0, .95);
  --og-grid: rgba(148, 163, 184, .06); color-scheme: dark;
}
html.is-orbit.ob-light {
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #F7F9FB; --hover: #F1F4F8; --text: #0F172A; --text-2: #475569;
  --border: #DCE2EA; --border-strong: #8C96A6; --input-bg: #FFFFFF;
  --accent: #0F766E; --accent-hover: #115E59; --on-accent: #FFFFFF; --accent-soft: #E6F4F1; --accent-text: #0F766E;
  --cur-bg: #E6F4F1; --cur-text: #0F172A; --cur-ico: #0F766E; --focus: #0F766E;
  --og-grid: rgba(15, 23, 42, .045); color-scheme: light;
}
html.is-orbit body { background-color: var(--bg); background-image: linear-gradient(var(--og-grid, transparent) 1px, transparent 1px), linear-gradient(90deg, var(--og-grid, transparent) 1px, transparent 1px); background-size: 32px 32px; background-attachment: fixed; }
html.is-orbit .od-v, html.is-orbit .od-k, html.is-orbit .lcx-stat b, html.is-orbit .om-badge, html.is-orbit .ob-tag { font-family: var(--og-mono); }
html.is-orbit .od-k { letter-spacing: .1em; }
/* colour switch (sidebar on desktop, More page on phones) */
.ob-look { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.ob-look button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 600 12px var(--f-body); cursor: pointer; }
.ob-look button svg { width: 14px; height: 14px; }
.ob-look button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.ob-look button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.side .ob-look { margin: 0 0 10px; width: 100%; box-sizing: border-box; }
.side .ob-look button { flex: 1; }
html.side-mini .side .ob-look { display: none; }
@media (max-width: 820px) { html.is-orbit .side .ob-look { display: none; } .om-look .ob-look { display: flex; } .om-look .ob-look button { flex: 1; min-height: 40px; font-size: 14px; } }
/* the Live chat console has its own colour variables (--x-*): Night Grid values */
html.is-orbit.ob-dark .lcx { --x-bg: #0B1018; --x-card: #0F151E; --x-line: #1E2836; --x-line2: #2A3647; --x-text: #E6EDF6; --x-dim: #A3B0C2; --x-mute: #8A97AB;
  --x-hi: #F8FAFC; --x-acc: #FB923C; --x-acc-soft: rgba(251, 146, 60, .14); --x-go: #2DD4BF; --x-go-soft: rgba(45, 212, 191, .13); --x-warm: #FDBA74; color-scheme: dark; }
html.is-orbit.ob-light .lcx { --x-go: #0F766E; --x-go-soft: #E6F4F1; }
html.is-orbit .od-k { text-transform: uppercase; font-size: 11px; }
/* v0.65.54: Orbit dashboard brand matrix */
.od-mx-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.od-mx { width: 100%; min-width: 760px; border-collapse: collapse; }
.od-mx th, .od-mx td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; white-space: nowrap; }
.od-mx thead th { font: 600 11px var(--og-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); background: var(--surface-2); }
.od-mx tbody th { font-weight: 600; }
.od-mx tbody td { font-family: var(--og-mono, ui-monospace, monospace); }
.od-mx tbody tr:last-child > * { border-bottom: 0; }
.od-mx td.is-hot { color: var(--warn); font-weight: 700; }
.od-mx td.is-warm { color: var(--accent-text); font-weight: 700; }
.od-mx .od-ok { color: var(--ok); font-size: .8rem; } .od-mx .od-bad { color: var(--err); font-size: .8rem; }
.od-mx tr.is-down th { color: var(--text-2); }
.od-mx tbody th { text-transform: none; letter-spacing: 0; font-family: var(--f-body); color: var(--text); }
/* Night Grid dark: readable ink on orange chips/buttons; dark note box */
html.is-orbit.ob-dark .lcx .lc-n:not(:empty), html.is-orbit.ob-dark .lcx .btn-signal, html.is-orbit.ob-dark .lcx .btn-signal:hover { color: #1A1206; }
html.is-orbit.ob-dark .lcx-notecard textarea { background: #1A1810; border-color: #3A3420; color: var(--x-text); }
/* v0.65.55: why a Robot account has no Remove button */
.pn-node-hint { margin-top: 4px; font-size: .82rem; color: var(--muted, #6B7280); }
/* v0.65.57 Orbit Night Grid board: compact strip, Queue · answer first next to Alerts */
.og-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.og-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; color: var(--text); text-decoration: none; border-right: 1px solid var(--border); min-width: 0; }
.og-kpi:last-child { border-right: 0; }
.og-kpi:hover { background: var(--hover, var(--surface-2)); }
.og-kpi .od-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.og-kpi .od-v { font-size: 1.9rem; }
.og-kpi.is-hot .od-v { color: var(--warn, #D97706); }
.og-sub { font-size: .8rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-sub.is-warm { color: var(--accent-text); font-weight: 600; }
.od-sec h2 small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-2); margin-left: 6px; }
.og-ver { display: block; font-size: .72rem; color: var(--text-2); }
.od-mx tbody th { background: transparent; }
.og-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.og-two > .od-sec { margin: 0; }
.og-queue { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.og-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.og-q:last-child { border-bottom: 0; }
.og-q.is-chat { box-shadow: inset 3px 0 0 var(--accent); }
.og-q.is-taken { opacity: .55; }
.og-q-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.og-q-main > b, .og-q-main > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.og-q-main > a { text-decoration: none; } .og-q-main > a:hover b { text-decoration: underline; }
.og-q-meta { font-weight: 400; color: var(--text-2); font-size: .85rem; }
.og-q-msg { font-size: .85rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-q.is-chat .og-q-main { flex-direction: row; flex-wrap: wrap; column-gap: 6px; }
.og-q.is-chat .og-q-msg { flex-basis: 100%; }
.og-q-time { font-family: var(--og-mono, ui-monospace, monospace); font-size: .85rem; color: var(--warn, #D97706); font-variant-numeric: tabular-nums; }
.og-q form { margin: 0; }
.og-q .btn { min-width: 76px; justify-content: center; }
.og-q .og-go { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.og-pri { font: 700 10px var(--og-mono, ui-monospace, monospace); letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: #FEE2E2; color: #991B1B; }
.og-pri.is-urgent { background: #DC2626; color: #FFF; }
html.is-orbit.ob-dark .og-pri.is-high { background: #3A1518; color: #FCA5A5; }
html.is-orbit.ob-dark .od-alerts li.is-bad { background: #1A1215; }
html.is-orbit.ob-dark .od-alerts li.is-warn { background: #1A1710; }
@media (max-width: 1100px) { .og-two { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .og-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-kpi { border-bottom: 1px solid var(--border); }
  .og-kpi:nth-child(2n) { border-right: 0; }
  .og-kpi:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .og-q { grid-template-columns: auto minmax(0, 1fr) auto; }
  .og-q .og-q-time, .og-q .og-pri { grid-column: 3; grid-row: 1; }
  .og-q > form, .og-q > .btn { grid-column: 2 / -1; }
  .og-q > form .btn, .og-q > .btn { width: 100%; }
}
.og-q .btn:not(.og-go) { border: 1px solid var(--border-strong, var(--border)); background: var(--surface-2); color: var(--text); }
@media (max-width: 820px) {
  .od-mx { min-width: 680px; }
  .od-mx tbody th, .od-mx thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--border); }
  .od-mx thead th:first-child { background: var(--surface-2); }
}
/* v0.65.57: closer to the Night Grid sample */
.og-h1-sub { font: 500 .95rem var(--og-mono, ui-monospace, monospace); color: var(--text-2); letter-spacing: 0; }
.og-sub { font-family: var(--og-mono, ui-monospace, monospace); font-size: .78rem; }
.og-sub.is-bad { color: #EF4444; }
.og-kpi.is-hot { box-shadow: inset 0 0 0 1px var(--warn, #D97706); background: color-mix(in srgb, var(--warn, #D97706) 7%, var(--surface)); }
.og-kpi.is-hot .od-k { color: var(--warn, #D97706); }
#og-q { color: var(--warn, #D97706); }
.og-queue { border: 0; background: transparent; display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.og-q { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.og-q:last-child { border-bottom: 1px solid var(--border); }
.og-q.is-chat { box-shadow: none; border-color: color-mix(in srgb, var(--warn, #D97706) 45%, var(--border)); background: color-mix(in srgb, var(--warn, #D97706) 6%, var(--surface)); }
.og-q-time { color: var(--text-2); }
.og-q.is-chat .og-q-time { color: var(--warn, #D97706); }
.og-pri { background: transparent !important; color: #EF4444 !important; padding: 0; }
.og-pri.is-urgent { background: #DC2626 !important; color: #FFF !important; padding: 3px 7px; }
/* v0.65.58 Orbit board part 2: search, event stream, next-brand row, sidebar sound, Find page */
.od-head { align-items: flex-start; }
.og-search { display: flex; align-items: center; gap: 8px; min-width: min(420px, 100%); padding: 0 10px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.og-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(45,212,191,.2)); }
.og-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 10px 0; font: inherit; color: var(--text); outline: none; }
.og-slash { font: 600 1rem var(--og-mono, ui-monospace, monospace); color: var(--accent-text); }
.og-kbd { font: 600 11px var(--og-mono, ui-monospace, monospace); color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.og-search.is-page { max-width: 640px; margin: 0 0 18px; padding-right: 6px; }
.og-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; animation: lcx-ring 1.8s infinite; }
.og-stream { list-style: none; margin: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font: .84rem/1.5 var(--og-mono, ui-monospace, monospace); max-height: 420px; overflow-y: auto; }
.og-ev { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-ev-t { color: var(--text-2); flex: none; }
.og-ev-b { flex: none; font-weight: 700; padding: 0 5px; border-radius: 4px; font-size: .74rem; }
.og-ev-b.is-orbit { background: transparent; color: var(--accent-text); padding: 0; }
.og-ev-k { font-weight: 600; flex: none; }
.og-ev-x { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.og-ev.k-chat .og-ev-k { color: var(--accent-text); } .og-ev.k-ticket .og-ev-k { color: #60A5FA; } .og-ev.k-invoice .og-ev-k { color: #22C55E; }
.og-ev.k-order .og-ev-k { color: var(--warn, #D97706); } .og-ev.k-server .og-ev-k { color: #EF4444; } .og-ev.k-client .og-ev-k { color: #A78BFA; } .og-ev.k-brand .og-ev-k { color: var(--text-2); }
.og-ev-empty { color: var(--text-2); padding: 6px 0; }
.od-mx tr.og-next th, .od-mx tr.og-next td { color: var(--text-2); }
.og-plus { background: var(--surface-2); color: var(--text-2); border: 1px dashed var(--border-strong, var(--border)); }
.og-sound { display: block; width: 100%; margin: 8px 0 4px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 600 .84rem var(--f-body); cursor: pointer; }
.og-sound:hover { background: var(--hover, var(--surface-2)); }
.og-hits { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.og-hit { display: grid; grid-template-columns: auto 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.og-hit:last-child { border-bottom: 0; }
.og-hit.is-internal { opacity: .7; }
.og-hit-kind { font: 600 11px var(--og-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.og-hit-main { min-width: 0; display: flex; flex-direction: column; }
.og-hit-main a { color: var(--text); text-decoration: none; } .og-hit-main a:hover b { text-decoration: underline; }
.og-hit-where { font-size: .8rem; color: var(--text-2); white-space: nowrap; }
@media (max-width: 820px) {
  .og-sound { display: none; }
  .od-head .og-search { min-width: 0; width: 100%; }
  .og-kbd { display: none; }
  .og-hit { grid-template-columns: auto minmax(0, 1fr); }
  .og-hit-kind, .og-hit-where { display: none; }
}
/* v0.65.59: the event stream keeps its room while it loads (nothing under it jumps) */
.og-stream { min-height: 300px; }
/* v0.65.60 chat popup: bottom right above the chat boxes, brand colour stripe, plain place line, running wait time */
.obd-toasts { top: auto; bottom: 16px; right: 20px; width: 330px; flex-direction: column-reverse; }
.obd-toast { border-left: 4px solid var(--obd-brand, #2563EB); padding: 12px 14px 12px 14px; }
.obd-toast.is-urgent { border-left-color: var(--obd-brand, #F2B300); }
.obd-t-time { flex: none; font: 600 .78rem var(--og-mono, ui-monospace, monospace); color: #B45309; background: #FEF3C7; border-radius: 6px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.obd-t-who { margin-top: 8px; font-size: .98rem; }
.obd-t-where { font-size: .82rem; color: #64748B; margin-top: 1px; }
.obd-t-msg.is-page { color: #64748B; }
.obd-t-msg.is-page code { font: .82rem var(--og-mono, ui-monospace, monospace); color: inherit; background: none; padding: 0; }
.obd-t-acts .btn { min-width: 84px; justify-content: center; }
html.is-orbit.ob-dark .obd-toast { background: #121A25; border-color: #2A3647; border-left-color: var(--obd-brand, #2DD4BF); box-shadow: 0 14px 36px rgba(0,0,0,.5); }
html.is-orbit.ob-dark .obd-t-who { color: #E6EDF6; }
html.is-orbit.ob-dark .obd-t-where, html.is-orbit.ob-dark .obd-t-msg { color: #A3B0C2; }
html.is-orbit.ob-dark .obd-t-time { background: rgba(251,191,36,.14); color: #FBBF24; }
html.is-orbit.ob-dark .obd-x { color: #A3B0C2; } html.is-orbit.ob-dark .obd-x:hover { background: #1E2836; color: #FFF; }
@media (max-width: 820px) { .obd-toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; } }
/* v0.65.60 Team online: people signed in to Orbit; brand tags they work in, bright where they take chats */
.og-in-orbit { font: 500 .72rem var(--f-body); text-transform: none; letter-spacing: 0; color: var(--text-2); margin-left: 4px; }
.od-person .ob-tag { opacity: .45; margin-left: 2px; }
.od-person .ob-tag.is-taking { opacity: 1; }
.og-you { color: var(--text-2); font-weight: 500; }
.od-person.is-me { box-shadow: inset 0 0 0 1px var(--border-strong, var(--border)); }
.od-person small.og-you { background: none; color: var(--text-2); padding: 0; font-weight: 500; }
html.is-orbit.ob-dark .obd-toast, html.is-orbit.ob-dark .obd-toast.is-urgent { border-color: #2A3647; border-left-color: var(--obd-brand, #2DD4BF); }
html.is-orbit.ob-light .obd-toast, html.is-orbit.ob-light .obd-toast.is-urgent { border-color: #E2E8F0; border-left-color: var(--obd-brand, #0F766E); }
/* v0.65.61: website visitors in the event stream */
.og-ev.k-visitor .og-ev-k { color: #38BDF8; }
html.is-orbit.ob-light .og-ev.k-visitor .og-ev-k { color: #0369A1; }
.og-ev { white-space: normal; align-items: baseline; }
.og-ev-t, .og-ev-b, .og-ev-k { white-space: nowrap; }
.og-ev-x { white-space: normal; overflow: visible; min-width: 0; }
/* v0.65.62: a bit more room for the event stream, so most lines fit on one row */
.og-two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.og-stream { font-size: .8rem; }
/* v0.65.63 phones: brand matrix as cards (the wide table pushed the page to 900 px) */
.og-mx-cards { display: none; }
@media (max-width: 820px) {
  .od-mx-wrap { display: none; }
  .og-mx-cards { display: flex; flex-direction: column; gap: 10px; }
  .og-mxc { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 12px 14px; }
  .og-mxc-head { display: flex; align-items: center; gap: 8px; }
  .og-mxc-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .og-mxc-head .od-ok, .og-mxc-head .od-bad { font: .78rem var(--og-mono, ui-monospace, monospace); color: var(--ok); white-space: nowrap; }
  .og-mxc-head .od-bad { color: var(--err); }
  .og-mxc-head a { font-size: .85rem; font-weight: 600; }
  .og-mxc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin: 10px 0 0; }
  .og-mxc-grid div { min-width: 0; }
  .og-mxc-grid dt { font: 600 10px var(--og-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
  .og-mxc-grid dd { margin: 2px 0 0; font: 600 1.05rem var(--og-mono, ui-monospace, monospace); }
  .og-mxc-grid .is-hot dd { color: var(--warn, #D97706); }
  /* nothing on the board may make the page wider than the phone */
  .og-board, .og-board > * { min-width: 0; max-width: 100%; }
  .og-stream { overflow-x: hidden; }
}
/* v0.65.63: event text never squeezes to nothing: it stays on the line when there is room, else goes under the time */
.og-ev { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
.og-ev-x { flex: 1 1 160px; }
@media (max-width: 820px) { .og-ev-x { flex-basis: 100%; padding-left: 0; } .og-ev { padding: 6px 0; border-bottom: 1px solid var(--border); } .og-ev:last-child { border-bottom: 0; } }
@media (max-width: 1100px) { .og-two { grid-template-columns: minmax(0, 1fr); } }
.og-ev-x::before { content: "· "; }
@media (max-width: 820px) { .og-ev-x::before { content: none; } }
html.is-orbit .od-person small.og-you { background: none; color: var(--text-2); padding: 0; font-weight: 500; }
/* v0.65.66 team chat in Orbit: plain page title like the other Orbit pages; the chat button and the live chat boxes / popups
   share the bottom-right corner, so the boxes sit to its left; phones use More → Team chat (the button would cover the tab bar) */
html.is-orbit #main .page-head.ob-plain { background: none !important; border: 0; padding: 0; box-shadow: none; }
html.is-orbit #main .page-head.ob-plain::before, html.is-orbit #main .page-head.ob-plain::after { content: none; }
@media (min-width: 821px) { html.is-orbit body:has(.chat-fab:not([hidden])) .obd-row, html.is-orbit body:has(.chat-fab:not([hidden])) .obd-toasts { right: 170px; } }
@media (max-width: 820px) { html.is-orbit .chat-fab { display: none; } }
/* v0.65.68 Live board: Alerts sit under the Queue (left), the event stream on the right, so neither side stands empty */
.og-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.og-left > .od-sec { margin: 0; }
.og-left .od-al-t { min-width: 0; }
/* v0.65.69 live chat header, cleaner: name and details on the left, Accept / End chat on the right, the other actions
   (pass to, screenshots, ticket, block) in one thin row under them; details on one line */
.lcx .lc-conv > .lc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who end" "acts acts"; column-gap: 12px; row-gap: 10px; align-items: center; padding-right: 58px; }
.lcx .lc-conv > .lc-head > .lcx-who { grid-area: who; min-width: 0; }
.lcx .lc-conv > .lc-head .lc-head-t .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-acts-end { grid-area: end; display: flex; align-items: center; gap: 8px; }
.lc-acts-end:empty { display: none; }
.lcx .lc-conv > .lc-head > .lc-acts { grid-area: acts; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
.lcx .lc-conv > .lc-head > .lc-acts::-webkit-scrollbar { display: none; }
.lcx .lc-conv > .lc-head > .lc-acts[hidden] { display: none; }
.lcx .lc-head .lc-acts .btn, .lcx .lc-head .lc-acts .lc-transfer, .lc-acts-end .btn { flex: none; height: 32px; min-height: 32px; padding: 0 12px; font-size: .84rem; white-space: nowrap; }
.lcx .lc-head .lc-acts .lc-transfer { width: auto; max-width: 140px; padding-right: 30px; }
.lcx .lc-head .lc-acts .lcx-iconbtn { width: 32px; padding: 0; justify-content: center; }
.lcx .lc-head .lc-acts .lc-upnote { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 1px dashed var(--x-line2, #CBD5E1); border-radius: 999px; font-size: .8rem; white-space: nowrap; }
.lcx .lc-conv > .lc-head .lcx-closeview { top: 50%; transform: translateY(-50%); }
.lcx .lc-conv > .lc-head:has(> .lc-acts:not([hidden])) .lcx-closeview { top: 14px; transform: none; }
/* Orbit desktop: the tool buttons by the brand chips are icons only (the name shows on hover), so they share the brand row */
@media (min-width: 821px) {
  html.is-orbit .lcx-otools .lcx-bmenu .bm-short, html.is-orbit .lcx-otools .lcx-bmenu .lcx-chev { display: none; }
  html.is-orbit .lcx-otools .lcx-bmenu .bm-long, html.is-orbit .lcx-otools .lcx-fullbtn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.is-orbit .lcx-otools .lcx-fullbtn, html.is-orbit .lcx-bmenu > summary { width: 38px; padding: 0; justify-content: center; }
  html.is-orbit .lcx-otools .lcx-tbtn { padding: 0 12px; font-size: .84rem; }
  html.is-orbit .lcx-brands { flex-wrap: nowrap; }
  html.is-orbit body:has(.chat-fab:not([hidden])) .lcx-ticker { margin-right: 150px; }
}
@media (min-width: 1281px) { html.is-orbit .lcx .lc { grid-template-columns: 290px minmax(0, 1fr) 280px; } }
/* v0.65.69: menu collapsed: the Sound button is a bell (its full text shows on hover) instead of three broken lines */
.side-mini .og-sound { font-size: 0; padding: 8px 0; text-align: center; }
.side-mini .og-sound::before { content: "🔔"; font-size: 1rem; }
/* v0.65.70: Orbit chat boxes stand out from the dark page (they looked part of it) */
html.ob-dark .obd-box { border-color: #3B5378; box-shadow: 0 -2px 0 rgba(255,255,255,.02), 0 18px 48px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.4); }
/* v0.65.71 Live board: Queue + Alerts (left) and the Event stream (right) always the same fixed height; more alerts or a
   long queue scroll inside their own list, so the two sides never end at different heights */
@media (min-width: 1101px) {
  .og-two { align-items: stretch; }
  .og-two > .og-left, .og-two > section { height: 540px; min-height: 0; display: flex; flex-direction: column; }
  .og-two > section > .og-stream { flex: 1 1 auto; min-height: 0; max-height: none; }
  .og-left > section { min-height: 0; display: flex; flex-direction: column; }
  .og-left > section:first-child { flex: 0 1 auto; max-height: 50%; }
  .og-left > section:first-child .og-queue { min-height: 0; overflow-y: auto; }
  .og-left > section:last-child { flex: 1 1 auto; }
  .og-left .od-alerts { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; }
  .og-left .od-alerts li { flex: none; padding: 9px 14px; }
  .og-left .og-queue > li { flex: none; }
}
@media (min-width: 1101px) { .og-left > section + section { margin-top: 14px; } }

/* v0.65.75: "update finished" note on every Orbit page (top right; phones: above the tab bar) */
.ou-ping { position: fixed; top: 18px; right: 18px; z-index: 1200; display: flex; align-items: center; gap: 12px; max-width: min(460px, calc(100vw - 24px)); padding: 12px 12px 12px 14px; background: #fff; border: 1px solid #E2E8F0; border-left: 4px solid #16A34A; border-radius: 14px; box-shadow: 0 14px 36px rgba(14,27,51,.2); animation: obdIn .2s ease-out; transition: opacity .35s, transform .35s; }
.ou-ping.is-bad { border-left-color: #DC2626; }
.ou-ping.is-out { opacity: 0; transform: translateY(-8px); }
.ou-ping > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ou-ping > div b { font-size: .92rem; }
.ou-ping > div span { font-size: .8rem; opacity: .8; overflow-wrap: anywhere; }
.ou-ping-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #16A34A; color: #fff; font-weight: 800; }
.ou-ping.is-bad .ou-ping-ic { background: #DC2626; }
.ou-ping .btn { flex: none; white-space: nowrap; }
.ou-ping-x { flex: none; border: 0; background: none; color: inherit; opacity: .55; font-size: 1.3rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
.ou-ping-x:hover { opacity: 1; }
html.is-orbit.ob-dark .ou-ping { background: #121A25; border-color: #2A3647; border-left-color: #22C55E; color: #E2E8F0; box-shadow: 0 14px 36px rgba(0,0,0,.5); }
html.is-orbit.ob-dark .ou-ping.is-bad { border-left-color: #F87171; }
@media (max-width: 820px) { .ou-ping { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; left: 12px; max-width: none; } .ou-ping .btn { display: none; } }

/* v0.65.76: Orbit queue "Set up" rows (servers to set up by hand); "I'm on it" on the task page */
.og-q.is-setup { box-shadow: inset 3px 0 0 #7C3AED; }
.og-q.is-setup.is-late { border-color: color-mix(in srgb, #DC2626 45%, var(--border)); background: color-mix(in srgb, #DC2626 6%, var(--surface)); }
.og-q.is-setup.is-late .og-q-msg { color: #DC2626; }
html.is-orbit.ob-dark .og-q.is-setup.is-late .og-q-msg { color: #F87171; }
.tk-take { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tk-take form { margin: 0; }
.tk-on { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(22,163,74,.14); color: #15803D; font-size: .82rem; font-weight: 600; }
.vpx .tk-on { background: rgba(255,255,255,.14); color: #fff; }
/* v0.65.76: End chat asks by turning red ("Sure? End chat") instead of a browser dialog */
.lcx-end.is-armed, html.is-orbit.ob-dark .lcx-end.is-armed { background: #DC2626 !important; border-color: #DC2626 !important; color: #fff !important; animation: lcx-arm .6s ease-out; }
.lcx-x.is-armed { background: #DC2626 !important; color: #fff !important; border-radius: 8px; opacity: 1 !important; }
@keyframes lcx-arm { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 100% { box-shadow: 0 0 0 10px rgba(220,38,38,0); } }

/* v0.65.77: Live board header: greeting, clock, mood, scoreboard, world clocks, sky by time of day */
.og-hello { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 28px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.og-sky { position: absolute; inset: 0; pointer-events: none; opacity: .9; transition: background 1.5s; }
.og-hello.is-dawn .og-sky { background: linear-gradient(120deg, rgba(251,146,60,.20), rgba(244,114,182,.10) 45%, transparent 75%); }
.og-hello.is-day .og-sky { background: linear-gradient(120deg, rgba(56,189,248,.18), rgba(99,102,241,.08) 50%, transparent 80%); }
.og-hello.is-dusk .og-sky { background: linear-gradient(120deg, rgba(249,115,22,.20), rgba(168,85,247,.14) 50%, transparent 85%); }
.og-hello.is-night .og-sky { background:
    radial-gradient(1.4px 1.4px at 8% 22%, rgba(255,255,255,.85), transparent 60%), radial-gradient(1px 1px at 18% 70%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 31% 35%, rgba(255,255,255,.75), transparent 60%), radial-gradient(1px 1px at 44% 12%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 57% 58%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 66% 26%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 80%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 90% 18%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(120deg, rgba(30,58,138,.45), rgba(76,29,149,.25) 55%, transparent 90%); }
html:not(.ob-dark) .og-hello.is-night .og-sky { background: linear-gradient(120deg, rgba(30,58,138,.16), rgba(76,29,149,.08) 55%, transparent 90%); }
.og-hello-main, .og-hello-side { position: relative; min-width: 0; }
.og-hello-main { flex: 1 1 420px; }
.og-hello-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 0 1 auto; }
.og-eyebrow { margin: 0 0 6px; font: 600 .72rem var(--og-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.og-hi { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.02em; line-height: 1.15; }
.og-when { margin: 8px 0 0; color: var(--text-2); font-size: .92rem; }
.og-clock { font: 600 1rem var(--og-mono, ui-monospace, monospace); color: var(--text); font-variant-numeric: tabular-nums; }
.og-tzl { font-size: .75rem; opacity: .8; }
.og-hisub { display: inline-block; margin-left: 6px; font-style: italic; opacity: .85; }
.og-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.og-mood, .og-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.og-mood.is-ok { border-color: rgba(22,163,74,.4); color: #15803D; background: rgba(22,163,74,.08); }
.og-mood.is-win { border-color: rgba(124,58,237,.45); color: #6D28D9; background: rgba(124,58,237,.10); }
.og-mood.is-warn { border-color: rgba(217,119,6,.45); color: #B45309; background: rgba(217,119,6,.10); }
.og-mood.is-bad { border-color: rgba(220,38,38,.5); color: #B91C1C; background: rgba(220,38,38,.10); animation: og-blink 2s ease-in-out infinite; }
@keyframes og-blink { 50% { box-shadow: 0 0 0 4px rgba(220,38,38,.12); } }
.og-chip.is-fest { border-color: rgba(234,179,8,.5); background: rgba(234,179,8,.12); }
.og-chip.is-streak { border-color: rgba(249,115,22,.45); background: rgba(249,115,22,.10); }
.og-chip.is-fast { border-color: rgba(14,165,233,.45); background: rgba(14,165,233,.10); }
.og-score { margin: 14px 0 0; font-size: .88rem; color: var(--text-2); }
.og-score b { color: var(--text); font-variant-numeric: tabular-nums; }
.og-clocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.og-clocks li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "f l" "t t" "d d"; column-gap: 6px; align-items: center; padding: 8px 12px; min-width: 92px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); }
.og-cf { grid-area: f; font-size: .95rem; } .og-cl { grid-area: l; font-size: .72rem; color: var(--text-2); white-space: nowrap; }
.og-clocks b { grid-area: t; font: 700 1.15rem var(--og-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; margin-top: 2px; }
.og-clocks em { grid-area: d; font-style: normal; font-size: .68rem; color: var(--text-2); }
html.is-orbit.ob-dark .og-hello { background: #0F1621; border-color: #223044; }
html.is-orbit.ob-dark .og-mood.is-ok { color: #4ADE80; } html.is-orbit.ob-dark .og-mood.is-win { color: #C4B5FD; }
html.is-orbit.ob-dark .og-mood.is-warn { color: #FBBF24; } html.is-orbit.ob-dark .og-mood.is-bad { color: #F87171; }
html.is-orbit.ob-dark .og-clocks li, html.is-orbit.ob-dark .og-mood, html.is-orbit.ob-dark .og-chip { background: rgba(15,22,33,.55); }
@media (max-width: 1100px) { .og-hello-side { align-items: stretch; flex: 1 1 100%; } .og-clocks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .og-hello { padding: 16px; border-radius: 14px; }
  .og-hisub { display: block; margin: 4px 0 0; } .og-eb-x { display: none; }
  .og-clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-clocks li { min-width: 0; }
}
/* v0.65.79: the date and time live in the clocks (each with its own date); the line under the greeting is just the cheer */
.og-when .og-hisub { margin-left: 0; }
.og-clocks em { font-size: .72rem; margin-top: 2px; }
.og-clocks li.is-home { border-color: color-mix(in srgb, var(--accent, #2DD4BF) 45%, var(--border)); }
/* v0.65.80: Live board header on phones: compact. Greeting + line, chips in a tight wrap (short texts), the four
   clocks in one row, scoreboard small, search last. */
@media (max-width: 600px) {
  .og-hello { padding: 14px 14px 12px; gap: 10px; }
  .og-eyebrow { display: none; }
  .og-hi { font-size: 1.45rem; }
  .og-when { margin-top: 4px; font-size: .82rem; }
  .og-hisub { margin: 0; }
  .og-chips { gap: 6px; margin-top: 10px; }
  .og-mood, .og-chip { padding: 4px 10px; font-size: .76rem; line-height: 1.35; border-radius: 12px; }
  .og-long { display: none; }
  .og-score { margin-top: 10px; font-size: .78rem; line-height: 1.5; }
  .og-hello-side { gap: 8px; }
  .og-hello-side .og-search { order: 2; min-width: 0; }
  .og-clocks { order: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .og-clocks li { grid-template-columns: 1fr; grid-template-areas: "f" "t" "d"; justify-items: center; text-align: center; padding: 6px 2px; border-radius: 10px; }
  .og-cl { display: none; }
  .og-cf { font-size: .85rem; line-height: 1; }
  .og-clocks b { font-size: .9rem; margin-top: 3px; letter-spacing: -.02em; }
  .og-clocks li.is-home b { font-size: .82rem; }
  .og-clocks em { font-size: .6rem; margin-top: 1px; white-space: nowrap; }
}
@media (min-width: 601px) { .og-long { display: inline; } }
/* v0.65.81: header texts: the mood has a short phone text; scoreboard in cells (desktop: one line with dots;
   phones: one even row of number + label); the chips one even row too */
.og-short { display: none; }
.og-sc i { font-style: normal; }
.og-sc-h { margin-right: 4px; }
.og-sc + .og-sc::before { content: "·"; margin: 0 6px; color: var(--text-2); }
@media (max-width: 600px) {
  .og-long { display: none; } .og-short { display: inline; }
  .og-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
  .og-mood, .og-chip { justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; min-height: 30px; padding: 5px 8px; }
  .og-mood > span, .og-chip > span { overflow: hidden; text-overflow: ellipsis; }
  .og-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
  .og-sc-h { display: none; }
  .og-sc { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, var(--surface) 75%, transparent); text-align: center; min-width: 0; }
  .og-sc + .og-sc::before { content: none; }
  .og-sc b { font-size: .9rem; line-height: 1.2; white-space: nowrap; }
  .og-sc i { font-size: .6rem; color: var(--text-2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  html.is-orbit.ob-dark .og-sc { background: rgba(15,22,33,.55); }
}

/* v0.65.82: Orbit → Staff accounts → On the brand panels */
.bs-card { margin-top: 18px; }
.bs-table { display: grid; gap: 0; margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bs-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(var(--bs-n, 2), minmax(150px, 1fr)) 84px; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--border); margin: 0; }
.bs-row:first-child { border-top: 0; }
.bs-th { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); background: color-mix(in srgb, var(--surface) 70%, var(--border)); }
.bs-who b { display: block; }
.bs-cell select { width: 100%; }
.bs-k { display: none; }
.bs-go { text-align: right; }
.bs-new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin: 6px 0 8px; }
.bs-new-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 600; }
@media (max-width: 760px) {
  .bs-th { display: none; }
  .bs-row { grid-template-columns: 1fr; gap: 8px; }
  .bs-k { display: block; font-size: .72rem; color: var(--text-2); margin-bottom: 2px; }
  .bs-go { text-align: left; }
}
/* v0.65.85: Event stream: one line per event on desktop, long text ends in "…" (full text on hover) */
@media (min-width: 821px) { .og-ev { flex-wrap: nowrap; white-space: nowrap; } .og-ev-x { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* v0.65.87: live chat translation (in the browser) */
.dg-tr-slot:empty { display: none; }
.dg-tr { margin-top: 3px; max-width: 100%; font-size: .78rem; line-height: 1.35; color: var(--text-2, #5F6368); overflow-wrap: anywhere; }
.dg-tr-k { font-weight: 600; color: var(--text, #1F2328); margin-right: 2px; }
.lc-m-staff .dg-tr, .obd-m-staff .dg-tr { text-align: right; }
.dg-tr-btn { border: 1px solid var(--border, #DADCE0); background: transparent; color: inherit; font: inherit; font-size: .75rem; border-radius: 999px; padding: 1px 8px; cursor: pointer; }
.dg-tr-btn:hover { border-color: currentColor; }
.dg-tr-send { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-2, #5F6368); white-space: nowrap; cursor: pointer; }
.dg-tr-send[hidden] { display: none; }
.dg-tr-send span { font-weight: 600; color: var(--text, #1F2328); }
.obd-foot { justify-content: space-between; align-items: center; gap: 8px; }
.obd-foot .dg-tr-send { margin-right: auto; }
.obd-end.is-armed { background: #B91C1C; color: #fff; border-radius: 6px; padding: 2px 8px; text-decoration: none; }
/* v0.65.89: Team chat on phones (Orbit): the chat fills the screen between the top bar and the tab bar; no page title;
   while typing, the tab bar steps aside so the reply box sits right above the keyboard */
@media (max-width: 820px) {
  html.is-orbit .ob-chat-head { display: none; }
  html.is-orbit .chat-page-slot { margin: -6px -16px 0; }
  html.is-orbit .chat-panel.chat-full { height: calc(100vh - 57px - 72px); height: calc(100dvh - 57px - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 320px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  html.is-orbit body:has(.chat-full textarea:focus) .om-tabs { display: none; }
  html.is-orbit body:has(.chat-full textarea:focus) { padding-bottom: env(safe-area-inset-bottom); }
  html.is-orbit body:has(.chat-full textarea:focus) .chat-panel.chat-full { height: calc(100dvh - 57px - 6px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  html.is-orbit .chat-full .chat-conv-head { padding-right: 76px !important; }
}
/* five tabs on narrow phones */
@media (max-width: 380px) { html.is-orbit .om-tabs a span { font-size: .66rem; } }
/* v0.65.92: Team chat on phones, pinned by orbit-app.js (top / bottom set there) */
html.is-orbit.om-chatfix, html.is-orbit.om-chatfix body { overflow: hidden; overscroll-behavior: none; }
html.is-orbit.om-chatfix .chat-page-slot { position: fixed; left: 0; right: 0; margin: 0; z-index: 40; display: flex; }
html.is-orbit.om-chatfix .chat-page-slot .chat-panel.chat-full { height: auto !important; min-height: 0 !important; flex: 1 1 auto; width: 100%; }
/* v0.65.96: Orbit Live chat: History tab (search, list, older chats) and one "more" menu for the brand pages */
.lcx-hsearch { margin: 0 0 10px; }
.lcx-hsearch input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border: 1px solid var(--x-line2, #CBD5E1); border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; color: inherit; }
.lcx-hist .lc-item-top b { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lcx-hist .lc-item-top b .ob-tag { flex: none; }
.lcx-hnote { margin: 8px 4px 0; color: var(--x-mute, #64748B); }
.lcx-hnote:empty { display: none; }
.lcx-hmore { display: block; width: 100%; margin-top: 8px; }
.lcx-hmore[hidden] { display: none; }
.lcx-more-list { min-width: 300px; }
.lcx-more-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 10px; }
.lcx-more-row + .lcx-more-row { border-top: 1px solid var(--x-line, #E5E7EB); }
.lcx-more-b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.lcx-links .lcx-more-links { display: inline-flex; gap: 2px; }
.lcx-links .lcx-more-list .lcx-more-links a { padding: 7px 10px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) { .lcx-more-row { flex-wrap: wrap; } .lcx-more-list { min-width: 0; } }
.lcx-more-t { display: none; }
@media (max-width: 820px) { html.is-orbit .lcx-more > summary { gap: 8px; } html.is-orbit .lcx-more .lcx-more-t { display: inline; } }
/* v0.65.98: Visitors table row buttons: pills with an icon, one look per action */
.lcx-vbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid #D5DCE6; background: #fff; color: #0E1B33;
  font: 600 .82rem/1 var(--f-body, inherit); cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(14,27,51,.06); transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; }
.lcx-vbtn svg { flex: none; opacity: .85; }
.lcx-vbtn:hover { background: #0E1B33; border-color: #0E1B33; color: #fff; box-shadow: 0 3px 10px rgba(14,27,51,.18); }
.lcx-vbtn:active { transform: translateY(1px); }
.lcx-vbtn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.lcx-vbtn.is-invite { background: #F5EEFF; border-color: #E4D4FB; color: #6B21A8; }
.lcx-vbtn.is-invite:hover { background: #7E22CE; border-color: #7E22CE; color: #fff; }
.lcx-vbtn.is-help { background: #C2410C; border-color: #C2410C; color: #fff; }
.lcx-vbtn.is-help:hover { background: #9A3412; border-color: #9A3412; }
.lcx-vbtn.is-open { background: #E8F7EE; border-color: #BFE7CE; color: #166534; }
.lcx-vbtn.is-open:hover { background: #15803D; border-color: #15803D; color: #fff; }
.lcx-vtable tr.is-customer { cursor: pointer; }
@media (min-width: 821px) { .lcx-vtable th:nth-child(7) { width: 168px; } .lcx-vtable td.lcx-vact { overflow: visible; text-overflow: clip; } }
html.ob-dark .lcx-vbtn.is-help { background: #C2410C; border-color: #C2410C; color: #fff; }
html.ob-dark .lcx-vbtn.is-help:hover { background: #EA580C; border-color: #EA580C; }
html.ob-dark .lcx-vbtn.is-invite:hover { background: #7E22CE; border-color: #7E22CE; color: #fff; }
html.ob-dark .lcx-vbtn.is-open:hover { background: #15803D; border-color: #15803D; color: #fff; }
html.ob-dark .lcx-vbtn:hover { color: #fff; }
/* v0.65.99: billing address for card / PayPal (checkout summary and invoice pay box) */
.co-addr, .iv-addr { border: 1px solid var(--line, #E2E8F0); border-radius: 12px; margin: 0 0 12px; padding: 12px 12px 4px; background: color-mix(in srgb, currentColor 3%, transparent); }
.co-addr[hidden] { display: none; }
.co-addr legend, .iv-addr legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.co-addr legend small, .iv-addr legend small { font-weight: 400; opacity: .7; margin-left: 4px; }
.co-addr .field, .iv-addr .field { margin-bottom: 8px; }
.co-addr-row, .iv-addr-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.iv-addr .iv-fine { margin: 2px 0 8px; }
/* v0.65.99: ticket page (brand panel and Orbit): reply on top, newest first, older messages folded, pictures, split */
.tk-reply { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.04); }
.tk-reply > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: text; list-style: none; border-radius: 16px; }
.tk-reply > summary::-webkit-details-marker { display: none; }
.tk-reply > summary:hover .tk-reply-ph { border-color: var(--accent, #F2B300); }
.tk-reply > summary:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.tk-reply-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft, #FFF7DB); color: var(--accent-text, #8A6100); }
.tk-reply-av svg { width: 16px; height: 16px; }
.tk-reply-ph { flex: 1; min-width: 0; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s; }
.tk-reply-hint { flex: none; font-size: .78rem; color: var(--text-2); opacity: .8; }
.tk-reply[open] > summary { cursor: pointer; padding-bottom: 6px; }
.tk-reply[open] > summary .tk-reply-ph { border-color: transparent; background: transparent; padding-left: 0; font-weight: 600; color: var(--text); }
.tk-reply[open] > summary .tk-reply-hint { display: none; }
.tk-reply > form { padding: 4px 16px 16px; display: grid; gap: 10px; }
.tk-reply > form .field { margin: 0; }
.tk-reply textarea { width: 100%; box-sizing: border-box; min-height: 140px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font: inherit; line-height: 1.55; background: var(--surface); color: inherit; resize: vertical; }
.tk-reply-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-reply-row .check { margin-right: auto; }
.tk-reply-row select { width: auto; min-width: 190px; }
.tk-reply-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg, #FFF8DB); color: var(--text-2); }
.tk-thead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; font-size: .86rem; }
.tk-thead b { font-weight: 700; }
.tk-sys { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0; padding: 6px 14px; font-size: .8rem; color: var(--text-2); text-align: center; }
.tk-sys span { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px dashed var(--border); }
.tk-pics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-pic { display: block; width: 132px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); transition: transform .12s, box-shadow .12s; }
.tk-pic:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,23,42,.14); }
.tk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-files a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: inherit; text-decoration: none; font-size: .84rem; max-width: 100%; }
.tk-files a:hover { border-color: var(--text-2); }
.tk-files a svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.tk-files a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-files small { color: var(--text-2); flex: none; }
.tk-older { margin-top: 4px; }
.tk-older > summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 12px; cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.tk-older > summary::-webkit-details-marker { display: none; }
.tk-older > summary:hover { color: var(--text); border-style: solid; }
.tk-older[open] > summary { margin-bottom: 10px; }
.tk-older-n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .78rem; color: var(--text); }
.tk-rows { display: grid; gap: 6px; }
.tk-row > summary { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; list-style: none; font-size: .86rem; }
.tk-row > summary::-webkit-details-marker { display: none; }
.tk-row > summary:hover { border-color: var(--text-2); }
.tk-row.is-staff > summary { background: color-mix(in srgb, var(--surface) 95%, #2F7BFF); }
.tk-row.is-note > summary { background: var(--warn-bg, #FFF8DB); }
.tk-row-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; background: #EEF1F6; color: #334155; }
.tk-row.is-staff .tk-row-av { background: linear-gradient(135deg, #2F7BFF, #1F4FB8); color: #fff; }
.tk-row > summary b { white-space: nowrap; font-weight: 600; }
.tk-row-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tk-row-clip svg { width: 14px; height: 14px; opacity: .6; display: block; }
.tk-row > summary time { color: var(--text-2); font-size: .78rem; white-space: nowrap; }
.tk-row[open] > summary { display: none; }
.tk-row-full { margin: 4px 0 8px; }
.tk-more { position: relative; margin-left: 2px; }
.tk-more > summary { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; list-style: none; color: var(--text-2); }
.tk-more > summary::-webkit-details-marker { display: none; }
.tk-more > summary:hover, .tk-more[open] > summary { background: var(--hover, rgba(15,23,42,.06)); color: var(--text); }
.tk-more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 280px; display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 40px rgba(15,23,42,.18); font-weight: 400; }
.tk-more-pop input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); color: inherit; }
.tk-more-pop .btn { justify-self: start; }
.ob-parent, .tk-secure-note { display: inline-block; font-size: .84rem; }
.ob-parent { margin: 2px 0 4px; color: var(--accent-text, #8A6100); }
.ob-ticket .thread::before { left: 19px; }
@media (max-width: 640px) {
  .tk-reply-hint { display: none; }
  .tk-row > summary { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .tk-row > summary b, .tk-row-clip { display: none; }
  .tk-pic { width: calc(50% - 4px); height: 110px; }
}
/* picture viewer */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(9,12,18,.88); backdrop-filter: blur(4px); }
.lb.is-on { display: flex; }
html.lb-open { overflow: hidden; }
.lb-fig { margin: 0; max-width: min(92vw, 1400px); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-width: 100%; max-height: calc(90vh - 44px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-fig figcaption { display: flex; gap: 14px; align-items: center; color: #E5E7EB; font-size: .86rem; }
.lb-dl { color: #fff; font-weight: 600; text-decoration: none; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.lb-dl:hover { background: rgba(255,255,255,.12); }
.lb-x, .lb-nav { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.lb-x { top: 18px; right: 18px; width: 42px; height: 42px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 34px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb.is-one .lb-nav { display: none; }
.tk-more-pop.is-fixed { position: fixed; right: auto; }
.tk-thread .msg-card { position: relative; }
.tk-thread .msg-card > header:has(.tk-more) { padding-right: 34px; }
.tk-more { position: absolute; top: 10px; right: 10px; margin: 0; }
@media (max-width: 640px) { .tk-thread .msg-time { white-space: normal; } }

/* v0.66.2: client page in tabs, with search over services / invoices / tickets / emails */
.tabs.sx-chips.cx-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; margin: 18px 0 18px; padding: 5px; gap: 2px; border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 24px -18px rgba(16, 24, 40, .35); }
.cx-tabs::-webkit-scrollbar { display: none; }
.tabs.sx-chips.cx-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 12px; border-radius: 11px; font-size: .87rem; transition: background .15s, color .15s, box-shadow .15s; }
.cx-tabs a .ico { width: 16px; height: 16px; flex: none; color: var(--text-2); opacity: .75; transition: color .15s, opacity .15s; }
.tabs.sx-chips.cx-tabs a:hover { background: var(--surface-2); color: var(--text); }
.cx-tabs a:hover .ico { opacity: 1; }
.tabs.sx-chips.cx-tabs a[aria-current] { box-shadow: 0 8px 18px -10px rgba(14, 27, 51, .7) !important; }
.cx-tabs a[aria-current] .ico { color: #FF7A45; opacity: 1; }
.cx-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: .72rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-n.is-alert { background: #FFEDD5; border-color: #FED7AA; color: #C2410C; }
.cx-tabs a[aria-current] .cx-n { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
.cx-tabs a[aria-current] .cx-n.is-alert { background: #FF7A45; color: #fff; }
.theme-b .cx-n.is-alert { background: rgba(255, 122, 69, .18); border-color: transparent; color: #FFB08A; }
@media (max-width: 640px) { .tabs.sx-chips.cx-tabs a { padding: 8px 12px; } }
.cx-tabs-box { container-type: inline-size; }
.cx-tabs-box .tabs.sx-chips.cx-tabs { margin: 18px 0; }
@container (max-width: 1130px) { .cx-tabs .cx-n:not(.is-alert) { display: none; } }
@container (max-width: 900px) { .cx-tabs a .ico { display: none; } }
@container (max-width: 560px) { .cx-tabs a .ico { display: inline-block; } }
.cx-split.is-full { grid-template-columns: minmax(0, 1fr); }
.cx-panel[hidden], .cx-aside[hidden], [data-cxf-row][hidden] { display: none !important; }
.cx-panel > :first-child { margin-top: 0; }
.cx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.cx-stat { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.cx-stat:hover { border-color: var(--text-2); transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(16, 24, 40, .5); }
.cx-stat span { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.cx-stat b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cx-stat small { font-size: .78rem; color: var(--text-2); }
.cx-stat.is-warn { border-color: #F5C26B; background: linear-gradient(0deg, rgba(245, 158, 11, .06), rgba(245, 158, 11, .06)), var(--surface); }
.cx-stat.is-warn b { color: #B45309; }
.cx-more { margin: 8px 2px 0; }
.cxf-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.cxf-q { position: relative; flex: 1 1 280px; display: block; margin: 0; }
.cxf-q .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-2); pointer-events: none; }
.cxf-q input { width: 100%; padding-left: 40px; height: 44px; border-radius: 12px; font-size: .95rem; }
.cxf-bar select { width: auto; min-width: 160px; height: 44px; border-radius: 12px; }
.cxf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cxf-chips button { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 .82rem/1.3 inherit; font-family: inherit; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.cxf-chips button:hover { border-color: var(--text-2); color: var(--text); }
.cxf-chips button[aria-pressed="true"] { background: #0E1B33; border-color: #0E1B33; color: #fff; }
.cxf-chips button[aria-pressed="true"] .seg-n { opacity: .8; }
.theme-c .cxf-chips button[aria-pressed="true"] { background: #23282B; border-color: #23282B; }
mark.cxf-hl { background: #FDE68A; color: inherit; border-radius: 3px; padding: 0 1px; }
.theme-b mark.cxf-hl { background: rgba(250, 204, 21, .35); }
.cxf-count { margin: 8px 2px 0; min-height: 1em; }
.cxf-empty { margin: 12px 2px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.svc-meta .cx-host, .svc-meta .cx-xip { color: var(--text-2); }
@media (max-width: 640px) { .cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-stat b { font-size: 1.2rem; } .cxf-bar select { flex: 1 1 100%; } }

/* v0.66.5: client Credit card: money received (a payment) or goodwill */
.cr-kind { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.cr-kind legend { margin-bottom: 6px; }
.cr-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.cr-opt:hover { border-color: var(--text-2); }
.cr-opt input { margin-top: 3px; flex: none; }
.cr-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-opt b { font-size: .9rem; }
.cr-opt small { font-size: .78rem; color: var(--text-2); line-height: 1.35; }
.cr-opt:has(input:checked) { border-color: #0E1B33; background: var(--surface-2); box-shadow: inset 0 0 0 1px #0E1B33; }
.cr-money { padding: 10px 12px 2px; margin: 0 0 12px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border); }
.cr-money[hidden], .cr-neg[hidden] { display: none !important; }
.cr-neg { margin: -6px 0 10px; }
.cr-done { color: var(--ok, #15803d); font-weight: 600; }
.cr-rec { margin-top: 6px; }
.cr-rec > summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--accent); list-style: none; }
.cr-rec > summary::-webkit-details-marker { display: none; }
.cr-rec[open] > summary { margin-bottom: 8px; }
.cr-rec form { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.cr-rec .field { margin-bottom: 8px; }
.ledger-list li:has(> .cr-rec) { flex-wrap: wrap; }
.ledger-list li > .cr-rec { flex-basis: 100%; margin-top: 4px; }

/* =====================================================================================================
   v0.66.9: AmazingRDP — the shared command-center parts (dashboard, server, invoice and shared-RDP heroes, main buttons,
   warm tiles, live chat console) in design F's colours: ink #0B1020, blue #3D5AFE, amber #FFC24B. Amber carries ink words.
   ===================================================================================================== */
.brand-amazingrdp.site-look :is(.vpx, .iv-hero, .rdpx-hero, .dsx-hero, .dsx-hero.is-busy), .brand-amazingrdp.site-look #main .page-head.page-head:has(h1) {
  background: radial-gradient(900px 380px at 88% -25%, rgba(61,90,254,.50), transparent 60%), radial-gradient(700px 400px at -10% 125%, rgba(132,150,255,.22), transparent 60%), linear-gradient(135deg, #0B1020, #141B36);
  box-shadow: 0 24px 60px -30px rgba(11,16,32,.55); }
.brand-amazingrdp.site-look .vpx .head-acts .btn-signal, .brand-amazingrdp.site-look .vpx .head-acts summary.btn-signal { background: #FFC24B; color: #0B1020; box-shadow: 0 10px 24px -12px rgba(245,170,30,.7); }
.brand-amazingrdp.site-look .dsx-kicker .ico { color: #FFC24B; }
.brand-amazingrdp.site-look .dsx-tile:nth-child(3) { --c: #8A5A00; --c2: #FFF3D6; }
.brand-amazingrdp.site-look .vpx-btn.is-main, .brand-amazingrdp.site-look .rdpx-btn { background: #FFC24B; color: #0B1020 !important; box-shadow: 0 10px 28px -10px rgba(245,170,30,.7); }
.brand-amazingrdp.site-look .vpx-btn.is-main:hover, .brand-amazingrdp.site-look .rdpx-btn:hover { background: #FFB627; }
.brand-amazingrdp.site-look :is(.vpx-tile, .cdx-stat, .cdx-card, .sl-row).ut-net, .brand-amazingrdp.site-look .vpx-tile.is-warm { --c: #8A5A00; --c2: #FFF3D6; }
.brand-amazingrdp.site-look .vpx-bar i { background: linear-gradient(90deg, #3D5AFE, #8496FF); }
.brand-amazingrdp.site-look .ctl.tile > summary i { background: #EEF1FF; color: #3D5AFE; }
.brand-amazingrdp.site-look .ctl.tile > summary i.t-or { background: #FFF3D6; color: #8A5A00; }
.brand-amazingrdp.site-look .rdpx-steps li.is-first, .brand-amazingrdp.site-look .rdpx-ic:hover { border-color: #3D5AFE; box-shadow: 0 0 0 3px rgba(61,90,254,.14); background: #F4F6FF; color: #2A3FCC; }
.brand-amazingrdp.site-look .is-first .rdpx-n { background: #FFC24B; color: #0B1020; }
.brand-amazingrdp.site-look .rdpx-pw { background: #0B1020; color: #FFD98A; }
.brand-amazingrdp.site-look .hold-days input:checked + span { border-color: #3D5AFE; background: #F4F6FF; box-shadow: 0 0 0 3px rgba(61,90,254,.16); }
.brand-amazingrdp.site-look .hold-days input:focus-visible + span { outline-color: #3D5AFE; }
.brand-amazingrdp.site-look .lcx { --x-acc: #3D5AFE; --x-acc-soft: #EEF1FF; --x-warm: #8A5A00; --x-text: #0B1020; --x-hi: #0B1020; }
.brand-amazingrdp.site-look .lcx-fullbtn[aria-pressed="true"] { background: #0B1020; border-color: #0B1020; }
.brand-amazingrdp.site-look .dsx-hero { --dsx-tone: #3D5AFE; }
