:root {
  --ink: #090806;
  --black: #050504;
  --blue: #1f44a6;
  --blue-deep: #10224f;
  --caption: #d8c84f;
  --caption-dim: #a99d45;
  --plastic: #c9bea4;
  --plastic-light: #e4dcc8;
  --wood: #665442;
  --wood-dark: #392d24;
  --paper: #f2ead4;
  --muted: #6f6758;
  --line: rgba(23, 20, 15, 0.26);
  --screen-line: rgba(216, 200, 79, 0.36);
  --red: #b63f30;
  --green: #597c52;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(216, 200, 79, 0.16), transparent 26%),
    linear-gradient(135deg, #b7aa8f 0%, #8e765e 48%, #34291f 100%);
  background-size: 4px 4px, 100% 5px, auto, auto;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 4px),
    linear-gradient(90deg, rgba(31, 68, 166, 0.05), rgba(182, 63, 48, 0.04));
  mix-blend-mode: multiply;
  opacity: 0.58;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 140px rgba(5, 5, 4, 0.34);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 2px solid rgba(9, 8, 6, 0.55);
  background: rgba(222, 212, 190, 0.94);
  box-shadow: 0 10px 30px rgba(9, 8, 6, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: sepia(0.25) saturate(0.8);
}

.brand-name,
.brand-label,
.nav-links,
.eyebrow,
.button,
.caption-strip,
.caption-label,
.form-header,
.caption-note,
.sequence-grid span,
.module-number,
.spec-list dt,
.footer-grid {
  font-family: "Courier New", monospace;
}

.brand-name {
  display: block;
  color: var(--blue-deep);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  padding: 10px 14px;
  border: 2px solid var(--blue-deep);
  background: var(--caption);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  background: var(--plastic-light);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.section,
.consultation-section {
  position: relative;
}

.hero {
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 92px 0 82px;
}

.hero-grid,
.section-intro,
.module-board,
.service-manual,
.sequence-grid,
.consultation-section,
.footer-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.78fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  padding: 34px;
  border: 2px solid rgba(9, 8, 6, 0.42);
  background: rgba(238, 230, 210, 0.83);
  box-shadow: 14px 14px 0 rgba(9, 8, 6, 0.16);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

h2 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h3 {
  color: var(--blue-deep);
  font-size: 30px;
  line-height: 1.02;
}

.lede,
.section-intro p,
.manual-copy p,
.consultation-copy p {
  color: #2d2a23;
  font-size: 19px;
  line-height: 1.62;
}

.lede {
  max-width: 660px;
  margin: 28px 0 0;
}

.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: var(--caption);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(31, 68, 166, 0.72);
}

.button-secondary {
  background: var(--plastic-light);
  box-shadow: 5px 5px 0 rgba(182, 63, 48, 0.58);
}

.training-frame {
  overflow: hidden;
  border: 10px solid #111;
  background: #111;
  color: var(--paper);
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 70px rgba(9, 8, 6, 0.42);
}

.frame-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 2px solid #111;
  background: var(--caption);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.frame-body {
  height: calc(100% - 86px);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 10px;
  padding: 10px;
  background: #0a0a09;
}

.presenter-panel,
.monitor-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid #050504;
}

.presenter-panel {
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 28px 18px 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(180deg, #846b57 0%, #5d493a 100%);
  background-size: 18px 100%, auto;
}

.portrait-card {
  position: relative;
  width: min(210px, 70%);
  height: 210px;
}

.portrait-head {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 58px;
  height: 68px;
  border-radius: 46% 46% 42% 42%;
  background: #c8a889;
  transform: translateX(-50%);
  box-shadow: 0 -12px 0 #3d3029;
}

.portrait-jacket {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 162px;
  height: 140px;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(90deg, #5e5a4e 0 48%, #393832 48% 52%, #777064 52% 100%);
  transform: translateX(-50%);
}

.desk-unit {
  width: 86%;
  height: 68px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 3px solid #807663;
  background: var(--plastic);
}

.desk-unit span {
  display: block;
  border: 2px solid #817866;
  background: #e6decb;
}

.monitor-panel {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(180deg, #d6ceb8, #a99f88);
}

.monitor-screen {
  width: 82%;
  min-height: 64%;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 14px solid #d7cfbd;
  outline: 5px solid #7c725e;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 7px),
    var(--blue);
  color: white;
  text-align: left;
  box-shadow: inset 0 0 50px rgba(2, 4, 15, 0.42);
}

.monitor-screen strong {
  color: var(--caption);
  font-family: "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.monitor-screen span {
  color: #f4f0d9;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caption-strip {
  padding: 10px 14px;
  background: #0a0a09;
  color: var(--caption);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.6fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-intro.narrow {
  display: block;
  max-width: 760px;
  margin-bottom: 34px;
}


.hero-grid {
  position: relative;
  z-index: 1;
}

.hero::before,
.module-section::before,
.process-section::before {
  position: absolute;
  pointer-events: none;
  content: "";
  opacity: 0.58;
}

.hero::before {
  top: 128px;
  right: clamp(18px, 5vw, 92px);
  width: 128px;
  height: 76px;
  border: 2px solid rgba(9, 8, 6, 0.36);
  background:
    linear-gradient(90deg, rgba(182, 63, 48, 0.85) 0 34%, transparent 34% 41%, rgba(216, 200, 79, 0.88) 41% 100%),
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(9, 8, 6, 0.16) 9px 11px);
  transform: rotate(3deg);
}

.module-section::before {
  top: 44px;
  left: max(18px, calc((100vw - var(--max)) / 2 - 38px));
  width: 86px;
  height: 86px;
  border: 2px solid rgba(9, 8, 6, 0.26);
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 68, 166, 0.34) 0 20%, transparent 21%),
    repeating-conic-gradient(from 0deg, rgba(9, 8, 6, 0.18) 0deg 14deg, transparent 14deg 28deg),
    rgba(238, 230, 210, 0.38);
  border-radius: 50%;
}

.process-section::before {
  right: clamp(20px, 7vw, 110px);
  bottom: 70px;
  width: 210px;
  height: 26px;
  background: repeating-linear-gradient(90deg, rgba(9, 8, 6, 0.3) 0 18px, transparent 18px 30px);
  transform: rotate(-2deg);
}

.scenario-reel {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 34px;
}

.scenario-frame {
  --card-tilt: 0deg;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin: 0;
  border: 8px solid #0a0a09;
  background: #0a0a09;
  box-shadow: 12px 12px 0 rgba(9, 8, 6, 0.2);
}

.scenario-frame:nth-child(1) {
  --card-tilt: -0.6deg;
}

.scenario-frame:nth-child(2) {
  --card-tilt: 0.45deg;
}

.scenario-frame:nth-child(3) {
  --card-tilt: -0.25deg;
}

.scenario-frame picture {
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  overflow: hidden;
}

.scenario-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.16) saturate(0.86) contrast(1.03);
  transition: transform 520ms ease, filter 520ms ease;
}

