@import url("../tokens/fonts.css");

/* ==========================================================================
   Circuit — electrical, precise switchgear for electricians' websites.
   Colours, spacing, radii, shadows, durations and easings come from tokens.css.
   Rules: transform/opacity for movement; entrance animations fill BACKWARDS;
   box-shadow changes only on one element's hover/press; one idle loop per screen
   (the emergency LED). Class prefix: ct-.
   ========================================================================== */

:root {
  --ct-cond: 75%;            /* Saira width for display headlines */
  --ct-semi: 87.5%;          /* Saira width for titles, labels, readouts */
  --ct-edge: #050607;        /* depth edge under switchgear */
  --ct-spark-edge: #9a7b00;  /* edge under spark-yellow rockers */
  --ct-alarm-edge: #7d140a;  /* edge under alarm rockers */
  --ct-spark-bd: transparent;/* outline around spark fills (ink in Schematic) */
  --ct-hi: rgb(255 255 255 / .07);
  --ct-field-bg: var(--sunk);
  --ct-lever: #c9cfcb;
  --ct-cell-off: #1d2328;
  --ct-screw: #3a434b;
  --ct-mark-tile: #20262b;
  --ct-mark-edge: #3a434b;
  --ct-scrim: rgb(4 6 8 / .72);
  --ct-tint: 14%;
  --ct-trace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cg fill='none' stroke='%231c2228' stroke-width='1.5'%3E%3Cpath d='M0 40h56v48h72V40h64'/%3E%3Cpath d='M152 0v128h-60v32h60v32'/%3E%3Cpath d='M0 160h36M192 160h-20'/%3E%3Ccircle cx='40' cy='160' r='4'/%3E%3Ccircle cx='168' cy='160' r='4'/%3E%3Crect x='80' y='82' width='24' height='12' rx='2' fill='%230f1215'/%3E%3C/g%3E%3Cg fill='%231c2228'%3E%3Ccircle cx='152' cy='40' r='3'/%3E%3Ccircle cx='128' cy='88' r='2.5'/%3E%3Ccircle cx='56' cy='40' r='2.5'/%3E%3Ccircle cx='92' cy='128' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  --ct-grid: none;
  color-scheme: dark;
}
[data-theme="light"] {
  color-scheme: light;
  --ct-edge: #a3a8a1;
  --ct-spark-edge: #13171b;
  --ct-alarm-edge: #6e130a;
  --ct-spark-bd: #13171b;
  --ct-hi: rgb(255 255 255 / .9);
  --ct-field-bg: var(--surface);
  --ct-lever: #3a4248;
  --ct-cell-off: #d7d8d1;
  --ct-screw: #c3c6be;
  --ct-mark-tile: #13171b;
  --ct-mark-edge: #13171b;
  --ct-scrim: rgb(19 23 27 / .5);
  --ct-tint: 11%;
  --ct-trace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cg fill='none' stroke='%23d3d6ce' stroke-width='1.5'%3E%3Cpath d='M0 40h56v48h72V40h64'/%3E%3Cpath d='M152 0v128h-60v32h60v32'/%3E%3Cpath d='M0 160h36M192 160h-20'/%3E%3Ccircle cx='40' cy='160' r='4'/%3E%3Ccircle cx='168' cy='160' r='4'/%3E%3Crect x='80' y='82' width='24' height='12' rx='2' fill='%23eeede6'/%3E%3C/g%3E%3Cg fill='%23d3d6ce'%3E%3Ccircle cx='152' cy='40' r='3'/%3E%3Ccircle cx='128' cy='88' r='2.5'/%3E%3Ccircle cx='56' cy='40' r='2.5'/%3E%3Ccircle cx='92' cy='128' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  --ct-grid: linear-gradient(#e6e5dc 1px, transparent 1px), linear-gradient(90deg, #e6e5dc 1px, transparent 1px);
}

/* the board: enclosure charcoal (Live) or drafting paper with a 24px grid (Schematic), both
   carrying a faint wiring diagram. Static; scrolls with the page. */
body {
  margin: 0;
  background-color: var(--page);
  background-image: var(--ct-trace), var(--ct-grid), var(--ct-grid);
  background-size: 192px 192px, 24px 24px, 24px 24px;
  background-position: 0 0, -1px -1px, -1px -1px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-theme="dark"] body, :root:not([data-theme]) body { background-image: var(--ct-trace); background-size: 192px 192px; }

.ct-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-6); box-sizing: border-box; }
.ct-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); box-sizing: border-box; }
.ct-col { display: flex; flex-direction: column; gap: var(--space-4); }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ct-sr, .ct-sr-input { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.ct-d { margin: 0; font: 800 64px/60px var(--font-display); font-stretch: var(--ct-cond); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.ct-title { margin: 0; font: 700 36px/40px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.ct-h { margin: 0; font: 700 21px/26px var(--font-display); color: var(--ink); }
.ct-readout { font: 600 30px/32px var(--font-display); font-stretch: var(--ct-semi); font-variant-numeric: tabular-nums; color: var(--ink); }
.ct-label { display: block; font: 600 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.ct-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--current); }
.ct-eyebrow::before { content: ""; width: 14px; height: 2px; background: currentColor; box-shadow: 14px 0 0 -0px transparent; border-radius: 1px; }
.ct-eyebrow::after { content: none; }
.ct-lede { margin: 0; font-size: 17px; line-height: 26px; color: var(--ink-soft); }
.ct-small { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-overline { width: 100%; font: 600 12px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 600px) {
  .ct-d { font-size: 42px; line-height: 42px; }
  .ct-title { font-size: 28px; line-height: 32px; }
}

/* ---------- icons ---------- */
.ct-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 6; }

/* ---------- focus ---------- */
.ct-btn:focus-visible, .ct-ibtn:focus-visible, .ct-tab:focus-visible, .ct-seg__opt:focus-visible, .ct-select__btn:focus-visible,
.ct-acc__btn:focus-visible, .ct-card:focus-visible, .ct-mcb:focus-visible, .ct-day:focus-visible, .ct-slot:focus-visible, .ct-evq__pick:focus-visible,
.ct-plate:focus-visible, .ct-tip:focus-visible, .ct-brand:focus-visible, .ct-header__link:focus-visible, .ct-header__dlink:focus-visible, .ct-header__phone:focus-visible,
.ct-emg__call:focus-visible, .ct-pg__book:focus-visible, .ct-tag__x:focus-visible, .ct-toast__action:focus-visible, .ct-tabs__panel:focus-visible,
.ct-footer a:focus-visible, .ct-card__link:focus-visible, .ct-link:focus-visible {
  outline: 2px solid var(--current); outline-offset: 3px;
}
.ct-sr-input:focus-visible + .ct-breaker, .ct-sr-input:focus-visible + .ct-check__box, .ct-sr-input:focus-visible + .ct-radio__screw { outline: 2px solid var(--current); outline-offset: 3px; }
.ct-link { color: var(--current); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- shared motion ---------- */
@keyframes ct-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes ct-rise-sm { from { opacity: 0; transform: translateY(4px); } }
@keyframes ct-fade { from { opacity: 0; } }
@keyframes ct-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.ct-reveal.is-in { animation: ct-rise var(--dur-energise) var(--ease-rocker) backwards; }
.ct-enter > * { animation: ct-rise var(--dur-energise) var(--ease-rocker) backwards; }
.ct-enter > :nth-child(2) { animation-delay: 50ms; } .ct-enter > :nth-child(3) { animation-delay: 100ms; } .ct-enter > :nth-child(4) { animation-delay: 150ms; }
.ct-enter > :nth-child(5) { animation-delay: 200ms; } .ct-enter > :nth-child(6) { animation-delay: 250ms; } .ct-enter > :nth-child(7) { animation-delay: 300ms; } .ct-enter > :nth-child(8) { animation-delay: 350ms; }
.ct-enter > :nth-child(n+9) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  [class*="ct-"], [class*="ct-"]::before, [class*="ct-"]::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

/* ================================================================ Button (rocker) */
.ct-btn {
  --b-bg: var(--raised); --b-fg: var(--ink); --b-bd: var(--line-strong); --b-edge: var(--ct-edge); --b-hi: var(--ct-hi);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; box-sizing: border-box; border: 1px solid var(--b-bd); border-radius: var(--radius-md);
  background: var(--b-bg); color: var(--b-fg); font: 650 15px/1 var(--font-body); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 var(--b-hi), 0 4px 0 var(--b-edge);
  transform: translateY(0);
  transition: transform var(--dur-snap) var(--ease-rocker), box-shadow var(--dur-snap) var(--ease-rocker), background-color var(--dur-quick);
  margin-bottom: 4px;
}
.ct-btn::after { content: ""; position: absolute; inset: -3px -4px -8px -3px; z-index: -1; }
.ct-btn__face { display: inline-flex; align-items: center; gap: 8px; transition: opacity var(--dur-flick); }
.ct-btn .ct-icon { width: 18px; height: 18px; }
.ct-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--b-hi), 0 5px 0 var(--b-edge); }
.ct-btn:active { transform: perspective(520px) translateY(3px) rotateX(10deg); box-shadow: inset 0 1px 0 transparent, 0 1px 0 var(--b-edge);
  transition-duration: var(--dur-flick); transition-timing-function: var(--ease-press); }
.ct-btn--primary { --b-bg: var(--spark); --b-fg: var(--spark-ink); --b-bd: var(--ct-spark-bd); --b-edge: var(--ct-spark-edge); --b-hi: rgb(255 255 255 / .5); }
.ct-btn--danger { --b-bg: var(--alarm); --b-fg: var(--on-alarm); --b-bd: transparent; --b-edge: var(--ct-alarm-edge); --b-hi: rgb(255 255 255 / .22); }
.ct-btn--ghost { --b-bg: transparent; --b-bd: transparent; --b-edge: transparent; --b-hi: transparent; box-shadow: none; margin-bottom: 0; }
.ct-btn--ghost:hover { background: var(--raised); box-shadow: none; transform: none; }
.ct-btn--ghost:active { transform: translateY(1px); box-shadow: none; }
.ct-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 7px; }
.ct-btn--sm .ct-icon { width: 16px; height: 16px; }
.ct-btn--lg { height: 54px; padding: 0 24px; font-size: 16.5px; }
.ct-btn--lg .ct-icon { width: 20px; height: 20px; }
.ct-btn--block { display: flex; width: 100%; }
.ct-btn[disabled], .ct-btn[aria-disabled="true"] { cursor: not-allowed; opacity: .45; transform: none; box-shadow: inset 0 1px 0 transparent, 0 2px 0 var(--b-edge); }
.ct-btn--ghost[disabled] { box-shadow: none; }
.ct-btn.is-loading { cursor: progress; opacity: 1; }
.ct-btn.is-done { opacity: 1; cursor: default; }
.ct-btn.is-loading .ct-btn__face { opacity: 0; }
.ct-btn__charge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; opacity: 0; pointer-events: none; }
.ct-btn.is-loading .ct-btn__charge { opacity: 1; }
.ct-btn__charge i { position: relative; width: 7px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; overflow: hidden; }
.ct-btn__charge i::after { content: ""; position: absolute; inset: 1.5px; background: currentColor; border-radius: 1px; transform: scaleY(0); transform-origin: bottom; }
.ct-btn.is-loading .ct-btn__charge i::after { animation: ct-cell 1.2s var(--ease-current) infinite; }
.ct-btn.is-loading .ct-btn__charge i:nth-child(2)::after { animation-delay: .18s; }
.ct-btn.is-loading .ct-btn__charge i:nth-child(3)::after { animation-delay: .36s; }
@keyframes ct-cell { 0%, 12% { transform: scaleY(0); } 45%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* ================================================================ IconButton (square rocker key) */
.ct-ibtn {
  --b-bg: var(--raised); --b-fg: var(--ink); --b-bd: var(--line-strong); --b-edge: var(--ct-edge);
  position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; box-sizing: border-box;
  border: 1px solid var(--b-bd); border-radius: var(--radius-md); background: var(--b-bg); color: var(--b-fg); cursor: pointer; text-decoration: none;
  box-shadow: inset 0 1px 0 var(--ct-hi), 0 3px 0 var(--b-edge); transform: translateY(0);
  transition: transform var(--dur-snap) var(--ease-rocker), box-shadow var(--dur-snap) var(--ease-rocker), background-color var(--dur-quick);
  -webkit-tap-highlight-color: transparent; margin-bottom: 3px;
}
.ct-ibtn::after { content: ""; position: absolute; inset: -3px -4px -7px -3px; z-index: -1; }
.ct-ibtn .ct-icon { width: 20px; height: 20px; }
.ct-ibtn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ct-hi), 0 4px 0 var(--b-edge); }
.ct-ibtn:active { transform: perspective(300px) translateY(2px) rotateX(12deg); box-shadow: inset 0 1px 0 transparent, 0 1px 0 var(--b-edge); transition-duration: var(--dur-flick); transition-timing-function: var(--ease-press); }
.ct-ibtn--sm { width: 36px; height: 36px; border-radius: 7px; }
.ct-ibtn--sm .ct-icon { width: 18px; height: 18px; }
.ct-ibtn--ghost { --b-bg: transparent; --b-bd: transparent; --b-edge: transparent; box-shadow: none; margin-bottom: 0; }
.ct-ibtn--ghost:hover { background: var(--raised); box-shadow: none; transform: none; }
.ct-ibtn--ghost:active { transform: translateY(1px); box-shadow: none; }
.ct-ibtn--primary { --b-bg: var(--spark); --b-fg: var(--spark-ink); --b-bd: var(--ct-spark-bd); --b-edge: var(--ct-spark-edge); }
.ct-ibtn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
/* latching push switch: pressed stays 2px in and its LED lights */
.ct-ibtn__led { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-snap), box-shadow var(--dur-snap); }
.ct-ibtn[aria-pressed="true"] { transform: translateY(2px); box-shadow: inset 0 1px 0 transparent, 0 1px 0 var(--b-edge); }
.ct-ibtn[aria-pressed="true"] .ct-ibtn__led { background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-edge), 0 0 0 4px rgb(255 210 26 / .22); }
.ct-ibtn__count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--alarm); color: var(--on-alarm); font: 700 11px/20px var(--font-body); font-variant-numeric: tabular-nums; text-align: center; }

