:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft-line: #ececf0;
  --paper: #f5f5f7;
  --white: #ffffff;
  --gold: #d4a017;
  --green: #248a3d;
  --blue: #0a84ff;
  --red: #ff3b30;
  --violet: #5e5ce6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --display-font: "Square 721", "Eurostile", "Arial Black", Arial, sans-serif;
  --body-font: Raleway, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  line-height: 1.55;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
}

body.technician-mode .shell {
  grid-template-columns: minmax(0, 1fr);
}

body.technician-mode .sidebar {
  display: none;
}

body.technician-mode .workspace {
  padding: 22px;
}

body.customer-page-mode .shell {
  grid-template-columns: minmax(0, 1fr);
}

body.front-page-mode .shell {
  grid-template-columns: minmax(0, 1fr);
}

body.customer-page-mode .sidebar {
  display: none;
}

body.front-page-mode .sidebar {
  display: none;
}

body.customer-page-mode .workspace {
  padding: 22px;
}

body.front-page-mode .workspace {
  padding: 22px;
}

body.front-page-mode .environment-note,
body.front-page-mode .topbar-controls .role-picker:last-child {
  display: none;
}

body.front-page-mode .topbar-controls {
  justify-content: end;
}

.topbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-controls {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.front-page-mode .brand-mark {
  width: 132px;
  background: #0d0d0d;
  border: 1px solid rgba(212, 160, 23, 0.34);
}

.brand strong,
.brand small,
.metric strong,
.metric span,
.guardrail strong,
.guardrail span {
  display: block;
}

.brand strong {
  font-family: var(--display-font);
  font-size: 18px;
  letter-spacing: 0;
}

.brand small,
.role-picker span,
.guardrail span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.environment-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfe7dc;
  border-radius: 6px;
  color: var(--green);
  background: #f0faf5;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.role-picker {
  display: grid;
  gap: 4px;
}

.role-picker select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

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

.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 18px;
  background: #111820;
  color: var(--white);
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #d9e3eb;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: right;
}

html[dir="ltr"] .nav-button {
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  color: var(--white);
  background: #1f2a35;
  border-color: #344555;
}

.nav-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-code {
  color: #9db2c6;
  font-size: 12px;
}

.guardrail {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  background: #19232c;
  border: 1px solid #344555;
  border-radius: 8px;
}

.guardrail strong {
  color: var(--gold);
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.view {
  display: grid;
  gap: 18px;
}

.review-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #2f4151;
  background: #eef6fb;
  border: 1px solid #c8dce9;
  border-radius: 8px;
}

.review-banner strong {
  color: var(--blue);
}

.review-banner span {
  padding: 4px 8px;
  background: var(--white);
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.review-banner p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.view-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.header-actions,
.actions,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.warning {
  color: var(--white);
  background: var(--green);
}

.button.ghost {
  color: var(--blue);
  background: #eff6fb;
  border-color: #c8dce9;
}

.button.compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.button:hover:not([disabled]) {
  transform: translateY(-1px);
}

.grid {
  display: grid;
  gap: 14px;
}

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

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.metric,
.item-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 18px;
}

.metric {
  min-height: 116px;
  padding: 16px;
}