.scenario-frame figcaption {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  left: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(9, 8, 6, 0.28);
  background: rgba(216, 200, 79, 0.88);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-align: center;
}

.scenario-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.18), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.scenario-frame::after {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 9px;
  content: "";
  background: var(--red);
  box-shadow: -44px 0 0 var(--caption);
  opacity: 0.8;
}

.scenario-frame:hover img {
  transform: scale(1.035);
  filter: sepia(0.1) saturate(1.04) contrast(1.08);
}

.module-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: #0a0a09;
  box-shadow: 16px 16px 0 rgba(9, 8, 6, 0.22);
}

.module-card {
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 24px;
  border-right: 2px solid #0a0a09;
  background: var(--plastic-light);
}

.module-card:nth-child(even) {
  background: #d3c7ad;
}

.module-card:last-child {
  border-right: 0;
}

.module-number {
  width: 56px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.module-card p {
  color: #2e2a23;
  line-height: 1.6;
}

.caption-label {
  display: inline-block;
  width: fit-content;
  padding: 6px 8px;
  background: #111;
  color: var(--caption);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.standards-section {
  background: rgba(238, 230, 210, 0.38);
}

.service-manual {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.manual-image {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #d8cfbb, #b7ad98);
  box-shadow: 14px 14px 0 rgba(31, 68, 166, 0.24);
}

.drive-slot {
  height: 76px;
  border: 4px solid #817865;
  background: #eee6d3;
  box-shadow: inset 0 -12px 0 rgba(9, 8, 6, 0.08);
}

.drive-slot.short {
  width: 78%;
}

.keyboard-row {
  height: 54px;
  background: repeating-linear-gradient(90deg, #827968 0 18px, #eee6d3 18px 38px);
  border: 3px solid #817865;
}

.keyboard-row.small {
  width: 66%;
  height: 38px;
}

.manual-copy {
  padding: 34px;
  border: 2px solid rgba(9, 8, 6, 0.32);
  background: rgba(238, 230, 210, 0.86);
}

.spec-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 2px solid rgba(9, 8, 6, 0.18);
}

.spec-list dt {
  color: var(--blue-deep);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  color: #2f2b24;
  line-height: 1.5;
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sequence-grid article {
  min-height: 220px;
  padding: 22px;
  border: 2px solid rgba(9, 8, 6, 0.44);
  background: rgba(238, 230, 210, 0.82);
}

.sequence-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sequence-grid strong {
  display: block;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.sequence-grid p {
  color: #302d26;
  line-height: 1.58;
}

.consultation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(540px, 1fr);
  gap: 56px;
  align-items: start;
  padding: 100px 0;
}

.consultation-copy {
  padding: 34px;
  border: 2px solid rgba(9, 8, 6, 0.34);
  background: rgba(238, 230, 210, 0.88);
}

.caption-note {
  margin-top: 24px;
  padding: 10px 12px;
  background: #111;
  color: var(--caption);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-form {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--plastic-light);
  box-shadow: 14px 14px 0 rgba(9, 8, 6, 0.22);
}

.form-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span,
.checkline {
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(9, 8, 6, 0.34);
  border-radius: 0;
  padding: 12px;
  background: #f7efd9;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 68, 166, 0.18);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 26px;
  padding: 18px 0 0;
  border-top: 2px solid rgba(9, 8, 6, 0.18);
  color: #2d2922;
  line-height: 1.45;
  text-transform: none;
}

.checkline input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-actions {
  padding: 0 26px 26px;
}

.form-message {
  min-height: 20px;
  color: var(--blue-deep);
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.site-footer {
  border-top: 2px solid rgba(9, 8, 6, 0.55);
  padding: 34px 0;
  background: rgba(222, 212, 190, 0.94);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #3a352c;
  font-size: 12px;
  font-weight: 800;
}

.footer-grid nav {
  display: flex;
  gap: 16px;
}

.simple-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 70px;
}

.simple-panel {
  width: min(820px, calc(100% - 42px));
  margin: 0 auto;
  padding: 36px;
  border: 2px solid var(--ink);
  background: rgba(238, 230, 210, 0.9);
  box-shadow: 12px 12px 0 rgba(9, 8, 6, 0.18);
}

.simple-panel p,
.simple-panel li {
  color: #2f2b24;
  line-height: 1.7;
}

@media (max-width: 1060px) {
  .hero-grid,
  .service-manual,
  .consultation-section {
    grid-template-columns: 1fr;
  }

  .module-board,
  .sequence-grid,
  .scenario-reel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-frame {
    max-width: 640px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    padding: 18px;
    border: 2px solid var(--ink);
    background: rgba(238, 230, 210, 0.98);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero-grid,
  .section-intro,
  .module-board,
  .service-manual,
  .sequence-grid,
  .scenario-reel,
  .consultation-section,
  .footer-grid {
    width: calc(100% - 28px);
  }

  .hero-copy,
  .manual-copy,
  .consultation-copy {
    padding: 24px;
  }

  .section-intro,
  .module-board,
  .sequence-grid,
  .scenario-reel,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 250px;
    border-right: 0;
    border-bottom: 2px solid #0a0a09;
  }

  .module-card:last-child {
    border-bottom: 0;
  }

  .frame-body {
    grid-template-columns: 1fr;
  }

  .presenter-panel {
    display: none;
  }

  .spec-list div {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
  }
}


/* Brand character system rebuilt from supplied face/moustache/hat assets. */
.brand img.brand-face {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: none;
  transition: transform 180ms ease;
}

.brand:hover .brand-face {
  transform: translateY(-1px) rotate(-2deg);
}

.character-stage {
  align-content: end;
  justify-items: center;
  gap: 12px;
}

.training-face {
  width: min(250px, 78%);
  max-height: 245px;
  object-fit: contain;
  transform: translate3d(calc(var(--face-x, 0) * 1px), calc(var(--face-y, 0) * 1px), 0) rotate(calc(var(--face-x, 0) * .18deg));
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
  filter: drop-shadow(0 12px 14px rgba(9, 8, 6, 0.22));
}

.character-stage:hover .training-face {
  filter: drop-shadow(0 14px 16px rgba(9, 8, 6, 0.3));
}


.training-frame {
  position: relative;
}

.training-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 0 38%, rgba(255,255,255,.36) 39%, rgba(31,68,166,.26) 41%, transparent 43% 100%),
    repeating-linear-gradient(180deg, transparent 0, transparent 8px, rgba(216,200,79,.12) 9px);
  mix-blend-mode: screen;
}

.training-frame.is-vhs-blip::after {
  animation: vhs-blip 280ms steps(3, end);
}

.training-frame.is-vhs-blip .training-face,
.training-frame.is-vhs-blip .monitor-screen {
  animation: vhs-shift 280ms steps(3, end);
}


.button,
.nav-links a,
.module-card,
.sequence-grid article,
.booking-form,
.service-manual {
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, background-color 220ms ease;
}

.button:hover,
.nav-cta:hover {
  transform: translate(-1px, -2px);
  box-shadow: 7px 7px 0 rgba(31, 68, 166, 0.82);
}

.button-secondary:hover {
  box-shadow: 7px 7px 0 rgba(182, 63, 48, 0.66);
}

.nav-links a:hover {
  color: var(--blue);
}

.module-card:hover,
.sequence-grid article:hover {
  transform: translateY(-6px) rotate(var(--card-tilt, 0deg));
  filter: saturate(1.06);
}

.module-card:hover {
  box-shadow: inset 0 0 0 4px rgba(216, 200, 79, 0.34);
}

.service-manual:hover,
.booking-form:hover {
  transform: translateY(-4px);
}

.monitor-screen {
  animation: screen-pulse 7s ease-in-out infinite;
}

.brand-face,
.training-face {
  will-change: transform, filter, opacity;
}

.brand-face.is-logo-fuzz,
.training-face.is-logo-fuzz {
  animation: logo-fuzz 300ms steps(4, end);
}

html.is-crt-static body::before {
  opacity: 0.9;
  animation: crt-static 260ms steps(5, end);
}

html.has-js .reveal-card {
  opacity: 0;
  transform: translateY(20px) rotate(var(--card-tilt, 0deg));
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.2, .72, .18, 1), box-shadow 220ms ease, filter 220ms ease, background-color 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

html.has-js .reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--card-tilt, 0deg));
}