/* ================================================================ Toggle (breaker) */
.ct-toggle { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ct-toggle.is-disabled { cursor: not-allowed; opacity: .5; }
.ct-breaker {
  position: relative; flex: none; box-sizing: border-box; width: 34px; height: 54px; padding-top: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px;
  box-shadow: inset 0 1px 0 var(--ct-hi), 0 2px 0 var(--ct-edge);
}
.ct-breaker__led { width: 7px; height: 7px; border-radius: 50%; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-snap), box-shadow var(--dur-snap); }
.ct-breaker__slot { position: relative; width: 18px; height: 27px; border-radius: 3px; background: var(--sunk); box-shadow: var(--shadow-well); }
.ct-breaker__lever {
  position: absolute; left: 2px; right: 2px; bottom: 2px; height: 12px; border-radius: 2px;
  background: var(--ct-lever) repeating-linear-gradient(180deg, transparent 0 3px, rgb(0 0 0 / .18) 3px 4px) 0 3px / 100% 7px no-repeat;
  box-shadow: 0 2px 0 rgb(0 0 0 / .35);
  transform: translateY(0); transition: transform var(--dur-snap) var(--ease-snap);
}
.ct-breaker__rating { font: 700 8px/1 var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .04em; color: var(--ink-soft); }
.ct-toggle:hover .ct-breaker__lever { transform: translateY(-2px); }
.ct-sr-input:checked + .ct-breaker .ct-breaker__lever { transform: translateY(-11px); }
.ct-toggle:hover .ct-sr-input:checked + .ct-breaker .ct-breaker__lever { transform: translateY(-9px); }
.ct-sr-input:checked + .ct-breaker .ct-breaker__led { background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-edge), 0 0 0 4px rgb(255 210 26 / .2); }
.ct-toggle__text { display: flex; flex-direction: column; min-width: 0; }
.ct-toggle__label { font-weight: 600; color: var(--ink); line-height: 22px; }
.ct-toggle__hint { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-toggle__state { margin-left: auto; min-width: 3.2em; text-align: right; font: 700 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ct-sr-input:checked ~ .ct-toggle__state { color: var(--ink); }

/* ================================================================ Checkbox */
.ct-check, .ct-radio { position: relative; display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ct-check.is-disabled, .ct-radio.is-disabled { cursor: not-allowed; opacity: .5; }
.ct-check__box { flex: none; width: 22px; height: 22px; margin-top: 1px; box-sizing: border-box; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ct-field-bg); box-shadow: var(--shadow-well);
  transition: background-color var(--dur-flick), border-color var(--dur-flick); }
.ct-check:hover .ct-check__box { border-color: var(--current); }
.ct-check__svg { width: 18px; height: 18px; overflow: visible; }
.ct-check__mark { fill: none; stroke: var(--surface); stroke-width: 3.2; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-snap) var(--ease-current); }
.ct-sr-input:checked + .ct-check__box { background: var(--current); border-color: var(--current); box-shadow: none; }
.ct-sr-input:checked + .ct-check__box .ct-check__mark { stroke-dashoffset: 0; }
.ct-check__text { display: flex; flex-direction: column; min-width: 0; }
.ct-check__label { color: var(--ink); line-height: 24px; }
.ct-check__hint { font-size: 14px; line-height: 20px; color: var(--ink-soft); }

/* ================================================================ Radio (screw terminal) */
.ct-radio__screw { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--raised); box-shadow: inset 0 1px 0 var(--ct-hi), 0 1px 0 var(--ct-edge);
  transition: background-color var(--dur-snap), border-color var(--dur-snap); }
.ct-radio__screw i { position: absolute; left: 4px; right: 4px; top: 50%; height: 2.5px; margin-top: -1.25px; border-radius: 1px; background: var(--ink-soft);
  transform: rotate(0deg); transition: transform var(--dur-snap) var(--ease-snap), background-color var(--dur-snap); }
.ct-radio:hover .ct-radio__screw { border-color: var(--current); }
.ct-sr-input:checked + .ct-radio__screw { background: var(--spark); border-color: var(--ct-spark-edge); }
.ct-sr-input:checked + .ct-radio__screw i { transform: rotate(90deg); background: var(--spark-ink); }
.ct-radiogroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.ct-radiogroup legend { padding: 0; margin-bottom: 10px; }
.ct-radiogroup__list { display: flex; flex-direction: column; gap: 12px; }
.ct-radiogroup--inline .ct-radiogroup__list { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }

/* ================================================================ TextField */
.ct-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ct-field__box { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; box-sizing: border-box; overflow: hidden;
  background: var(--ct-field-bg); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-well);
  transition: border-color var(--dur-quick); }
.ct-field--lg .ct-field__box { height: 56px; }
.ct-field__box:hover { border-color: var(--ink-soft); }
.ct-field__trace { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--current); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-energise) var(--ease-current); pointer-events: none; }
.ct-field__box:focus-within { border-color: var(--current); }
.ct-field__box:focus-within .ct-field__trace { transform: scaleX(1); }
.ct-field__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/24px var(--font-body); outline: none; }
.ct-field__input::placeholder { color: var(--ink-soft); opacity: .8; }
textarea.ct-field__input { height: auto; padding: 12px 0; resize: vertical; }
.ct-field__box:has(textarea) { height: auto; align-items: flex-start; }
.ct-field__icon { width: 18px; height: 18px; color: var(--ink-soft); }
.ct-field__affix { color: var(--ink-soft); font: 600 15px/1 var(--font-display); font-stretch: var(--ct-semi); }
.ct-field__msg { display: flex; align-items: flex-start; gap: 6px; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-field__msg .ct-icon { width: 16px; height: 16px; margin-top: 2px; }
.ct-field__msg:empty { min-height: 0; }
.ct-field.has-error .ct-field__box { border-color: var(--alarm-text); }
.ct-field.has-error .ct-field__trace { background: var(--alarm-text); transform: scaleX(1); }
.ct-field.has-error .ct-field__msg { color: var(--alarm-text); }
.ct-field__box.is-shaking { animation: ct-shake 320ms var(--ease-rocker); }
.ct-field__input:disabled { cursor: not-allowed; }
.ct-field:has(.ct-field__input:disabled) .ct-field__box { opacity: .55; }

/* ================================================================ Select + Menu */
.ct-select__btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 12px 0 14px; box-sizing: border-box; cursor: pointer; text-align: left;
  background: var(--ct-field-bg); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-well); color: var(--ink); font: 400 16px/24px var(--font-body);
  transition: border-color var(--dur-quick); }