.fact {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fact strong {
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.metric span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  font-size: 28px;
  line-height: 1.1;
}

.metric small {
  color: var(--green);
  font-weight: 700;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.mini-metrics span {
  padding: 5px 8px;
  color: #43505f;
  background: #f4f7fa;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.hero-public {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-public .copy {
  padding: clamp(22px, 4vw, 46px);
  align-self: center;
}

.hero-public img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.landing-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: #cfe7dc;
  background: #f7fcf9;
}

.customer-portal-view {
  gap: 18px;
}

.customer-portal-notice {
  display: grid;
  gap: 4px;
}

.customer-portal-notice strong {
  color: #4f3900;
}

.commercial-landing {
  gap: 20px;
}

.commercial-landing .grid {
  align-items: start;
}

.commercial-brand-book,
.commercial-brand-board {
  order: 40;
}

.commercial-action-dock {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.commercial-action-dock > strong {
  padding-inline: 4px;
  font-size: 15px;
}

.commercial-action-dock > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.public-site-shell {
  width: min(100%, 1420px);
  margin-inline: auto;
}

.public-route-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.public-route-pill {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.public-route-pill.active {
  color: #0d0d0d;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.2);
}

.public-home-hero {
  min-height: clamp(440px, 55vh, 620px);
}

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

.public-route-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.public-route-card strong,
.public-route-card span,
.public-boundary-note strong,
.public-boundary-note span {
  display: block;
}

.public-route-card strong {
  font-size: 18px;
}

.public-boundary-note {
  display: grid;
  gap: 4px;
  border-color: rgba(212, 160, 23, 0.34);
  background: #fff9e8;
}

.public-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-social-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #10131a;
  border: 1px solid #262b37;
  border-radius: 8px;
}

.public-social-card h2 {
  color: #ffffff;
}

.public-track-panel {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
}

.public-subpage .view-header {
  margin: 0;
}

.role-portal-view {
  width: min(100%, 1360px);
  margin-inline: auto;
}

.role-portal-boundary {
  display: grid;
  gap: 4px;
  border-color: rgba(36, 138, 61, 0.24);
  background: #f3fbf7;
}

.role-portal-boundary strong,
.role-portal-boundary span {
  display: block;
}

.role-journey-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #10131a;
  border: 1px solid #262b37;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.role-journey-panel h2 {
  margin: 0;
  color: #ffffff;
}

.role-journey-panel .eyebrow {
  color: #9fd0ff;
}

.role-journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-journey-steps article {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.role-journey-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0d0d0d;
  background: var(--gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.role-journey-steps strong,
.role-journey-steps small {
  display: block;
}

.role-journey-steps small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

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

.role-action-card {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fbfcfe;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.role-action-card strong,
.role-action-card span {
  display: block;
}

.role-action-card .button {
  width: 100%;
  justify-content: center;
}

.login-journey-panel {
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(10, 132, 255, 0.08)),
    #10131a;
}

.front-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.front-action-panel h2 {
  margin-bottom: 8px;
}

.front-action-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

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

.front-action-form textarea {
  min-height: 96px;
}

.front-demo-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f5f5f7;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.front-track-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.front-track-steps span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.front-track-steps span.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.whatsapp-panel {
  border-color: rgba(36, 138, 61, 0.22);
}

.front-assistant-intro {
  display: grid;
  align-content: start;
  gap: 10px;
}

.front-assistant-intro img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 3px solid rgba(10, 132, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.16);
}

.customer-landing-hero {
  position: relative;
  min-height: clamp(430px, 56vh, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45) 46%, rgba(0, 0, 0, 0.12)),
    url("assets/hero-repair-workbench.png") center / cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.customer-landing-hero > div,
.public-hero-assistant {
  position: relative;
  z-index: 1;
}

.commercial-hero {
  min-height: clamp(430px, 58vh, 640px);
  background-color: #08080a;
  background-image:
    linear-gradient(90deg, rgba(3, 3, 4, 0.91) 0%, rgba(3, 3, 4, 0.70) 46%, rgba(3, 3, 4, 0.22) 100%),
    url("assets/hero-repair-workbench.png");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.customer-landing-hero > div {
  max-width: 760px;
}

.commercial-hero > div {
  max-width: 620px;
  justify-self: start;
}

html[dir="rtl"] .commercial-hero {
  background-image:
    linear-gradient(270deg, rgba(3, 3, 4, 0.91) 0%, rgba(3, 3, 4, 0.70) 46%, rgba(3, 3, 4, 0.22) 100%),
    url("assets/hero-repair-workbench.png");
}

html[dir="rtl"] .commercial-hero > div {
  justify-self: end;
  text-align: right;
}

.public-hero-assistant {
  width: min(100%, 310px);
  display: grid;
  align-self: end;
  justify-self: end;
  gap: 10px;
  margin: 0;
}

html[dir="rtl"] .public-hero-assistant {
  justify-self: start;
}

.public-hero-assistant img {
  width: 100%;
  height: clamp(250px, 31vw, 380px);
  object-fit: cover;
  object-position: center top;
  background: #05070d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

.public-hero-assistant figcaption {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: #ffffff;
  background: rgba(6, 9, 14, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.public-hero-assistant small,
.public-hero-assistant strong,
.public-hero-assistant span,
.public-hero-assistant em {
  display: block;
}

.public-hero-assistant small {
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.public-hero-assistant strong {
  font-size: 18px;
}

.public-hero-assistant span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.public-hero-assistant em {
  width: fit-content;
  margin-top: 5px;
  padding: 5px 8px;
  color: #0d0d0d;
  background: var(--gold);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.customer-landing-hero h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-family: var(--display-font);
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: 0;
  line-height: 0.98;
}

.customer-landing-hero .eyebrow {
  color: #9fd0ff;
}

.customer-landing-hero .muted {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.customer-hero-actions {
  margin-top: 22px;
}

.customer-hero-actions .button.secondary,
.customer-hero-actions .button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.customer-contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.customer-contact-strip > div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  background: var(--white);
}

.customer-contact-strip strong,
.customer-contact-strip span,
.customer-section-heading strong,
.customer-feature-card strong,
.customer-step-card strong,
.customer-sales-card strong,
.customer-faq-card strong {
  display: block;
}

.customer-contact-strip span {
  color: var(--muted);
  font-size: 13px;
}

.commercial-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.commercial-proof-strip article {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  color: #ffffff;
  background: #10131a;
  border: 1px solid #262b37;
  border-radius: 8px;
}

.commercial-proof-strip strong,
.commercial-proof-strip span {
  display: block;
}

.commercial-proof-strip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.commercial-brand-book {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  color: #ffffff;
  background: #10131a;
  border: 1px solid #262b37;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-book-visual {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 38px);
  background: #f7f7f5;
}

.brand-book-visual img {
  width: min(100%, 520px);
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.2));
}

.brand-book-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 46px);
}

.brand-book-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
}

.brand-book-content .muted,
.brand-identity-summary span,
.brand-color-list small {
  color: rgba(255, 255, 255, 0.7);
}

.brand-identity-summary,
.brand-book-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-identity-summary article,
.brand-book-lists article,
.brand-color-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.brand-identity-summary strong,
.brand-identity-summary span,
.brand-book-lists strong,
.brand-book-lists span,
.brand-color-list strong,
.brand-color-list small {
  display: block;
}

.brand-color-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brand-color-swatch {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.brand-book-lists article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-book-lists span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(244, 182, 63, 0.12);
  border: 1px solid rgba(244, 182, 63, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.commercial-brand-book .notice {
  color: #fff4cf;
  background: rgba(244, 182, 63, 0.12);
  border-color: rgba(244, 182, 63, 0.3);
}

.commercial-brand-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 0;
  overflow: hidden;
  color: #ffffff;
  background: #08080a;
  border: 1px solid #262b37;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-board-image {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.4vw, 30px);
  background: #020203;
}

.brand-board-image img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.brand-board-details {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(10, 132, 255, 0.05)),
    #10131a;
}

.brand-board-details h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.04;
}

.brand-board-details .muted,
.brand-board-note span {
  color: rgba(255, 255, 255, 0.72);
}

.brand-board-note,
.brand-board-mini-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.brand-board-note strong,
.brand-board-note span,
.brand-board-mini-grid strong,
.brand-board-mini-grid span {
  display: block;
}

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

.brand-board-mini-grid article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-board-mini-grid span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.commercial-brand-board .notice {
  color: #fff4cf;
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.3);
}