html.has-js .module-card.reveal-card.is-visible:hover,
html.has-js .sequence-grid article.reveal-card.is-visible:hover,
html.has-js .scenario-frame.reveal-card.is-visible:hover {
  transform: translateY(-6px) rotate(var(--card-tilt, 0deg));
}

@keyframes screen-pulse {
  0%, 100% { box-shadow: inset 0 0 50px rgba(2, 4, 15, 0.42); filter: saturate(1); }
  48% { box-shadow: inset 0 0 62px rgba(2, 4, 15, 0.5), 0 0 18px rgba(31, 68, 166, 0.18); filter: saturate(1.08); }
  52% { filter: saturate(0.92); }
}

@keyframes logo-fuzz {
  0% { filter: drop-shadow(0 12px 14px rgba(9, 8, 6, 0.22)); opacity: 1; }
  22% { filter: drop-shadow(3px 0 0 rgba(182, 63, 48, 0.7)) drop-shadow(-3px 0 0 rgba(31, 68, 166, 0.7)) contrast(1.35); opacity: 0.78; }
  48% { filter: drop-shadow(-4px 1px 0 rgba(216, 200, 79, 0.7)) drop-shadow(3px -1px 0 rgba(31, 68, 166, 0.62)) contrast(1.2); opacity: 0.92; }
  100% { filter: drop-shadow(0 12px 14px rgba(9, 8, 6, 0.22)); opacity: 1; }
}