.ct-select__btn:hover { border-color: var(--ink-soft); }
.ct-select.is-open .ct-select__btn { border-color: var(--current); }
.ct-select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-select__value.is-placeholder { color: var(--ink-soft); }
.ct-select__chev { width: 18px; height: 18px; color: var(--ink-soft); transition: transform var(--dur-quick) var(--ease-rocker); }
.ct-select.is-open .ct-select__chev { transform: rotate(180deg); }
.ct-menu { position: fixed; z-index: 1000; box-sizing: border-box; max-width: calc(100vw - 16px); max-height: 300px; overflow: auto; margin: 0; padding: 5px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-float); color: var(--ink); outline: none; }
.ct-menu.is-open { animation: ct-drop var(--dur-quick) var(--ease-rocker) backwards; }
.ct-menu.is-open[data-side="top"] { animation-name: ct-lift; }
@keyframes ct-drop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes ct-lift { from { opacity: 0; transform: translateY(4px); } }
.ct-menu__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; line-height: 20px; }
.ct-menu__item > .ct-icon:first-child { width: 18px; height: 18px; color: var(--ink-soft); }
.ct-menu__text { flex: 1; display: flex; flex-direction: column; }
.ct-menu__text small { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ct-menu__item.is-active { background: var(--raised); box-shadow: inset 2px 0 0 var(--current); }
.ct-menu__tick { width: 18px; height: 18px; color: var(--current); opacity: 0; }
.ct-menu__item[aria-selected="true"] .ct-menu__tick { opacity: 1; }
.ct-menu__item[aria-selected="true"] { font-weight: 650; }

/* ================================================================ Slider (cable run) */
.ct-slider { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ct-slider__val { min-width: 5ch; text-align: right; font: 600 18px/24px var(--font-display); font-stretch: var(--ct-semi); color: var(--ink); }
.ct-slider__rail { position: relative; height: 30px; }
.ct-slider__track { position: absolute; left: 12px; right: 12px; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--sunk); box-shadow: var(--shadow-well); overflow: hidden; outline: 1px solid var(--line); }
.ct-slider__fill { position: absolute; inset: 0; background: var(--current); transform-origin: left; transform: scaleX(0); }
.ct-slider__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; outline: none; }
.ct-slider__input::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.ct-slider__input::-moz-range-track { height: 30px; background: transparent; }
.ct-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--line-strong);
  background: linear-gradient(transparent 9.5px, var(--ink-soft) 9.5px, var(--ink-soft) 12px, transparent 12px), var(--raised);
  box-shadow: inset 0 1px 0 var(--ct-hi), 0 2px 0 var(--ct-edge); transition: transform var(--dur-flick) var(--ease-press);
}
.ct-slider__input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--line-strong);
  background: linear-gradient(transparent 9.5px, var(--ink-soft) 9.5px, var(--ink-soft) 12px, transparent 12px), var(--raised); box-shadow: 0 2px 0 var(--ct-edge); }
.ct-slider__input:hover::-webkit-slider-thumb { border-color: var(--current); }
.ct-slider__input:active::-webkit-slider-thumb { transform: rotate(90deg); }
.ct-slider__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--current); outline-offset: 3px; }
.ct-slider__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--current); outline-offset: 3px; }
.ct-slider__marks { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--ink-soft); padding: 0 2px; }

/* ================================================================ Mark + brand */
.ct-mark { width: 40px; height: 40px; flex: none; overflow: visible; }
.ct-mark__tile { fill: var(--ct-mark-tile); stroke: var(--ct-mark-edge); stroke-width: 1.5; }
.ct-mark__wire { fill: none; stroke: var(--spark); stroke-width: 5; stroke-linecap: round; }
.ct-mark__lever { fill: none; stroke: var(--spark); stroke-width: 4.2; stroke-linecap: round; transform-box: view-box; transform-origin: 45px 42.9px; transition: transform var(--dur-snap) var(--ease-snap); }
.ct-mark__term { fill: var(--ct-mark-tile); stroke: var(--spark); stroke-width: 2.6; }
.ct-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; border-radius: 8px; }
.ct-brand:hover .ct-mark__lever { transform: rotate(-26deg); }
.ct-brand__words { display: flex; flex-direction: column; }
.ct-brand__name { font: 800 20px/22px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .005em; }
.ct-brand__sub { font-size: 12px; line-height: 16px; color: var(--ink-soft); }

/* ================================================================ Wire */
.ct-wire { display: block; width: 100%; height: auto; overflow: visible; }
.ct-wire__base { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-wire__live { fill: none; stroke: var(--current); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ct-wire.is-live .ct-wire__live { opacity: 1; }
.ct-wire--earth .ct-wire__live { stroke: var(--earth); }
.ct-wire--spark .ct-wire__live { stroke: var(--spark); }
.ct-wire__term { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; transition: stroke var(--dur-snap), fill var(--dur-snap); }
.ct-wire.is-live .ct-wire__term { stroke: var(--current); }
.ct-wire--earth.is-live .ct-wire__term { stroke: var(--earth); }

/* ================================================================ Tabs (busbar) */
.ct-tabs { min-width: 0; }
.ct-tabs__list { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ct-tabs__list::-webkit-scrollbar { display: none; }
.ct-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 14px; border: 0; border-radius: 8px 8px 0 0; background: transparent; cursor: pointer; white-space: nowrap;
  color: var(--ink-soft); font: 650 16px/20px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .01em; transition: color var(--dur-quick), background-color var(--dur-quick); }
.ct-tab .ct-icon { width: 18px; height: 18px; }
.ct-tab:hover { color: var(--ink); background: var(--raised); }
.ct-tab[aria-selected="true"] { color: var(--ink); }
.ct-tab__count { min-width: 22px; padding: 1px 6px; box-sizing: border-box; border-radius: 4px; background: var(--sunk); color: var(--ink-soft); font: 600 12px/18px var(--font-body); text-align: center; }
.ct-tab[aria-selected="true"] .ct-tab__count { background: var(--spark); color: var(--spark-ink); }
.ct-tabs__bus { position: absolute; left: 0; bottom: 0; width: 100px; height: 3px; border-radius: 2px 2px 0 0; background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-bd); transform-origin: left; pointer-events: none;
  transition: transform var(--dur-quick) var(--ease-snap); }
.ct-tabs.is-static .ct-tabs__bus { transition: none; }
.ct-tabs__panel { padding-top: var(--space-6); outline: none; }
.ct-tabs__panel.is-entering { animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }

/* ================================================================ SegmentedControl (selector switch) */
.ct-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; box-sizing: border-box; max-width: 100%;
  background: var(--sunk); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-well); }
.ct-seg--block { display: grid; width: 100%; }
.ct-seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--ct-n)); box-sizing: border-box; border-radius: 6px;
  background: var(--raised); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--ct-hi), 0 2px 0 var(--ct-edge);
  transition: transform var(--dur-quick) var(--ease-snap); }
.ct-seg__thumb::before { content: ""; position: absolute; top: 4px; left: 50%; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-bd); }
.ct-seg__opt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 4px 14px 0; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  color: var(--ink-soft); font: 600 15px/1 var(--font-body); border-radius: 6px; transition: color var(--dur-quick); }
.ct-seg__opt .ct-icon { width: 17px; height: 17px; }
.ct-seg__opt:hover, .ct-seg__opt[aria-checked="true"] { color: var(--ink); }
.ct-seg--sm .ct-seg__opt { height: 34px; font-size: 14px; padding: 4px 10px 0; }

/* ================================================================ Stepper (wired) */
.ct-stepper { display: flex; margin: 0; padding: 0; list-style: none; }
.ct-stepper__step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ct-stepper__seg { position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; margin-top: -1.5px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.ct-stepper__seg span { position: absolute; inset: 0; background: var(--current); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-energise) var(--ease-current); }
.ct-stepper__step.is-done .ct-stepper__seg span, .ct-stepper__step.is-current .ct-stepper__seg span { transform: scaleX(1); }
.ct-stepper__term { position: relative; z-index: 1; width: 30px; height: 30px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink-soft); font: 700 13px/1 var(--font-display); transition: background-color var(--dur-snap), border-color var(--dur-snap), color var(--dur-snap); }
.ct-stepper__term .ct-icon { position: absolute; width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; }
.ct-stepper__step.is-current .ct-stepper__term { border-color: var(--current); color: var(--current); box-shadow: 0 0 0 4px color-mix(in srgb, var(--current) 20%, transparent); transition-delay: 180ms; }
.ct-stepper__step.is-done .ct-stepper__term { background: var(--current); border-color: var(--current); color: var(--surface); }
.ct-stepper__step.is-done .ct-stepper__num { opacity: 0; }
.ct-stepper__step.is-done .ct-icon { opacity: 1; }
.ct-stepper__label { font: 600 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 2px; overflow-wrap: anywhere; }
.ct-stepper__step.is-current .ct-stepper__label, .ct-stepper__step.is-done .ct-stepper__label { color: var(--ink); }
.ct-stepper__step.is-clickable { cursor: pointer; }
.ct-stepper__step.is-clickable:hover .ct-stepper__label { color: var(--current); }
@media (max-width: 520px) { .ct-stepper__label { font-size: 11px; letter-spacing: .03em; } }

/* ================================================================ Header */
.ct-header { position: relative; z-index: 20; }
.ct-header--sticky { position: sticky; top: 0; }
.ct-header__bar { display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 24px; box-sizing: border-box; background: var(--surface); border-bottom: 1px solid var(--line); }
.ct-header__nav { display: flex; gap: 2px; min-width: 0; }
.ct-header__link { position: relative; padding: 8px 11px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; font: 600 15px/20px var(--font-body); white-space: nowrap; transition: color var(--dur-quick); }
.ct-header__link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--current); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-quick) var(--ease-current); }
.ct-header__link:hover { color: var(--ink); }
.ct-header__link:hover::after { transform: scaleX(1); }
.ct-header__link[aria-current="page"] { color: var(--ink); }
.ct-header__link[aria-current="page"]::after { transform: scaleX(1); background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-bd); }
.ct-header__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ct-header__phone { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.ct-header__phone > .ct-icon { width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-strong); color: var(--current); }
.ct-header__phone > span { display: flex; flex-direction: column; }
.ct-header__num { font: 700 18px/20px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .01em; }
.ct-header__phone small { font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.ct-header__end .ct-btn { margin-bottom: 0; }
.ct-header__menu { display: none; }
.ct-header__drawer { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); padding: 8px 16px 20px; }
.ct-header__drawer.is-entering { animation: ct-drop var(--dur-quick) var(--ease-rocker) backwards; }
.ct-header__dnav { display: flex; flex-direction: column; }
.ct-header__dlink { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 700 20px/24px var(--font-display); font-stretch: var(--ct-semi); }
.ct-header__dlink[aria-current="page"] { color: var(--current); }
.ct-header__drawer.is-entering .ct-header__dlink { animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }
.ct-header__drawer.is-entering .ct-header__dlink:nth-child(2) { animation-delay: 30ms; } .ct-header__drawer.is-entering .ct-header__dlink:nth-child(3) { animation-delay: 60ms; }
.ct-header__drawer.is-entering .ct-header__dlink:nth-child(4) { animation-delay: 90ms; } .ct-header__drawer.is-entering .ct-header__dlink:nth-child(5) { animation-delay: 120ms; }
.ct-header__drawer.is-entering .ct-header__dlink:nth-child(6) { animation-delay: 150ms; }
.ct-header__dfoot { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
@media (max-width: 1060px) {
  .ct-header__nav { display: none; }
  .ct-header__menu { display: inline-grid; }
}
@media (max-width: 640px) {
  .ct-header__bar { height: 64px; padding: 0 12px 0 16px; gap: 10px; }
  .ct-header__end { gap: 8px; }
  .ct-header__phone > span, .ct-header__end > .ct-btn { display: none; }
  .ct-brand .ct-mark { width: 36px; height: 36px; }
  .ct-brand__name { font-size: 18px; }
}

/* ================================================================ Footer */
.ct-footer { position: relative; background: var(--sunk); color: var(--ink); padding: 0 24px 24px; }
.ct-footer__rule { position: relative; height: 2px; margin: 0 -24px; background: var(--line-strong); }
.ct-footer__rule i { position: absolute; top: -4px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: var(--sunk); border: 2px solid var(--line-strong); }
.ct-footer__rule i:first-child { left: 24px; } .ct-footer__rule i:last-child { right: 24px; }
.ct-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; max-width: 1132px; margin: 0 auto; padding: 48px 0 32px; }
.ct-footer__about p { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 21px; max-width: 34ch; }
.ct-footer__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ct-footer__title { margin: 0 0 12px; font: 600 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ct-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ct-footer__col a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 22px; border-radius: 4px; }
.ct-footer__col a:hover { color: var(--current); text-decoration: underline; text-underline-offset: 3px; }
.ct-footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.ct-footer__contact .ct-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--current); }
.ct-footer__contact .tnum { font-weight: 650; }
.ct-footer__contact li > a, .ct-footer__contact li > span { min-width: 0; overflow-wrap: anywhere; }
.ct-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1132px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.ct-footer__ll { display: flex; flex-wrap: wrap; gap: 16px; }
.ct-footer__ll a { color: var(--ink-soft); }
@media (max-width: 720px) { .ct-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; } .ct-footer__about { grid-column: 1 / -1; } .ct-footer__contact { grid-column: 1 / -1; } }