.customer-section-heading {
  display: grid;
  gap: 4px;
}

.customer-section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}

.customer-feature-card,
.customer-sales-card,
.customer-faq-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.customer-process-band {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  color: #ffffff;
  background: #10131a;
  border-radius: 8px;
}

.customer-process-band .eyebrow,
.customer-process-band h2 {
  color: #ffffff;
}

.customer-step-card {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.customer-step-card span {
  color: #9fd0ff;
  font-size: 13px;
  font-weight: 900;
}

.customer-step-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.commercial-photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 12px;
}

.commercial-photo-card {
  min-height: 220px;
  display: grid;
  align-items: end;
  padding: 16px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62)),
    url("assets/hero-repair-workbench.png") center / cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.commercial-photo-card strong {
  max-width: 260px;
  font-size: 24px;
  line-height: 1.1;
}

.commercial-photo-card.photo-1 {
  min-height: 300px;
  background-position: 36% center;
}

.commercial-photo-card.photo-2 {
  background-position: 58% center;
}

.commercial-photo-card.photo-3 {
  background-position: 76% center;
}

.customer-sales-panel,
.customer-trust-panel,
.customer-account-card,
.customer-social-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.customer-trust-panel .readiness-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.customer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-social-links span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #0066cc;
  background: #edf6ff;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 999px;
  font-weight: 800;
}