@keyframes crt-static {
  0% { transform: translate3d(0, 0, 0); background-position: 0 0, 0 0, center, center; }
  20% { transform: translate3d(-1px, 1px, 0); background-position: 14px 8px, 0 2px, center, center; }
  45% { transform: translate3d(2px, -1px, 0); background-position: -8px 18px, 0 -1px, center, center; }
  72% { transform: translate3d(-2px, 0, 0); background-position: 22px -6px, 0 3px, center, center; }
  100% { transform: translate3d(0, 0, 0); background-position: 0 0, 0 0, center, center; }
}

@media (prefers-reduced-motion: reduce) {
  html.has-js .reveal-card,
  html.has-js .reveal-card.is-visible,
  .button,
  .module-card,
  .sequence-grid article,
  .scenario-frame img,
  .monitor-screen,
  .brand-face.is-logo-fuzz,
  .training-face.is-logo-fuzz {
    animation: none;
    transition: none;
    transform: none;
  }
}

@keyframes vhs-blip {
  0% { opacity: 0; transform: translateY(0); }
  18% { opacity: .9; transform: translateY(-6px); }
  38% { opacity: .18; transform: translateY(9px); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes vhs-shift {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  44% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@media (max-width: 720px) {
  .training-face {
    width: min(210px, 72%);
  }
}


/* Client dashboard: compact operational surface. */
.dashboard-header {
  position: sticky;
}

.dashboard-page {
  width: min(var(--max), calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 92px 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(460px, 0.86fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.dashboard-hero h1 {
  max-width: 640px;
  font-size: clamp(42px, 5vw, 70px);
}

.dashboard-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 2px solid rgba(9, 8, 6, 0.42);
  background: rgba(238, 230, 210, 0.88);
  box-shadow: 10px 10px 0 rgba(9, 8, 6, 0.16);
}

.dashboard-access .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dashboard-metric {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 2px solid rgba(9, 8, 6, 0.38);
  background: rgba(238, 230, 210, 0.88);
}

.dashboard-metric span,
.dashboard-panel-header span,
.dashboard-item-meta,
.dashboard-empty {
  font-family: "Courier New", monospace;
}

.dashboard-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-metric strong {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.dashboard-panel {
  min-height: 420px;
  border: 2px solid var(--ink);
  background: rgba(228, 220, 200, 0.92);
  box-shadow: 12px 12px 0 rgba(9, 8, 6, 0.18);
}

.dashboard-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
  color: white;
}

.dashboard-panel-header .eyebrow {
  margin: 0;
  color: white;
}

.dashboard-panel-header span {
  color: var(--caption);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dashboard-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 2px solid rgba(9, 8, 6, 0.26);
  background: #f7efd9;
}

.dashboard-item-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-item-title strong {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.dashboard-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 2px solid rgba(9, 8, 6, 0.28);
  background: var(--caption);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-item-meta {
  color: #3c352b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-empty {
  margin: 0;
  padding: 18px;
  border: 2px dashed rgba(9, 8, 6, 0.28);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1060px) {
  .dashboard-hero,
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-page {
    width: calc(100% - 28px);
    padding: 72px 0;
  }

  .dashboard-access,
  .dashboard-status-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    display: none;
  }

  .dashboard-item-title {
    display: grid;
  }
}


/* Member account dashboard. */
.member-page {
  padding-top: 82px;
}

.member-topbar {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(460px, 0.86fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.member-topbar h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 68px);
}

.member-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.member-panel {
  min-height: 340px;
}

.member-panel-wide {
  min-height: 260px;
  grid-column: 1 / -1;
}

.member-panel-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.member-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-choice {
  min-height: 104px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid rgba(9, 8, 6, 0.28);
  background: #f7efd9;
  cursor: pointer;
}

.member-choice.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.member-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.member-choice-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.member-choice-body strong,
.member-detail .dashboard-item-title strong,
.member-tool .dashboard-item-title strong,
.member-oneoff-item .dashboard-item-title strong,
.member-invoice .dashboard-item-title strong {
  overflow-wrap: anywhere;
}

.member-choice-body strong {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
}

.member-choice-body span,
.member-inline-controls input {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-actions,
.member-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.member-actions .button,
.member-inline-controls .button {
  min-height: 44px;
}

.member-inline-controls input {
  width: 92px;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid rgba(9, 8, 6, 0.38);
  background: rgba(255, 251, 239, 0.94);
  color: var(--ink);
}

.dashboard-badge.is-good {
  background: #b7d6a3;
}

.dashboard-badge.is-warn {
  background: #f0c66b;
}

.member-detail,
.member-tool,
.member-oneoff-item,
.member-invoice {
  min-height: 106px;
}

.member-oneoff-item,
.member-invoice {
  align-content: start;
}

.member-status-grid .dashboard-metric strong {
  font-size: clamp(22px, 2.8vw, 32px);
}

@media (max-width: 1060px) {
  .member-topbar,
  .member-layout,
  .member-choice-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .member-page {
    padding-top: 72px;
  }

  .member-topbar h1 {
    font-size: 42px;
  }

  .member-choice {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .member-choice .dashboard-badge {
    grid-column: 2;
    width: fit-content;
  }
}


/* Split dashboard pages. */
.dashboard-shell {
  display: grid;
  gap: 20px;
}

.dashboard-page-title {
  margin-bottom: 0;
}

.dashboard-message {
  align-self: end;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid rgba(9, 8, 6, 0.32);
  background: rgba(247, 239, 217, 0.9);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-login-page .member-topbar {
  min-height: calc(100svh - 180px);
}

.dashboard-item-title a {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
}

.dashboard-item-title a:hover {
  text-decoration: underline;
}

.dashboard-logout {
  border: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 720px) {
  .dashboard-message {
    min-height: 44px;
  }
}


/* Dashboard app navigation. */
.dashboard-header .dashboard-nav-toggle {
  display: block;
  flex: 0 0 auto;
  cursor: pointer;
}

.dashboard-header .dashboard-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dashboard-header .dashboard-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.dashboard-header .dashboard-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dashboard-header .dashboard-nav-toggle span {
  transition: transform 180ms ease, opacity 180ms ease;
}

.dashboard-header [data-dashboard-nav] {
  position: absolute;
  top: 72px;
  right: clamp(18px, 4vw, 54px);
  z-index: 50;
  display: none;
  width: min(340px, calc(100vw - 36px));
  padding: 18px;
  border: 2px solid var(--ink);
  background: rgba(238, 230, 210, 0.98);
  box-shadow: 10px 10px 0 rgba(9, 8, 6, 0.18);
}

.dashboard-header [data-dashboard-nav].is-open {
  display: grid;
  gap: 12px;
}

.dashboard-header [data-dashboard-nav] a,
.dashboard-header [data-dashboard-nav] button {
  width: 100%;
  text-align: left;
}

.dashboard-header [data-dashboard-nav] a.is-active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dashboard-header [data-dashboard-nav] [hidden] {
  display: none;
}

@media (max-width: 720px) {
  .dashboard-header [data-dashboard-nav] {
    top: 72px;
    right: 14px;
    width: min(330px, calc(100vw - 28px));
  }
}


.voice-grid {
  align-items: start;
}

.voice-console {
  display: grid;
  gap: 14px;
}

.voice-field {
  display: grid;
  gap: 7px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.voice-field textarea {
  min-height: 120px;
  resize: vertical;
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.voice-controls .button,
.voice-outcome .button {
  min-width: 132px;
}

.voice-outcome {
  display: grid;
  gap: 12px;
}

.voice-page .dashboard-metric strong {
  word-break: break-word;
}


/* Protected dashboard overrides: quieter, denser operational surfaces. */
body[data-dashboard-app],
body[data-dashboard-login],
body[data-dashboard-billing-return] {
  color: #172032;
  background: #f5f7f2;
}

body[data-dashboard-app]::before,
body[data-dashboard-app]::after,
body[data-dashboard-login]::before,
body[data-dashboard-login]::after,
body[data-dashboard-billing-return]::before,
body[data-dashboard-billing-return]::after {
  display: none;
}

body[data-dashboard-app] .site-header,
body[data-dashboard-login] .site-header,
body[data-dashboard-billing-return] .site-header {
  border-bottom: 1px solid #d7ddd2;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(23, 32, 50, 0.08);
}

body[data-dashboard-app] .brand img,
body[data-dashboard-login] .brand img,
body[data-dashboard-billing-return] .brand img {
  filter: none;
}

body[data-dashboard-app] .brand-name,
body[data-dashboard-login] .brand-name,
body[data-dashboard-billing-return] .brand-name {
  color: #172032;
  font-size: 20px;
  letter-spacing: 0;
}

body[data-dashboard-app] .brand-label,
body[data-dashboard-login] .brand-label,
body[data-dashboard-billing-return] .brand-label,
body[data-dashboard-app] .eyebrow,
body[data-dashboard-login] .eyebrow,
body[data-dashboard-billing-return] .eyebrow,
.dashboard-metric span,
.dashboard-panel-header span,
.dashboard-item-meta,
.dashboard-empty,
.member-choice-body span,
.member-inline-controls input,
.dashboard-message,
.voice-field {
  letter-spacing: 0;
}

.dashboard-page {
  width: min(1280px, calc(100% - 32px));
  min-height: auto;
  padding: 32px 0 56px;
}

.member-page {
  padding-top: 32px;
}

.dashboard-shell {
  gap: 14px;
}

.member-topbar {
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 18px;
  align-items: start;
  margin-bottom: 0;
}

.member-topbar h1,
.dashboard-hero h1 {
  margin: 0;
  color: #172032;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
}

.dashboard-status-grid {
  gap: 10px;
  margin-bottom: 0;
}

.dashboard-metric {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-metric span,
.dashboard-panel-header span,
.dashboard-item-meta,
.dashboard-empty {
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  text-transform: none;
}

.dashboard-metric span {
  color: #6d7668;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-metric strong,
.member-status-grid .dashboard-metric strong {
  color: #172032;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}

.member-layout,
.dashboard-workspace {
  gap: 12px;
}

.dashboard-panel,
.member-panel,
.member-panel-wide {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-panel-header {
  min-height: 44px;
  padding: 11px 14px;
  border-bottom: 1px solid #d7ddd2;
  background: #202a3a;
}

.dashboard-panel-header span {
  color: #dbe5d3;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-list,
.member-panel-body,
.voice-console,
.voice-outcome {
  gap: 10px;
  padding: 12px;
}

.dashboard-item,
.member-choice {
  min-height: 0;
  padding: 12px;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  background: #fbfcf8;
}

.dashboard-item-title {
  align-items: center;
}

.dashboard-item-title strong,
.dashboard-item-title a,
.member-choice-body strong {
  color: #172032;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-badge {
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #cbd3c5;
  border-radius: 8px;
  background: #edf1e8;
  color: #283244;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-badge.is-good {
  background: #dcefd2;
  border-color: #b9d8ab;
}

.dashboard-badge.is-warn {
  background: #fff0c2;
  border-color: #efd276;
}

.dashboard-item-meta,
.dashboard-empty,
.member-choice-body span,
.member-inline-controls input {
  color: #5e685a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-empty {
  padding: 14px;
  border: 1px dashed #cbd3c5;
  border-radius: 8px;
  background: #fbfcf8;
}

.member-detail,
.member-tool,
.member-oneoff-item,
.member-invoice,
.member-choice {
  min-height: 0;
}

.member-choice-list {
  gap: 10px;
}

.member-choice {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.member-actions .button,
.member-inline-controls .button,
.voice-controls .button,
.voice-outcome .button {
  min-height: 38px;
}

.dashboard-message {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
  color: #5e685a;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.dashboard-access {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-login-page .member-topbar {
  min-height: calc(100svh - 160px);
  align-items: center;
}

.dashboard-login-copy {
  max-width: 560px;
}

.dashboard-auth-status {
  max-width: 520px;
  margin: 14px 0 0;
  color: #5e685a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.dashboard-login-section {
  display: grid;
  gap: 10px;
}

.dashboard-dev-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-token-fallback {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #d7ddd2;
}

.dashboard-token-fallback summary {
  cursor: pointer;
  color: #283244;
  font-weight: 800;
}

.dashboard-token-fallback form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 10px;
}

.dashboard-header [data-dashboard-nav] {
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(23, 32, 50, 0.14);
}

.voice-field {
  color: #5e685a;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

@media (max-width: 720px) {
  .dashboard-page,
  .member-page {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .member-topbar,
  .dashboard-token-fallback form,
  .member-choice {
    grid-template-columns: 1fr;
  }

  .member-topbar h1,
  .dashboard-hero h1 {
    font-size: 30px;
  }
}


/* Voice readiness softphone. */
.voice-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.voice-status-tile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
}

.voice-status-tile span,
.voice-subpanel-head span {
  display: block;
  color: #66715f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.voice-status-tile strong,
.voice-subpanel-head strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: #172032;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  word-break: break-word;
}

.voice-softphone-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, .75fr);
  gap: 12px;
  align-items: start;
}

.voice-side-stack {
  display: grid;
  gap: 12px;
}

.voice-softphone {
  display: grid;
  gap: 12px;
}

.voice-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.voice-subpanel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  background: #fbfcf8;
}

.dashboard-preview-banner[hidden] {
  display: none;
}

.dashboard-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #d4b85c;
  border-radius: 12px;
  background: #fff8df;
  color: #493f1d;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 620px) {
  .dashboard-preview-banner { align-items: stretch; flex-direction: column; }
}

.voice-subpanel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.voice-subpanel-head strong {
  margin-top: 0;
  font-size: 14px;
  text-align: right;
}

.voice-number-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.voice-number-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #d8dfd4;
  border-radius: 8px;
  background: #ffffff;
  color: #172032;
  cursor: pointer;
  text-align: left;
}

.voice-number-card:hover:not(:disabled),
.voice-number-card.is-selected {
  border-color: #6378d8;
  box-shadow: 0 0 0 3px rgba(99, 120, 216, 0.13);
}

.voice-number-card:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.voice-number-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.voice-number-body strong {
  overflow-wrap: anywhere;
  color: #172032;
  font-size: 15px;
  font-weight: 800;
}

.voice-number-body span {
  color: #66715f;
  font-size: 12px;
  font-weight: 700;
}

.voice-signal {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #8a9483;
  background: #f4f6f1;
}

.voice-signal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.voice-signal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
}

.voice-signal.is-active::after,
.voice-number-card.is-selected .voice-signal::after,
.voice-check.tone-green .voice-mini-signal::after,
.voice-check.tone-blue .voice-mini-signal::after {
  animation: voice-pulse 1.7s ease-out infinite;
}

.tone-green {
  color: #298b5a;
}

.tone-blue {
  color: #486ad8;
}

.tone-amber {
  color: #bc8018;
}

.tone-red {
  color: #ba3d48;
}

.tone-muted {
  color: #8a9483;
}

.voice-usage-rail {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-auto-rows: 10px;
  gap: 4px;
  justify-content: end;
}

.voice-usage-rail i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #d8dfd4;
}

.voice-usage-rail i.is-lit {
  background: currentColor;
}

.voice-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  width: min(240px, 100%);
  border: 1px solid #cbd3c5;
  border-radius: 8px;
  overflow: hidden;
  background: #edf1e8;
}

.voice-mode-switch button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #283244;
  font-weight: 800;
  cursor: pointer;
}

.voice-mode-switch button.is-active {
  background: #202a3a;
  color: #ffffff;
}

.voice-target-pane {
  display: grid;
  gap: 10px;
}

.voice-preflight {
  display: grid;
  grid-template-columns: repeat(5, minmax(84px, 1fr));
  gap: 8px;
}

.voice-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
}

.voice-check b {
  color: #283244;
  font-size: 12px;
  font-weight: 800;
}

.voice-mini-signal {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.voice-mini-signal::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
}

.voice-health-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.voice-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 10px;
  padding: 9px;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  background: #fbfcf8;
}

.voice-health-row strong {
  color: #172032;
  font-size: 14px;
  font-weight: 800;
}

.voice-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #283244;
  font-size: 12px;
  font-weight: 800;
}

.voice-health-chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: currentColor;
}

@keyframes voice-pulse {
  0% { transform: scale(.7); opacity: .58; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 920px) {
  .voice-status-strip,
  .voice-softphone-layout,
  .voice-control-grid,
  .voice-preflight {
    grid-template-columns: 1fr;
  }
}

/* Voice readiness one-click pass. */
.voice-destination-grid {
  display: grid;
  gap: 10px;
}

.voice-to-field input {
  min-height: 48px;
  font-size: 18px;
  font-weight: 800;
}

.voice-target-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.voice-target-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid #d8dfd4;
  border-radius: 8px;
  background: #ffffff;
  color: #172032;
  cursor: pointer;
  text-align: left;
}

.voice-target-card:hover:not(:disabled),
.voice-target-card.is-selected {
  border-color: #298b5a;
  box-shadow: 0 0 0 3px rgba(41, 139, 90, 0.13);
}

.voice-target-card:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.voice-diagnostic {
  min-height: 18px;
  margin: 0;
  color: #66715f;
  font-size: 12px;
  font-weight: 800;
}

.voice-timeline,
.voice-diagnostics {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
}

.voice-diagnostics[hidden] {
  display: none;
}

.voice-step,
.voice-diagnostic-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #ffffff;
}

.voice-diagnostic-pill {
  grid-column: 1 / -1;
  border-color: currentColor;
  background: #fffaf2;
}

.voice-step i,
.voice-diagnostic-pill i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.voice-step i::after,
.voice-diagnostic-pill i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
}

.voice-step.is-active i::after,
.voice-diagnostic-pill.tone-red i::after {
  animation: voice-pulse 1.7s ease-out infinite;
}

.voice-step b,
.voice-diagnostic-pill b {
  color: #283244;
  font-size: 12px;
  font-weight: 800;
}

.voice-call-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
}