/* ================================================================ Card (enclosure lid) */
.ct-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink);
  transition: transform var(--dur-quick) var(--ease-rocker), box-shadow var(--dur-quick) var(--ease-rocker); }
.ct-card__screws { position: absolute; inset: 9px; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle, var(--ct-screw) 2.4px, transparent 3px) left top / 6px 6px no-repeat,
    radial-gradient(circle, var(--ct-screw) 2.4px, transparent 3px) right top / 6px 6px no-repeat,
    radial-gradient(circle, var(--ct-screw) 2.4px, transparent 3px) left bottom / 6px 6px no-repeat,
    radial-gradient(circle, var(--ct-screw) 2.4px, transparent 3px) right bottom / 6px 6px no-repeat; }
.ct-card__media { position: relative; }
.ct-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: var(--space-6); min-width: 0; }
.ct-card__title { margin: 0; font: 700 21px/26px var(--font-display); color: var(--ink); }
.ct-card__link { color: inherit; text-decoration: none; border-radius: 4px; }
.ct-card__link::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius-lg); }
.ct-card__text { margin: 0; color: var(--ink-soft); }
.ct-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--space-6); border-top: 1px solid var(--line); }
.ct-card--flush .ct-card__body { padding: 0; }
.ct-card--interactive { cursor: pointer; }
.ct-card--interactive::after { content: ""; position: absolute; inset: 0 -5px -7px 0; z-index: -1; }
.ct-card--interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), var(--shadow-float); }
.ct-card--interactive:active { transform: translateY(0); transition-duration: var(--dur-flick); }
.ct-card__energise { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.ct-card__energise rect { fill: none; stroke: var(--current); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 240ms var(--ease-out); }
.ct-card--interactive:hover .ct-card__energise rect, .ct-card--interactive:focus-within .ct-card__energise rect, .ct-card--interactive:focus-visible .ct-card__energise rect {
  stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-energise) var(--ease-current); }
.ct-card--sunk { background: var(--raised); }

/* ================================================================ Badge + Tag (cable sleeves) */
.ct-badge { --bt: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; box-sizing: border-box; border-radius: var(--radius-sm); white-space: nowrap;
  font: 650 12px/1 var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .08em; text-transform: uppercase;
  color: var(--bt); background: color-mix(in srgb, var(--bt) var(--ct-tint), var(--surface)); border: 1px solid color-mix(in srgb, var(--bt) 45%, transparent); }
.ct-badge .ct-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.ct-badge--lg { height: 30px; padding: 0 11px; font-size: 13px; }
.ct-badge--current { --bt: var(--current); } .ct-badge--live { --bt: var(--live); } .ct-badge--neutral { --bt: var(--neutral); }
.ct-badge--earth { --bt: var(--earth); } .ct-badge--alarm { --bt: var(--alarm-text); } .ct-badge--muted { --bt: var(--ink-soft); }
.ct-badge--spark { --bt: var(--spark); color: var(--spark-ink); background: var(--spark); border-color: var(--ct-spark-edge); }
.ct-badge.is-solid { background: var(--bt); color: var(--surface); border-color: transparent; }
.ct-badge--alarm.is-solid { background: var(--alarm); color: var(--on-alarm); }
.ct-badge--spark.is-solid { color: var(--spark-ink); border-color: var(--ct-spark-bd); }
.ct-badge--muted.is-solid { background: var(--raised); color: var(--ink); border-color: var(--line-strong); }
.ct-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ct-badge--earth .ct-badge__dot { width: 9px; height: 9px; background: repeating-linear-gradient(45deg, var(--earth) 0 2.2px, var(--spark) 2.2px 4.4px); box-shadow: 0 0 0 1px var(--earth); }
.ct-badge--spark .ct-badge__dot { background: var(--spark-ink); }
.ct-tag { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; box-sizing: border-box; border-radius: var(--radius-sm);
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--ink); font: 500 14px/1 var(--font-body); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.ct-tag > .ct-icon { width: 16px; height: 16px; color: var(--current); }
.ct-tag:not(:has(.ct-tag__x)) { padding-right: 12px; }
.ct-tag__x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.ct-tag__x:hover { background: var(--sunk); color: var(--ink); }
.ct-tag__x .ct-icon { width: 15px; height: 15px; }
.ct-tag.is-leaving { opacity: 0; transform: scale(.9); }

/* ================================================================ Avatar */
.ct-avatar { --av: var(--current); position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; box-sizing: border-box; border-radius: 10px;
  background: var(--av); color: var(--surface); font: 700 15px/1 var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .03em; }
.ct-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ct-avatar--sm { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.ct-avatar--lg { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
.ct-avatar--live { --av: var(--live); } .ct-avatar--neutral { --av: var(--neutral); } .ct-avatar--earth { --av: var(--earth); } .ct-avatar--current { --av: var(--current); }
.ct-avatar--more { --av: var(--raised); color: var(--ink); border: 1px solid var(--line-strong); font-size: 12px; }
.ct-avatar__led { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--surface); background: var(--line-strong); }
.ct-avatar--sm .ct-avatar__led { width: 10px; height: 10px; border-width: 2px; }
.ct-avatar__led--onsite { background: var(--earth); } .ct-avatar__led--available { background: var(--current); }
.ct-avgroup { display: inline-flex; }
.ct-avgroup .ct-avatar { box-shadow: 0 0 0 2.5px var(--surface); }
.ct-avgroup .ct-avatar + .ct-avatar { margin-left: -6px; }

/* ================================================================ Accordion */
.ct-acc { border-top: 1px solid var(--line); }
.ct-acc__row { border-bottom: 1px solid var(--line); }
.ct-acc__h { margin: 0; font: inherit; }
.ct-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 4px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); font: 650 17px/24px var(--font-body); border-radius: 6px; }
.ct-acc__btn:hover .ct-acc__q { color: var(--current); }
.ct-acc__ic { position: relative; flex: none; width: 30px; height: 30px; box-sizing: border-box; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--raised); box-shadow: 0 2px 0 var(--ct-edge); transition: background-color var(--dur-snap), border-color var(--dur-snap); }
.ct-acc__ic i { position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 1px; transition: transform var(--dur-snap) var(--ease-snap); }
.ct-acc__ic i:last-child { transform: rotate(90deg); }
.ct-acc__row.is-open .ct-acc__ic { background: var(--spark); border-color: var(--ct-spark-edge); }
.ct-acc__row.is-open .ct-acc__ic i { background: var(--spark-ink); }
.ct-acc__row.is-open .ct-acc__ic i:last-child { transform: rotate(90deg) scaleX(0); }
.ct-acc__a { padding: 0 52px 20px 4px; color: var(--ink-soft); }
.ct-acc__a p { margin: 0; }
.ct-acc__row.is-open .ct-acc__a { animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }

/* ================================================================ Modal / Sheet */
.ct-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; box-sizing: border-box; }
.ct-modal__scrim { position: absolute; inset: 0; background: var(--ct-scrim); animation: ct-fade var(--dur-quick) linear backwards; transition: opacity 180ms var(--ease-out); }
.ct-modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; outline: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); color: var(--ink);
  animation: ct-rise .28s var(--ease-rocker) backwards; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.ct-modal__panel--lg { width: min(720px, 100%); }
.ct-modal.is-leaving .ct-modal__scrim { opacity: 0; }
.ct-modal.is-leaving .ct-modal__panel { opacity: 0; transform: translateY(8px); }
.ct-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 20px 0 24px; }
.ct-modal__title { margin: 4px 0 0; font: 700 26px/30px var(--font-display); font-stretch: var(--ct-semi); }
.ct-modal__x { margin: -4px -4px 0 0; }
.ct-modal__body { padding: 12px 24px 22px; color: var(--ink-soft); }
.ct-modal__body p { margin: 0 0 12px; } .ct-modal__body p:last-child { margin-bottom: 0; }
.ct-modal__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--raised); }
.ct-modal__actions .ct-btn { margin-bottom: 4px; }
.ct-modal--sheet { place-items: end center; padding: 0; }
.ct-modal__panel--sheet { width: min(640px, 100%); max-height: 88vh; border-radius: 16px 16px 0 0; border-bottom: 0; animation: ct-sheet .32s var(--ease-rocker) backwards; }
.ct-modal--sheet.is-leaving .ct-modal__panel { transform: translateY(40px); }
.ct-modal__panel--sheet::before { content: ""; display: block; width: 44px; height: 4px; margin: 10px auto -6px; border-radius: 2px; background: var(--line-strong); }
@keyframes ct-sheet { from { transform: translateY(100%); } }
@media (max-width: 600px) {
  .ct-modal { place-items: end center; padding: 0; }
  .ct-modal__panel { width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; border-bottom: 0; animation: ct-sheet .32s var(--ease-rocker) backwards; }
  .ct-modal__actions { flex-direction: column-reverse; }
  .ct-modal__actions .ct-btn { width: 100%; }
}