.public-product-card {
  min-height: 220px;
  align-content: space-between;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-card-meta span:first-child {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #0d0d0d;
  background: #fff4cc;
  border: 1px solid rgba(212, 160, 23, 0.36);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.public-cart-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-top: 12px;
  background: #f8fbff;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 8px;
}

.compact-cart {
  box-shadow: none;
}

.social-action-list {
  gap: 10px;
}

.social-action {
  min-height: 74px;
  min-width: min(100%, 170px);
  display: inline-grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 10px 12px;
  color: #0958a6;
  background: #edf6ff;
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 8px;
  text-align: start;
}

.social-action strong,
.social-action span,
.social-action small {
  display: block;
}

.social-action strong {
  color: #063b73;
}

.social-action span,
.social-action small {
  color: #4b6377;
  font-size: 12px;
}

.social-action:hover {
  border-color: rgba(10, 132, 255, 0.45);
  transform: translateY(-1px);
}

.customer-message-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.customer-reviews-section {
  display: grid;
  gap: 14px;
}

.customer-review-card {
  min-height: 158px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #10131a;
  border-color: #262b37;
}

.customer-review-card span {
  color: #ffcc00;
  font-weight: 900;
}

.customer-review-card strong {
  color: #ffffff;
}

.customer-review-card .muted {
  color: rgba(255, 255, 255, 0.72);
}

.customer-support-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  overflow: hidden;
  color: #ffffff;
  background: #0c1118;
  border: 1px solid #222b36;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-avatar-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #08101d;
}

.support-avatar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
}

.support-avatar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.56));
}

.support-avatar-card span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(10, 132, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.support-content {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 46px);
}

.support-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.support-content .muted {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
}

.support-content .customer-social-links span {
  color: #ffffff;
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.34);
}

.support-content .notice {
  color: #d7ecff;
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.26);
}

.customer-faq-section {
  display: grid;
  gap: 14px;
}

.customer-account-preview .notice {
  color: #0358a8;
  background: #edf6ff;
  border-color: rgba(10, 132, 255, 0.2);
}

.service-list,
.timeline,
.check-list,
.role-list,
.ledger,
.relation-list {
  display: grid;
  gap: 10px;
}

.item-card {
  padding: 14px;
}