.voice-call-button {
  min-height: 54px;
  font-size: 18px;
}

.voice-call-log {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.voice-call-log-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dfe5dc;
  border-left: 4px solid currentColor;
  border-radius: 8px;
  background: #fbfcf8;
}

.voice-call-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.voice-call-log-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172032;
  font-size: 14px;
  font-weight: 800;
}

.voice-call-log-item p {
  margin: 0;
  color: #66715f;
  font-size: 12px;
  font-weight: 700;
}

.voice-duration-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: capitalize;
}

@media (max-width: 920px) {
  .voice-timeline,
  .voice-diagnostics,
  .voice-call-controls {
    grid-template-columns: 1fr;
  }
}



/* Voice readiness audio and destination pass. */
.voice-softphone-layout-v2 {
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, .82fr);
}

.voice-control-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.voice-destination-panel {
  position: relative;
  min-height: 0;
  overflow: visible;
  background: #fcfbf5;
}

.voice-destination-combobox {
  position: relative;
  z-index: 4;
  min-width: 0;
}

.voice-destination-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.voice-to-field input {
  width: 100%;
  min-height: 52px;
  padding: 10px 48px 10px 12px;
  border: 1px solid #cbd3c5;
  border-radius: 8px;
  background: #ffffff;
  color: #172032;
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.voice-to-field input:focus {
  border-color: #486ad8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 106, 216, 0.14);
}

.voice-to-field input::-webkit-search-cancel-button {
  appearance: none;
}

.voice-destination-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd3c5;
  border-radius: 8px;
  background: #edf1e8;
  color: #283244;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.voice-destination-clear:hover:not(:disabled),
.voice-destination-clear:focus-visible {
  border-color: #486ad8;
  color: #284cad;
  outline: none;
}

.voice-destination-clear:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.voice-destination-clear[hidden] {
  display: none;
}

.voice-destination-results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  gap: 5px;
  max-height: 272px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cbd3c5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(23, 32, 50, 0.18);
  z-index: 12;
}