/* ================================================================ Tooltip (label-maker strip) */
.ct-tip { display: inline-flex; border-radius: 8px; }
.ct-tooltip { position: fixed; z-index: 1100; left: 0; top: 0; box-sizing: border-box; max-width: min(280px, calc(100vw - 16px)); padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--surface); font: 500 14px/20px var(--font-body); box-shadow: var(--shadow-float); pointer-events: none; opacity: 0; }
.ct-tooltip.is-open { opacity: 1; animation: ct-tip-up var(--dur-quick) var(--ease-rocker) backwards; }
.ct-tooltip.is-open[data-side="bottom"] { animation-name: ct-tip-down; }
.ct-tooltip.is-open[data-side="left"] { animation-name: ct-tip-left; }
.ct-tooltip.is-open[data-side="right"] { animation-name: ct-tip-right; }
@keyframes ct-tip-up { from { opacity: 0; transform: translateY(4px); } }
@keyframes ct-tip-down { from { opacity: 0; transform: translateY(-4px); } }
@keyframes ct-tip-left { from { opacity: 0; transform: translateX(4px); } }
@keyframes ct-tip-right { from { opacity: 0; transform: translateX(-4px); } }
.ct-tooltip__tail { position: absolute; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.ct-tooltip[data-side="top"] .ct-tooltip__tail { bottom: -4px; left: calc(var(--ct-tail) - 5px); }
.ct-tooltip[data-side="bottom"] .ct-tooltip__tail { top: -4px; left: calc(var(--ct-tail) - 5px); }
.ct-tooltip[data-side="left"] .ct-tooltip__tail { right: -4px; top: calc(var(--ct-tail) - 5px); }
.ct-tooltip[data-side="right"] .ct-tooltip__tail { left: -4px; top: calc(var(--ct-tail) - 5px); }

/* ================================================================ Toast */
.ct-toasts { position: fixed; z-index: 1050; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.ct-toasts:not([data-queued="0"])::after { content: "+" attr(data-queued) " waiting"; align-self: flex-end; padding: 3px 9px; border-radius: 4px; background: var(--raised); border: 1px solid var(--line-strong); color: var(--ink-soft); font: 600 12px/16px var(--font-body); pointer-events: auto; }
@media (max-width: 600px) { .ct-toasts { left: 12px; right: 12px; bottom: 12px; width: auto; } }
.ct-toast { --tt: var(--earth); position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 10px 17px 14px; box-sizing: border-box; overflow: hidden; pointer-events: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-float); color: var(--ink);
  animation: ct-toast-in .3s var(--ease-snap) backwards; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@keyframes ct-toast-in { from { opacity: 0; transform: translateY(14px); } }
.ct-toast.is-leaving { opacity: 0; transform: translateY(8px); }
.ct-toast--current { --tt: var(--current); } .ct-toast--alarm { --tt: var(--alarm); } .ct-toast--spark { --tt: var(--spark); } .ct-toast--muted { --tt: var(--line-strong); }
.ct-toast__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--tt); color: var(--surface); }
.ct-toast--alarm .ct-toast__ic { color: var(--on-alarm); } .ct-toast--spark .ct-toast__ic { color: var(--spark-ink); }
.ct-toast__ic .ct-icon { width: 19px; height: 19px; stroke-width: 2.4; }
.ct-toast__body { padding-top: 1px; min-width: 0; }
.ct-toast__title { font: 700 16px/20px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .01em; }
.ct-toast__msg { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-toast__action { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--current); font: 650 14px/20px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 3px; }
.ct-toast__x { margin: -4px 0 0; }
.ct-toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tt); transform-origin: left; transform: scaleX(0);
  animation: ct-discharge var(--ct-dur, 5000ms) linear backwards; }
.ct-toast:hover .ct-toast__bar, .ct-toast.is-paused .ct-toast__bar { animation-play-state: paused; }
.ct-toast.is-sticky .ct-toast__bar { display: none; }
@keyframes ct-discharge { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ct-toast--static { animation: none; }
.ct-toast--static .ct-toast__bar { animation: none; transform: scaleX(.62); }

/* ================================================================ Progress (charging bar) */
.ct-progress { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-progress__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ct-progress__label { font: 600 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.ct-progress__val { min-width: 5ch; text-align: right; font: 600 17px/20px var(--font-display); font-stretch: var(--ct-semi); color: var(--ink); white-space: nowrap; }
.ct-progress__hint { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ct-battery { position: relative; display: flex; align-items: center; height: 30px; }
.ct-battery--lg { height: 42px; }
.ct-battery__cells { position: relative; flex: 1; height: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; box-sizing: border-box; overflow: hidden;
  background: var(--sunk); border: 2px solid var(--line-strong); border-radius: 7px; }
.ct-battery__cells i { position: relative; overflow: hidden; border-radius: 2px; background: var(--ct-cell-off); }
.ct-battery__cells b { position: absolute; inset: 0; background: var(--current); transform-origin: left; transform: scaleX(0);
  transition: transform var(--dur-energise) var(--ease-current), background-color var(--dur-energise); transition-delay: calc(var(--i) * 45ms); }
.ct-progress.is-down .ct-battery__cells b { transition-delay: 0ms; }
.ct-progress.is-full .ct-battery__cells b { background: var(--earth); }
.ct-battery__cells i.is-next::after { content: ""; position: absolute; inset: 0; background: var(--current); opacity: 0; animation: ct-breathe 1.8s ease-in-out infinite; }
@keyframes ct-breathe { 50% { opacity: .45; } }
.ct-battery__nub { flex: none; width: 5px; height: 40%; margin-left: 2px; border-radius: 0 2px 2px 0; background: var(--line-strong); }
.ct-battery__sweep { position: absolute; top: 7px; bottom: 7px; left: 7px; width: 16%; border-radius: 2px; background: var(--current); opacity: 0; pointer-events: none; }
.ct-progress.is-indeterminate .ct-battery__sweep { opacity: 1; animation: ct-sweep 1.5s var(--ease-current) infinite; }
@keyframes ct-sweep { from { transform: translateX(0); } to { transform: translateX(470%); } }
.ct-pline { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--sunk); outline: 1px solid var(--line); }
.ct-pline b { position: absolute; inset: 0; background: var(--current); transform-origin: left; transform: scaleX(0); transition: transform var(--dur-energise) var(--ease-current); }
.ct-progress.is-full .ct-pline b { background: var(--earth); }
.ct-pline .ct-battery__sweep { top: 0; bottom: 0; left: 0; width: 22%; }

:root { --ct-star-bd: transparent; }
[data-theme="light"] { --ct-star-bd: #8f7100; }

/* ================================================================ stars */
.ct-stars { display: inline-flex; gap: 2px; }
.ct-stars .ct-icon { width: 16px; height: 16px; fill: var(--sunk); stroke: var(--line-strong); stroke-width: 1.2; stroke-linejoin: round; }
.ct-stars .ct-icon.is-on, .ct-rev__bars .ct-icon.is-on { fill: var(--spark); stroke: var(--ct-star-bd); }
.ct-stars--lg .ct-icon { width: 22px; height: 22px; }

/* ================================================================ ServiceCard */
.ct-svc { --cab: var(--current); height: 100%; }
.ct-svc--live { --cab: var(--live); } .ct-svc--neutral { --cab: var(--neutral); } .ct-svc--earth { --cab: var(--earth); } .ct-svc--spark { --cab: var(--spark); }
.ct-svc .ct-card__media { padding: var(--space-6) var(--space-6) 0; }
.ct-svc__plate { position: relative; display: grid; place-items: center; width: 54px; height: 54px; box-sizing: border-box; border-radius: 11px;
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--cab); box-shadow: inset 0 1px 0 var(--ct-hi), 0 2px 0 var(--ct-edge); }
.ct-svc--spark .ct-svc__plate { color: var(--ink); }
.ct-svc__plate .ct-icon { width: 26px; height: 26px; }
.ct-svc__cable { position: absolute; left: 50%; bottom: 100%; width: 6px; height: 26px; margin-left: -3px; border-radius: 0 0 1px 1px; background: var(--cab); box-shadow: 0 0 0 1px var(--ct-spark-bd); }
.ct-svc--live .ct-svc__cable, .ct-svc--neutral .ct-svc__cable, .ct-svc--current .ct-svc__cable { box-shadow: none; }
.ct-svc--earth .ct-svc__cable { background: repeating-linear-gradient(-35deg, var(--earth) 0 5px, var(--spark) 5px 10px); box-shadow: none; }
.ct-svc .ct-card__body { padding-top: 18px; }
.ct-svc__time { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-svc__time .ct-icon { width: 16px; height: 16px; }
.ct-svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ct-svc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; }
.ct-svc__price { display: flex; flex-direction: column; }
.ct-svc__from { font: 600 11px/14px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ct-svc__amt { font: 700 24px/28px var(--font-display); font-stretch: var(--ct-semi); color: var(--ink); }
.ct-svc__go { display: inline-flex; align-items: center; gap: 6px; color: var(--current); font-weight: 650; }
.ct-svc__go .ct-icon { width: 18px; height: 18px; transition: transform var(--dur-quick) var(--ease-rocker); }
.ct-svc:hover .ct-svc__go .ct-icon { transform: translateX(3px); }

/* ================================================================ EmergencyCallout */
.ct-emg__led { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--alarm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alarm) 28%, transparent); }
.ct-emg__led::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--alarm); opacity: 0; animation: ct-pulse var(--dur-pulse) var(--ease-current) infinite; }
@keyframes ct-pulse { 0% { transform: scale(1); opacity: .85; } 60%, 100% { transform: scale(2.9); opacity: 0; } }
.ct-emg--bar { position: relative; background: var(--raised); border-bottom: 1px solid var(--line); box-shadow: inset 0 2px 0 var(--alarm); }
.ct-emg__in { display: flex; align-items: center; gap: 14px; max-width: 1180px; min-height: 48px; margin: 0 auto; padding: 6px 24px; box-sizing: border-box; }
.ct-emg__text { flex: 1; min-width: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 15px; line-height: 20px; }
.ct-emg__text strong { font-weight: 700; color: var(--ink); }
.ct-emg__more { color: var(--ink-soft); }
.ct-emg__call { position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 11px; box-sizing: border-box; border-radius: 7px;
  background: var(--alarm); color: var(--on-alarm); text-decoration: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 3px 0 var(--ct-alarm-edge);
  transition: transform var(--dur-snap) var(--ease-rocker), box-shadow var(--dur-snap) var(--ease-rocker); margin-bottom: 3px; }