.relation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.approval-panel {
  display: grid;
  gap: 12px;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-history {
  display: grid;
  gap: 8px;
}

.history-row {
  display: grid;
  grid-template-columns: 140px 130px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.approval-stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-stage-list span {
  padding: 8px 10px;
  color: #43505f;
  background: #f4f7fa;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.gate-list {
  display: grid;
  gap: 8px;
}

.gate-rule {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
}

.gate-rule:first-child {
  border-top: 0;
}

.gate-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gate-rule.blocked p {
  color: var(--red);
}

.workflow-panel {
  display: grid;
  gap: 14px;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-step {
  min-height: 142px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #fbfcfe;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.workflow-step.green {
  background: #f3fbf7;
  border-color: #cce8dc;
}

.workflow-step.gold {
  background: #fffaf0;
  border-color: #f1dfac;
}

.workflow-step.red {
  background: #fff6f5;
  border-color: #f0c8c4;
}

.workflow-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.workflow-step.green .step-number {
  background: var(--green);
}

.workflow-step.gold .step-number {
  color: var(--ink);
  background: var(--gold);
}

.workflow-step.red .step-number {
  background: var(--red);
}

.audit-log {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.audit-row {
  display: grid;
  grid-template-columns: 130px 190px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
}

.audit-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.exception-card {
  display: grid;
  gap: 12px;
  border-color: #f0c8c4;
}

.exception-card .badge {
  max-width: 180px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 6px 9px;
}

.exception-facts .fact {
  min-height: 118px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.focused-login-layout {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.login-panel {
  display: grid;
  gap: 12px;
}

.role-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role-entry-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.role-entry-card .button {
  justify-self: start;
}

.modern-tech-console {
  color: #1d1d1f;
}

.tech-console-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tech-rail {
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 16px;
  color: #f5f5f7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 18%),
    #10131a;
  border: 1px solid #242938;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.tech-rail-brand,
.tech-rail-ticket,
.tech-rail-footer {
  min-width: 0;
}

.tech-rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-rail-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0d0d0d;
  background: var(--gold);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.32);
}

.tech-rail-brand strong,
.tech-rail-brand small,
.tech-rail-ticket strong,
.tech-rail-ticket small,
.tech-rail-footer strong,
.tech-rail-footer small {
  display: block;
}

.tech-rail-brand strong {
  font-size: 15px;
}

.tech-rail-brand small,
.tech-rail-ticket small,
.tech-rail-footer small,
.rail-kicker {
  color: #a8b3c7;
  font-size: 12px;
}

.tech-rail-ticket {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.rail-kicker {
  font-weight: 800;
  text-transform: uppercase;
}

.tech-rail-ticket strong {
  font-size: 20px;
}

.tech-rail-nav,
.tech-rail-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.tech-rail-group {
  padding: 4px 0 8px;
}

.tech-rail-group p {
  margin: 0 0 2px;
  color: #7f8da7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tech-rail-link {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  color: #dce5f4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font-weight: 800;
}

.tech-rail-link small {
  min-width: 24px;
  padding: 2px 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  text-align: center;
}

.tech-rail-link:hover,
.tech-rail-link.active {
  color: #ffffff;
  background: rgba(212, 160, 23, 0.18);
  border-color: rgba(212, 160, 23, 0.34);
}

.tech-rail-footer {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-stage,
.tech-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.modern-tech-console .grid {
  align-items: start;
}

.af-ticket-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.af-ticket-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #0d0d0d;
  background: var(--gold);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
}

.af-ticket-copy {
  min-width: 0;
}

.af-ticket-copy h1 {
  margin: 0 0 4px;
  font-size: clamp(25px, 2.15vw, 34px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.af-ticket-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.af-ticket-copy .eyebrow {
  color: var(--gold);
}

.af-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tech-tabbar {
  display: none;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.tech-tab {
  min-height: 38px;
  white-space: nowrap;
  padding: 0 12px;
  color: #3f4754;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.tech-tab.active {
  color: var(--white);
  background: #11131a;
  border-color: var(--gold);
}

.repair-ticket-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  color: #f5f5f7;
  background: #171a22;
  border: 1px solid #2b3140;
  border-radius: 8px;
}

.repair-ticket-hero .muted {
  color: #c6cfdd;
}

.repair-ticket-hero .eyebrow {
  color: var(--gold);
}

.action-disclosure {
  display: grid;
  align-content: start;
  align-self: start;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
  overflow: hidden;
}

.action-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.action-disclosure summary::-webkit-details-marker {
  display: none;
}

.action-disclosure summary strong,
.action-disclosure summary small {
  display: block;
}

.action-disclosure summary strong {
  font-size: 15px;
}

.action-disclosure summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.disclosure-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #11131a;
  border-radius: 999px;
  font-weight: 900;
}

.action-disclosure[open] .disclosure-plus {
  background: var(--blue);
}

.action-disclosure-body {
  padding: 0 14px 14px;
}

.action-disclosure-body .panel {
  box-shadow: none;
  border-color: var(--soft-line);
}

.modern-tech-console .panel,
.modern-tech-console .metric,
.modern-tech-console .item-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.modern-tech-console .panel h2 {
  font-size: 19px;
}

.modern-tech-console .field span {
  color: #4d535c;
  font-size: 12px;
  font-weight: 900;
}

.modern-tech-console input,
.modern-tech-console select,
.modern-tech-console textarea {
  border-color: #dadbe1;
  border-radius: 8px;
  background: #fbfbfd;
}

.modern-tech-console input:focus,
.modern-tech-console select:focus,
.modern-tech-console textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(10, 132, 255, 0.14);
}

.inspection-card {
  display: grid;
  gap: 12px;
}

.review-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.yusuf-check-card {
  display: grid;
  gap: 12px;
}

.yusuf-check-card .badge {
  max-width: 170px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 6px 9px;
}

.checklist-facts .fact {
  min-height: 122px;
}

.yusuf-note textarea {
  min-height: 82px;
}

.checklist-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.checklist-history {
  padding-top: 8px;
  border-top: 1px solid var(--soft-line);
}

.checklist-history h3 {
  font-size: 15px;
}

.report-coverage-panel,
.report-decision-panel {
  display: grid;
  gap: 10px;
}

.report-decision-panel .notice {
  margin: 0;
}

.yusuf-remediation-board,
.yusuf-retest-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.remediation-lane,
.retest-lane {
  min-width: 260px;
}

.remediation-card,
.retest-card {
  display: grid;
  gap: 12px;
}

.remediation-links {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
}

.remediation-actions,
.retest-actions {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.remediation-actions textarea,
.retest-actions textarea {
  min-height: 76px;
}

.final-decision-form {
  display: grid;
  gap: 12px;
}

.final-decision-form textarea {
  min-height: 86px;
}

.final-page-card,
.final-reason-card {
  border-inline-start: 4px solid var(--soft-line);
}

.final-reason-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.handoff-decision-panel,
.handoff-form {
  min-height: 100%;
}

.handoff-page-card,
.handoff-reason-card {
  border-inline-start-color: var(--blue);
}

.handoff-reason-card {
  align-items: start;
}

.release-scope-panel,
.release-approval-form,
.release-yusuf-panel,
.release-handoff-panel {
  min-height: 100%;
}

.release-page-card,
.release-decision-card {
  border-inline-start: 4px solid var(--blue);
}

.pre-operation-decision-panel,
.pre-operation-form,
.pre-operation-database {
  min-height: 100%;
}

.pre-operation-card {
  border-inline-start: 4px solid var(--red);
}

.pre-operation-database-body {
  display: grid;
  gap: 12px;
}

.database-entity-chip {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}

.policy-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-draft-card {
  display: grid;
  gap: 12px;
  border-inline-start: 4px solid var(--gold);
}

.policy-link-list {
  margin-bottom: 12px;
}

.policy-readiness-decision {
  display: grid;
  gap: 10px;
}

.policy-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-readiness-card {
  display: grid;
  gap: 12px;
  border-inline-start: 4px solid var(--violet);
}

.operation-gate-decision,
.operation-gate-form,
.operation-gate-policy-panel {
  min-height: 100%;
}

.operation-gate-view {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.operation-gate-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.operation-gate-view .view-header {
  align-items: start;
}

.operation-gate-view .header-actions {
  max-width: 460px;
}

.operation-gate-policy-panel {
  overflow: hidden;
}

.operation-gate-card {
  display: grid;
  gap: 12px;
  border-inline-start: 4px solid var(--red);
}

.operation-gate-card .checklist-facts {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.launch-risk-decision,
.launch-risk-empty {
  min-height: 100%;
}

.launch-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.launch-risk-card {
  display: grid;
  gap: 12px;
  border-inline-start: 4px solid var(--red);
}

.legal-package-decision,
.legal-package-section {
  min-height: 100%;
}

.legal-package-section .service-list {
  margin-top: 10px;
}

.legal-policy-card,
.legal-risk-card,
.legal-treatment-card,
.legal-decision-card,
.legal-question-card {
  display: grid;
  gap: 10px;
  border-inline-start: 4px solid var(--violet);
}

.legal-risk-card {
  border-inline-start-color: var(--red);
}

.legal-treatment-card {
  border-inline-start-color: var(--gold);
}

.legal-decision-card {
  border-inline-start-color: var(--blue);
}

.item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0066cc;
  background: #eaf4ff;
  border: 1px solid rgba(10, 132, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.green {
  color: var(--green);
  background: #edf8f1;
  border-color: rgba(36, 138, 61, 0.14);
}

.badge.gold {
  color: #8a4f00;
  background: #fff4df;
  border-color: rgba(255, 159, 10, 0.22);
}

.badge.red {
  color: var(--red);
  background: #fff0ee;
  border-color: rgba(255, 59, 48, 0.18);
}

.modern-tech-console .service-list {
  gap: 10px;
}

.modern-tech-console .ops-record-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.modern-tech-console .ops-record-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue);
}

.modern-tech-console .item-head {
  align-items: center;
  margin-bottom: 0;
}

.modern-tech-console .item-head strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.modern-tech-console .mini-metrics span,
.modern-tech-console .ops-total-grid span {
  color: #3f4754;
  background: #f7f7f9;
  border-color: #e3e3e8;
  border-radius: 8px;
}

.modern-tech-console .ops-total-grid strong {
  color: #11131a;
}

.invoice-readiness-strip {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fbfbfd;
  border: 1px solid #e3e3e8;
  border-radius: 8px;
}

.invoice-readiness-strip span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: #3f4754;
  font-size: 12px;
  font-weight: 800;
}

.owner-readiness-panel {
  border-color: rgba(212, 160, 23, 0.26);
}

.owner-readiness-panel .actions {
  margin-top: 12px;
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.approval-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.lane {
  min-width: 220px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.lane h3 {
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--soft-line);
  text-align: right;
  vertical-align: top;
}

th {
  color: #43505f;
  background: #f7f9fb;
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

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

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

.ops-total-grid {
  margin: 12px 0;
}

.ops-total-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--muted);
  background: #f7f9fb;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.ops-total-grid strong {
  color: var(--ink);
  font-size: 16px;
}

.ops-record-card {
  display: grid;
  gap: 10px;
}

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

.field label,
.field span {
  color: #3a4653;
  font-size: 13px;
  font-weight: 800;
}

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

.notice {
  padding: 12px 14px;
  color: #6b4b00;
  background: #fff8df;
  border: 1px solid #f0dc93;
  border-radius: 8px;
}

.blocked {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readiness-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.readiness-row:last-child {
  border-bottom: 0;
}

.checkmark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.checkmark.hold {
  background: var(--gold);
  color: var(--ink);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
  padding-inline-start: 20px;
}

.stripe-readiness-panel {
  display: grid;
  gap: 12px;
}

.stripe-readiness-panel .item-head h2 {
  margin: 0;
}

.progress {
  display: block;
  height: 9px;
  overflow: hidden;
  background: #e9eef4;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.toast {
  position: fixed;
  right: 22px;
  top: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  color: var(--white);
  background: #111820;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
  }

  .topbar-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

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

  .guardrail {
    margin-top: 12px;
  }

  .tech-console-shell,
  .af-ticket-header {
    grid-template-columns: 1fr;
  }

  .customer-contact-strip,
  .customer-landing-hero,
  .customer-process-band .three,
  .customer-process-band .four,
    .commercial-proof-strip,
    .commercial-photo-grid,
    .commercial-action-dock,
    .front-action-panel,
    .front-action-form,
    .front-track-steps,
    .public-route-grid,
    .public-track-panel,
    .role-journey-panel,
    .role-journey-steps,
    .role-action-grid,
    .commercial-brand-book,
    .commercial-brand-board,
    .brand-identity-summary,
    .brand-color-list,
    .brand-book-lists,
    .brand-board-mini-grid,
    .customer-support-band,
    .operation-gate-main,
    .operation-gate-card .checklist-facts {
      grid-template-columns: 1fr;
    }

  .tech-rail {
    position: static;
    min-height: auto;
  }

  .tech-rail-nav {
    display: none;
  }

  .modern-tech-console .tech-tabbar {
    display: flex;
  }

  .af-ticket-actions {
    justify-content: flex-start;
  }

  .hero-public,
  .view-header,
  .landing-note,
  .two,
  .three,
  .four,
  .workflow-track,
  .exception-grid,
  .review-checklist-grid,
  .checklist-actions,
  .yusuf-remediation-board,
  .remediation-actions,
  .yusuf-retest-board,
  .retest-actions,
  .login-layout,
  .focused-login-layout,
  .role-entry-grid,
  .policy-draft-grid,
  .policy-readiness-grid,
  .operation-gate-main,
  .operation-gate-card .checklist-facts,
  .launch-risk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding: 14px;
  }

  .brand {
    min-width: auto;
  }

  .environment-note,
  .role-picker {
    width: 100%;
  }

  .topbar-controls {
    gap: 10px;
  }

  .sidebar nav,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-button {
    min-height: 42px;
  }

  .relation-card {
    grid-template-columns: 1fr;
  }

  .repair-ticket-hero {
    grid-template-columns: 1fr;
  }

  .ops-number-grid,
  .ops-total-grid {
    grid-template-columns: 1fr;
  }

  .history-row,
  .audit-row {
    grid-template-columns: 1fr;
  }

  .review-link-grid {
    grid-template-columns: 1fr;
  }

  .af-ticket-actions .button {
    width: 100%;
  }

  .customer-landing-hero {
    grid-template-columns: 1fr;
    min-height: 520px;
    align-items: end;
  }

  .public-hero-assistant {
    width: min(100%, 260px);
    justify-self: start;
  }

  html[dir="rtl"] .public-hero-assistant {
    justify-self: end;
  }

  .public-hero-assistant img {
    height: 260px;
  }

  .commercial-hero {
    background-position: center, center;
    background-size: cover, cover;
  }

  .brand-book-visual {
    min-height: 360px;
  }

  .brand-board-image {
    min-height: 260px;
  }

  .support-avatar-card {
    min-height: 360px;
  }

  .customer-hero-actions .button {
    width: 100%;
  }

  .commercial-action-dock > div,
  .front-action-form .button {
    width: 100%;
  }

  .commercial-action-dock .button {
    flex: 1 1 150px;
  }
}