.voice-destination-results[hidden] {
  display: none;
}

.voice-destination-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #ffffff;
  color: #172032;
  cursor: pointer;
  text-align: left;
}

.voice-destination-option:hover:not(:disabled),
.voice-destination-option.is-active,
.voice-destination-option.is-selected {
  border-color: currentColor;
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(72, 106, 216, 0.1);
}

.voice-destination-option:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.voice-destination-option-copy,
.voice-target-context-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.voice-destination-option-copy strong,
.voice-target-context-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172032;
  font-size: 14px;
  font-weight: 850;
}

.voice-destination-option-copy span,
.voice-target-context-copy > span:not(.voice-target-context-cues) {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #66715f;
  font-size: 12px;
  font-weight: 750;
}

.voice-target-context {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: 78px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid #d8dfd4;
  border-radius: 8px;
  background: #ffffff;
}

.voice-target-context-copy {
  overflow: hidden;
}

.voice-target-context-copy > strong,
.voice-target-context-copy > span:not(.voice-target-context-cues) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-target-context-cues {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 20px;
  overflow: hidden;
}

.voice-target-context-cues .voice-health-chip {
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: #fbfcf8;
  font-size: 11px;
}

.voice-target-context-cues .voice-health-chip::before {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.voice-call-failure {
  color: #a12f3c !important;
}

.voice-active-call {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #f8fbff;
}

.voice-active-call[hidden] {
  display: none;
}

.voice-call-state-reserve[hidden],
.voice-diagnostics[hidden] {
  display: none;
}

.voice-active-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.voice-active-copy strong {
  color: #172032;
  font-size: 16px;
  font-weight: 850;
}

.voice-active-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #5e685a;
  font-size: 12px;
  font-weight: 750;
}