.ct-emg__call::after { content: ""; position: absolute; inset: -3px -4px -7px -3px; z-index: -1; }
.ct-emg__call:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 4px 0 var(--ct-alarm-edge); }
.ct-emg__call:active { transform: perspective(400px) translateY(2px) rotateX(10deg); box-shadow: 0 1px 0 var(--ct-alarm-edge); transition-duration: var(--dur-flick); }
.ct-emg__call .ct-icon { width: 17px; height: 17px; }
.ct-emg__num { font: 700 17px/1 var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .02em; }
@media (max-width: 720px) { .ct-emg__more { display: none; } .ct-emg__in { padding: 6px 12px 6px 16px; gap: 12px; } .ct-emg__text { font-size: 14px; } }
@media (max-width: 380px) { .ct-emg__num { font-size: 15px; } }
.ct-emg--panel { position: relative; display: flex; flex-direction: column; gap: 14px; padding: var(--space-6); box-sizing: border-box; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--alarm) 55%, var(--line)); box-shadow: var(--shadow-card), inset 0 3px 0 var(--alarm); }
.ct-emg__head { display: flex; align-items: center; gap: 12px; }
.ct-emg--panel .ct-eyebrow { color: var(--alarm-text); }
.ct-emg__title { margin: 0; font: 700 24px/28px var(--font-display); font-stretch: var(--ct-semi); }
.ct-emg__steps { counter-reset: ct-step; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ct-emg__steps li { counter-increment: ct-step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); font-size: 15px; line-height: 22px; }
.ct-emg__steps li::before { content: counter(ct-step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line-strong); font: 700 13px/1 var(--font-display); color: var(--ink); }
.ct-emg__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }

