/* ==========================================================================
   Rufen Infrastructure service pages (services/<service>.html).
   Shared by the four service pages; the overview (infrastructure.html) keeps
   its own inline styles. Prefixed ip- (page parts) and hx- (hero diagrams) so
   nothing leaks into the shared component library. The look is graphite and
   lime (infra.css, body.pillar-infra). Linked with infra-page.js.
   ========================================================================== */

.ip-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.ip-crumb:hover { color: var(--inf-ink); }
.ip-crumb svg { width: 14px; height: 14px; }

/* ── What you get: plain cards, three across ── */
.ip-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ip-feature { padding: 24px 22px; transition: var(--transition-smooth); }
.ip-feature:hover { transform: translateY(-3px); }
.ip-feature-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--inf-tint);
  color: var(--inf-ink);
}
.ip-feature-ico svg { width: 20px; height: 20px; }
.ip-feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ip-feature p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary); }

/* ── The console: the page's live proof ── */
.ip-console {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  background: #070a13;
  border: 1px solid rgba(132, 204, 22, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  color: #cbd5e1;
}
.ip-console-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.ip-live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; }
.ip-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: ip-pulse 1.6s ease-in-out infinite;
}
.ip-example { margin-left: auto; color: #475569; }
@keyframes ip-pulse { 50% { opacity: 0.35; } }

.ip-panel {
  padding: 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ip-devices { display: flex; flex-direction: column; gap: 8px; }
.ip-dev {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.ip-dev-ico { color: #a3e635; }
.ip-dev-ico svg { width: 16px; height: 16px; display: block; }
.ip-dev-name { font-family: var(--font-mono); font-size: 0.76rem; color: #e2e8f0; }
.ip-dev-name small { display: block; color: #64748b; font-size: 0.68rem; }
.ip-dev-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  white-space: nowrap;
}
.ip-dev-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ip-dev.is-warn { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.06); }
.ip-dev.is-warn .ip-dev-state { color: #f59e0b; }
.ip-dev.is-down { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.07); }
.ip-dev.is-down .ip-dev-state { color: #f87171; }
.ip-dev.is-info .ip-dev-state { color: #93c5fd; }

.ip-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.ip-stat {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
}
.ip-stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.ip-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}
.ip-stat.is-good strong { color: #34d399; }

.ip-log {
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ip-log-line {
  display: grid;
  grid-template-columns: 62px 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-log-line.is-in { opacity: 1; transform: none; }
.ip-log-time { color: #475569; font-variant-numeric: tabular-nums; }
.ip-log-ico svg { width: 14px; height: 14px; margin-top: 2px; display: block; }
.ip-log-text strong { color: #e2e8f0; font-weight: 500; }
.ip-log-text small { display: block; color: #64748b; font-size: 0.72rem; }
.ip-log-line.t-alert .ip-log-ico { color: #f87171; }
.ip-log-line.t-warn .ip-log-ico { color: #f59e0b; }
.ip-log-line.t-move .ip-log-ico { color: #34d399; }
.ip-log-line.t-agent .ip-log-ico { color: #ff8a3d; }
.ip-log-line.t-person .ip-log-ico { color: #93c5fd; }
.ip-log-line.t-done .ip-log-ico { color: #34d399; }
.ip-console-note {
  max-width: 1080px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Good to know: honest small print, in plain words ── */
.ip-notes {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 30px;
}
.ip-notes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ip-notes li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ip-notes li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--inf-lime-deep); }
.ip-notes strong { color: var(--text-primary); font-weight: 600; }

@media (max-width: 1000px) {
  .ip-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ip-console { grid-template-columns: 1fr; }
  .ip-panel { border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
  .ip-log { min-height: 320px; }
}
@media (max-width: 640px) {
  .ip-features { grid-template-columns: 1fr; }
  .ip-log { font-size: 0.72rem; }
  .ip-log-line { grid-template-columns: 54px 16px minmax(0, 1fr); gap: 6px; }
  .ip-example { display: none; }
  .ip-notes { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ip-log-line { transition: none; }
  .ip-live::before { animation: none; }
}

/* ── Grouped "What you get" (a mono label above each grid) ── */
.ip-group-label { margin: 44px 0 16px; }
.ip-group-label:first-of-type { margin-top: 8px; }
/* A group of four sits four across on wide screens */
@media (min-width: 1001px) {
  .ip-features:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── The hero: copy left, this page's diagram right (no particle canvas) ── */
.ip-hero-art { position: relative; z-index: 2; }
.ip-hero-art .hx { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 993px) {
  .ip-hero .split-hero-container-reverse { grid-template-columns: 1fr 1.05fr; }
}
@media (max-width: 992px) {
  .ip-hero .split-hero-container-reverse { flex-direction: column !important; gap: 36px; }
  .ip-hero-art { width: 100%; max-width: 560px; margin: 0 auto; }
  .ip-hero .service-hero { padding-top: 112px !important; }
}

/* ── Hero diagrams (tools/infra_pages/heroes.py) ── */
.hx-t { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; fill: #1f2937; }
.hx-m { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; fill: #64748b; }
.hx-big { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; fill: #ff6b00; }
.hx-card { fill: #fff; stroke: #cbd5e1; stroke-width: 1.2; }
.hx-card-ink { stroke: #1f2937; stroke-width: 1.6; }
.hx-card-voice { stroke: #10b981; stroke-width: 1.6; }
.hx-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #334155; }
.hx-cloud { fill: #fff; stroke: #ff6b00; stroke-width: 1.8; }
.hx-link { fill: none; stroke: #94a3b8; stroke-width: 1.4; stroke-dasharray: 4 5; }
.hx-poe { stroke: #ff6b00; stroke-opacity: 0.55; }
.hx-voice { fill: none; stroke: #10b981; stroke-width: 1.4; }
.hx-data { fill: none; stroke: #ff6b00; stroke-width: 1.4; }
.hx-sec { fill: none; stroke: #1f2937; stroke-width: 1.6; }
.hx-tele { fill: none; stroke: #84cc16; stroke-width: 1.4; stroke-dasharray: 2 4; }
.hx-tunnel { fill: none; stroke: #84cc16; stroke-width: 6; stroke-opacity: 0.25; stroke-linecap: round; }
.hx-pk-d { fill: #ff6b00; }
.hx-pk-v { fill: #10b981; }
.hx-pk-l { fill: #84cc16; }
.hx-led { fill: #84cc16; }
.hx-plan { fill: rgba(255, 255, 255, 0.85); stroke: #94a3b8; stroke-width: 1.4; }
.hx-wall { fill: none; stroke: #cbd5e1; stroke-width: 3; stroke-linecap: round; }
.hx-region { fill: rgba(248, 250, 252, 0.9); stroke: #94a3b8; stroke-width: 1.4; stroke-dasharray: 6 5; }
.hx-standby { opacity: 0.85; }
.hx-ap-core { fill: #1f2937; }
.hx-ring { fill: none; stroke: #84cc16; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hx-lock circle { fill: #fff; stroke: #84cc16; stroke-width: 1.4; }
.hx-ai rect { fill: rgba(255, 107, 0, 0.08); stroke: rgba(255, 107, 0, 0.5); }
.hx-ai text { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; fill: #c2560a; }
.hx-ssl rect { fill: rgba(132, 204, 22, 0.12); stroke: #84cc16; }
.hx-ssl text { font-family: var(--font-mono); font-size: 9px; font-weight: 700; fill: #4d7c0f; }
.hx-done circle { fill: #84cc16; }
.hx-done path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-call rect { fill: rgba(16, 185, 129, 0.1); stroke: #10b981; }
.hx-call text { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; fill: #047857; }
.hx-fault-tag { opacity: 0; }
.hx-fault-tag rect { fill: #fff; stroke: #ef4444; stroke-width: 1.4; }
.hx-fault-tag text { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; fill: #b91c1c; }
.hx-fault-tag .hx-fault-sub { font-weight: 500; fill: #64748b; font-size: 8.5px; }
@media (prefers-reduced-motion: no-preference) {
  .hx-link, .hx-tele { animation: hxDash 1.2s linear infinite; }
  .hx-fail-link { animation: hxDash 1.2s linear infinite, hxFailLink 12s ease-in-out infinite; }
  .hx-fail-pk { animation: hxFailPk 12s ease-in-out infinite; }
  .hx-fail-led { animation: hxFailLed 12s ease-in-out infinite; }
  .hx-fault-tag { animation: hxFaultTag 12s ease-in-out infinite; }
  .hx-led { animation: hxLed 2.4s ease-in-out infinite; }
  .hx-ring { animation: hxRing 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
  .hx-ap .hx-ring-2 { animation-delay: calc(var(--d, 0s) + 1.3s); }
  .hx-ring-card { animation: hxRingCard 6s ease-in-out infinite; }
  .hx-call { animation: hxCall 6s ease-in-out infinite; }
  .hx-done { animation: hxDone 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) { .hx-pks { display: none; } }
@keyframes hxDash { to { stroke-dashoffset: -9; } }
@keyframes hxFailLink { 0%, 48%, 78%, 100% { stroke: #94a3b8; } 52%, 74% { stroke: #ef4444; } }
@keyframes hxFailPk { 0%, 48%, 78%, 100% { opacity: 1; } 51%, 75% { opacity: 0; } }
@keyframes hxFailLed { 0%, 48%, 78%, 100% { fill: #84cc16; } 52%, 74% { fill: #f59e0b; } }
@keyframes hxFaultTag { 0%, 50%, 78%, 100% { opacity: 0; } 54%, 74% { opacity: 1; } }
@keyframes hxLed { 50% { opacity: 0.4; } }
@keyframes hxRing { 0% { opacity: 0.7; transform: scale(0.45); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes hxRingCard { 0%, 70%, 100% { stroke: #cbd5e1; stroke-width: 1.2; } 76%, 84%, 92% { stroke: #10b981; stroke-width: 2.4; } 80%, 88% { stroke: #10b981; stroke-width: 1.2; } }
@keyframes hxCall { 0%, 70%, 100% { opacity: 0; } 76%, 94% { opacity: 1; } }
@keyframes hxDone { 0%, 70%, 100% { opacity: 0.25; transform: scale(0.85); } 80%, 92% { opacity: 1; transform: scale(1); } }

/* ── Rufen plans (Internet & mobile): four open columns, then the home price table ── */
.ip-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ip-plan { display: flex; flex-direction: column; padding-top: 18px; border-top: 2px solid var(--inf-ink); }
.ip-plan-for { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ip-plan h3 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.ip-plan p { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary); }
.ip-plan ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ip-plan li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); }
.ip-plan li svg { width: 15px; height: 15px; margin-top: 3px; color: var(--inf-lime-deep); }
.ip-plan-price { margin-top: auto; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--inf-ink); }
.ip-pricebox { margin-top: 40px; padding: 0; overflow: hidden; }
.ip-prices table { width: 100%; border-collapse: collapse; }
.ip-prices caption { caption-side: top; text-align: left; padding: 18px 22px 6px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }
.ip-prices th, .ip-prices td { padding: 12px 22px; text-align: left; border-top: 1px solid var(--inf-line); font-size: 0.92rem; color: var(--text-secondary); }
.ip-prices thead th { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ip-prices tbody th { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
.ip-price { text-align: right !important; white-space: nowrap; }
.ip-prices thead th:last-child { text-align: right; }
.ip-price strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--inf-ink); }
.ip-price small { margin-left: 3px; font-size: 0.78rem; color: var(--text-muted); }
.ip-prices-note { margin: 0; padding: 14px 22px 18px; border-top: 1px solid var(--inf-line); font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 1000px) { .ip-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ip-plans { grid-template-columns: 1fr; }
  .ip-prices th, .ip-prices td { padding: 10px 12px; font-size: 0.84rem; }
}
.ip-prices td:nth-child(4) { font-family: var(--font-mono); font-size: 0.8rem; color: var(--inf-ink); }

/* Home / Business price tabs: plain text tabs, one panel at a time (infra-page.js) */
.ip-price-tabs { display: flex; gap: 26px; padding: 0 22px; border-bottom: 1px solid var(--inf-line); }
.ip-price-tab { padding: 16px 2px 13px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.ip-price-tab small { margin-left: 4px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; color: var(--text-muted); }
.ip-price-tab:hover { color: var(--inf-ink); }
.ip-price-tab[aria-selected="true"] { color: var(--inf-ink); border-bottom-color: var(--inf-ink); }
.ip-price-tab:focus-visible { outline: 2px solid var(--inf-lime-deep); outline-offset: 2px; }
.ip-prices[hidden] { display: none; }
.ip-prices tr:first-child th, .ip-prices thead th { border-top: 0; }
a.ip-plan-price { text-decoration: underline; text-decoration-color: var(--inf-lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ip-mobile-line { display: flex; align-items: flex-start; gap: 10px; max-width: 900px; margin: 18px auto 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); }
.ip-mobile-line svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--inf-lime-deep); }

/* Plans card: each tab = price table (left) + that plan's description (right) */
.ip-panel-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.ip-panel-table { min-width: 0; }
.ip-panel-info { padding: 22px 24px; border-left: 1px solid var(--inf-line); background: #fcfcfd; display: flex; flex-direction: column; }
.ip-panel-info h3 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.ip-panel-info p { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary); }
.ip-panel-info ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ip-panel-info li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); }
.ip-panel-info li svg { width: 15px; height: 15px; margin-top: 3px; color: var(--inf-lime-deep); }
.ip-panel-info .ip-plan-price { margin-top: auto; }
.ip-facts th { width: 40%; }
.ip-facts td { color: var(--text-primary); }
@media (max-width: 900px) {
  .ip-panel-grid { grid-template-columns: 1fr; }
  .ip-panel-info { order: -1; border-left: 0; border-bottom: 1px solid var(--inf-line); }
  .ip-panel-table { overflow-x: auto; }
  .ip-panel-table table:not(.ip-facts) { min-width: 560px; }
}
.ip-panel-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ip-panel-table table:not(.ip-facts) th, .ip-panel-table table:not(.ip-facts) td { padding: 12px 16px; }
.ip-panel-table table:not(.ip-facts) tbody th, .ip-panel-table table:not(.ip-facts) tbody td { white-space: nowrap; }
.ip-panel-table table:not(.ip-facts) th:first-child { padding-left: 22px; }
@media (max-width: 900px) { .ip-panel-grid { grid-template-columns: 1fr; } }

/* ── How we look after it: the warm heart of the page ── */
:root:not([data-theme="dark"]) .ip-care { background: linear-gradient(180deg, #fbfdf6 0%, #f5fbe9 100%) !important; }
.ip-care .section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.ip-care-steps { position: relative; list-style: none; margin: 48px auto 0; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
/* The dotted path joining the four moments, with a light running along it */
.ip-care-path { position: absolute; left: 12%; right: 12%; top: 66px; height: 2px; background: repeating-linear-gradient(90deg, rgba(77, 124, 15, 0.35) 0 6px, transparent 6px 12px); }
.ip-care-path span { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--inf-lime); box-shadow: 0 0 12px var(--inf-lime); }
.ip-care-step { position: relative; z-index: 1; text-align: center; }
.ip-care-art { width: 168px; height: 132px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px -18px rgba(77, 124, 15, 0.55); }
.ip-care-art svg { width: 150px; height: 104px; overflow: visible; }
.ip-care-n { display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--inf-lime-deep); }
.ip-care-step h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); }
.ip-care-step p { margin: 0 auto; max-width: 250px; font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary); }
.ip-care-promise { max-width: 760px; margin: 52px auto 0; text-align: center; }
.ip-care-never { margin: 0 0 8px; font-size: 1.02rem; color: var(--text-secondary); }
.ip-care-never em { font-style: normal; text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.55); text-decoration-thickness: 2px; color: var(--text-muted); }
.ip-care-always { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.6; color: var(--text-primary); }
.ip-care-always strong { font-family: var(--font-display); font-weight: 600; color: var(--inf-ink); background: linear-gradient(transparent 62%, rgba(132, 204, 22, 0.35) 62%); }
.ip-care-more { font-weight: 600; color: var(--inf-ink); text-decoration: underline; text-decoration-color: var(--inf-lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The illustrations: graphite line art, lime life */
.ic-line { fill: none; stroke: #1f2937; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: #fff; }
.ic-led { fill: #84cc16; }
.ic-dim { fill: #cbd5e1; }
.ic-eye { fill: #1f2937; }
.ic-wave { fill: none; stroke: #84cc16; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ic-bubble rect { fill: #fff; stroke: #ef4444; stroke-width: 2; }
.ic-bubble path { fill: #fff; stroke: #ef4444; stroke-width: 2; stroke-linejoin: round; }
.ic-bubble text { font-family: var(--font-display); font-size: 15px; font-weight: 700; fill: #ef4444; }
.ic-dots circle { fill: #ff8a3d; }
.ic-ticket rect { fill: #fff; stroke: #ff8a3d; stroke-width: 2; }
.ic-ticket path { fill: none; stroke: #fdba74; stroke-width: 2.4; stroke-linecap: round; }
.ic-check { fill: none; stroke: #84cc16; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 0; }
.ic-road { fill: none; stroke: #cbd5e1; stroke-width: 2; stroke-dasharray: 6 6; }
@media (prefers-reduced-motion: no-preference) {
  .ip-care-path span { animation: icPath 6s linear infinite; }
  .ic-wave { animation: icWave 2.6s ease-out infinite; }
  .ic-w2 { animation-delay: 1.3s; }
  .ic-bubble { animation: icBob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom left; }
  .ic-dots circle { animation: icDot 1.2s ease-in-out infinite; }
  .ic-dots circle:nth-child(2) { animation-delay: 0.2s; }
  .ic-dots circle:nth-child(3) { animation-delay: 0.4s; }
  .ic-ticket { animation: icTicket 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .ic-eye { animation: icBlink 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .ic-check { animation: icCheck 3.2s ease-in-out infinite; }
  .ic-van { animation: icVan 5s ease-in-out infinite; }
  .ic-led { animation: icLed 2s ease-in-out infinite; }
}
@keyframes icPath { from { left: 0; } to { left: 100%; } }
@keyframes icWave { 0% { opacity: 0.8; transform: scale(0.8); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes icBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes icDot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes icTicket { 0%, 20% { opacity: 0; transform: translateX(-8px); } 35%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes icBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(0.1); } }
@keyframes icCheck { 0%, 25% { stroke-dashoffset: 30; } 50%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
@keyframes icVan { 0% { transform: translateX(-24px); opacity: 0; } 20% { opacity: 1; } 55%, 85% { transform: translateX(14px); opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }
@keyframes icLed { 50% { opacity: 0.35; } }
@media (max-width: 960px) {
  .ip-care-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .ip-care-path { display: none; }
}
@media (max-width: 520px) { .ip-care-steps { grid-template-columns: 1fr; } }

/* All four plan tabs share one spot, so the card keeps the height of the
   tallest and doesn't jump as you switch (the hidden ones keep their space) */
.ip-pricebox { display: grid; grid-template-columns: minmax(0, 1fr); }
.ip-pricebox > .ip-price-tabs { grid-row: 1; grid-column: 1; }
.ip-pricebox > .ip-prices { grid-row: 2; grid-column: 1; }
.ip-pricebox > .ip-prices[hidden] { display: block; visibility: hidden; pointer-events: none; }
.ip-prices .ip-panel-grid { height: 100%; }
.ip-care-always em { font-style: normal; text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.55); text-decoration-thickness: 2px; color: var(--text-muted); }
.ip-care-step p { max-width: 220px; }
/* The promise sits on one line on wider screens */
.ip-care-promise { max-width: none; }
@media (min-width: 900px) { .ip-care-always { white-space: nowrap; font-size: 1.08rem; } }
.ip-notes-more { display: inline-block; margin-top: 18px; margin-left: 30px; font-weight: 600; color: var(--inf-ink); text-decoration: underline; text-decoration-color: var(--inf-lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The problem + the small print, side by side (Mars: one section) */
.ip-problem-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1180px; margin: 0 auto; }
.ip-problem-grid .experience-compare { margin: 0; }
.ip-problem-grid .ip-notes { max-width: none; margin: 0; padding: 4px 0 0; }
.ip-problem-grid .ip-notes h3 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.ip-problem-grid .ip-notes li { font-size: 0.9rem; }
.ip-problem-grid .ip-notes-more { margin-left: 30px; }
@media (max-width: 980px) { .ip-problem-grid { grid-template-columns: 1fr; gap: 28px; } }
/* Line the two sides up: same top, same bottom */
.ip-problem-grid { align-items: stretch; }
.ip-problem-grid .experience-compare { display: flex; flex-direction: column; }
.ip-problem-grid .experience-compare .compare-row { flex: 1; }
.ip-problem-grid .ip-notes { display: flex; flex-direction: column; padding-top: 0; }
.ip-problem-grid .ip-notes h3 { margin: 18px 0 12px; }
.ip-problem-grid .ip-notes ul { gap: 9px; }
.ip-problem-grid .ip-notes li { font-size: 0.82rem; line-height: 1.5; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.ip-problem-grid .ip-notes li svg { width: 15px; height: 15px; margin-top: 2px; }
.ip-problem-grid .ip-notes-more { margin-top: auto; padding-top: 12px; margin-left: 26px; font-size: 0.86rem; }

/* The comparison sits open on the page (no box), with a thin line between it
   and the small print */
body.pillar-infra main .ip-problem-grid .experience-compare { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; }
body.pillar-infra main .ip-problem-grid .experience-compare::before { display: none; }
.ip-problem-grid .compare-head { background: none; border: 0; padding-left: 0; padding-right: 0; }
.ip-problem-grid .compare-row { padding-left: 0; padding-right: 0; }
.ip-problem-grid .compare-row + .compare-row { border-top: 0; }
.ip-problem-grid .compare-row:hover { background: none; }
.ip-problem-grid .ip-notes { border-left: 1px solid var(--inf-line-strong); padding-left: 36px; }
@media (max-width: 980px) { .ip-problem-grid .ip-notes { border-left: 0; padding-left: 0; border-top: 1px solid var(--inf-line-strong); padding-top: 8px; } }
body.pillar-infra main .ip-problem-grid .ip-notes { border-left: 1px solid var(--inf-line-strong); padding-left: 36px; }
@media (max-width: 980px) { body.pillar-infra main .ip-problem-grid .ip-notes { border-left: 0; padding-left: 0; border-top: 1px solid var(--inf-line-strong); padding-top: 8px; } }

/* Networks & security hero: a threat stopped at the firewall, antivirus on devices, SD-WAN branch */
.hx-pk-bad { fill: #ef4444; }
.hx-wifi { fill: none; stroke: #84cc16; stroke-width: 1.4; stroke-dasharray: 2 4; }
.hx-sdw { stroke: #84cc16; stroke-opacity: 0.8; }
.hx-av circle { fill: #fff; stroke: #84cc16; stroke-width: 1.4; }
.hx-blocked rect { fill: #fff; stroke: #ef4444; stroke-width: 1.4; }
.hx-blocked text { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; fill: #b91c1c; }
.hx-blocked { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hx-blocked { animation: hxBlocked 4s linear infinite; }
  .hx-card-ink.hx-hit { animation: none; }
}
@keyframes hxBlocked { 0%, 37% { opacity: 0; transform: translateY(4px); } 41%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* ===========================================================================
   Networks & security: the rack (Mars, 21 Nov 2026: "This page needs its own
   design"). A graphite cabinet of five units, street to desk. The selected
   unit slides out like a server on rails; its points sit beside the rack.
   =========================================================================== */
.ir-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.ir-cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--inf-ink-deep);
  /* the rails, with their mounting holes */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.16) 1.4px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,0.16) 1.4px, transparent 1.8px);
  background-size: 10px 12px, 10px 12px;
  background-position: 8px 6px, calc(100% - 8px) 6px;
  background-repeat: repeat-y;
}
.ir-cab-top, .ir-cab-foot {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
}
.ir-cab-top::after, .ir-cab-foot::after { content: ""; flex: 1; border-top: 1px dashed rgba(255,255,255,0.18); }
.ir-cab-top { padding-bottom: 2px; }
.ir-cab-foot { padding-top: 2px; }

.ir-unit {
  position: relative;
  display: grid;
  grid-template-columns: 8px 10px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: linear-gradient(180deg, #374151 0%, #2b3442 100%);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.35s ease, background 0.25s ease;
}
.ir-unit:hover { border-color: rgba(132,204,22,0.45); }
.ir-unit:focus-visible { outline: 2px solid var(--inf-lime); outline-offset: 3px; }
.ir-unit[aria-selected="true"] {
  transform: translateX(18px);
  border-color: var(--inf-lime);
  background: linear-gradient(180deg, #3f4a5c 0%, #303a49 100%);
  box-shadow: -18px 0 0 -10px rgba(0,0,0,0.0), 0 14px 26px -14px rgba(0,0,0,0.8);
}
/* the rails it slid out on */
.ir-unit[aria-selected="true"]::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 18px; height: 10px; margin-top: -5px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 2px, transparent 2px 5px);
}
.ir-screw { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9ca3af, #4b5563); }
.ir-led { width: 8px; height: 8px; border-radius: 50%; background: var(--inf-lime); box-shadow: 0 0 6px var(--inf-lime); }
.ir-name {
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  min-width: 0;
}
.ir-name small {
  display: block; margin-top: 3px;
  font-family: var(--font-body, inherit); font-size: 0.84rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: rgba(255,255,255,0.68);
}
.ir-unit[aria-selected="true"] .ir-name small { color: rgba(255,255,255,0.9); }

/* The unit's front panel: a small animation of what it does. All 110 x 24. */
.ir-anim { position: relative; display: block; width: 110px; height: 24px; color: var(--inf-lime); }
.ir-anim svg { position: absolute; width: 14px; height: 14px; }
.ir-trk { position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: rgba(255,255,255,0.16); }
.ir-pk { position: absolute; left: 0; width: 6px; height: 6px; margin-top: -2px; border-radius: 50%; background: var(--inf-lime); box-shadow: 0 0 6px var(--inf-lime); opacity: 0; }

/* Antivirus: a magnifying glass scanning a row of files */
.ir-scan { display: flex; align-items: center; gap: 5px; padding: 0 4px; }
.ir-scan i { display: block; width: 10px; height: 13px; border-radius: 2px; background: #111827; border: 1px solid rgba(255,255,255,0.18); }
.ir-mag { top: 3px; left: 0; width: 18px !important; height: 18px !important; filter: drop-shadow(0 0 4px rgba(132,204,22,0.6)); }

/* SD-WAN: two links; the top one goes bad and traffic moves to the bottom one */
.ir-sdwan .ir-trk-a { top: 6px; }
.ir-sdwan .ir-trk-b { top: 16px; }
.ir-sdwan .ir-pk-a { top: 6px; }
.ir-sdwan .ir-pk-b { top: 16px; }

/* Firewall: good packets pass the gate, a bad one is stopped */
.ir-fw .ir-trk { top: 11px; }
.ir-fw .ir-pk { top: 11px; }
.ir-gate { position: absolute; left: 52px; top: 2px; width: 4px; height: 20px; border-radius: 2px; background: #9ca3af; }
.ir-fw .ir-bad { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* Switches: calls first, then video, then web */
.ir-qos .ir-trk { top: 11px; }
.ir-q { top: 5px; left: 0; opacity: 0; }
.ir-q2 { color: #d9f99d; }
.ir-q3 { color: #9ca3af; }

/* Wi-Fi: a device walks between two access points; the nearer one serves it */
.ir-ap { top: 5px; color: #6b7280; }
.ir-ap-l { left: 0; }
.ir-ap-r { right: 0; }
.ir-dev { position: absolute; top: 15px; left: 20px; width: 8px; height: 6px; border-radius: 2px; background: #e5e7eb; }

/* Still frames when motion is reduced */
.ir-sdwan .ir-pk-b, .ir-fw .ir-ok, .ir-q { opacity: 1; }
.ir-sdwan .ir-pk-b { left: 50%; }
.ir-fw .ir-ok { left: 80%; }
.ir-q1 { left: 70%; } .ir-q2 { left: 45%; } .ir-q3 { left: 20%; }
.ir-ap-l { color: var(--inf-lime); }

@media (prefers-reduced-motion: no-preference) {
  .ir-led { animation: irLed 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .ir-mag { animation: irMag 3s linear infinite; }
  .ir-scan i { animation: irFile 3s linear infinite; animation-delay: calc(var(--i) * 0.6s + 0.15s); }

  .ir-sdwan .ir-pk, .ir-fw .ir-ok, .ir-q { left: 0; opacity: 0; }
  .ir-sdwan .ir-trk-a { animation: irLinkBad 6s linear infinite; }
  .ir-sdwan .ir-pk-a { animation: irRunA 6s linear infinite; }
  .ir-sdwan .ir-pk-b { animation: irRunB 6s linear infinite; }
  .ir-sdwan .ir-late { animation-delay: -0.75s; }

  .ir-fw .ir-ok { animation: irPass 3s linear infinite; }
  .ir-fw .ir-ok.ir-late { animation-delay: -1.5s; }
  .ir-fw .ir-bad { animation: irStop 3s linear infinite; animation-delay: -0.75s; }
  .ir-gate { animation: irGate 3s linear infinite; animation-delay: -0.75s; }

  .ir-q { animation: irLane 3.6s linear infinite; }
  .ir-q2 { animation-delay: 0.5s; }
  .ir-q3 { animation-delay: 1s; }

  .ir-dev { animation: irWalk 6s ease-in-out infinite; }
  .ir-ap-l { animation: irServeL 6s ease-in-out infinite; }
  .ir-ap-r { animation: irServeR 6s ease-in-out infinite; }
}
@keyframes irLed { 50% { opacity: 0.45; box-shadow: 0 0 2px var(--inf-lime); } }
@keyframes irMag { from { left: -4px; } to { left: calc(100% - 14px); } }
@keyframes irFile {
  0% { background: rgba(132,204,22,0.85); border-color: var(--inf-lime); }
  45% { background: rgba(132,204,22,0.35); border-color: rgba(132,204,22,0.6); }
  100% { background: #111827; border-color: rgba(255,255,255,0.18); }
}
/* 0-50%: top link carries traffic. 50-100%: top link flickers, traffic is on the bottom link */
@keyframes irLinkBad {
  0%, 48% { background: rgba(132,204,22,0.45); }
  52%, 60%, 68%, 76%, 84%, 92% { background: rgba(239,68,68,0.55); }
  56%, 64%, 72%, 80%, 88%, 96% { background: rgba(255,255,255,0.1); }
  100% { background: rgba(132,204,22,0.45); }
}
@keyframes irRunA { 0% { left: 0; opacity: 1; } 24% { left: 104px; opacity: 1; } 24.01%, 100% { opacity: 0; } }
@keyframes irRunB { 0%, 50% { left: 0; opacity: 0; } 50.01% { opacity: 1; left: 0; } 74% { left: 104px; opacity: 1; } 74.01%, 100% { opacity: 0; } }
@keyframes irPass { 0% { left: 0; opacity: 1; } 50% { left: 104px; opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes irStop { 0% { left: 0; opacity: 1; } 22% { left: 44px; opacity: 1; } 34% { left: 44px; opacity: 0; } 100% { opacity: 0; } }
@keyframes irGate { 0%, 20% { background: #9ca3af; box-shadow: none; } 24%, 34% { background: #ef4444; box-shadow: 0 0 8px #ef4444; } 40%, 100% { background: #9ca3af; box-shadow: none; } }
@keyframes irLane { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 52% { left: 96px; opacity: 1; } 56%, 100% { left: 96px; opacity: 0; } }
@keyframes irWalk { 0%, 10% { left: 20px; } 50%, 60% { left: 82px; } 100% { left: 20px; } }
@keyframes irServeL { 0%, 25% { color: var(--inf-lime); } 35%, 85% { color: #6b7280; } 95%, 100% { color: var(--inf-lime); } }
@keyframes irServeR { 0%, 25% { color: #6b7280; } 35%, 85% { color: var(--inf-lime); } 95%, 100% { color: #6b7280; } }

/* the selected unit's points, beside the rack */
.ir-detail { max-width: 420px; }
.ir-detail[hidden] { display: none; }
.ir-detail-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: var(--inf-ink); color: var(--inf-lime);
}
.ir-detail-ico svg { width: 22px; height: 22px; }
.ir-detail h3 { font-size: 1.6rem; margin: 0 0 4px; color: var(--text-primary); }
.ir-detail-line { margin: 0 0 18px; font-size: 1.02rem; color: var(--text-secondary); }
.ir-detail ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.ir-detail li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--text-primary); line-height: 1.5; }
.ir-detail li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--inf-lime-deep); }
.ir-fits {
  margin: 0; padding-top: 12px; border-top: 1px solid var(--inf-line);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--inf-ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  .ir-detail:not([hidden]) { animation: irIn 0.4s ease both; }
}
@keyframes irIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .ir-wrap { grid-template-columns: 1fr; }
  .ir-detail { max-width: none; }
}
@media (max-width: 520px) {
  .ir-cabinet { padding: 12px 18px; }
  .ir-unit { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .ir-unit .ir-screw { display: none; }
  .ir-unit[aria-selected="true"] { transform: translateX(8px); }
  .ir-unit[aria-selected="true"]::before { left: -8px; width: 8px; }
  .ir-anim { transform: scale(0.8); transform-origin: right center; margin-left: -22px; }
}

/* ===========================================================================
   Business communications (Mars, 21 Nov 2026: each page gets its own design;
   "use actual design interfaces"; "if you need to show phone, use one of the
   [phones we supply]"; the console as the attendant console we supply).
   Vendors are never named or shown by logo; only the look is borrowed.

   1. kp-  the option's interface on the left, the words on the right
   2. kp-  each option in the interface you'd actually use
   3. ac-  the reception example as an attendant console inside Teams
   =========================================================================== */
/* ---- 1. The options across the top; the interface (big) left, words right ---- */
.kp-tabs {
  display: flex; justify-content: center; align-items: stretch; gap: 4px;
  max-width: 1140px; margin: 0 auto 30px; border-bottom: 1px solid var(--inf-line);
}
.kp-tab {
  position: relative; flex: none; padding: 12px 12px 14px; border: 0; background: none; overflow: hidden;
  font: inherit; font-size: 0.95rem; font-weight: 600; white-space: nowrap; color: var(--text-secondary); cursor: pointer;
  transition: color 0.2s ease;
}
.kp-tab:hover, .kp-tab[aria-selected="true"] { color: var(--text-primary); }
.kp-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--inf-line-strong); }
.kp-tab:focus-visible { outline: 2px solid var(--inf-lime); outline-offset: -2px; }
.kp-tsep { flex: none; width: 1px; margin: 12px 10px; background: var(--inf-line-strong); }
/* While they play in turn, a lime bar fills under the one on */
.gp-bar { position: absolute; left: 0; bottom: 0; z-index: 1; width: 0; height: 2px; background: var(--inf-lime); }
.kp-tabs[data-auto="on"] .kp-tab[aria-selected="true"] .gp-bar { animation: gpBar var(--dwell, 6s) linear forwards; }
@keyframes gpBar { to { width: 100%; } }

.kp-wrap {
  --z: 1.72;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  max-width: 1140px; margin: 0 auto;
}
/* Each interface is drawn at 400 x 210 and scaled up to fill the column */
.kp-stage { display: flex; justify-content: center; }
.kp-stage .kp-ui { width: 400px; height: 210px; margin: 0; zoom: var(--z); }
.kp-stage .kp-ui[hidden] { display: none; }
.kp-words .ir-detail { max-width: none; }
.kp-words h3 { margin: 0 0 6px; font-size: 1.5rem; color: var(--text-primary); }

/* ---- 2. Each option, in its own interface ---- */
.kp-ui {
  position: relative; height: 210px; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--inf-line);
  box-shadow: 0 16px 34px -22px rgba(17,24,39,0.55);
  font-size: 0.74rem; line-height: 1.3; text-align: left;
}
.kp-ui svg { display: block; width: 100%; height: 100%; }
.kp-ui b { font-weight: 600; }

/* 1 Teams: the Teams Calls view, matched to a screenshot Mars sent: app
   rail with Calls selected, the Calls header and Personal tab, the dial pad
   with purple digits, Call greyed until a number is in, the work number.
   The dial pad only shows once Teams has phone lines. */
.kt-app { position: absolute; inset: 0; display: grid; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: 20px minmax(0, 1fr); background: #fff; color: #242424; }
.kt-top { grid-column: 1 / -1; display: flex; align-items: center; padding: 0 18px; background: #ebebeb; }
.kt-waffle { width: 10px; height: 10px; background: radial-gradient(circle, #616161 1px, transparent 1.3px) 0 0 / 3.4px 3.4px; }
.kt-rail { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 6px; background: #ebebeb; }
.kt-rail > span { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 44px; padding: 2px 0; border-radius: 4px; font-size: 0.42rem; color: #424242; }
.kt-rail i { position: relative; display: block; width: 13px; height: 13px; color: #616161; }
.kt-rail u { position: absolute; right: -6px; top: -4px; display: grid; place-items: center; width: 10px; height: 10px; border-radius: 50%; background: #c4314b; color: #fff; font-size: 0.36rem; font-weight: 700; text-decoration: none; }
.kt-rail .is-on { background: #fff; color: #5b5fc7; }
.kt-rail .is-on i { color: #5b5fc7; }
.kt-main { display: flex; flex-direction: column; min-width: 0; }
.kt-head { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-bottom: 1px solid #e0e0e0; }
.kt-logo { display: grid; place-items: center; width: 18px; height: 18px; padding: 4px; border-radius: 4px; background: #5b5fc7; color: #fff; }
.kt-head b { font-size: 0.78rem; }
.kt-tab { align-self: stretch; display: flex; align-items: center; margin-left: 8px; font-size: 0.62rem; font-weight: 600; border-bottom: 2px solid #5b5fc7; }
.kt-dial { display: flex; flex-direction: column; gap: 4px; width: 230px; max-width: 92%; margin: 0 auto; padding: 8px 0 4px; }
.kt-field { position: relative; display: flex; align-items: center; height: 19px; padding: 0 7px; overflow: hidden; border-radius: 3px 3px 0 0; border-bottom: 1.5px solid #5b5fc7; background: #f5f5f5; font-size: 0.66rem; white-space: nowrap; }
.kt-ph { position: absolute; left: 7px; color: #616161; }
/* The number types in one character at a time */
.kt-typed { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.kt-caret { width: 1px; height: 11px; margin-left: 1px; background: #242424; }
.kt-pad { display: grid; grid-template-columns: repeat(3, 1fr); }
.kt-pad i { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 23px; border-radius: 4px; font-style: normal; line-height: 1; }
.kt-pad b { font-size: 0.78rem; font-weight: 400; color: #4f52b2; }
.kt-pad small { height: 0.42rem; font-size: 0.34rem; font-weight: 600; letter-spacing: 0.04em; color: #4f52b2; }
.kt-call { display: flex; align-items: center; justify-content: center; gap: 5px; height: 19px; border-radius: 3px; background: #f0f0f0; color: #bdbdbd; font-size: 0.6rem; font-weight: 600; }
.kt-call svg { width: 10px !important; height: 10px !important; }
.kt-work { font-size: 0.56rem; color: #242424; text-align: center; }

@media (prefers-reduced-motion: reduce) { .kd-diag { display: none; } }
/* 1b Teams opens with how it gets real phone lines (10s turn): the
   connection builds left to right, then fades to the dial pad. */
.kd-diag { position: absolute; inset: 0; z-index: 2; background: #fff; }
.kd-diag svg { width: 100%; height: 100%; font-family: var(--font-mono); }
.kd-diag text { font-size: 7.5px; font-weight: 600; letter-spacing: 0.08em; fill: #4b5563; text-anchor: middle; }
.kd-diag .kd-cap { text-anchor: start; font-size: 8px; fill: #1f2937; letter-spacing: 0.14em; }
.kd-diag .kd-strong { fill: #1f2937; }
.kd-diag .kd-teams { fill: #5b5fc7; }
.kd-diag .kd-in { font-size: 8px; fill: #fff; }
.kd-diag .kd-arcl { fill: #5b5fc7; }
.kd-diag .kd-note { font-size: 7px; fill: #6b7280; }
.kd-cl { fill: #fff; stroke-width: 1; }
.kd-grey { stroke: #9ca3af; }
.kd-lime { stroke: #4d7c0f; fill: #f7fee7; }
.kd-purple { stroke: #5b5fc7; fill: #eef0fb; }
.kd-sbc { fill: #1f2937; }
.kd-p { fill: none; stroke: #5b5fc7; stroke-width: 1.8; }
.kd-link { fill: none; stroke: #1f2937; stroke-width: 1.8; stroke-dasharray: 60; }
.kd-arc { fill: none; stroke: #5b5fc7; stroke-width: 1.5; stroke-dasharray: 4 4; }
.kd-pk { fill: #84cc16; }
.kp-a-teams .kt-app { z-index: 1; }

/* 2 Cloud: the softphone app on the desktop and on a mobile (drawn after its
   user guides), a call ringing on both */
.kc-app { position: absolute; inset: 0; background: linear-gradient(135deg, #eaf2ff, #f8fafc); color: #334155; }
.kc-desk { position: absolute; left: 8px; top: 10px; display: flex; flex-direction: column; width: 290px; height: 190px; overflow: hidden; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 8px 22px -10px rgba(15,23,42,0.35); }
.kc-title { display: flex; align-items: center; justify-content: space-between; height: 14px; padding: 0 6px; border-bottom: 1px solid #eef2f7; }
.kc-logo { width: 8px; height: 8px; border-radius: 2px; background: #1f2937; }
.kc-win { display: flex; gap: 6px; }
.kc-win i { width: 5px; height: 1px; background: #64748b; }
.kc-body { flex: 1; display: grid; grid-template-columns: 32px 84px minmax(0, 1fr); min-height: 0; }
.kc-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; background: linear-gradient(180deg, #1d5fc4, #2b8bea); color: #dbeafe; }
.kc-me { display: grid; place-items: center; width: 16px; height: 16px; margin-bottom: 3px; border-radius: 50%; background: #dcfce7; color: #166534; font-style: normal; font-size: 0.32rem; font-weight: 700; }
.kc-rail > span { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; padding: 3px 0; font-size: 0.3rem; }
.kc-rail > span i { display: block; width: 9px; height: 9px; }
.kc-rail .is-on { background: rgba(0,0,0,0.22); color: #fff; }
.kc-mid { display: flex; flex-direction: column; gap: 3px; padding: 5px; border-right: 1px solid #eef2f7; }
.kc-nav { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 3px; font-size: 0.4rem; color: #334155; }
.kc-nav.is-on { background: #f1f5f9; }
.kc-dot { display: grid; place-items: center; width: 11px; height: 11px; padding: 2.5px; border-radius: 50%; color: #fff; }
.kc-blue { background: #3b82f6; }
.kc-purple { background: #a855f7; }
.kc-field { height: 10px; margin-top: 4px; border-radius: 2px; background: #f1f5f9; }
.kc-pad { display: grid; grid-template-columns: repeat(3, 1fr); }
.kc-pad i { font-style: normal; text-align: center; font-size: 0.5rem; font-weight: 700; line-height: 12px; color: #1f2937; }
.kc-btns { display: flex; justify-content: center; gap: 4px; }
.kc-btns i { display: grid; place-items: center; width: 24px; height: 10px; padding: 2px; border-radius: 5px; color: #fff; }
.kc-vid { background: #3b82f6; }
.kc-aud { background: #22c55e; }
.kc-list { display: flex; flex-direction: column; padding: 4px 6px; }
.kc-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 1px solid #f8fafc; font-size: 0.42rem; }
.kc-row > span { display: flex; flex-direction: column; }
.kc-row small { font-size: 0.34rem; color: #94a3b8; }
.kc-row em { display: flex; align-items: center; gap: 2px; font-style: normal; font-size: 0.36rem; color: #64748b; }
.kc-row em svg { width: 6px; height: 6px; }
.kc-row b { font-weight: 400 !important; font-size: 0.36rem; color: #64748b; }
.kc-miss > span, .kc-miss em, .kc-miss b { color: #ef4444 !important; }
.kc-av { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 0.32rem; font-weight: 600; }
.kc-c1 { background: #dbeafe; color: #1d4ed8; }
.kc-c2 { background: #dcfce7; color: #166534; }
.kc-c3 { background: #ede9fe; color: #6d28d9; }
.kc-toast { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; background: #3a3d42; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.kc-toast > span { display: flex; flex-direction: column; font-size: 0.44rem; }
.kc-toast small { font-size: 0.36rem; color: #cbd5e1; }
.kc-tav { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #f6dcc0; color: #7c4a1e; font-style: normal; font-size: 0.36rem; }
.kc-ans, .kc-rej { display: grid; place-items: center; width: 14px; height: 14px; padding: 3.5px; border-radius: 50%; color: #fff; }
.kc-ans { background: #22c55e; }
.kc-rej { background: #ef4444; }
.kc-rej svg { transform: rotate(135deg); }
.kc-mob { position: absolute; right: 8px; top: 8px; width: 92px; height: 194px; overflow: hidden; border-radius: 14px; border: 3px solid #111827; background: #fff; box-shadow: 0 10px 22px -10px rgba(15,23,42,0.5); }
.kc-notch { position: absolute; left: 50%; top: 3px; z-index: 2; width: 26px; height: 5px; margin-left: -13px; border-radius: 3px; background: #111827; }
.kc-mhead { display: flex; justify-content: center; gap: 12px; padding: 12px 0 4px; background: linear-gradient(180deg, #2f7cf6, #3d8bfb); color: rgba(255,255,255,0.75); font-size: 0.4rem; }
.kc-mhead b { padding-bottom: 2px; border-bottom: 1.5px solid #fff; color: #fff; }
.kc-mrow { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-bottom: 1px solid #f1f5f9; font-size: 0.42rem; }
.kc-mring { position: absolute; left: 6px; right: 6px; top: 50px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 8px; background: #1b1f2e; color: #fff; }
.kc-mring b { margin-top: 3px; font-size: 0.46rem; }
.kc-mring small { font-size: 0.36rem; color: #94a3b8; }
.kc-big { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-style: normal; font-size: 0.5rem; }
.kc-mb { display: flex; gap: 16px; margin-top: 5px; }
.kc-mb i { width: 16px; height: 16px; padding: 4px; }

/* 4 and 5: diagrams (1300 routing, SIP trunk through the SBC) */
.kd2 { position: absolute; inset: 0; background: #fff; }
.kd2 svg { font-family: var(--font-mono); }
.kd2 text { font-size: 7px; font-weight: 600; letter-spacing: 0.08em; fill: #4b5563; text-anchor: middle; }
.kd2 .k2-cap { text-anchor: start; font-size: 8px; fill: #1f2937; letter-spacing: 0.14em; }
.kd2 .k2-num { fill: #bef264; font-size: 7.5px; }
.kd2 .k2-h { fill: #1f2937; font-size: 6.5px; }
.kd2 .k2-rt { fill: #1f2937; font-size: 6px; }
.kd2 .k2-sub { fill: #6b7280; font-size: 5.5px; }
.kd2 .k2-note { fill: #6b7280; font-size: 6.5px; }
.k2-line, .k2-p, .k2-coil { fill: none; stroke: #1f2937; stroke-width: 1.6; }
.k2-coil { stroke-width: 1.4; }
.k2-dot { fill: none; stroke: #1f2937; stroke-width: 1.2; stroke-dasharray: 2 3; }
.k2-ink { fill: #1f2937; }
.k2-sbc { fill: #1f2937; stroke: #84cc16; stroke-width: 2; }
.k2-box { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 1; }
.k2-r, .k2-d { fill: #fff; stroke: #d1d5db; stroke-width: 1; }
.k2-r1, .k2-d1 { fill: #ecfccb; stroke: #84cc16; }
.k2-pk { fill: #84cc16; }
.k2-ch { fill: #e5e7eb; }
.k2-ch0, .k2-ch1, .k2-ch2, .k2-ch3 { fill: #84cc16; }

/* 6 Fax and SMS: the inbox, and the fax in your email as a PDF */
.kf-app { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; padding: 10px; background: #f1f5f9; color: #1f2937; }
.kf-inbox { display: flex; flex-direction: column; gap: 3px; padding: 7px; overflow: hidden; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; }
.kf-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-size: 0.46rem; color: #64748b; }
.kf-head b { margin-right: auto; font-size: 0.6rem; color: #1f2937; }
.kf-head .is-on { padding-bottom: 1px; border-bottom: 1.5px solid #84cc16; color: #1f2937; font-weight: 700; }
.kf-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 3px; border-radius: 4px; font-size: 0.44rem; }
.kf-row > span { display: flex; flex-direction: column; min-width: 0; }
.kf-row b { white-space: nowrap; }
.kf-row small { overflow: hidden; font-size: 0.38rem; color: #64748b; white-space: nowrap; text-overflow: ellipsis; }
.kf-row em { font-style: normal; font-size: 0.38rem; color: #94a3b8; }
.kf-ic { display: grid; place-items: center; width: 16px; height: 16px; padding: 3.5px; border-radius: 4px; }
.kf-fax { background: #ecfccb; color: #4d7c0f; }
.kf-sms { background: #e0f2fe; color: #0369a1; }
.kf-env { background: #f1f5f9; color: #334155; }
.kf-new { background: #f7fee7; }
.kf-mail { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; font-size: 0.44rem; box-shadow: 0 8px 20px -12px rgba(15,23,42,0.4); }
.kf-mtop { display: flex; align-items: center; gap: 6px; }
.kf-mtop b { font-size: 0.48rem; }
.kf-mail small { font-size: 0.38rem; color: #64748b; }
.kf-mtext { color: #334155; }
.kf-pdf { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 5px; border-radius: 5px; border: 1px solid #e2e8f0; background: #f8fafc; }
.kf-pdf i { padding: 3px; border-radius: 3px; background: #dc2626; color: #fff; font-style: normal; font-size: 0.38rem; font-weight: 700; }
.kf-pdf span { display: flex; flex-direction: column; }
.kf-pdf b { font-size: 0.44rem; }

/* 7 SMS: the same conversation in a Teams chat and in the softphone app */
.ks2-app { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f1f5f9; color: #242424; }
.ks2-teams { position: relative; flex: 1; display: flex; flex-direction: column; height: 176px; overflow: hidden; border-radius: 6px; border: 1px solid #e0e0e0; background: #fff; }
.ks2-th { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #e0e0e0; }
.ks2-th > span { display: flex; flex-direction: column; font-size: 0.48rem; }
.ks2-th small { font-size: 0.38rem; color: #616161; }
.ks2-av { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #5b5fc7; color: #fff; font-style: normal; font-size: 0.3rem; font-weight: 700; }
.ks2-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px; }
.ks2-in, .ks2-out { max-width: 80%; padding: 5px 8px; border-radius: 6px; font-size: 0.46rem; line-height: 1.3; }
.ks2-in { align-self: flex-start; background: #f0f0f0; }
.ks2-out { align-self: flex-end; }
.ks2-t { background: #e8ebfa; }
.ks2-box { margin: 0 8px 8px; padding: 5px 7px; border-radius: 4px; border-bottom: 1.5px solid #5b5fc7; background: #f5f5f5; font-size: 0.42rem; color: #8a8a8a; }
.ks2-tag { position: absolute; right: 8px; top: 8px; font-family: var(--font-mono); font-size: 0.34rem; font-weight: 700; letter-spacing: 0.12em; color: #5b5fc7; }
.ks2-or { font-family: var(--font-mono); font-size: 0.42rem; font-weight: 700; letter-spacing: 0.12em; color: #64748b; }
.ks2-mob { position: relative; display: flex; flex-direction: column; width: 96px; height: 186px; overflow: hidden; border-radius: 14px; border: 3px solid #111827; background: #fff; }
.ks2-mh { display: flex; flex-direction: column; align-items: center; padding: 12px 4px 5px; background: linear-gradient(180deg, #2f7cf6, #3d8bfb); color: #fff; font-size: 0.42rem; }
.ks2-mh small { font-size: 0.34rem; color: rgba(255,255,255,0.8); }
.ks2-mob .ks2-msgs { padding: 6px 6px 20px; }
.ks2-mob .ks2-in, .ks2-mob .ks2-out { font-size: 0.4rem; }
.ks2-w { background: #dbe8ff; }
.ks2-mob .ks2-tag { top: auto; bottom: 6px; left: 0; right: 0; text-align: center; color: #2f7cf6; }

@media (prefers-reduced-motion: no-preference) {
  .kc-toast, .kc-mring { opacity: 0; animation: kcRing 6s ease infinite; }
  .kc-mring .kc-big { animation: kcPulse 1.1s ease-out infinite; }
  .kc-ans { animation: ktAcc 1s ease-in-out infinite; }
  .k2-r, .k2-d { animation: k2Lit 6s linear infinite; }
  .k2-r2, .k2-d2 { animation-delay: 2s; }
  .k2-r3, .k2-d3 { animation-delay: 4s; }
  .k2-ch0, .k2-ch1, .k2-ch2, .k2-ch3 { animation: k2Ch 6s ease infinite; }
  .k2-ch1 { animation-delay: 0.6s; } .k2-ch2 { animation-delay: 1.2s; } .k2-ch3 { animation-delay: 1.8s; }
  .kf-new { animation: kfNew 6s ease infinite; }
  .ks2-in { opacity: 0; animation: ks2In 6s ease infinite; }
  .ks2-out { opacity: 0; animation: ks2Out 6s ease infinite; }
  .kf-mail { animation: kfMail 6s ease infinite; }
}
@keyframes kcRing { 0%, 14% { opacity: 0; transform: translateY(6px); } 22%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes kcPulse { 0% { box-shadow: 0 0 0 0 rgba(224,231,255,0.6); } 100% { box-shadow: 0 0 0 9px rgba(224,231,255,0); } }
@keyframes k2Lit { 0%, 31% { fill: #ecfccb; stroke: #84cc16; } 34%, 100% { fill: #fff; stroke: #d1d5db; } }
@keyframes k2Ch { 0% { fill: #e5e7eb; } 8%, 88% { fill: #84cc16; } 96%, 100% { fill: #e5e7eb; } }
@keyframes ks2In { 0%, 8% { opacity: 0; transform: translateY(6px); } 16%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ks2Out { 0%, 45% { opacity: 0; transform: translateY(6px); } 53%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes kfNew { 0%, 8% { opacity: 0; transform: translateY(-6px); background: #fff; } 14%, 70% { opacity: 1; transform: none; background: #ecfccb; } 80%, 100% { background: #f7fee7; } }
@keyframes kfMail { 0%, 30% { opacity: 0; transform: translateX(10px); } 38%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* 3 On site / hybrid: the desktop app in a call, with a live voice transcript
   (translated) and then the call summary */
.ko-app { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 210px; background: #1f2024; color: #fff; }
.ko-call { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-bottom: 30px; }
.ko-title { position: absolute; top: 7px; left: 10px; font-size: 0.58rem; color: #cbd5e1; }
.ko-big { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #dcd9f2; color: #3b3486; font-style: normal; font-size: 0.86rem; }
.ko-name { font-size: 0.7rem; font-weight: 400 !important; }
.ko-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; background: #2a2b31; }
.ko-bar em { display: flex; align-items: center; gap: 4px; margin-right: auto; font-style: normal; font-size: 0.56rem; color: #e5e7eb; }
.ko-sig { width: 8px; height: 8px; background: linear-gradient(90deg, #22c55e 0 2px, transparent 2px 3px, #22c55e 3px 5px, transparent 5px 6px, #22c55e 6px) bottom / 100% 100% no-repeat; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ko-bar > i { width: 13px; height: 13px; color: #e5e7eb; }
.ko-bar > i.ko-on { color: #a78bfa; }
.ko-end { display: grid; place-items: center; width: 22px !important; height: 16px !important; padding: 3px; border-radius: 4px; background: #e5484d; }
.ko-end svg { transform: rotate(135deg); }
.ko-tr { display: flex; flex-direction: column; gap: 6px; padding: 7px 8px; background: #26272c; border-left: 1px solid #34353b; }
.ko-trh { display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; font-weight: 600; }
.ko-toggle { width: 18px; height: 10px; border-radius: 5px; background: #3b82f6; position: relative; }
.ko-toggle::after { content: ""; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ko-msg { display: flex; gap: 6px; font-size: 0.6rem; line-height: 1.3; }
.ko-msg > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ko-msg small { font-size: 0.5rem; color: #9ca3af; }
.ko-msg em { padding: 3px 5px; border-radius: 3px; background: #33353b; color: #60a5fa; font-style: normal; }
.ko-av { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #dcd9f2; color: #3b3486; font-style: normal; font-size: 0.4rem; }
.ko-av2 { background: #f6e3cf; color: #8a5a2b; }
.ko-foot { margin-top: auto; font-size: 0.48rem; color: #6b7280; }
.ko-sum { position: absolute; left: 10px; top: 26px; display: flex; flex-direction: column; gap: 3px; width: 200px; padding: 9px 11px; border-radius: 8px; background: #fff; color: #1f2937; box-shadow: 0 12px 26px rgba(0,0,0,0.45); font-size: 0.6rem; opacity: 0; }
.ko-sum b { font-size: 0.7rem; }
.ko-sum small { color: #4b5563; }
.ko-fu { margin-top: 3px; padding: 3px 6px; border-radius: 4px; background: #eff6ff; color: #1d4ed8; }

/* 2 Cloud and 3 On site: the softphone app */
/* 4 Numbers: a number-move tracker */

/* 5 SIP: a trunk dashboard */

/* 6 Fax and SMS: a message inbox */

@media (prefers-reduced-motion: no-preference) {
  .kd-diag { animation: kdOut 10s linear infinite; }
  .kp-a-teams .kt-app { animation: kdIn 10s linear infinite; }
  .kd-n, .kd-arc, .kd-arcl, .kd-note { opacity: 0; animation: kdShow 10s ease infinite; }
  .kd-n2 { animation-delay: 0.5s; } .kd-n3 { animation-delay: 1s; } .kd-n4 { animation-delay: 1.5s; } .kd-n5 { animation-delay: 2s; }
  .kd-arc, .kd-arcl { animation-delay: 2.4s; } .kd-note { animation-delay: 2.8s; }
  .kd-link { stroke-dashoffset: 60; animation: kdDraw 10s ease infinite; }
  .kd-l2 { animation-delay: 0.5s; } .kd-l3 { animation-delay: 1s; } .kd-l4 { animation-delay: 1.5s; }
  .kd-pks { opacity: 0; animation: kdShow 10s ease infinite; animation-delay: 2.2s; }
  .kt-typed { width: 0; animation: ktType 10s infinite; }
  .kt-ph { animation: ktPh 10s linear infinite; }
  .kt-caret { animation: kaRec 1s steps(1) infinite; }
  .kt-call { animation: ktCall 10s ease infinite; }
  .ko-m1, .ko-m2 { opacity: 0; animation: kaIn 6s ease infinite; }
  .ko-m1 { animation-delay: 0.3s; } .ko-m2 { animation-delay: 1.5s; }
  .ko-m1 em { opacity: 0; animation: kaIn 6s ease infinite; animation-delay: 0.9s; }
  .ko-sum { animation: koSum 6s ease infinite; }
}
@keyframes ktAcc { 50% { transform: scale(1.12); } }
@keyframes ktType { 0%, 44% { width: 0; animation-timing-function: steps(12, end); } 68%, 100% { width: 12ch; } }
@keyframes kdOut { 0%, 38% { opacity: 1; visibility: visible; } 42%, 100% { opacity: 0; visibility: hidden; } }
@keyframes kdIn { 0%, 38% { opacity: 0; } 42%, 100% { opacity: 1; } }
@keyframes kdShow { 0% { opacity: 0; } 5%, 100% { opacity: 1; } }
@keyframes kdDraw { 0% { stroke-dashoffset: 60; } 5%, 100% { stroke-dashoffset: 0; } }
@keyframes ktPh { 0%, 44% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes koSum { 0%, 52% { opacity: 0; transform: translateY(8px); } 58%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ktCall {
  0%, 68% { background: #f0f0f0; color: #bdbdbd; box-shadow: none; }
  70%, 76%, 86%, 100% { background: #5b5fc7; color: #fff; box-shadow: none; }
  81%, 92% { background: #5b5fc7; color: #fff; box-shadow: 0 0 0 3px rgba(91,95,199,0.3); }
}
@keyframes kaRec { 50% { opacity: 0.3; } }
@keyframes kaIn { 0% { opacity: 0; transform: translateY(4px); } 6%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* ---- 3. The reception example: the attendant console inside Teams ---- */
.ac-console {
  max-width: 1060px; margin: 0 auto; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--inf-line); background: #fff;
  box-shadow: 0 22px 46px -28px rgba(17,24,39,0.55);
  font-size: 0.72rem; line-height: 1.3; color: #242424; text-align: left;
}
.ac-console svg { display: block; width: 100%; height: 100%; }
.ac-console *, .ac-console *::before, .ac-console *::after { transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.ac-teams { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #464775; color: #fff; }
.ac-dots { width: 12px; height: 12px; background: radial-gradient(circle, #fff 1px, transparent 1.4px) 0 0 / 4px 4px; }
.ac-search { display: flex; align-items: center; gap: 6px; flex: 0 1 420px; height: 22px; margin: 0 auto; padding: 0 8px; border-radius: 4px; background: #e1e1ef; color: #616161; font-size: 0.66rem; }
.ac-search svg { width: 12px; height: 12px; }
.ac-me { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #c4314b; font-size: 0.55rem; font-weight: 700; }
.ac-me u { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: #22a33a; border: 1.5px solid #464775; }
.ac-apphead { display: flex; align-items: center; gap: 16px; padding: 8px 14px; border-bottom: 1px solid #e5e5e5; }
.ac-apphead b { font-size: 0.82rem; }
.ac-tab { color: #616161; padding-bottom: 3px; }
.ac-tab.is-on { color: #242424; border-bottom: 2px solid #5b5fc7; }
.ac-wall { display: flex; gap: 14px; margin-left: auto; font-size: 0.62rem; color: #616161; }
.ac-wall b { margin-left: 3px; color: #242424; font-size: 0.72rem; }
.ac-w1::before { content: "0"; }
.ac-w2::before { content: "41"; }
.ac-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr 1fr; gap: 8px; padding: 8px; background: #ebebeb; }
.ac-favs { grid-column: span 2; }
.ac-panel { min-height: 158px; padding: 10px 12px; border-radius: 4px; background: #fff; }
.ac-panel h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.76rem; font-weight: 700; color: #242424; }
/* queues */
.ac-counters { display: flex; gap: 10px; margin-bottom: 8px; }
.ac-counters > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.56rem; color: #616161; }
.ac-counters b { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 2px; background: #22a33a; color: #fff; font-size: 0.78rem; }
.ac-counters b.ac-chat { background: #038387; }
.ac-q1::before { content: "0"; }
.ac-chat::before { content: "1"; }
#ac-console[data-step="5"] .ac-chat::before { content: "0"; }
.ac-qrow { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-left: 3px solid #22a33a; background: #f7f7f7; opacity: 0.25; }
.ac-qrow span, .ac-person span { display: flex; flex-direction: column; min-width: 0; }
.ac-qrow small, .ac-person small { font-size: 0.58rem; color: #616161; white-space: nowrap; }
.ac-qrow em { margin-left: auto; font-style: normal; color: #616161; }
.ac-qinfo { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.6rem; color: #5b5fc7; opacity: 0; }
.ac-qinfo i { width: 11px; height: 11px; }
.ac-qrule { margin-top: 6px; font-size: 0.56rem; color: #8a8a8a; }
.ac-av { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: #6264a7; color: #fff; font-style: normal; font-size: 0.56rem; font-weight: 700; }
.ac-qrow .ac-av { padding: 7px; }
.ac-av u { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #22a33a; border: 1.5px solid #fff; }
.ac-av u.ac-busy { background: #c4314b; }
.ac-av u.ac-away { background: #f8d22a; }
/* workspace */
.ac-avail { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #22a33a; font-weight: 600; }
.ac-avail i { width: 8px; height: 8px; border-radius: 50%; background: #22a33a; }
.ac-avs::before { content: "Available"; }
.ac-rec { margin-left: auto; padding: 1px 5px; border-radius: 3px; background: #fde7e9; color: #c4314b; font-style: normal; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.06em; opacity: 0; }
.ac-call { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #e0e0e0; border-radius: 4px; opacity: 0.35; }
.ac-ctop { display: flex; justify-content: space-between; }
.ac-ctop em { font-style: normal; color: #5b5fc7; }
.ac-cstate::before { content: "No call"; }
.ac-cnum { color: #616161; }
.ac-note { position: relative; height: 22px; padding: 3px 6px; overflow: hidden; border-radius: 3px; border: 1px solid #e0e0e0; background: #f5f5f5; }
.ac-note i { font-style: normal; color: #9e9e9e; }
.ac-note b { position: absolute; left: 6px; top: 3px; font-weight: 400; color: #242424; white-space: nowrap; opacity: 0; }
.ac-btns { display: flex; gap: 6px; margin-top: 10px; }
.ac-btns i { display: grid; place-items: center; flex: 1; height: 24px; padding: 5px; border-radius: 3px; background: #d6d6d6; color: #fff; }
.ac-btns svg { width: 14px; height: 14px; }
.ac-ans { background: #22a33a !important; opacity: 0.5; }
.ac-end { background: #c4314b !important; opacity: 0.5; }
.ac-end svg { transform: rotate(135deg); }
/* Teams chat, answered from the console */
.ac-panel h4 small { margin-left: auto; font-weight: 400; font-size: 0.58rem; color: #616161; }
.ac-msg { display: flex; gap: 6px; margin-bottom: 6px; font-size: 0.64rem; }
.ac-msg > span { display: flex; flex-direction: column; gap: 2px; max-width: 86%; padding: 5px 8px; border-radius: 6px; background: #f5f5f5; }
.ac-msg small { font-size: 0.54rem; color: #616161; }
.ac-out { justify-content: flex-end; opacity: 0; }
.ac-out > span { background: #e8ebfa; }
.ac-typing { display: flex; gap: 3px; margin: 0 0 6px 32px; opacity: 0; }
.ac-typing i { width: 4px; height: 4px; border-radius: 50%; background: #8a8a8a; }
#ac-console[data-step="5"] .ac-out { opacity: 1; }
#ac-console[data-step="4"] .ac-typing { opacity: 1; }
#ac-console:is([data-step="0"], [data-step="1"]) .ac-chatp { box-shadow: inset 3px 0 0 #038387; }
/* history */
.ac-hrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; padding: 5px 4px; border-bottom: 1px solid #f0f0f0; font-size: 0.64rem; }
.ac-hrow em { font-style: normal; color: #616161; }
.ac-hnew { display: none; background: #f0fdf4; }
/* directory and favourites */
.ac-find { display: flex; align-items: center; gap: 6px; height: 24px; margin-bottom: 8px; padding: 0 8px; border-radius: 4px; border: 1px solid #d1d1d1; color: #616161; }
.ac-find svg { width: 12px; height: 12px; flex: none; }
.ac-q::before { content: "Search name, department or number"; color: #9e9e9e; }
.ac-person { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 4px; border-radius: 4px; border: 1px solid transparent; }
.ac-person em { margin-left: auto; font-style: normal; font-size: 0.62rem; color: #22a33a; white-space: nowrap; }
.ac-priya em, .ac-busy-t { color: #c4314b !important; }
.ac-away-t { color: #b58b00 !important; }
.ac-dir .ac-person { opacity: 0; }
.ac-groups { display: flex; gap: 4px; margin-left: auto; font-weight: 400; }
.ac-groups i { padding: 1px 6px; border-radius: 3px; font-style: normal; font-size: 0.58rem; color: #616161; }
.ac-groups i.is-on { background: #e8e8f6; color: #4f52b2; }
/* calendar */
.ac-slot { display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: center; margin-bottom: 5px; }
.ac-slot span { font-size: 0.6rem; color: #616161; }
.ac-slot i { padding: 5px 8px; border-radius: 3px; color: #fff; font-style: normal; font-size: 0.62rem; font-weight: 600; }
.ac-free { background: #8fb3df; }
.ac-busyblk { background: #2f62a8; padding-top: 12px !important; padding-bottom: 12px !important; }
.ac-cal { opacity: 0.35; }
/* the steps */
#ac-console:is([data-step="1"], [data-step="2"], [data-step="3"]) .ac-w1::before { content: "1"; }
#ac-console:is([data-step="4"], [data-step="5"]) .ac-w2::before { content: "42"; }
#ac-console[data-step="1"] .ac-q1::before { content: "1"; }
#ac-console[data-step="1"] .ac-qrow { opacity: 1; }
#ac-console[data-step="1"] .ac-qinfo { opacity: 1; }
#ac-console[data-step="1"] .ac-cstate::before { content: "Queue ringing"; }
#ac-console[data-step="2"] .ac-cstate::before { content: "Connected"; }
#ac-console[data-step="3"] .ac-cstate::before { content: "Transferring to Sam"; }
#ac-console[data-step="4"] .ac-cstate::before { content: "Transferred to Sam"; }
#ac-console:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .ac-call { opacity: 1; border-color: #5b5fc7; }
#ac-console[data-step="1"] .ac-ans { opacity: 1; animation: ktAcc 0.9s ease-in-out infinite; }
#ac-console:is([data-step="2"], [data-step="3"]) .ac-end { opacity: 1; }
#ac-console:is([data-step="2"], [data-step="3"]) .ac-rec { opacity: 1; }
#ac-console:is([data-step="2"], [data-step="3"], [data-step="4"]) .ac-avail { color: #c4314b; }
#ac-console:is([data-step="2"], [data-step="3"], [data-step="4"]) .ac-avail i { background: #c4314b; }
#ac-console:is([data-step="2"], [data-step="3"], [data-step="4"]) .ac-avs::before { content: "On a call"; }
#ac-console:is([data-step="2"], [data-step="3"]) .ac-q::before { content: "Priya"; color: #242424; }
#ac-console:is([data-step="2"], [data-step="3"]) .ac-dir .ac-person { opacity: 1; }
#ac-console:is([data-step="2"], [data-step="3"]) .ac-dir .ac-dimmed { opacity: 0.5; }
#ac-console[data-step="2"] .ac-priya { border-color: #c4314b; background: #fdf3f4; }
#ac-console:is([data-step="2"], [data-step="3"]) .ac-cal { opacity: 1; }
#ac-console[data-step="2"] .ac-busyblk { box-shadow: 0 0 0 2px #c4314b; }
#ac-console:is([data-step="3"], [data-step="4"]) .ac-sam { border-color: #5b5fc7; background: #f0f0fa; }
#ac-console:is([data-step="3"], [data-step="4"]) .ac-xfer { background: #5b5fc7; }
#ac-console:is([data-step="3"], [data-step="4"]) .ac-note b { opacity: 1; }
#ac-console:is([data-step="3"], [data-step="4"]) .ac-note i { opacity: 0; }
#ac-console:is([data-step="4"], [data-step="5"]) .ac-hnew { display: grid; }
.ac-caption { min-height: 1.6em; margin: 16px auto 0; text-align: center; font-size: 0.98rem; color: var(--text-secondary); }
.ac-cap { display: none; }
.ac-cap.is-on { display: inline; }

/* ---- Smaller screens ---- */
@media (max-width: 1180px) { .kp-wrap { --z: 1.4; } }
@media (max-width: 1000px) { .kp-wrap { --z: 1.2; } .kp-tab { font-size: 0.85rem; padding-left: 8px; padding-right: 8px; } }
@media (max-width: 900px) {
  .kp-wrap { --z: 1.5; grid-template-columns: 1fr; }
  .kp-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .kp-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 680px) { .kp-wrap { --z: 1.15; } }
@media (max-width: 500px) { .kp-wrap { --z: 0.84; } }
@media (max-width: 620px) {
  .ko-app { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .ac-grid { grid-template-columns: 1fr 1fr; }
  .ac-favs { grid-column: auto; }
  .ac-hist { display: none; }
}
@media (max-width: 900px) {
  .ac-wall { display: none; }
}
@media (max-width: 760px) {
  .ac-grid { grid-template-columns: 1fr; }
  .ac-hist { display: none; }
  .ac-panel { min-height: 0; }
}

/* ===========================================================================
   Hosting (Mars, 21 Nov 2026): serverless. Websites, web apps and systems
   like AIBA on headless cloud services; no operating systems to look after.
   1. hs-con  a cloud console's usage view: a traffic spike, instances
              multiply on their own, then settle (in the big kp-stage)
   2. hs-tabs what we host; each plays its own console view in turn
   3. hr-log  not just watched: a version-control release log that plays out
              (infra-page.js steps data-step 0-5)
   =========================================================================== */
.hs-con { position: absolute; inset: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); background: #fff; color: #1f2937; }
.hs-nav { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; background: #1e293b; color: #cbd5e1; font-size: 0.42rem; }
.hs-nav span { padding: 4px 9px; }
.hs-nav .is-on { background: rgba(132,204,22,0.18); color: #fff; box-shadow: inset 2px 0 0 #84cc16; }
.hs-logo { display: block; width: 14px; height: 14px; margin: 2px 9px 8px; border-radius: 4px; background: #64748b; }
.hs-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 10px; }
.hs-top b { font-size: 0.62rem; }
.hs-top small { margin-left: 6px; font-size: 0.42rem; color: #64748b; }
.hs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hs-stats > span { display: flex; flex-direction: column; padding: 5px 7px; border: 1px solid #e5e7eb; border-radius: 5px; }
.hs-stats small { font-size: 0.38rem; color: #64748b; }
.hs-stats b { font-size: 0.8rem; font-weight: 700; }
@property --hs-r { syntax: "<integer>"; inherits: false; initial-value: 4800; }
@property --hs-i { syntax: "<integer>"; inherits: false; initial-value: 24; }
.hs-req { counter-reset: hsr var(--hs-r); }
.hs-req::before { content: counter(hsr); }
.hs-ins { counter-reset: hsi var(--hs-i); }
.hs-ins::before { content: counter(hsi); }
.hs-chart { position: relative; height: 62px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 5px; }
.hs-chart svg { display: block; width: 100%; height: 100%; }
.hs-grid { fill: none; stroke: #f1f5f9; stroke-width: 1; }
.hs-area { fill: rgba(132,204,22,0.2); }
.hs-line { fill: none; stroke: #4d7c0f; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hs-cursor { position: absolute; top: 0; bottom: 0; left: 100%; width: 1px; background: #94a3b8; }
.hs-insts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.hs-insts i { height: 9px; border-radius: 2px; background: #84cc16; }
@media (prefers-reduced-motion: no-preference) {
  .hs-req { animation: hsReq 8s ease-in-out infinite; }
  .hs-ins { animation: hsIns 8s ease-in-out infinite; }
  .hs-chart svg { animation: hsDraw 8s linear infinite; }
  .hs-cursor { animation: hsCursor 8s linear infinite; }
  .hs-insts i { animation: hsInst 8s ease infinite; animation-delay: calc(var(--i) * 0.03s); }
  .hs-insts i:first-child { animation: none; }
}
@keyframes hsReq { 0%, 15% { --hs-r: 120; } 40%, 60% { --hs-r: 4800; } 85%, 100% { --hs-r: 140; } }
@keyframes hsIns { 0%, 15% { --hs-i: 1; } 40%, 60% { --hs-i: 24; } 85%, 100% { --hs-i: 1; } }
@keyframes hsDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hsCursor { from { left: 0; } to { left: 100%; } }
@keyframes hsInst { 0%, 30% { background: #e5e7eb; } 40%, 62% { background: #84cc16; } 75%, 100% { background: #e5e7eb; } }

/* Hosting hero: instances next to Functions light up as they scale */
.hx-inst rect { fill: #84cc16; }
@media (prefers-reduced-motion: no-preference) {
  .hx-inst rect { animation: hxInst 3s ease-in-out infinite; }
  .hx-inst rect:nth-child(2) { animation-delay: 0.4s; }
  .hx-inst rect:nth-child(3) { animation-delay: 0.8s; }
}
@keyframes hxInst { 0%, 100% { opacity: 0.25; } 30%, 70% { opacity: 1; } }

/* ---- Hosting 2: what we host, as tabs on the right ---- */
.hs-tabs { display: flex; flex-direction: column; }
.hs-item {
  position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start;
  width: 100%; padding: 14px 4px; overflow: hidden; border: 0; border-top: 1px solid var(--inf-line); background: none;
  font: inherit; text-align: left; line-height: 1.5; color: var(--text-secondary); cursor: pointer; transition: color 0.2s ease;
}
.hs-item:last-child { border-bottom: 1px solid var(--inf-line); }
.hs-item svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--inf-tint); color: var(--inf-ink-2); transition: background 0.2s ease, color 0.2s ease; }
.hs-item b { display: block; margin-bottom: 2px; font-size: 1.05rem; color: var(--text-primary); }
.hs-item[aria-selected="true"] svg { background: var(--inf-ink); color: var(--inf-lime); }
.hs-item[aria-selected="true"] { color: var(--text-primary); }
.hs-item:focus-visible { outline: 2px solid var(--inf-lime); outline-offset: -2px; }
.hs-tabs[data-auto="on"] .hs-item[aria-selected="true"] .gp-bar { animation: gpBar var(--dwell, 6s) linear forwards; }
.hs-ok { color: #4d7c0f; }
/* Hosting view: releases */
.hw-list { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 5px; overflow: hidden; }
.hw-h { padding: 4px 8px; background: #f8fafc; font-size: 0.42rem; font-weight: 700; color: #64748b; letter-spacing: 0.06em; text-transform: uppercase; }
.hw-rel { display: grid; grid-template-columns: 10px 1fr 82px 52px; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid #f1f5f9; font-size: 0.5rem; }
.hw-rel small { font-size: 0.4rem; color: #94a3b8; text-align: right; }
.hw-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.hw-grey { background: #cbd5e1; }
.hw-st { position: relative; height: 12px; }
.hw-st em { position: absolute; left: 0; top: 0; font-style: normal; font-size: 0.44rem; font-weight: 600; }
.hw-dep { display: flex; align-items: center; gap: 4px; color: #b45309; }
.hw-bar { position: relative; width: 30px; height: 4px; border-radius: 2px; background: #fde68a; overflow: hidden; }
.hw-bar::after { content: ""; position: absolute; inset: 0; right: auto; width: 100%; background: #f59e0b; }
.hw-live, .hw-was { color: #15803d; }
.hw-old { color: #94a3b8; }
.hw-new .hw-live, .hw-prev .hw-old { opacity: 0; }
/* Sign-in view: users */
.hu-table { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 5px; overflow: hidden; }
.hu-row { display: grid; grid-template-columns: 1.6fr 1fr 0.9fr; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid #f1f5f9; font-size: 0.48rem; color: #334155; }
.hu-row > span:first-child { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hu-h { border-top: 0; background: #f8fafc; font-size: 0.4rem; font-weight: 700; color: #64748b; letter-spacing: 0.05em; text-transform: uppercase; }
.hu-av { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 0.32rem; font-weight: 700; color: #fff; }
.hu-a1 { background: #4f46e5; } .hu-a2 { background: #0891b2; } .hu-a3 { background: #d97706; } .hu-a4 { background: #64748b; }
.hu-new { background: #f7fee7; }
/* Database view: collections, documents, fields */
.hd-cols { flex: 1; display: grid; grid-template-columns: 0.9fr 0.9fr 1.2fr; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 5px; }
.hd-col { display: flex; flex-direction: column; border-left: 1px solid #f1f5f9; font-size: 0.48rem; }
.hd-col:first-child { border-left: 0; }
.hd-col > span { padding: 4px 8px; }
.hd-h { background: #f8fafc; font-size: 0.4rem; font-weight: 700; color: #64748b; letter-spacing: 0.05em; }
.hd-col .is-on { background: #eef2ff; color: #3730a3; }
.hd-doc > span:not(.hd-h) { display: grid; grid-template-columns: 52px 1fr; position: relative; }
.hd-doc b { font-weight: 600 !important; color: #64748b; }
.hd-doc em { font-style: normal; color: #b45309; }
.hd-doc em.hd-paid { position: absolute; left: 60px; color: #15803d; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hw-new { animation: hwIn 6s ease infinite; }
  .hw-new .hw-dep { animation: hwDep 6s linear infinite; }
  .hw-new .hw-bar::after { animation: hwBar 6s linear infinite; }
  .hw-new .hw-live { animation: hwLive 6s linear infinite; }
  .hw-prev .hw-was { animation: hwDep2 6s linear infinite; }
  .hw-prev .hw-old { animation: hwLive 6s linear infinite; }
  .hu-new { animation: huIn 6s ease infinite; }
  .hd-new { animation: huIn 6s ease infinite; }
  .hd-doc { animation: hdDoc 6s ease infinite; }
  .hd-doc .hd-sent { animation: hdSent 6s linear infinite; }
  .hd-doc .hd-paid { animation: hdPaid 6s linear infinite; }
}
@keyframes hwIn { 0%, 6% { opacity: 0; transform: translateY(-6px); } 12%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hwBar { 0%, 10% { width: 0; } 48% { width: 100%; } 100% { width: 100%; } }
@keyframes hwDep { 0%, 49% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes hwLive { 0%, 49% { opacity: 0; } 51%, 100% { opacity: 1; } }
@keyframes hwDep2 { 0%, 49% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes huIn { 0%, 10% { opacity: 0; transform: translateY(-6px); background: #ecfccb; } 18%, 70% { opacity: 1; transform: none; background: #ecfccb; } 85%, 100% { background: transparent; } }
@keyframes hdDoc { 0%, 14% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes hdSent { 0%, 59% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes hdPaid { 0%, 59% { opacity: 0; background: transparent; } 61%, 80% { opacity: 1; background: #dcfce7; } 81%, 100% { opacity: 1; background: transparent; } }

/* ---- Hosting 3: looked after, not just watched (a version-control log) ---- */
.hr-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1140px; margin: 0 auto; }
.hr-log { height: 436px; overflow: hidden; border-radius: 12px; border: 1px solid var(--inf-line); background: #fff; box-shadow: 0 22px 46px -30px rgba(17,24,39,0.5); font-size: 0.86rem; color: #1f2937; }
.hr-log svg { display: block; width: 100%; height: 100%; }
.hr-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--inf-line); background: #f8fafc; }
.hr-repo { display: flex; align-items: center; gap: 8px; }
.hr-repo i { width: 16px; height: 16px; color: #475569; }
.hr-branch { padding: 1px 8px; border-radius: 6px; background: #e2e8f0; font-family: var(--font-mono); font-size: 0.72rem; color: #334155; }
.hr-tabs { display: flex; gap: 14px; font-size: 0.82rem; color: #64748b; }
.hr-tabs .is-on { color: #1f2937; font-weight: 600; box-shadow: inset 0 -2px 0 #84cc16; padding-bottom: 2px; }
.hr-status { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 0.8rem; }
.hr-led { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.hr-stext::before { content: "All systems operational"; }
.hr-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 92px; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #f1f5f9; }
.hr-ic { width: 20px; height: 20px; color: #7c3aed; }
.hr-t { display: flex; flex-direction: column; min-width: 0; }
.hr-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-t small { font-size: 0.74rem; color: #64748b; }
.hr-chips { display: flex; gap: 6px; }
.hr-chips i { position: relative; padding-left: 14px; font-style: normal; font-size: 0.74rem; color: #15803d; white-space: nowrap; }
.hr-chips i::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #22c55e; }
.hr-chips i.hr-run { color: #b45309; }
.hr-chips i.hr-run::before { background: #f59e0b; }
.hr-state { position: relative; height: 22px; }
.hr-state em { position: absolute; right: 0; top: 0; padding: 2px 8px; border-radius: 6px; font-style: normal; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.hr-live, .hr-done { background: #dcfce7; color: #15803d; }
.hr-done { background: #f1f5f9; color: #475569; }
.hr-wait { background: #fef3c7; color: #b45309; }
.hr-bad { background: #fee2e2; color: #b91c1c; }
.hr-off { background: #f1f5f9; color: #64748b; }
/* the steps: new rows appear, chips and states change */
.hr-row.hr-p, .hr-row.hr-u, .hr-row.hr-b, .hr-row.hr-c { display: none; }
.hr-p-ok, .hr-p-live, .hr-u-live, .hr-b-live, .hr-bad, .hr-off, .hr-u-prev { display: none; }
#hr-log:not([data-step="0"]) .hr-p { display: grid; }
#hr-log:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hr-p .hr-run,
#hr-log:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hr-p .hr-wait { display: none; }
#hr-log:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hr-p-ok,
#hr-log:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hr-p-live { display: inline; }
#hr-log:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hr-u { display: grid; }
#hr-log[data-step="2"] .hr-u-prev { display: inline; }
#hr-log:is([data-step="3"], [data-step="4"], [data-step="5"]) .hr-u .hr-wait { display: none; }
#hr-log:is([data-step="3"], [data-step="4"], [data-step="5"]) .hr-u-live { display: inline; }
#hr-log:is([data-step="3"], [data-step="4"], [data-step="5"]) .hr-b { display: grid; }
#hr-log[data-step="3"] .hr-b-live { display: inline; }
#hr-log[data-step="4"] .hr-bad { display: inline; }
#hr-log[data-step="5"] .hr-off { display: inline; }
#hr-log[data-step="5"] .hr-c { display: grid; }
#hr-log[data-step="4"] .hr-led { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
#hr-log[data-step="4"] .hr-stext::before { content: "Errors after release 43"; color: #b91c1c; }
#hr-log[data-step="4"] .hr-b { background: #fef2f2; }
#hr-log[data-step="5"] .hr-c { background: #f7fee7; }
.hr-row.hr-p, .hr-row.hr-u, .hr-row.hr-b, .hr-row.hr-c { animation: hrIn 0.4s ease both; }
@keyframes hrIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Lined up with the log: same top, same bottom, spread evenly between */
.hr-verbs { display: flex; flex-direction: column; justify-content: space-between; height: 436px; margin: 0; padding: 6px 0; list-style: none; }
/* The caption reads as live feedback: lime with a pulsing dot; red while the errors happen */
.hr-caption { margin: 14px 0 0; text-align: center; font-weight: 600; color: var(--inf-lime-deep); }
.hr-caption .ac-cap.is-on::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px;
  border-radius: 50%; background: var(--inf-lime); box-shadow: 0 0 0 3px var(--inf-lime-soft);
}
#hr-log[data-step="4"] + .hr-caption { color: #b91c1c; }
#hr-log[data-step="4"] + .hr-caption .ac-cap.is-on::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
@media (prefers-reduced-motion: no-preference) {
  .hr-caption .ac-cap.is-on::before { animation: infBlink 1.6s ease-in-out infinite; }
}
.hr-verbs li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; line-height: 1.5; color: var(--text-secondary); }
.hr-verbs li svg { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--inf-ink); color: var(--inf-lime); }
.hr-verbs b { display: block; font-size: 1rem; color: var(--text-primary); }
@media (max-width: 900px) {
  .hr-wrap { grid-template-columns: 1fr; }
  .hr-log { height: auto; min-height: 436px; }
  .hr-verbs { height: auto; gap: 16px; }
  .hr-tabs { display: none; }
  .hr-row { grid-template-columns: 20px minmax(0, 1fr) 86px; }
  .hr-chips { display: none; }
}

/* ===== Dark mode (html[data-theme="dark"]): Infrastructure service pages =====
   Design: docs/plans/dark-mode-design-system.md (stage = section c, dark app window = section d). Tokens: styles.css (--dk-*, --stage-*, --win-*,
   *-text) and infra.css (--tm-*, --dm-*, --inf-lime). Light mode is untouched. Rest rules use classes only; the state rules that mirror the
   light #ac-console / #hr-log step rules carry the ID and are one class heavier. Keyframes with a baked-in light colour have "Dark" twins. */

/* ================= 1. Hero diagrams (.hx-*, heroes.py): lit by tints, cards one level above the page ================= */
:root[data-theme="dark"] .hx-t{ fill:var(--text-primary); }
:root[data-theme="dark"] .hx-m{ fill:var(--text-muted); }
:root[data-theme="dark"] .hx-big{ fill:var(--orange-text); }
:root[data-theme="dark"] .hx-card{ fill:var(--dk-s2); stroke:var(--dk-line-3); }
:root[data-theme="dark"] .hx-card-ink{ stroke:var(--text-secondary); }
:root[data-theme="dark"] .hx-card-voice{ stroke:var(--green-text); }
:root[data-theme="dark"] .hx-ico{ color:var(--text-secondary); }
:root[data-theme="dark"] .hx-cloud{ fill:var(--dk-s2); stroke:var(--orange-text); }
:root[data-theme="dark"] .hx-link{ stroke:#6c7e9d; }
:root[data-theme="dark"] .hx-poe, :root[data-theme="dark"] .hx-data{ stroke:var(--orange-text); }
:root[data-theme="dark"] .hx-voice{ stroke:var(--green-text); }
:root[data-theme="dark"] .hx-sec{ stroke:var(--text-primary); }
:root[data-theme="dark"] :is(.hx-tele,.hx-tunnel,.hx-wifi,.hx-sdw,.hx-ring){ stroke:var(--lime-text); }
:root[data-theme="dark"] .hx-pk-d{ fill:var(--orange-text); }
:root[data-theme="dark"] .hx-pk-v{ fill:var(--green-text); }
:root[data-theme="dark"] :is(.hx-pk-l,.hx-led,.hx-inst rect){ fill:var(--lime-text); }
:root[data-theme="dark"] .hx-pk-bad{ fill:var(--red-text); }
:root[data-theme="dark"] .hx-plan{ fill:rgba(150,175,230,.06); stroke:#6c7e9d; }
:root[data-theme="dark"] .hx-wall{ stroke:var(--dk-line-3); }
:root[data-theme="dark"] .hx-wall[style]{ stroke:var(--dk-line-3) !important; }   /* heroes.py writes style="stroke:#1f2937" on the main wall: inline beats any rule */
:root[data-theme="dark"] .hx-region{ fill:rgba(150,175,230,.05); stroke:#6c7e9d; }
:root[data-theme="dark"] .hx-ap-core{ fill:var(--dk-s4); }   /* light mode: a graphite disc with a lime Wi-Fi icon, so a lit s4 disc here (never the pale text colour) */
:root[data-theme="dark"] :is(.hx-lock circle,.hx-av circle){ fill:var(--dk-s2); stroke:var(--lime-text); }
:root[data-theme="dark"] .hx-ai rect{ fill:rgba(243,157,94,.10); stroke:rgba(243,157,94,.50); }
:root[data-theme="dark"] .hx-ai text{ fill:var(--orange-text); }
:root[data-theme="dark"] .hx-ssl rect{ fill:rgba(178,220,105,.12); stroke:var(--lime-text); }
:root[data-theme="dark"] .hx-ssl text{ fill:var(--lime-text); }
:root[data-theme="dark"] .hx-done circle{ fill:var(--lime-text); }
:root[data-theme="dark"] .hx-done path{ stroke:#0c1503; }
:root[data-theme="dark"] .hx-call rect{ fill:rgba(107,207,157,.10); stroke:var(--green-text); }
:root[data-theme="dark"] .hx-call text{ fill:var(--green-text); }
:root[data-theme="dark"] :is(.hx-fault-tag rect,.hx-blocked rect){ fill:var(--dk-s2); stroke:var(--red-text); }
:root[data-theme="dark"] :is(.hx-fault-tag text,.hx-blocked text){ fill:var(--red-text); }
:root[data-theme="dark"] .hx-fault-tag .hx-fault-sub{ fill:var(--text-muted); }
/* heroes.py also writes style="color:#84cc16|#4d7c0f|#10b981|#ff6b00" on icons: !important on that one property */
:root[data-theme="dark"] main :is([style*="color:#84cc16"],[style*="color:#4d7c0f"]){ color:var(--lime-text) !important; }
:root[data-theme="dark"] main [style*="color:#10b981"]{ color:var(--green-text) !important; }
:root[data-theme="dark"] main [style*="color:#ff6b00"]{ color:var(--orange-text) !important; }
@media (prefers-reduced-motion: no-preference){
  @keyframes hxFailLinkDark{ 0%,48%,78%,100%{ stroke:#6c7e9d; } 52%,74%{ stroke:var(--red-text); } }
  @keyframes hxFailLedDark{ 0%,48%,78%,100%{ fill:var(--lime-text); } 52%,74%{ fill:var(--amber-text); } }
  @keyframes hxRingCardDark{ 0%,70%,100%{ stroke:var(--dk-line-3); stroke-width:1.2; } 76%,84%,92%{ stroke:var(--green-text); stroke-width:2.4; } 80%,88%{ stroke:var(--green-text); stroke-width:1.2; } }
  :root[data-theme="dark"] .hx-fail-link{ animation-name:hxDash, hxFailLinkDark; }
  :root[data-theme="dark"] .hx-fail-led{ animation-name:hxFailLedDark; }
  :root[data-theme="dark"] .hx-ring-card{ animation-name:hxRingCardDark; }
}

/* ================= 2. Internet & mobile ================= */
:root[data-theme="dark"] .ip-plan{ border-top-color:var(--dk-edge); }
:root[data-theme="dark"] .ip-plan:hover{ border-top-color:var(--lime-text); }
:root[data-theme="dark"] .ip-panel-info{ background:var(--dk-s2); border-left-color:var(--dk-line-2); }   /* nested in the s1 card: one level up, never a hole */
@media (max-width:900px){ :root[data-theme="dark"] .ip-panel-info{ border-bottom-color:var(--dk-line-2); } }
/* the comparison and the small print sit open on the page: the foundation's card fill would paint a slab */
:root[data-theme="dark"] body.pillar-infra main .ip-problem-grid .experience-compare{ background:none; border:0; box-shadow:none; }
:root[data-theme="dark"] body.pillar-infra main .ip-problem-grid .compare-head{ background:none; }
:root[data-theme="dark"] body.pillar-infra main .ip-problem-grid .compare-row:hover{ background:none; }
/* "How we look after it": the pale-green gradient is !important in light, so the LIGHT rule is scoped away from dark (see "Light-rule edit" in the spec);
   here the band is the s1 band and the four illustration tiles are one level up (s2) with an edge */
:root[data-theme="dark"] body.pillar-infra .ip-care{ background:var(--dk-s1); box-shadow:inset 0 1px 0 var(--dk-line-1),inset 0 -1px 0 var(--dk-line-1); }
:root[data-theme="dark"] .ip-care-path{ background:repeating-linear-gradient(90deg,rgba(178,220,105,.40) 0 6px,transparent 6px 12px); }
:root[data-theme="dark"] .ip-care-path span{ background:var(--lime-text); box-shadow:0 0 0 3px rgba(178,220,105,.25); }
:root[data-theme="dark"] .ip-care-art{ background:var(--dk-s2); box-shadow:inset 0 1px 0 var(--dk-light-top),0 0 0 1px var(--dk-line-3); }
:root[data-theme="dark"] .ip-care-always strong{ background:linear-gradient(transparent 62%,rgba(178,220,105,.22) 62%); }
:root[data-theme="dark"] .ip-care-never em, :root[data-theme="dark"] .ip-care-always em{ text-decoration-color:rgba(234,136,133,.60); }
/* the four illustrations: line art in ink, lime life, tinted accents */
:root[data-theme="dark"] .ic-line{ stroke:var(--text-primary); }
:root[data-theme="dark"] :is(.ic-fill,.ic-bubble rect,.ic-bubble path,.ic-ticket rect){ fill:var(--dk-s2); }
:root[data-theme="dark"] .ic-eye{ fill:var(--text-primary); }
:root[data-theme="dark"] .ic-led{ fill:var(--lime-text); }
:root[data-theme="dark"] .ic-wave{ stroke:var(--lime-text); }
:root[data-theme="dark"] .ic-check{ stroke:var(--lime-text); }
:root[data-theme="dark"] .ic-dim{ fill:rgba(150,175,230,.30); }
:root[data-theme="dark"] .ic-road{ stroke:#6c7e9d; }
:root[data-theme="dark"] :is(.ic-bubble rect,.ic-bubble path){ stroke:var(--red-text); }
:root[data-theme="dark"] .ic-bubble text{ fill:var(--red-text); }
:root[data-theme="dark"] .ic-dots circle{ fill:var(--orange-text); }
:root[data-theme="dark"] .ic-ticket rect{ stroke:var(--orange-text); }
:root[data-theme="dark"] .ic-ticket path{ stroke:rgba(243,157,94,.60); }

/* ================= 3. The console (#ip-console on internet-mobile and networks-security): a STAGE ================= */
/* shell, plate rows, plate strips: styles.css. .ip-panel and .ip-log are plain regions of the stage gradient (no box of their own). */
:root[data-theme="dark"] .ip-console{ color:var(--text-secondary); }
:root[data-theme="dark"] .ip-console-bar{ color:var(--text-muted); border-bottom-color:var(--dk-edge); }
:root[data-theme="dark"] .ip-example{ color:var(--text-muted); }
:root[data-theme="dark"] .ip-live{ color:var(--green-text); }
:root[data-theme="dark"] .ip-live::before{ background:var(--green-text); box-shadow:0 0 0 1px rgba(107,207,157,.40); }   /* the blink animation stays */
:root[data-theme="dark"] .ip-panel{ border-right-color:var(--dk-edge); border-bottom-color:var(--dk-edge); }
:root[data-theme="dark"] .ip-dev-ico{ color:var(--lime-text); }
:root[data-theme="dark"] .ip-dev-name{ color:var(--text-primary); }
:root[data-theme="dark"] .ip-dev-name small{ color:var(--text-muted); }          /* 4.60 on a plate */
:root[data-theme="dark"] .ip-dev-state{ color:var(--green-text); }
/* states: a raised plate (plate-hi) with a tinted edge and tinted state text; no coloured fill (a tint over slate goes muddy brown). Rest (0,3,0) < state (0,4,0). */
:root[data-theme="dark"] .ip-dev.is-warn{ background:var(--stage-plate-hi); border-color:rgba(248,198,85,.60); }
:root[data-theme="dark"] .ip-dev.is-down{ background:var(--stage-plate-hi); border-color:rgba(234,136,133,.65); }
:root[data-theme="dark"] .ip-dev.is-warn .ip-dev-state{ color:var(--amber-text); }
:root[data-theme="dark"] .ip-dev.is-down .ip-dev-state{ color:var(--red-text-hi); }   /* plate-hi: the -hi tint (4.97) */
:root[data-theme="dark"] :is(.ip-dev.is-warn,.ip-dev.is-down) .ip-dev-name small{ color:var(--text-secondary); }   /* muted is not allowed on plate-hi */
:root[data-theme="dark"] .ip-dev.is-info .ip-dev-state{ color:var(--blue-text); }
:root[data-theme="dark"] .ip-stat span{ color:var(--text-muted); }
:root[data-theme="dark"] .ip-stat strong{ color:var(--text-primary); }
:root[data-theme="dark"] .ip-stat.is-good strong{ color:var(--green-text); }
:root[data-theme="dark"] .ip-log-time{ color:var(--text-muted); }
:root[data-theme="dark"] .ip-log-text strong{ color:var(--text-primary); }
:root[data-theme="dark"] .ip-log-text small{ color:var(--text-muted); }
:root[data-theme="dark"] .ip-log-line.t-alert .ip-log-ico{ color:var(--red-text); }
:root[data-theme="dark"] .ip-log-line.t-warn .ip-log-ico{ color:var(--amber-text); }
:root[data-theme="dark"] :is(.ip-log-line.t-move,.ip-log-line.t-done) .ip-log-ico{ color:var(--green-text); }
:root[data-theme="dark"] .ip-log-line.t-agent .ip-log-ico{ color:var(--orange-text); }
:root[data-theme="dark"] .ip-log-line.t-person .ip-log-ico{ color:var(--blue-text); }

/* ================= 4. Networks & security: the rack (shell + faceplates + selected/hover: styles.css) ================= */
:root[data-theme="dark"] :is(.ir-cab-top,.ir-cab-foot){ color:var(--text-muted); }
:root[data-theme="dark"] :is(.ir-cab-top,.ir-cab-foot)::after{ border-top-color:rgba(190,210,255,.22); }
:root[data-theme="dark"] .ir-unit{ color:var(--text-primary); }
:root[data-theme="dark"] .ir-name small{ color:var(--text-secondary); }
:root[data-theme="dark"] .ir-unit:is(:hover,[aria-selected="true"]) .ir-name small{ color:var(--text-primary); }   /* faceplate selected: primary 7.7, secondary 4.6 */
:root[data-theme="dark"] .ir-unit[aria-selected="true"]::before{ background:repeating-linear-gradient(90deg,rgba(190,210,255,.30) 0 2px,transparent 2px 5px); }
:root[data-theme="dark"] .ir-led{ background:var(--lime-text); box-shadow:0 0 0 1px rgba(178,220,105,.40); }
:root[data-theme="dark"] .ir-anim{ color:var(--lime-text); }
:root[data-theme="dark"] .ir-trk{ background:rgba(190,210,255,.18); }
:root[data-theme="dark"] .ir-pk{ background:var(--lime-text); box-shadow:0 0 0 1px rgba(178,220,105,.40); }
:root[data-theme="dark"] .ir-scan i{ background:rgba(190,210,255,.10); border-color:rgba(190,210,255,.30); }
:root[data-theme="dark"] .ir-mag{ filter:none; }
:root[data-theme="dark"] .ir-gate{ background:#aab4c8; }
:root[data-theme="dark"] .ir-fw .ir-bad{ background:var(--red-text); box-shadow:0 0 0 1px rgba(234,136,133,.45); }
:root[data-theme="dark"] .ir-q2{ color:var(--lime-text); }
:root[data-theme="dark"] .ir-q3{ color:#aab4c8; }
:root[data-theme="dark"] .ir-ap{ color:#8c98b0; }
:root[data-theme="dark"] .ir-ap-l{ color:var(--lime-text); }
:root[data-theme="dark"] .ir-dev{ background:var(--text-primary); }
@media (prefers-reduced-motion: no-preference){
  @keyframes irLedDark{ 50%{ opacity:.45; box-shadow:0 0 0 1px rgba(178,220,105,.40); } }
  @keyframes irFileDark{ 0%{ background:rgba(178,220,105,.85); border-color:var(--lime-text); } 45%{ background:rgba(178,220,105,.35); border-color:rgba(178,220,105,.60); } 100%{ background:rgba(190,210,255,.10); border-color:rgba(190,210,255,.30); } }
  @keyframes irLinkBadDark{ 0%,48%{ background:rgba(178,220,105,.45); } 52%,60%,68%,76%,84%,92%{ background:rgba(234,136,133,.60); } 56%,64%,72%,80%,88%,96%{ background:rgba(190,210,255,.14); } 100%{ background:rgba(178,220,105,.45); } }
  @keyframes irGateDark{ 0%,20%{ background:#aab4c8; box-shadow:none; } 24%,34%{ background:var(--red-text); box-shadow:0 0 0 1px rgba(234,136,133,.45); } 40%,100%{ background:#aab4c8; box-shadow:none; } }
  @keyframes irServeLDark{ 0%,25%{ color:var(--lime-text); } 35%,85%{ color:#8c98b0; } 95%,100%{ color:var(--lime-text); } }
  @keyframes irServeRDark{ 0%,25%{ color:#8c98b0; } 35%,85%{ color:var(--lime-text); } 95%,100%{ color:#8c98b0; } }
  :root[data-theme="dark"] .ir-led{ animation-name:irLedDark; }
  :root[data-theme="dark"] .ir-scan i{ animation-name:irFileDark; }
  :root[data-theme="dark"] .ir-sdwan .ir-trk-a{ animation-name:irLinkBadDark; }
  :root[data-theme="dark"] .ir-gate{ animation-name:irGateDark; }
  :root[data-theme="dark"] .ir-ap-l{ animation-name:irServeLDark; }
  :root[data-theme="dark"] .ir-ap-r{ animation-name:irServeRDark; }
}
:root[data-theme="dark"] .ir-detail li svg{ color:var(--lime-text); }
:root[data-theme="dark"] .ir-fits{ border-top-color:var(--dk-line-2); }

/* ================= 5. Business communications: the dark app windows (.kp-ui). Window = body s2 (--win-body), bar and panels s3 (--win-bar),
                         rail and recesses s1 (--win-rail/--win-recess); frame --win-edge + a lit top line. ================= */
:root[data-theme="dark"] .kp-ui{ background:var(--win-body); border-color:var(--win-edge); box-shadow:none; color:var(--text-primary); }
/* the lit top line must paint over the absolutely-positioned app inside, so it is a pseudo-element */
:root[data-theme="dark"] .kp-ui::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 1px 0 var(--dk-edge-hi); pointer-events:none; z-index:5; }

/* 5.1 Teams Calls view (the Teams mock stays purple) */
:root[data-theme="dark"] .kt-app{ background:var(--win-body); color:var(--text-primary); }
:root[data-theme="dark"] .kt-top{ background:var(--tm-bar); }
:root[data-theme="dark"] .kt-waffle{ background:radial-gradient(circle,#cfd0f0 1px,transparent 1.3px) 0 0 / 3.4px 3.4px; }
:root[data-theme="dark"] .kt-rail{ background:var(--win-rail); }
:root[data-theme="dark"] .kt-rail > span{ color:var(--text-secondary); }
:root[data-theme="dark"] .kt-rail i{ color:var(--text-secondary); }
:root[data-theme="dark"] .kt-rail u{ background:var(--dm-alert); color:#fff; }
:root[data-theme="dark"] .kt-rail .is-on{ background:var(--win-bar); color:var(--tm-ink); }
:root[data-theme="dark"] .kt-rail .is-on i{ color:var(--tm-ink); }
:root[data-theme="dark"] .kt-head{ border-bottom-color:var(--win-line); }
:root[data-theme="dark"] .kt-logo{ background:var(--tm-fill); color:#fff; }
:root[data-theme="dark"] .kt-head b{ color:var(--text-primary); }
:root[data-theme="dark"] .kt-tab{ color:var(--text-primary); border-bottom-color:var(--tm-ink); }
:root[data-theme="dark"] .kt-field{ background:var(--win-recess); border-bottom-color:var(--tm-ink); box-shadow:inset 0 0 0 1px var(--dk-line-2); color:var(--text-primary); }   /* recess: ring, never a new border */
:root[data-theme="dark"] .kt-ph{ color:var(--dk-placeholder); }
:root[data-theme="dark"] .kt-caret{ background:var(--text-primary); }
:root[data-theme="dark"] :is(.kt-pad b,.kt-pad small){ color:var(--tm-ink); }
:root[data-theme="dark"] .kt-call{ background:var(--win-bar); color:var(--dk-text-faint); }   /* disabled until a number is in */
:root[data-theme="dark"] .kt-work{ color:var(--text-secondary); }
@media (prefers-reduced-motion: no-preference){
  @keyframes ktCallDark{
    0%,68%{ background:var(--win-bar); color:var(--dk-text-faint); box-shadow:none; }
    70%,76%,86%,100%{ background:var(--tm-fill); color:#fff; box-shadow:none; }
    81%,92%{ background:var(--tm-fill); color:#fff; box-shadow:0 0 0 3px rgba(157,153,237,.35); }   /* zero-blur ring */
  }
  :root[data-theme="dark"] .kt-call{ animation-name:ktCallDark; }
}
/* 5.1b the opening diagram "how Teams gets a dial pad" */
:root[data-theme="dark"] .kd-diag{ background:var(--win-body); }
:root[data-theme="dark"] .kd-diag text{ fill:var(--text-secondary); }
:root[data-theme="dark"] .kd-diag :is(.kd-cap,.kd-strong){ fill:var(--text-primary); }
:root[data-theme="dark"] .kd-diag :is(.kd-teams,.kd-arcl){ fill:var(--tm-ink); }
:root[data-theme="dark"] .kd-diag .kd-in{ fill:var(--text-primary); }
:root[data-theme="dark"] .kd-diag .kd-note{ fill:var(--text-muted); }
:root[data-theme="dark"] .kd-cl{ fill:var(--win-bar); }
:root[data-theme="dark"] .kd-grey{ stroke:#6c7e9d; }
:root[data-theme="dark"] .kd-lime{ stroke:var(--lime-text); fill:rgba(178,220,105,.10); }
:root[data-theme="dark"] .kd-purple{ stroke:var(--tm-ink); fill:rgba(157,153,237,.12); }
:root[data-theme="dark"] .kd-sbc{ fill:var(--dk-s4); stroke:var(--dk-edge); stroke-width:1; }
:root[data-theme="dark"] :is(.kd-p,.kd-arc){ stroke:var(--tm-ink); }
:root[data-theme="dark"] .kd-link{ stroke:var(--text-secondary); }
:root[data-theme="dark"] .kd-pk{ fill:var(--lime-text); }

/* 5.2 Cloud phone system: a desktop (s1 backdrop) with the softphone window (s2) and a phone */
:root[data-theme="dark"] .kc-app{ background:var(--dk-s1); color:var(--text-primary); }
:root[data-theme="dark"] .kc-desk{ background:var(--win-body); border-color:var(--win-line); box-shadow:none; }
:root[data-theme="dark"] .kc-title{ border-bottom-color:var(--dk-line-2); }
:root[data-theme="dark"] .kc-logo{ background:var(--text-secondary); }
:root[data-theme="dark"] .kc-win i{ background:var(--text-muted); }
:root[data-theme="dark"] .kc-rail{ background:linear-gradient(180deg,#183b73,#1d4d94); color:#dbeafe; }   /* the app's blue rail, deepened (white 9.0 to 6.8) */
:root[data-theme="dark"] .kc-me{ background:rgba(107,207,157,.20); color:var(--green-text); }
:root[data-theme="dark"] .kc-mid{ border-right-color:var(--dk-line-2); }
:root[data-theme="dark"] .kc-nav{ color:var(--text-secondary); }
:root[data-theme="dark"] .kc-nav.is-on{ background:rgba(129,170,247,.14); color:var(--text-primary); }
:root[data-theme="dark"] .kc-blue{ background:var(--btn-blue); }
:root[data-theme="dark"] .kc-purple{ background:#6d4fd0; }
:root[data-theme="dark"] .kc-field{ background:var(--win-recess); box-shadow:inset 0 0 0 1px var(--dk-line-2); }
:root[data-theme="dark"] .kc-pad i{ color:var(--text-primary); }
:root[data-theme="dark"] .kc-vid{ background:var(--btn-blue); }
:root[data-theme="dark"] .kc-aud{ background:var(--dm-ok); }
:root[data-theme="dark"] .kc-row{ border-bottom-color:var(--dk-line-2); }
:root[data-theme="dark"] .kc-row small{ color:var(--text-muted); }
:root[data-theme="dark"] .kc-row em, :root[data-theme="dark"] .kc-row b{ color:var(--text-secondary); }
/* the light rule is !important: same weight, higher specificity */
:root[data-theme="dark"] .kc-miss > span, :root[data-theme="dark"] .kc-miss em, :root[data-theme="dark"] .kc-miss b{ color:var(--red-text) !important; }
:root[data-theme="dark"] .kc-c1{ background:rgba(129,170,247,.18); color:var(--blue-text); }
:root[data-theme="dark"] .kc-c2{ background:rgba(107,207,157,.18); color:var(--green-text); }
:root[data-theme="dark"] .kc-c3{ background:rgba(176,155,238,.18); color:var(--violet-text); }
:root[data-theme="dark"] .kc-toast{ background:var(--dk-s4); color:var(--text-primary); box-shadow:0 0 0 1px var(--dk-edge); }
:root[data-theme="dark"] .kc-toast small{ color:var(--text-secondary); }
:root[data-theme="dark"] .kc-tav{ background:rgba(243,157,94,.20); color:var(--orange-text); }
:root[data-theme="dark"] :is(.kc-ans){ background:var(--dm-ok); }
:root[data-theme="dark"] :is(.kc-rej){ background:var(--dm-alert); }
:root[data-theme="dark"] .kc-mob{ background:var(--win-body); border-color:var(--dk-edge); box-shadow:none; }
:root[data-theme="dark"] .kc-notch{ background:var(--dk-edge); }
:root[data-theme="dark"] .kc-mhead{ background:linear-gradient(180deg,#183b73,#1d4d94); color:#c9d8f5; }
:root[data-theme="dark"] .kc-mrow{ border-bottom-color:var(--dk-line-2); color:var(--text-primary); }
:root[data-theme="dark"] .kc-mring{ background:var(--dk-s4); color:var(--text-primary); box-shadow:0 0 0 1px var(--dk-edge); }
:root[data-theme="dark"] .kc-mring small{ color:var(--text-secondary); }
:root[data-theme="dark"] .kc-big{ background:rgba(129,170,247,.22); color:var(--blue-text-hi); }
@media (prefers-reduced-motion: no-preference){
  @keyframes kcPulseDark{ 0%{ box-shadow:0 0 0 0 rgba(129,170,247,.45); } 100%{ box-shadow:0 0 0 9px rgba(129,170,247,0); } }
  :root[data-theme="dark"] .kc-mring .kc-big{ animation-name:kcPulseDark; }
}

/* 5.3 AI layer / on site: the desktop app in a call with a live transcript */
:root[data-theme="dark"] .ko-app{ background:var(--win-body); color:var(--text-primary); }
:root[data-theme="dark"] .ko-title{ color:var(--text-secondary); }
:root[data-theme="dark"] .ko-big{ background:rgba(129,170,247,.22); color:var(--blue-text-hi); }
:root[data-theme="dark"] .ko-name{ color:var(--text-primary); }
:root[data-theme="dark"] .ko-bar{ background:var(--win-bar); }
:root[data-theme="dark"] .ko-bar em, :root[data-theme="dark"] .ko-bar > i{ color:var(--text-secondary); }
:root[data-theme="dark"] .ko-bar > i.ko-on{ color:var(--violet-text); }
:root[data-theme="dark"] .ko-sig{ background:linear-gradient(90deg,var(--green-text) 0 2px,transparent 2px 3px,var(--green-text) 3px 5px,transparent 5px 6px,var(--green-text) 6px) bottom / 100% 100% no-repeat; }
:root[data-theme="dark"] .ko-end{ background:var(--dm-alert); }
:root[data-theme="dark"] .ko-end svg{ color:#fff; }
:root[data-theme="dark"] .ko-tr{ background:var(--win-bar); border-left-color:var(--win-line); }
:root[data-theme="dark"] .ko-toggle{ background:var(--btn-blue); }
:root[data-theme="dark"] .ko-msg small{ color:var(--text-muted); }
:root[data-theme="dark"] .ko-msg em{ background:rgba(129,170,247,.14); color:var(--blue-text); }
:root[data-theme="dark"] .ko-av{ background:rgba(129,170,247,.22); color:var(--blue-text-hi); }
:root[data-theme="dark"] .ko-av2{ background:rgba(243,157,94,.20); color:var(--orange-text); }
:root[data-theme="dark"] .ko-foot{ color:var(--text-muted); }
:root[data-theme="dark"] .ko-sum{ background:var(--dk-s4); color:var(--text-primary); box-shadow:0 0 0 1px var(--dk-edge); }   /* raised popover over the call (the white card in light) */
:root[data-theme="dark"] .ko-sum small{ color:var(--text-secondary); }
:root[data-theme="dark"] .ko-fu{ background:rgba(129,170,247,.14); color:var(--blue-text-hi); }

/* 5.4 1300 and SIP: two line diagrams (kd2). Boxes s3, rows one level up (s4); lit rows tinted lime. */
:root[data-theme="dark"] .kd2{ background:var(--win-body); }
:root[data-theme="dark"] .kd2 text{ fill:var(--text-secondary); }
:root[data-theme="dark"] .kd2 :is(.k2-cap,.k2-h,.k2-rt){ fill:var(--text-primary); }
:root[data-theme="dark"] .kd2 .k2-num{ fill:var(--lime-text); }
:root[data-theme="dark"] .kd2 :is(.k2-sub,.k2-note){ fill:var(--text-muted); }
:root[data-theme="dark"] :is(.k2-line,.k2-p,.k2-coil){ stroke:var(--text-secondary); }
:root[data-theme="dark"] .k2-dot{ stroke:var(--text-muted); }
:root[data-theme="dark"] .k2-ink{ fill:var(--dk-s4); stroke:var(--dk-edge); stroke-width:1; }
:root[data-theme="dark"] .k2-sbc{ fill:var(--dk-s4); stroke:var(--lime-text); }
:root[data-theme="dark"] .k2-box{ fill:var(--win-bar); stroke:var(--dk-line-3); }
:root[data-theme="dark"] :is(.k2-r,.k2-d){ fill:var(--dk-s4); stroke:var(--dk-edge); }
:root[data-theme="dark"] :is(.k2-r1,.k2-d1){ fill:rgba(178,220,105,.18); stroke:var(--lime-text); }
:root[data-theme="dark"] .k2-pk{ fill:var(--lime-text); }
:root[data-theme="dark"] .k2-ch{ fill:rgba(150,175,230,.16); }
:root[data-theme="dark"] :is(.k2-ch0,.k2-ch1,.k2-ch2,.k2-ch3){ fill:var(--lime-text); }
@media (prefers-reduced-motion: no-preference){
  @keyframes k2LitDark{ 0%,31%{ fill:rgba(178,220,105,.18); stroke:var(--lime-text); } 34%,100%{ fill:var(--dk-s4); stroke:var(--dk-edge); } }
  @keyframes k2ChDark{ 0%{ fill:rgba(150,175,230,.16); } 8%,88%{ fill:var(--lime-text); } 96%,100%{ fill:rgba(150,175,230,.16); } }
  :root[data-theme="dark"] :is(.k2-r,.k2-d){ animation-name:k2LitDark; }
  :root[data-theme="dark"] :is(.k2-ch0,.k2-ch1,.k2-ch2,.k2-ch3){ animation-name:k2ChDark; }
}

/* 5.5 Fax: the inbox and the fax in your email */
:root[data-theme="dark"] .kf-app{ background:var(--win-body); color:var(--text-primary); }
:root[data-theme="dark"] :is(.kf-inbox,.kf-mail){ background:var(--win-bar); border-color:var(--dk-line-3); box-shadow:none; }
:root[data-theme="dark"] .kf-head{ color:var(--text-secondary); }
:root[data-theme="dark"] .kf-head b{ color:var(--text-primary); }
:root[data-theme="dark"] .kf-head .is-on{ color:var(--text-primary); border-bottom-color:var(--lime-text); }
:root[data-theme="dark"] .kf-row small{ color:var(--text-muted); }
:root[data-theme="dark"] .kf-row em{ color:var(--text-muted); }
:root[data-theme="dark"] .kf-fax{ background:var(--dm-lime-tile); color:var(--lime-text); }
:root[data-theme="dark"] .kf-sms{ background:rgba(129,170,247,.14); color:var(--blue-text); }
:root[data-theme="dark"] .kf-env{ background:var(--dm-tile); color:var(--text-secondary); }
:root[data-theme="dark"] .kf-new{ background:rgba(178,220,105,.08); }
:root[data-theme="dark"] .kf-mail small{ color:var(--text-muted); }
:root[data-theme="dark"] .kf-mtext{ color:var(--text-secondary); }
:root[data-theme="dark"] .kf-pdf{ background:var(--win-recess); border-color:var(--dk-line-2); }
:root[data-theme="dark"] .kf-pdf i{ background:var(--dm-alert); color:#fff; }
@media (prefers-reduced-motion: no-preference){
  @keyframes kfNewDark{ 0%,8%{ opacity:0; transform:translateY(-6px); background:transparent; } 14%,70%{ opacity:1; transform:none; background:rgba(178,220,105,.18); } 80%,100%{ background:rgba(178,220,105,.08); } }
  :root[data-theme="dark"] .kf-new{ animation-name:kfNewDark; }
}

/* 5.6 SMS: the same text in a Teams chat and on the phone */
:root[data-theme="dark"] .ks2-app{ background:var(--dk-s1); color:var(--text-primary); }
:root[data-theme="dark"] .ks2-teams{ background:var(--win-body); border-color:var(--win-line); }
:root[data-theme="dark"] .ks2-th{ border-bottom-color:var(--dk-line-2); }
:root[data-theme="dark"] .ks2-th small{ color:var(--text-muted); }
:root[data-theme="dark"] .ks2-av{ background:var(--tm-fill); color:#fff; }
:root[data-theme="dark"] .ks2-in{ background:var(--win-recess); box-shadow:inset 0 0 0 1px var(--dk-line-2); color:var(--text-primary); }   /* incoming bubble = a named recess */
:root[data-theme="dark"] :is(.ks2-t,.ks2-w){ background:var(--tm-out); color:var(--tm-out-ink); }
:root[data-theme="dark"] .ks2-box{ background:var(--win-recess); border-bottom-color:var(--tm-ink); box-shadow:inset 0 0 0 1px var(--dk-line-2); color:var(--dk-placeholder); }
:root[data-theme="dark"] .ks2-tag{ color:var(--tm-ink); }
:root[data-theme="dark"] .ks2-or{ color:var(--text-muted); }
:root[data-theme="dark"] .ks2-mob{ background:var(--win-body); border-color:var(--dk-edge); }
:root[data-theme="dark"] .ks2-mh{ background:linear-gradient(180deg,#183b73,#1d4d94); color:#fff; }
:root[data-theme="dark"] .ks2-mh small{ color:#c9d8f5; }
:root[data-theme="dark"] .ks2-mob .ks2-tag{ color:var(--blue-text); }

/* 5.7 The reception example: the attendant console inside Teams (#ac-console, a STAGE-free window on the s1 band) */
:root[data-theme="dark"] .ac-console{ background:var(--win-body); border-color:var(--win-edge); box-shadow:none; color:var(--text-primary); }
:root[data-theme="dark"] .ac-teams{ background:var(--tm-bar); box-shadow:inset 0 1px 0 var(--dk-edge-hi); }
:root[data-theme="dark"] .ac-dots{ background:radial-gradient(circle,#cfd0f0 1px,transparent 1.4px) 0 0 / 4px 4px; }
:root[data-theme="dark"] .ac-search{ background:var(--win-recess); box-shadow:inset 0 0 0 1px var(--dk-line-2); color:var(--text-secondary); }
:root[data-theme="dark"] .ac-me u{ border-color:var(--tm-bar); }
:root[data-theme="dark"] .ac-apphead{ background:var(--win-bar); border-bottom-color:var(--win-line); }
:root[data-theme="dark"] .ac-apphead b{ color:var(--text-primary); }
:root[data-theme="dark"] .ac-tab{ color:var(--text-secondary); }
:root[data-theme="dark"] .ac-tab.is-on{ color:var(--text-primary); border-bottom-color:var(--tm-ink); }
:root[data-theme="dark"] .ac-wall{ color:var(--text-secondary); }
:root[data-theme="dark"] .ac-wall b{ color:var(--text-primary); }
:root[data-theme="dark"] .ac-grid{ background:var(--win-body); }
:root[data-theme="dark"] .ac-panel{ background:var(--win-bar); box-shadow:inset 0 0 0 1px var(--dk-line-3); }   /* panel edge as an inset ring: no border-width change */
:root[data-theme="dark"] .ac-panel h4{ color:var(--text-primary); }
:root[data-theme="dark"] .ac-panel h4 small{ color:var(--text-muted); }
:root[data-theme="dark"] .ac-counters > span{ color:var(--text-secondary); }
:root[data-theme="dark"] .ac-counters b{ background:var(--dm-ok); color:#fff; }
:root[data-theme="dark"] .ac-counters b.ac-chat{ background:var(--dm-info); }
:root[data-theme="dark"] .ac-qrow{ border-left-color:var(--green-text); background:rgba(150,175,230,.08); }
:root[data-theme="dark"] :is(.ac-qrow small,.ac-person small){ color:var(--text-muted); }
:root[data-theme="dark"] .ac-qrow em{ color:var(--text-secondary); }
:root[data-theme="dark"] .ac-qinfo{ color:var(--tm-ink); }
:root[data-theme="dark"] .ac-qrule{ color:var(--text-muted); }
:root[data-theme="dark"] .ac-av{ background:#6264a7; color:#fff; }
:root[data-theme="dark"] .ac-av u{ background:var(--green-text); border-color:var(--win-bar); }
:root[data-theme="dark"] .ac-av u.ac-busy{ background:var(--red-text); }
:root[data-theme="dark"] .ac-av u.ac-away{ background:var(--amber-text); }
:root[data-theme="dark"] .ac-avail{ color:var(--green-text); }
:root[data-theme="dark"] .ac-avail i{ background:var(--green-text); }
:root[data-theme="dark"] .ac-rec{ background:rgba(234,136,133,.16); color:var(--red-text); }
:root[data-theme="dark"] .ac-call{ border-color:var(--dk-line-3); }
:root[data-theme="dark"] .ac-ctop em{ color:var(--tm-ink); }
:root[data-theme="dark"] .ac-cnum{ color:var(--text-secondary); }
:root[data-theme="dark"] .ac-note{ background:var(--win-recess); border-color:var(--dk-control); }
:root[data-theme="dark"] .ac-note i{ color:var(--dk-placeholder); }
:root[data-theme="dark"] .ac-note b{ color:var(--text-primary); }
:root[data-theme="dark"] .ac-btns i{ background:var(--dk-s4); color:var(--text-secondary); }
:root[data-theme="dark"] .ac-ans{ background:var(--dm-ok) !important; color:#fff; }   /* the light rules are !important */
:root[data-theme="dark"] .ac-end{ background:var(--dm-alert) !important; color:#fff; }
:root[data-theme="dark"] .ac-msg > span{ background:var(--win-body); box-shadow:inset 0 0 0 1px var(--dk-line-2); }   /* incoming bubble: recess in the s3 chat panel */
:root[data-theme="dark"] .ac-msg small{ color:var(--text-muted); }
:root[data-theme="dark"] .ac-out > span{ background:var(--tm-out); box-shadow:none; color:var(--tm-out-ink); }
:root[data-theme="dark"] .ac-out small{ color:#c9d8f5; }
:root[data-theme="dark"] .ac-typing i{ background:var(--text-muted); }
:root[data-theme="dark"] .ac-hrow{ border-bottom-color:var(--dk-line-2); }
:root[data-theme="dark"] .ac-hrow em{ color:var(--text-secondary); }
:root[data-theme="dark"] .ac-hnew{ background:rgba(107,207,157,.08); }
:root[data-theme="dark"] .ac-find{ background:var(--win-recess); border-color:var(--dk-control); color:var(--text-secondary); }
:root[data-theme="dark"] .ac-q::before{ color:var(--dk-placeholder); }
:root[data-theme="dark"] .ac-person em{ color:var(--green-text); }
:root[data-theme="dark"] :is(.ac-priya em,.ac-busy-t){ color:var(--red-text) !important; }
:root[data-theme="dark"] .ac-away-t{ color:var(--amber-text) !important; }
:root[data-theme="dark"] .ac-groups i{ color:var(--text-muted); }
:root[data-theme="dark"] .ac-groups i.is-on{ background:rgba(129,170,247,.14); color:var(--blue-text-hi); }
:root[data-theme="dark"] .ac-slot span{ color:var(--text-muted); }
:root[data-theme="dark"] .ac-slot i{ color:var(--text-primary); }
:root[data-theme="dark"] .ac-free{ background:rgba(129,170,247,.16); color:var(--blue-text); }
:root[data-theme="dark"] .ac-busyblk{ background:rgba(129,170,247,.28); color:var(--text-primary); }
/* state twins of the light step rules (the light ones carry the ID, so these carry it too: (1,4,0) and up) */
:root[data-theme="dark"] #ac-console:is([data-step="0"],[data-step="1"]) .ac-chatp{ box-shadow:inset 0 0 0 1px var(--dk-line-3),inset 3px 0 0 #71c1e0; }   /* teal queue bar, tinted */
:root[data-theme="dark"] #ac-console:is([data-step="1"],[data-step="2"],[data-step="3"],[data-step="4"]) .ac-call{ border-color:var(--tm-ink); }
:root[data-theme="dark"] #ac-console:is([data-step="2"],[data-step="3"],[data-step="4"]) .ac-avail{ color:var(--red-text); }
:root[data-theme="dark"] #ac-console:is([data-step="2"],[data-step="3"],[data-step="4"]) .ac-avail i{ background:var(--red-text); }
:root[data-theme="dark"] #ac-console:is([data-step="2"],[data-step="3"]) .ac-q::before{ color:var(--text-primary); }
:root[data-theme="dark"] #ac-console[data-step="2"] .ac-priya{ border-color:var(--red-text); background:rgba(234,136,133,.10); }
:root[data-theme="dark"] #ac-console[data-step="2"] .ac-busyblk{ box-shadow:0 0 0 2px var(--red-text); }
:root[data-theme="dark"] #ac-console:is([data-step="3"],[data-step="4"]) .ac-sam{ border-color:var(--tm-ink); background:rgba(157,153,237,.12); }
:root[data-theme="dark"] #ac-console:is([data-step="3"],[data-step="4"]) .ac-xfer{ background:var(--tm-fill); color:#fff; }

/* ================= 6. Hosting: the cloud console windows (.hs-con) and the release log (#hr-log) ================= */
:root[data-theme="dark"] .hs-con{ background:var(--win-body); color:var(--text-primary); }
:root[data-theme="dark"] .hs-nav{ background:var(--win-rail); color:var(--text-secondary); }
:root[data-theme="dark"] .hs-nav .is-on{ background:rgba(178,220,105,.14); color:var(--text-primary); box-shadow:inset 2px 0 0 var(--lime-text); }
:root[data-theme="dark"] .hs-logo{ background:var(--dk-control); }
:root[data-theme="dark"] .hs-top small{ color:var(--text-muted); }
:root[data-theme="dark"] .hs-stats > span{ background:var(--win-bar); border-color:var(--dk-line-3); }
:root[data-theme="dark"] .hs-stats small{ color:var(--text-muted); }
:root[data-theme="dark"] .hs-ok{ color:var(--lime-text); }
:root[data-theme="dark"] .hs-chart{ background:var(--win-recess); border-color:var(--dk-line-3); }
:root[data-theme="dark"] .hs-grid{ stroke:rgba(150,175,230,.12); }
:root[data-theme="dark"] .hs-area{ fill:rgba(178,220,105,.18); }
:root[data-theme="dark"] .hs-line{ stroke:var(--lime-text); }
:root[data-theme="dark"] .hs-cursor{ background:var(--text-muted); }
:root[data-theme="dark"] .hs-insts i{ background:var(--lime-text); }
:root[data-theme="dark"] .hw-list, :root[data-theme="dark"] .hu-table, :root[data-theme="dark"] .hd-cols{ background:var(--win-bar); border-color:var(--dk-line-3); }
:root[data-theme="dark"] :is(.hw-h,.hu-h,.hd-h){ background:rgba(150,175,230,.06); color:var(--text-muted); }
:root[data-theme="dark"] .hw-rel{ border-top-color:var(--dk-line-2); }
:root[data-theme="dark"] .hw-rel small{ color:var(--text-muted); }
:root[data-theme="dark"] .hw-dot{ background:var(--green-text); }
:root[data-theme="dark"] .hw-dot.hw-grey{ background:var(--dk-control); }
:root[data-theme="dark"] .hw-dep{ color:var(--amber-text); }
:root[data-theme="dark"] .hw-bar{ background:rgba(248,198,85,.25); }
:root[data-theme="dark"] .hw-bar::after{ background:var(--amber-text); }
:root[data-theme="dark"] :is(.hw-live,.hw-was){ color:var(--green-text); }
:root[data-theme="dark"] .hw-old{ color:var(--text-muted); }
:root[data-theme="dark"] .hu-row{ border-top-color:var(--dk-line-2); color:var(--text-primary); }
:root[data-theme="dark"] .hu-h{ border-top-color:transparent; }
:root[data-theme="dark"] .hu-a1{ background:#4f46e5; }
:root[data-theme="dark"] .hu-a2{ background:var(--dm-info); }
:root[data-theme="dark"] .hu-a3{ background:var(--dm-warn); }
:root[data-theme="dark"] .hu-a4{ background:#4f5f7d; }
:root[data-theme="dark"] .hu-new{ background:rgba(178,220,105,.08); }
:root[data-theme="dark"] .hd-col{ border-left-color:var(--dk-line-2); }
:root[data-theme="dark"] .hd-col .is-on{ background:rgba(129,170,247,.14); color:var(--blue-text-hi); }
:root[data-theme="dark"] .hd-doc b{ color:var(--text-muted); }
:root[data-theme="dark"] .hd-doc em{ color:var(--amber-text); }
:root[data-theme="dark"] .hd-doc em.hd-paid{ color:var(--green-text); }
@media (prefers-reduced-motion: no-preference){
  @keyframes hsInstDark{ 0%,30%{ background:rgba(150,175,230,.16); } 40%,62%{ background:var(--lime-text); } 75%,100%{ background:rgba(150,175,230,.16); } }
  @keyframes huInDark{ 0%,10%{ opacity:0; transform:translateY(-6px); background:rgba(178,220,105,.18); } 18%,70%{ opacity:1; transform:none; background:rgba(178,220,105,.18); } 85%,100%{ background:transparent; } }
  @keyframes hdPaidDark{ 0%,59%{ opacity:0; background:transparent; } 61%,80%{ opacity:1; background:rgba(107,207,157,.16); } 81%,100%{ opacity:1; background:transparent; } }
  :root[data-theme="dark"] .hs-insts i{ animation-name:hsInstDark; }
  :root[data-theme="dark"] .hs-insts i:first-child{ animation:none; }
  :root[data-theme="dark"] .hu-new, :root[data-theme="dark"] .hd-new{ animation-name:huInDark; }
  :root[data-theme="dark"] .hd-doc .hd-paid{ animation-name:hdPaidDark; }
}
/* 6.2 release log */
:root[data-theme="dark"] .hr-log{ background:var(--win-body); border-color:var(--win-edge); box-shadow:none; color:var(--text-primary); }
:root[data-theme="dark"] .hr-head{ background:var(--win-bar); border-bottom-color:var(--win-line); box-shadow:inset 0 1px 0 var(--dk-edge-hi); }
:root[data-theme="dark"] .hr-repo i{ color:var(--text-secondary); }
:root[data-theme="dark"] .hr-branch{ background:rgba(150,175,230,.14); color:var(--text-secondary); }
:root[data-theme="dark"] .hr-tabs{ color:var(--text-muted); }
:root[data-theme="dark"] .hr-tabs .is-on{ color:var(--text-primary); box-shadow:inset 0 -2px 0 var(--lime-text); }
:root[data-theme="dark"] .hr-led{ background:var(--green-text); box-shadow:0 0 0 3px rgba(107,207,157,.25); }
:root[data-theme="dark"] .hr-row{ border-bottom-color:var(--dk-line-2); }
:root[data-theme="dark"] .hr-ic{ color:var(--violet-text); }
:root[data-theme="dark"] .hr-t small{ color:var(--text-muted); }
:root[data-theme="dark"] .hr-chips i{ color:var(--green-text); }
:root[data-theme="dark"] .hr-chips i::before{ background:var(--green-text); }
:root[data-theme="dark"] .hr-chips i.hr-run{ color:var(--amber-text); }
:root[data-theme="dark"] .hr-chips i.hr-run::before{ background:var(--amber-text); }
:root[data-theme="dark"] .hr-live{ background:rgba(107,207,157,.14); color:var(--green-text); }
:root[data-theme="dark"] .hr-done, :root[data-theme="dark"] .hr-off{ background:var(--dm-tile); color:var(--text-secondary); }
:root[data-theme="dark"] .hr-wait{ background:rgba(248,198,85,.14); color:var(--amber-text); }
:root[data-theme="dark"] .hr-bad{ background:rgba(234,136,133,.14); color:var(--red-text); }
:root[data-theme="dark"] #hr-log[data-step="4"] .hr-led{ background:var(--red-text); box-shadow:0 0 0 3px rgba(234,136,133,.25); }
:root[data-theme="dark"] #hr-log[data-step="4"] .hr-stext::before{ color:var(--red-text); }
:root[data-theme="dark"] #hr-log[data-step="4"] .hr-b{ background:rgba(234,136,133,.10); }
:root[data-theme="dark"] #hr-log[data-step="5"] .hr-c{ background:rgba(178,220,105,.08); }
:root[data-theme="dark"] .hr-caption .ac-cap.is-on::before{ background:var(--lime-text); box-shadow:0 0 0 3px var(--inf-lime-soft); }
:root[data-theme="dark"] #hr-log[data-step="4"] + .hr-caption{ color:var(--red-text); }
:root[data-theme="dark"] #hr-log[data-step="4"] + .hr-caption .ac-cap.is-on::before{ background:var(--red-text); box-shadow:0 0 0 3px rgba(234,136,133,.25); }