.voice-audio-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.voice-audio-current {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  background: #fbfcf8;
}

.voice-audio-current-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.voice-audio-current-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172032;
  font-size: 15px;
  font-weight: 850;
}

.voice-input-meter {
  display: grid;
  grid-template-columns: repeat(5, 8px);
  gap: 4px;
  align-items: end;
  height: 30px;
}

.voice-input-meter i {
  display: block;
  width: 8px;
  min-height: 7px;
  border-radius: 4px;
  background: #d8dfd4;
}

.voice-input-meter i:nth-child(2) { min-height: 11px; }
.voice-input-meter i:nth-child(3) { min-height: 16px; }
.voice-input-meter i:nth-child(4) { min-height: 22px; }
.voice-input-meter i:nth-child(5) { min-height: 28px; }

.voice-input-meter.is-live i.is-lit {
  background: #298b5a;
  box-shadow: 0 0 0 3px rgba(41, 139, 90, 0.12);
}

.voice-audio-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.voice-audio-actions .button {
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.voice-device-list {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
}

.voice-device-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid #d8dfd4;
  border-radius: 8px;
  background: #ffffff;
  color: #172032;
  cursor: pointer;
  text-align: left;
}

.voice-device-card:hover:not(:disabled),
.voice-device-card.is-selected {
  border-color: currentColor;
  box-shadow: 0 0 0 3px rgba(72, 106, 216, 0.11);
}