/* ================================================================ CoverageChecker */
.ct-cov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-6); align-items: center; }
.ct-cov--compact { grid-template-columns: minmax(0, 1fr); }
.ct-cov__form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ct-cov__title { margin: 0; font: 700 26px/30px var(--font-display); font-stretch: var(--ct-semi); }
.ct-cov__row { display: flex; align-items: flex-start; gap: 10px; }
.ct-cov__row .ct-field { flex: 1; }
.ct-cov__row > .ct-btn { margin-top: 23px; height: 48px; }
.ct-cov__input { text-transform: uppercase; font: 600 19px/24px var(--font-display) !important; font-stretch: var(--ct-semi) !important; letter-spacing: .06em; }
.ct-cov__input::placeholder { text-transform: none; letter-spacing: 0; font: 400 16px/24px var(--font-body); }
.ct-cov__result { min-height: 68px; }
.ct-cov__verdict { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--raised); border: 1px solid var(--line); font-size: 15px; line-height: 22px; color: var(--ink-soft); }
.ct-cov__verdict .ct-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--current); }
.ct-cov__verdict strong { color: var(--ink); }
.ct-cov__result.is-covered .ct-cov__verdict { border-color: color-mix(in srgb, var(--earth) 60%, transparent); color: var(--ink); }
.ct-cov__result.is-covered .ct-icon { color: var(--earth); }
.ct-cov__result.is-outside .ct-cov__verdict { border-color: color-mix(in srgb, var(--alarm-text) 60%, transparent); color: var(--ink); }
.ct-cov__result.is-outside .ct-icon { color: var(--alarm-text); }
.ct-cov__verdict.is-entering { animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }
.ct-cov__mapwrap { position: relative; padding: 10px; border-radius: var(--radius-lg); background: var(--sunk); border: 1px solid var(--line); box-shadow: var(--shadow-well); }
.ct-cov__map { display: block; width: 100%; height: auto; overflow: hidden; }
.ct-cov__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 4px 0; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.ct-cov__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ct-cov__legend i { display: inline-block; width: 18px; border-top: 1.5px dashed var(--line-strong); }
.ct-cov__legend i.is-base { width: 10px; height: 10px; border: 1px solid var(--ct-spark-edge); border-radius: 3px; background: var(--spark); }
.ct-cov__legend i.is-route { border-top: 2.5px solid var(--current); }
.ct-cov__ring { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.ct-cov__ringlbl { font: 600 8px/1 var(--font-display); letter-spacing: .12em; fill: var(--ink-soft); }
.ct-cov__node circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: transform var(--dur-snap) var(--ease-snap), fill var(--dur-snap), stroke var(--dur-snap); }
.ct-cov__node text { font: 600 9.5px/1 var(--font-display); letter-spacing: .03em; fill: var(--ink-soft); }
.ct-cov__node.is-hit circle { fill: var(--earth); stroke: var(--earth); transform: scale(1.35); transition-delay: 600ms; }
.ct-cov__node.is-hit text { fill: var(--ink); font-weight: 800; }
.ct-cov__route { fill: none; stroke: var(--current); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0; }
.ct-cov__map.is-covered .ct-cov__route { opacity: 1; }
.ct-cov__base rect { fill: var(--spark); stroke: var(--ct-spark-edge); stroke-width: 1; }
.ct-cov__base path, .ct-cov__base circle { fill: none; stroke: var(--spark-ink); stroke-width: 1.4; }
.ct-cov__map.is-outside .ct-cov__node circle { stroke: color-mix(in srgb, var(--alarm-text) 50%, var(--line-strong)); }
@media (max-width: 760px) { .ct-cov { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ EVQuote */
.ct-evq { container-type: inline-size; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ct-evq__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ct-evq__inputs { display: flex; flex-direction: column; gap: 20px; padding: var(--space-6); min-width: 0; }
.ct-evq__chargers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: -10px; }
.ct-evq__pick { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; padding: 14px; box-sizing: border-box; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: inset 0 1px 0 var(--ct-hi), 0 3px 0 var(--ct-edge);
  transition: transform var(--dur-snap) var(--ease-rocker), box-shadow var(--dur-snap) var(--ease-rocker), border-color var(--dur-snap); margin-bottom: 3px; }
.ct-evq__pick::after { content: ""; position: absolute; inset: -2px -4px -7px -2px; z-index: -1; }
.ct-evq__pick:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ct-hi), 0 4px 0 var(--ct-edge); }
.ct-evq__pick[aria-checked="true"] { transform: translateY(2px); border-color: var(--current); box-shadow: inset 0 0 0 1px var(--current), 0 1px 0 var(--ct-edge); }
.ct-evq__pickhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; }
.ct-evq__pick .ct-badge { position: absolute; top: -12px; right: 10px; height: 22px; font-size: 11px; }
.ct-evq__kw { font: 800 24px/1 var(--font-display); font-stretch: var(--ct-cond); }
.ct-evq__pick[aria-checked="true"] .ct-evq__kw { color: var(--current); }
.ct-evq__pickname { font-weight: 650; font-size: 15px; line-height: 20px; }
.ct-evq__picknote { flex: 1; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ct-evq__pickprice { font: 700 17px/20px var(--font-display); font-stretch: var(--ct-semi); }
.ct-evq__extras { display: flex; flex-direction: column; gap: 12px; }
.ct-evq__out { display: flex; flex-direction: column; gap: 14px; padding: var(--space-6); background: var(--raised); border-left: 1px solid var(--line); min-width: 0; }
.ct-evq__sum { display: flex; align-items: baseline; gap: 10px; }
.ct-evq__total { font: 800 56px/56px var(--font-display); font-stretch: var(--ct-cond); letter-spacing: -.01em; color: var(--ink); }
.ct-evq__vat { font-size: 14px; color: var(--ink-soft); }
.ct-evq__lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; margin: 0; padding: 12px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); font-size: 14px; line-height: 20px; }
.ct-evq__lines dt { color: var(--ink-soft); }
.ct-evq__lines dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.ct-evq__speedrow { display: flex; flex-direction: column; gap: 6px; }
.ct-evq__speedtxt { font-size: 14px; color: var(--ink-soft); }
.ct-evq__speed { color: var(--ink); font-weight: 700; }
.ct-evq__out .ct-btn { margin-top: 2px; }
.ct-evq__small { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
@container (max-width: 860px) { .ct-evq__grid { grid-template-columns: minmax(0, 1fr); } .ct-evq__out { border-left: 0; border-top: 1px solid var(--line); } }
@container (max-width: 540px) { .ct-evq__chargers { grid-template-columns: minmax(0, 1fr); } .ct-evq__inputs, .ct-evq__out { padding: 18px; } .ct-evq__total { font-size: 48px; line-height: 48px; } }

/* ================================================================ CertStrip (rating plates) */
.ct-certs { min-width: 0; }
.ct-certs__title { margin-bottom: 12px; }
.ct-certs__row { display: flex; gap: 12px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ct-certs__row li { flex: 1 0 auto; scroll-snap-align: start; display: flex; }
.ct-certs .ct-tip { display: flex; width: 100%; }
.ct-plate { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; min-width: 124px; height: 76px; padding: 0 14px; box-sizing: border-box; cursor: help;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: inset 0 0 0 3px var(--raised), inset 0 0 0 4px var(--line); transition: border-color var(--dur-quick); }
.ct-plate:hover { border-color: var(--current); }
.ct-plate__rivets { position: absolute; inset: 7px; pointer-events: none;
  background: radial-gradient(circle, var(--ct-screw) 2px, transparent 2.6px) right top / 5px 5px no-repeat, radial-gradient(circle, var(--ct-screw) 2px, transparent 2.6px) right bottom / 5px 5px no-repeat; }
.ct-plate__name { font: 800 23px/26px var(--font-display); font-stretch: var(--ct-cond); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.ct-plate__sub { font: 600 11px/14px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.ct-certs__note { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ================================================================ BookingSlots */
.ct-slots { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-slots__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-slots__nav { display: flex; gap: 8px; }
.ct-slots__nav .ct-ibtn { margin-bottom: 3px; }
.ct-slots__days { display: flex; gap: 8px; margin: 0 -4px; padding: 2px 4px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.ct-slots__days::-webkit-scrollbar { display: none; }
.ct-day { position: relative; flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 0 9px; box-sizing: border-box; cursor: pointer; scroll-snap-align: start; font: inherit;
  color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: inset 0 1px 0 var(--ct-hi), 0 3px 0 var(--ct-edge);
  transition: transform var(--dur-snap) var(--ease-rocker), box-shadow var(--dur-snap) var(--ease-rocker), background-color var(--dur-snap); margin-bottom: 3px; }
.ct-day:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ct-hi), 0 4px 0 var(--ct-edge); }
.ct-day[aria-checked="true"] { background: var(--spark); color: var(--spark-ink); border-color: var(--ct-spark-edge); transform: translateY(2px); box-shadow: 0 1px 0 var(--ct-spark-edge); }
.ct-day:disabled { cursor: not-allowed; background: var(--sunk); box-shadow: none; color: var(--ink-soft); }
.ct-day__dow { font: 600 12px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; }
.ct-day__num { font: 800 26px/28px var(--font-display); font-stretch: var(--ct-cond); }
.ct-day__mon { font-size: 12px; line-height: 14px; }
.ct-day__leds { display: flex; gap: 3px; margin-top: 6px; }
.ct-day__leds i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.ct-day__leds i.is-on { background: var(--earth); }
.ct-day[aria-checked="true"] .ct-day__leds i { background: rgb(0 0 0 / .22); }
.ct-day[aria-checked="true"] .ct-day__leds i.is-on { background: var(--spark-ink); }
.ct-slots__wl { margin-top: 4px; }
.ct-slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ct-slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; box-sizing: border-box; cursor: pointer; text-align: left; font: inherit;
  color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: inset 0 1px 0 var(--ct-hi), 0 3px 0 var(--ct-edge);
  transition: transform var(--dur-snap) var(--ease-rocker), box-shadow var(--dur-snap) var(--ease-rocker), border-color var(--dur-snap); margin-bottom: 3px; }
.ct-slot:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ct-hi), 0 4px 0 var(--ct-edge); }
.ct-slot[aria-checked="true"] { transform: translateY(2px); border-color: var(--current); box-shadow: inset 0 0 0 1px var(--current), 0 1px 0 var(--ct-edge); background: color-mix(in srgb, var(--current) 12%, var(--raised)); }
.ct-slot__time { font: 700 17px/22px var(--font-display); font-stretch: var(--ct-semi); }
.ct-slot__meta { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ct-slot.is-full { cursor: not-allowed; box-shadow: none; color: var(--ink-soft); background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--line) 6px 7px), var(--sunk); }
.ct-slot.is-full .ct-slot__time { text-decoration: line-through; text-decoration-thickness: 1px; }
.ct-slots__grid.is-entering > * { animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }
.ct-slots__grid.is-entering > :nth-child(2) { animation-delay: 30ms; } .ct-slots__grid.is-entering > :nth-child(3) { animation-delay: 60ms; }
.ct-slots__grid.is-entering > :nth-child(4) { animation-delay: 90ms; } .ct-slots__grid.is-entering > :nth-child(5) { animation-delay: 120ms; }
.ct-slots__sum { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; box-sizing: border-box; border-radius: var(--radius-md); border: 1px dashed var(--line-strong); color: var(--ink-soft); font-size: 15px; line-height: 20px; }
.ct-slots__sum .ct-icon { width: 18px; height: 18px; color: var(--ink-soft); }
.ct-slots__sum.is-set { border-style: solid; border-color: color-mix(in srgb, var(--earth) 60%, transparent); color: var(--ink); }
.ct-slots__sum.is-set .ct-icon { color: var(--earth); }

/* ================================================================ ConsumerUnit (service selector) */
.ct-cu { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-cu__lid { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ct-cu__brand { font: 700 21px/26px var(--font-display); font-stretch: var(--ct-semi); }
.ct-cu__instr { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-cu__box { position: relative; display: flex; padding: 14px; box-sizing: border-box; border-radius: var(--radius-lg); background: var(--raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.ct-cu__box::before { content: ""; position: absolute; inset: 5px; border-radius: 10px; border: 1px dashed var(--line); pointer-events: none; }
.ct-cu__main { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 8px 8px 6px 0; margin-right: 12px; border-right: 2px solid var(--line); }
.ct-cu__mlabel { font: 700 10px/12px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--ink-soft); }
.ct-cu__mled { width: 9px; height: 9px; border-radius: 50%; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-snap) 120ms, box-shadow var(--dur-snap) 120ms; }
.ct-cu.is-live .ct-cu__mled { background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-edge), 0 0 0 4px rgb(255 210 26 / .2); }
.ct-cu__mslot { position: relative; width: 44px; height: 64px; border-radius: 5px; background: var(--sunk); box-shadow: var(--shadow-well); }
.ct-cu__mlever { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 28px; border-radius: 3px; background: var(--alarm); color: transparent; font-size: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 2px 0 rgb(0 0 0 / .35);
  transform: translateY(0); transition: transform var(--dur-snap) var(--ease-snap); }
.ct-cu.is-live .ct-cu__mlever { transform: translateY(-30px); }
.ct-cu__count { min-width: 5ch; text-align: center; font: 700 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; color: var(--ink-soft); }
.ct-cu.is-live .ct-cu__count { color: var(--ink); }
.ct-cu__rail { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 12px 6px; }
.ct-mcb { position: relative; display: block; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; border-radius: 7px; -webkit-tap-highlight-color: transparent; }
.ct-mcb::before { content: ""; position: absolute; left: -4px; right: -4px; top: 56%; height: 26px; background: var(--sunk); box-shadow: var(--shadow-well); }
.ct-mcb__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 5px 9px; box-sizing: border-box; height: 100%;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: inset 0 1px 0 var(--ct-hi), 0 3px 0 var(--ct-edge);
  transition: border-color var(--dur-snap), box-shadow var(--dur-snap); }
.ct-mcb__tag { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 7px 2px 6px; box-sizing: border-box; border-radius: 3px; background: var(--raised); border: 1px solid var(--line);
  font: 700 11px/13px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .05em; text-transform: uppercase; text-align: center; min-height: 52px; }
.ct-mcb__tag .ct-icon { width: 18px; height: 18px; color: var(--ink-soft); transition: color var(--dur-snap); }
.ct-mcb__led { width: 8px; height: 8px; border-radius: 50%; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-snap), box-shadow var(--dur-snap); }
.ct-mcb__slot { position: relative; width: 26px; height: 46px; border-radius: 4px; background: var(--sunk); box-shadow: var(--shadow-well); }
.ct-mcb__lever { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 20px; border-radius: 3px;
  background: var(--ct-lever) repeating-linear-gradient(180deg, transparent 0 3px, rgb(0 0 0 / .18) 3px 4px) 0 5px / 100% 11px no-repeat; box-shadow: 0 2px 0 rgb(0 0 0 / .35);
  transform: translateY(0); transition: transform var(--dur-snap) var(--ease-snap); }
.ct-mcb__rating { font: 700 11px/12px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .05em; color: var(--ink-soft); }
.ct-mcb:hover .ct-mcb__lever { transform: translateY(-3px); }
.ct-mcb:hover .ct-mcb__body { border-color: var(--ink-soft); }
.ct-mcb[aria-checked="true"] .ct-mcb__lever { transform: translateY(-20px); }
.ct-mcb[aria-checked="true"]:hover .ct-mcb__lever { transform: translateY(-17px); }
.ct-mcb[aria-checked="true"] .ct-mcb__led { background: var(--spark); box-shadow: 0 0 0 1px var(--ct-spark-edge), 0 0 0 4px rgb(255 210 26 / .2); }
.ct-mcb[aria-checked="true"] .ct-mcb__body { border-color: var(--current); box-shadow: inset 0 0 0 1px var(--current), 0 3px 0 var(--ct-edge); }
.ct-mcb[aria-checked="true"] .ct-mcb__tag .ct-icon { color: var(--current); }
.ct-mcb:active .ct-mcb__body { box-shadow: inset 0 1px 0 var(--ct-hi), 0 1px 0 var(--ct-edge); }
.ct-cu__hint { min-height: 40px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .ct-cu__box { flex-direction: column; padding: 12px; }
  .ct-cu__main { width: auto; flex-direction: row; justify-content: flex-start; gap: 12px; margin: 0 0 12px; padding: 0 0 12px; border-right: 0; border-bottom: 2px solid var(--line); }
  .ct-cu__mlabel { text-align: left; }
  .ct-cu__mslot { width: 56px; height: 34px; }
  .ct-cu__mlever { top: 3px; bottom: 3px; left: 3px; right: auto; width: 24px; height: auto; }
  .ct-cu.is-live .ct-cu__mlever { transform: translateX(26px); }
  .ct-cu__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-mcb__tag { font-size: 10px; letter-spacing: .03em; }
}

/* ================================================================ JobChecklist */
.ct-jc { padding: 22px var(--space-6) 16px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ct-jc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ct-jc__title { margin: 4px 0 0; font: 700 21px/26px var(--font-display); }
.ct-jc__count { flex: none; min-width: 3.6em; padding: 4px 10px; box-sizing: border-box; text-align: center; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-soft); font: 700 15px/20px var(--font-display); font-stretch: var(--ct-semi); transition: background-color var(--dur-snap), color var(--dur-snap); }
.ct-jc.is-complete .ct-jc__count { background: var(--earth); border-color: var(--earth); color: var(--surface); }
.ct-jc__list { position: relative; list-style: none; margin: 0; padding: 0; }
.ct-jc__row { position: relative; padding: 10px 0; }
.ct-jc__seg { position: absolute; left: 9.5px; top: 0; bottom: 0; width: 3px; overflow: hidden; border-radius: 2px; background: var(--line-strong); }
.ct-jc__row:first-child .ct-jc__seg { top: 4px; }
.ct-jc__seg i { position: absolute; inset: 0; background: var(--current); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-energise) var(--ease-current), background-color var(--dur-energise); }
.ct-jc__row.is-fed .ct-jc__seg i { transform: scaleY(.26); }
.ct-jc__row.is-done .ct-jc__seg i { transform: scaleY(1); }
.ct-jc__final .ct-jc__seg { bottom: 50%; }
.ct-jc__final.is-fed .ct-jc__seg i { transform: scaleY(1); transition-delay: 240ms; }
.ct-jc.is-complete .ct-jc__seg i { background: var(--earth); }
.ct-jc .ct-check { position: relative; z-index: 1; display: flex; }
.ct-jc__row.is-done .ct-check__label { color: var(--ink-soft); }
.ct-jc.is-complete .ct-sr-input:checked + .ct-check__box { background: var(--earth); border-color: var(--earth); }
.ct-jc__cert { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.ct-jc__certic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-soft);
  transition: background-color var(--dur-snap) 600ms, border-color var(--dur-snap) 600ms, color var(--dur-snap) 600ms; }
.ct-jc__certic .ct-icon { width: 13px; height: 13px; stroke-width: 2.4; }
.ct-jc.is-complete .ct-jc__certic { background: var(--earth); border-color: var(--earth); color: var(--surface); }
.ct-jc__certt { display: block; font-weight: 650; line-height: 22px; }
.ct-jc__certs { display: block; font-size: 14px; line-height: 20px; color: var(--ink-soft); }

/* ================================================================ Reviews */
.ct-rev { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.ct-rev__sum { display: flex; flex-direction: column; gap: 8px; padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ct-rev__score { font: 800 68px/60px var(--font-display); font-stretch: var(--ct-cond); color: var(--ink); }
.ct-rev__count { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-rev__bars { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.ct-rev__bars li { display: grid; grid-template-columns: 10px 14px minmax(0, 1fr) 30px; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; color: var(--ink-soft); }
.ct-rev__bars .ct-icon { width: 13px; height: 13px; stroke-width: 1.2; }
.ct-rev__track { position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--sunk); }
.ct-rev__track b { position: absolute; inset: 0; background: var(--spark); transform-origin: left; }
.ct-rev__bc { text-align: right; }
.ct-rev__main { min-width: 0; container-type: inline-size; }
.ct-rev__track-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100cqw - 32px) / 3); gap: 16px; margin: -4px; padding: 4px 4px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ct-rev__track-row::-webkit-scrollbar { display: none; }
.ct-rev__card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; box-sizing: border-box; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ct-rev__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-rev__date { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.ct-rev__text { flex: 1; margin: 0; font-size: 15.5px; line-height: 24px; color: var(--ink); }
.ct-rev__text p { margin: 0; }
.ct-rev__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ct-rev__who > span:nth-child(2) { display: flex; flex-direction: column; min-width: 120px; flex: 1; }
.ct-rev__name { font-weight: 650; font-size: 15px; line-height: 20px; }
.ct-rev__area { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ct-rev__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.ct-rev__pos { min-width: 5ch; text-align: center; font: 600 15px/20px var(--font-display); font-stretch: var(--ct-semi); color: var(--ink-soft); }
@media (max-width: 900px) {
  .ct-rev { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .ct-rev__sum { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; align-items: start; }
  .ct-rev__sum > :not(.ct-rev__bars) { grid-column: 1; }
  .ct-rev__bars { grid-column: 2; grid-row: 1 / 4; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
}
@container (max-width: 760px) { .ct-rev__track-row { grid-auto-columns: calc((100cqw - 16px) / 2); } }
@container (max-width: 500px) { .ct-rev__track-row { grid-auto-columns: 86cqw; } }
@media (max-width: 600px) { .ct-rev__sum { display: flex; align-items: stretch; } .ct-rev__bars { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ================================================================ PriceGuide */
.ct-pg { min-width: 0; }
.ct-pg .ct-tabs__panel { padding-top: var(--space-4); }
.ct-pg__wrap { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ct-pg__table { width: 100%; border-collapse: collapse; }
.ct-pg__table thead th { padding: 11px 16px; text-align: left; background: var(--raised); border-bottom: 1px solid var(--line);
  font: 600 12px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ct-pg__table tbody th, .ct-pg__table tbody td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.ct-pg__table tbody tr:last-child > * { border-bottom: 0; }
.ct-pg__table tbody tr { transition: background-color var(--dur-quick); }
.ct-pg__table tbody tr:hover { background: var(--raised); }
.ct-pg__job { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 650; font-size: 16px; line-height: 22px; color: var(--ink); }
.ct-pg__note { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-pg__time { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.ct-pg__table .ct-pg__num { text-align: right; white-space: nowrap; }
.ct-pg__table td.ct-pg__num { font: 700 21px/24px var(--font-display); font-stretch: var(--ct-semi); color: var(--ink); }
.ct-pg__num small { margin-left: 2px; font: 400 13px/1 var(--font-body); color: var(--ink-soft); }
.ct-pg__act { width: 1%; white-space: nowrap; }
.ct-pg__book { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; color: var(--current); font-weight: 650; text-decoration: none; }
.ct-pg__book .ct-icon { width: 16px; height: 16px; transition: transform var(--dur-quick) var(--ease-rocker); }
.ct-pg__book:hover .ct-icon { transform: translateX(3px); }
.ct-pg__foot { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-pg__foot .ct-icon { width: 18px; height: 18px; color: var(--current); }
@media (max-width: 680px) {
  .ct-pg__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ct-pg__table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ct-pg__table tbody tr:last-child { border-bottom: 0; }
  .ct-pg__table tbody th, .ct-pg__table tbody td { padding: 0; border: 0; }
  .ct-pg__table tbody th { grid-column: 1 / -1; }
  .ct-pg__time { grid-column: 1; grid-row: 2; align-self: center; }
  .ct-pg__time::before { content: attr(data-l) " · "; }
  .ct-pg__table .ct-pg__num { grid-column: 2; grid-row: 2; }
  .ct-pg__act { grid-column: 1 / -1; grid-row: 3; width: auto; }
  .ct-pg__book { padding-left: 0; }
}

/* shared widget shell */
.ct-jt, .ct-ce, .ct-ft, .ct-qc { box-sizing: border-box; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); min-width: 0; }

/* ================================================================ JobTracker */
.ct-jt { display: flex; flex-direction: column; gap: 20px; }
.ct-jt__head { display: flex; align-items: center; gap: 14px; }
.ct-jt__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-jt__name { font: 700 20px/24px var(--font-display); font-stretch: var(--ct-semi); }
.ct-jt__role { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-jt__etabox { flex: none; display: flex; flex-direction: column; align-items: flex-end; min-width: 9ch; }
.ct-jt__eta { font: 800 30px/32px var(--font-display); font-stretch: var(--ct-cond); white-space: nowrap; }
.ct-jt__etanote { font-size: 12px; line-height: 16px; color: var(--ink-soft); white-space: nowrap; }
.ct-jt__lane { position: relative; height: 40px; overflow: hidden; }
.ct-jt__road { position: absolute; left: 18px; right: 34px; top: 50%; height: 4px; margin-top: -2px; overflow: hidden; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 16px); }
.ct-jt__road b { position: absolute; inset: 0; background: var(--current); transform-origin: left; transform: scaleX(var(--ct-van, 0)); transition: transform var(--dur-flow) var(--ease-current); }
.ct-jt__carrier { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - 74px); transform: translateX(calc(var(--ct-van, 0) * 100%)); transition: transform var(--dur-flow) var(--ease-current); }
.ct-jt__van { position: absolute; left: 0; top: 50%; display: grid; place-items: center; width: 38px; height: 30px; margin-top: -15px; box-sizing: border-box; border-radius: 7px;
  background: var(--spark); color: var(--spark-ink); border: 1px solid var(--ct-spark-edge); box-shadow: 0 2px 0 var(--ct-spark-edge); }
.ct-jt__van .ct-icon { width: 22px; height: 22px; }
.ct-jt__home { position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; box-sizing: border-box; border-radius: 8px;
  background: var(--raised); border: 1.5px solid var(--line-strong); color: var(--ink-soft); transition: border-color var(--dur-snap) 700ms, color var(--dur-snap) 700ms; }
.ct-jt__lane.is-arrived .ct-jt__home { border-color: var(--earth); color: var(--earth); }
.ct-jt__home .ct-icon { width: 18px; height: 18px; }
.ct-jt__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ct-jt__status { flex: 1 1 220px; min-height: 40px; display: flex; align-items: center; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ct-jt__foot .ct-btn { margin-bottom: 4px; }

/* ================================================================ ChargeEstimator */
.ct-ce { display: flex; flex-direction: column; gap: 18px; }
.ct-ce__head { display: flex; align-items: center; gap: 12px; }
.ct-ce__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--current); color: var(--surface); }
.ct-ce__ic .ct-icon { width: 24px; height: 24px; }
.ct-ce__title { margin: 2px 0 0; font: 700 22px/26px var(--font-display); font-stretch: var(--ct-semi); }
.ct-ce__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--raised); }
.ct-ce__out > div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.ct-ce__out > div:last-child { border-right: 0; }
.ct-ce__out dt { font: 600 11px/14px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ct-ce__out dd { margin: 4px 0 0; font: 700 22px/26px var(--font-display); font-stretch: var(--ct-semi); white-space: nowrap; }
.ct-ce__small { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
@media (max-width: 440px) { .ct-ce__out > div { padding: 10px; } .ct-ce__out dd { font-size: 18px; } }

/* ================================================================ FaultTriage */
.ct-ft { display: flex; flex-direction: column; gap: 16px; }
.ct-ft__head { display: flex; align-items: center; gap: 12px; }
.ct-ft__hic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--raised); border: 1.5px solid var(--line-strong); color: var(--spark); }
[data-theme="light"] .ct-ft__hic { color: var(--ink); }
.ct-ft__hic .ct-icon { width: 22px; height: 22px; stroke-linecap: round; }
.ct-ft__title { margin: 2px 0 0; font: 700 22px/26px var(--font-display); font-stretch: var(--ct-semi); }
.ct-ft__trail { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-ft__trail:empty { display: none; }
.ct-ft__trail li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px 7px 12px; border-radius: 8px; background: var(--sunk); font-size: 14px; line-height: 20px; color: var(--ink-soft); animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }
.ct-ft__ta { flex: none; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line-strong); font: 700 12px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ct-ft__stage { min-height: 172px; }
.ct-ft__q { display: flex; flex-direction: column; gap: 12px; }
.ct-ft__q.is-entering, .ct-ft__result.is-entering { animation: ct-rise-sm var(--dur-quick) var(--ease-rocker) backwards; }
.ct-ft__qn { font: 700 13px/16px var(--font-display); font-stretch: var(--ct-semi); letter-spacing: .1em; color: var(--current); }
.ct-ft__qt { margin: 0; font-weight: 650; font-size: 18px; line-height: 26px; }
.ct-ft__yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.ct-ft__result { --rt: var(--current); padding: 16px; border-radius: var(--radius-md); border: 1px solid color-mix(in srgb, var(--rt) 55%, transparent); background: color-mix(in srgb, var(--rt) 8%, var(--surface)); }
.ct-ft__result--alarm { --rt: var(--alarm-text); } .ct-ft__result--neutral { --rt: var(--neutral); } .ct-ft__result--earth { --rt: var(--earth); }
.ct-ft__rhead { display: flex; align-items: center; gap: 10px; font: 700 19px/24px var(--font-display); font-stretch: var(--ct-semi); }
.ct-ft__ric { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--rt); color: var(--surface); }
.ct-ft__result--alarm .ct-ft__ric { background: var(--alarm); color: var(--on-alarm); }
.ct-ft__ric .ct-icon { width: 18px; height: 18px; }
.ct-ft__result p { margin: 10px 0 14px; font-size: 15px; line-height: 22px; color: var(--ink); }
.ct-ft__ractions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ================================================================ QuoteCard */
.ct-qc { display: flex; flex-direction: column; gap: 14px; }
.ct-qc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ct-qc__title { margin: 4px 0 0; font: 700 20px/24px var(--font-display); font-stretch: var(--ct-semi); }
.ct-qc__table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 20px; }
.ct-qc__table td { padding: 9px 0; border-bottom: 1px dashed var(--line-strong); color: var(--ink-soft); }
.ct-qc__table td:last-child { padding-left: 12px; text-align: right; white-space: nowrap; color: var(--ink); font-weight: 600; }
.ct-qc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 14px; }
.ct-qc__amt { font: 800 36px/38px var(--font-display); font-stretch: var(--ct-cond); color: var(--ink); }
.ct-qc__wire { height: 16px; }
.ct-qc.is-accepted .ct-wire__live { stroke: var(--earth); }
.ct-qc.is-accepted .ct-wire__term { stroke: var(--earth); }
.ct-qc__actions { display: flex; flex-direction: column; gap: 8px; }