.voice-device-card:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.voice-line-panel .voice-number-list {
  grid-template-columns: 1fr;
  padding: 12px 12px 0;
}

.voice-health-row-v2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.voice-health-row-v2 strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.voice-activity-drawer {
  border-top: 1px solid #d7ddd2;
}

.voice-activity-drawer summary {
  min-height: 42px;
  padding: 12px;
  color: #283244;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.voice-outcome-panel .voice-outcome textarea {
  min-height: 96px;
}

@media (max-width: 1080px) {
  .voice-softphone-layout-v2 {
    grid-template-columns: 1fr;
  }

  .voice-device-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .voice-active-call,
  .voice-audio-current,
  .voice-audio-actions {
    grid-template-columns: 1fr;
  }

  .voice-active-timer {
    width: fit-content;
  }

  .voice-destination-results {
    max-height: 224px;
  }
}

.dashboard-release-control {
  display: grid;
  grid-template-columns: auto minmax(170px, 230px) auto;
  align-items: center;
  gap: 8px;
  color: var(--paper, #f7f3e8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-release-control[hidden],
.dashboard-release-banner[hidden] {
  display: none;
}

.dashboard-release-control select {
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.dashboard-release-control select option {
  color: #20231f;
}

.dashboard-release-control small {
  min-width: 60px;
  color: #b8c9bb;
}

.dashboard-release-banner {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #7aa3c8;
  border-radius: 12px;
  background: #edf6ff;
  color: #193b59;
  font-size: 13px;
}

.dashboard-release-banner strong {
  text-transform: capitalize;
}

@media (max-width: 760px) {
  .dashboard-release-control { grid-template-columns: auto minmax(150px, 1fr); }
  .dashboard-release-control small { display: none; }
  .dashboard-release-banner { align-items: stretch; flex-direction: column; }
}
