/* Matter24 Public Portal — based on original static website design */

:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-alt: #ecf3fb;
  --text: #10243f;
  --muted: #4b617b;
  --line: #d7e2ee;
  --brand-navy: #023c88;
  --brand-blue: #4d9ef8;
  --brand-deep: #1b5ebf;
  --brand-gray: #c4cdd4;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1360px;
  --shadow: 0 16px 36px rgba(6, 28, 57, 0.1);
}

body.theme-dark {
  --bg: #09172c;
  --surface: #142a47;
  --surface-alt: #1a3458;
  --text: #e9f1fb;
  --muted: #b8c8dc;
  --line: #2d486e;
  --brand-navy: #5ea4ff;
  --brand-blue: #83beff;
  --brand-deep: #4f94e6;
  --brand-gray: #a6b8c8;
  --shadow: 0 16px 36px rgba(0, 8, 20, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

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

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% -6%, rgba(77, 158, 248, 0.16), transparent 45%),
    radial-gradient(circle at 86% 0, rgba(2, 60, 136, 0.1), transparent 30%),
    var(--bg);
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Sora", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
}

p,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.2rem;
}

.section {
  padding: 5.2rem 0;
}

#acerca,
#faqs {
  scroll-margin-top: 110px;
}

/* ── Eyebrow ────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-blue);
}

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: color-mix(in srgb, #023c88 88%, #00152f 12%);
  backdrop-filter: blur(8px);
}

body.theme-dark .site-header {
  background: color-mix(in srgb, #023c88 88%, #00152f 12%);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.header-inner > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.logo {
  height: 56px;
  max-width: min(100%, 220px);
  width: auto;
  display: block;
}

.header-primary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: 1rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-primary::-webkit-scrollbar {
  display: none;
}

.header-primary a {
  text-decoration: none;
  color: rgba(237, 247, 255, 0.94);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
}

.header-primary a:hover {
  color: #ffffff;
}

/* ── Nav dropdown ───────────────────────────────────────────────── */

.site-nav {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 1.2rem;
  width: min(320px, calc(100% - 2.4rem));
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  z-index: 60;
}

.site-nav.show {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  width: 100%;
  padding: 0.5rem 0.45rem;
  border-radius: 10px;
}

.site-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-alt) 64%, var(--surface) 36%);
}

.nav-account-group {
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.28rem;
}

.nav-section-label {
  margin: 0 0 0.2rem;
  padding: 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-utility {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}

/* ── Header actions ─────────────────────────────────────────────── */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.link-btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #0b2346;
  background: color-mix(in srgb, var(--brand-blue) 78%, white 22%);
  text-align: center;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.header-link-secondary {
  color: #edf6ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-account-btn {
  max-width: 220px;
}

.header-account-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout-btn {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle,
.nav-toggle {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-radius: 10px;
  padding: 0.42rem 0.56rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.theme-toggle[aria-pressed="true"] {
  background: rgba(132, 190, 255, 0.35);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}

.nav-lang {
  width: 100%;
  justify-content: center;
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-alt) 54%, var(--surface) 46%);
}

.nav-theme-toggle {
  width: 100%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface) 42%);
  border: 1px solid var(--line);
  padding: 0.68rem 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .lang-switch {
  width: fit-content;
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-alt) 68%, var(--surface) 32%);
}

.lang-switch a {
  min-width: 3.2rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
}

.site-header .lang-switch a {
  color: rgba(237, 247, 255, 0.9);
}

.site-nav .lang-switch a {
  color: var(--muted);
}

.lang-switch a.is-active {
  background: #ffffff;
  color: var(--brand-navy);
}

.site-nav .lang-switch a.is-active {
  background: var(--brand-navy);
  color: #ffffff;
}

.header-lang-switch {
  flex-shrink: 0;
}

.icon-sm,
.flag-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.flag-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.lang-code {
  line-height: 1;
}

.theme-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  gap: 0.5rem;
  font-family: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(130deg, var(--brand-blue), var(--brand-deep));
}

.btn-secondary {
  color: var(--brand-navy);
  border-color: color-mix(in srgb, var(--brand-blue) 64%, white 36%);
  background: transparent;
}

.btn-outline {
  color: var(--brand-navy);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 84%, white 16%);
}

.btn-outline:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 45%, var(--line) 55%);
  box-shadow: 0 8px 20px rgba(6, 28, 57, 0.08);
}

.btn-danger-outline {
  color: #b54848;
  border-color: rgba(181, 72, 72, 0.25);
  background: color-mix(in srgb, var(--surface) 84%, white 16%);
}

.btn-danger-outline:hover {
  border-color: #b54848;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  padding-top: 4.3rem;
  padding-bottom: 4.3rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-grid > * {
  min-width: 0;
}

.hero-side {
  display: grid;
  align-content: start;
  margin-top: 28.5rem;
}

.hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 4.2vw, 3.1rem);
}

.hero-copy .eyebrow {
  font-size: 0.94rem;
  letter-spacing: 0.1em;
}

.hero-subtext {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-facts {
  margin-top: 1.7rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.hero-facts strong {
  font-size: 0.93rem;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.hero-facts li {
  grid-template-columns: 22px 1fr;
  column-gap: 0.7rem;
  align-items: start;
}

.hero-facts li img {
  margin-top: 0.05rem;
  grid-row: 1 / span 2;
}

.hero-facts li strong,
.hero-facts li span {
  grid-column: 2;
}

.hero-showcase {
  position: relative;
  min-height: 320px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
}

.hero-showcase--background {
  position: absolute;
  left: 50%;
  top: -1.4rem;
  transform: translateX(-50%);
  width: min(1380px, calc(100% - 1.4rem));
  min-height: 640px;
  border-radius: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 68% 28%, rgba(90, 151, 255, 0.25) 0%, rgba(90, 151, 255, 0.1) 18%, rgba(15, 24, 42, 0) 46%),
    radial-gradient(circle at 64% 64%, rgba(64, 120, 255, 0.12) 0%, rgba(64, 120, 255, 0.04) 22%, rgba(15, 24, 42, 0) 58%);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 8% 12% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 181, 255, 0.28) 0%, rgba(111, 181, 255, 0.1) 34%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-showcase--background::before {
  inset: 5% 8% 6% 28%;
  background: radial-gradient(circle, rgba(111, 181, 255, 0.34) 0%, rgba(111, 181, 255, 0.13) 28%, transparent 70%);
  filter: blur(24px);
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.006) 16%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(0deg, rgba(10, 18, 33, 0.12), rgba(10, 18, 33, 0));
  pointer-events: none;
  z-index: 3;
}

.hero-showcase--background::after {
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 66% 100%, rgba(15, 24, 42, 0.26) 0%, rgba(15, 24, 42, 0) 54%);
}

.hero-showcase-canvas {
  position: relative;
  min-height: 320px;
  height: 100%;
  z-index: 2;
}

.hero-showcase-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-showcase--background .hero-showcase-canvas {
  min-height: 640px;
}

.hero-showcase-status,
.hero-showcase-hint {
  position: absolute;
  bottom: 1rem;
  z-index: 4;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 183, 255, 0.18);
  background: rgba(17, 31, 52, 0.72);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--text) 88%, white 12%);
}

.hero-showcase-status {
  left: 1rem;
}

.hero-showcase-hint {
  right: 1rem;
  color: #9cc7ff;
}

/* ── Hero panel ─────────────────────────────────────────────────── */

.hero-panel {
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 90%, #eef5fc 10%), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -72px;
  width: 210px;
  height: 210px;
  border: 12px solid rgba(77, 158, 248, 0.22);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(15deg);
}

.hero-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.hero-panel p {
  color: var(--muted);
}

.panel-icon-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0.48rem;
  object-fit: contain;
  background: color-mix(in srgb, var(--surface-alt) 68%, white 32%);
  border: 1px solid var(--line);
}

.panel-list {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.panel-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.75rem;
  background: color-mix(in srgb, var(--surface-alt) 60%, var(--surface) 40%);
  display: grid;
  gap: 0.2rem;
}

.panel-list span {
  color: var(--muted);
  font-size: 0.79rem;
}

.panel-list strong {
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
}

.panel-cta {
  margin-top: 1rem;
}

/* ── Hero copy animation ────────────────────────────────────────── */

.hero-copy > * {
  animation: rise 0.78s both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Clarity strip ──────────────────────────────────────────────── */

.clarity-strip {
  padding: 1.1rem 0 2.2rem;
}

.clarity-grid {
  border-radius: 18px;
  padding: 1.45rem;
  color: #edf6ff;
  background: linear-gradient(128deg, rgba(2, 60, 136, 0.96), rgba(44, 120, 219, 0.93));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.clarity-grid > * {
  min-width: 0;
}

.clarity-grid h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.5rem;
}

.clarity-grid p {
  color: rgba(233, 245, 255, 0.9);
  max-width: 52ch;
}

.clarity-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.clarity-grid li {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 0.15rem;
}

.clarity-grid strong {
  font-size: 0.9rem;
}

.clarity-grid span {
  font-size: 0.84rem;
  color: rgba(237, 247, 255, 0.92);
}

/* ── Section heading ────────────────────────────────────────────── */

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  max-width: 22ch;
}

.section-heading > p:not(.eyebrow) {
  max-width: 56ch;
  color: var(--muted);
}

/* ── Materials / Services layout ────────────────────────────────── */

.materials-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.materials-layout > * {
  min-width: 0;
}

.materials-layout article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.materials-layout h3 {
  font-size: 1rem;
  margin-bottom: 0.72rem;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.material-tags span,
.material-tags a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: color-mix(in srgb, var(--brand-blue) 18%, var(--surface) 82%);
  border: 1px solid color-mix(in srgb, var(--brand-blue) 36%, white 64%);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.material-tags a:hover {
  background: color-mix(in srgb, var(--brand-blue) 32%, var(--surface) 68%);
  border-color: var(--brand-blue);
}

/* ── Workflow steps ─────────────────────────────────────────────── */

.workflow {
  background: linear-gradient(to bottom, rgba(77, 158, 248, 0.09), rgba(77, 158, 248, 0.015));
}

.workflow-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: 1.5rem 0 0;
  max-width: 100%;
}

.workflow-tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

.workflow-tracker-step[data-step="register"] {
  --tracker-accent: #4d9ef8;
  --tracker-soft: rgba(77, 158, 248, 0.14);
}

.workflow-tracker-step[data-step="upload"] {
  --tracker-accent: #0f8a5f;
  --tracker-soft: rgba(15, 138, 95, 0.14);
}

.workflow-tracker-step[data-step="quote"] {
  --tracker-accent: #b76a17;
  --tracker-soft: rgba(183, 106, 23, 0.14);
}

.workflow-tracker-step[data-step="deliver"] {
  --tracker-accent: #6a43c2;
  --tracker-soft: rgba(106, 67, 194, 0.14);
}

/* Connector line between steps */
.workflow-tracker-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 3px;
  background: linear-gradient(90deg, var(--tracker-accent), color-mix(in srgb, var(--tracker-accent) 30%, var(--line) 70%));
  z-index: 0;
  border-radius: 2px;
}

/* Step circle */
.workflow-tracker-step .tracker-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 3px solid var(--tracker-accent);
  background: color-mix(in srgb, var(--tracker-soft) 65%, var(--surface) 35%);
  color: var(--tracker-accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.workflow-tracker-step:hover .tracker-dot {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tracker-accent) 16%, transparent 84%);
}

/* Step label pill */
.workflow-tracker-step .tracker-label {
  margin-top: 0.7rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tracker-accent) 22%, transparent 78%);
  background: color-mix(in srgb, var(--tracker-soft) 72%, var(--surface) 28%);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: var(--tracker-accent);
  line-height: 1.25;
  max-width: 160px;
}

/* Step description */
.tracker-desc {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  max-width: 200px;
  padding: 0 0.5rem;
}

/* ── FAQs ───────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  gap: 0.42rem;
}

.faq-card h3 {
  font-size: 1rem;
}

.faq-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-card a {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
}

.faq-card[id] {
  scroll-margin-top: 7rem;
}

.faq-card a:hover {
  text-decoration: underline;
}

/* ── Guide page ─────────────────────────────────────────────────── */

.guide-hero {
  padding-top: 4.1rem;
  padding-bottom: 3.6rem;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.1rem;
  align-items: start;
}

.guide-hero-grid > * {
  min-width: 0;
}

.guide-hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.guide-tabs-nav {
  position: sticky;
  top: 5.25rem;
  z-index: 14;
  padding: 0.5rem 0 0.25rem;
  background: linear-gradient(180deg, var(--bg) 68%, transparent);
}

.guide-tabs-list {
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-alt) 14%);
  box-shadow: 0 12px 24px rgba(6, 25, 51, 0.08);
  scrollbar-width: thin;
}

.guide-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.52rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.guide-tab:hover,
.guide-tab:focus-visible {
  border-color: color-mix(in srgb, var(--brand-blue) 32%, var(--line) 68%);
  color: var(--brand-navy);
  outline: none;
}

.guide-tab.active {
  background: color-mix(in srgb, var(--brand-blue) 16%, var(--surface) 84%);
  border-color: color-mix(in srgb, var(--brand-blue) 42%, var(--line) 58%);
  color: var(--brand-navy);
}

.guide-tabs-ready .guide-tab-pane {
  display: none;
}

.guide-tabs-ready .guide-tab-pane.active {
  display: block;
  animation: guide-tab-pane-fade 180ms ease;
}

@keyframes guide-tab-pane-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-callout,
.guide-resource-card,
.guide-cta,
.guide-section-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.guide-callout {
  padding: 1.25rem;
}

.guide-callout h2 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.guide-checklist {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.guide-checklist li::marker {
  color: var(--brand-navy);
}

.guide-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

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

.guide-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.guide-resource-card {
  padding: 1rem;
}

.guide-practice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.72rem;
}

.guide-resource-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.guide-practice-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.guide-resource-card p,
.guide-resource-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-practice-card p,
.guide-practice-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-resource-card ul {
  margin-top: 0.8rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.42rem;
}

.guide-practice-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.42rem;
}

.guide-practice-image {
  margin: -1rem -1rem 0;
  border-radius: calc(var(--radius-lg) + 4px) calc(var(--radius-lg) + 4px) 18px 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(2, 60, 136, 0.08), rgba(77, 158, 248, 0.14)),
    color-mix(in srgb, var(--surface-alt) 68%, white 32%);
  border-bottom: 1px solid var(--line);
}

.guide-practice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-practice-caption {
  margin-top: -0.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.guide-practice-example {
  border: 1px solid color-mix(in srgb, var(--brand-blue) 20%, var(--line) 80%);
  background: color-mix(in srgb, var(--brand-blue) 7%, var(--surface) 93%);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.18rem;
}

.guide-practice-example strong {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-navy);
}

.guide-practice-example span {
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.guide-section-shell {
  padding: 1rem;
}

.guide-section-shell + .guide-section-shell {
  margin-top: 1rem;
}

.guide-section-shell .quote-guide {
  padding: 0;
}

.guide-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.guide-flow-card,
.guide-stage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.guide-flow-card h3,
.guide-stage-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.guide-flow-card p,
.guide-stage-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-flow-steps {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.48rem;
  color: var(--muted);
}

.guide-flow-steps li::marker {
  color: var(--brand-blue);
  font-weight: 700;
}

.guide-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.guide-stage-card {
  display: grid;
  gap: 0.45rem;
}

.guide-stage-index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: color-mix(in srgb, var(--brand-blue) 16%, var(--surface) 84%);
  color: var(--brand-navy);
}

.guide-stage-card[data-stage="files_received"] .guide-stage-index {
  background: color-mix(in srgb, #d58a33 18%, var(--surface) 82%);
  color: #9a5e14;
}

.guide-stage-card[data-stage="payment_received"] .guide-stage-index {
  background: color-mix(in srgb, #3bb273 18%, var(--surface) 82%);
  color: #1f7a4d;
}

.guide-stage-card[data-stage="preparing_for_manufacturing"] .guide-stage-index {
  background: color-mix(in srgb, #6aa1ff 18%, var(--surface) 82%);
  color: #2f69cc;
}

.guide-stage-card[data-stage="manufacturing"] .guide-stage-index {
  background: color-mix(in srgb, #4969d1 18%, var(--surface) 82%);
  color: #2f47a5;
}

.guide-stage-card[data-stage="quality_assurance"] .guide-stage-index {
  background: color-mix(in srgb, #7d6ce0 18%, var(--surface) 82%);
  color: #5a49bf;
}

.guide-stage-card[data-stage="packaging"] .guide-stage-index {
  background: color-mix(in srgb, #b8895a 18%, var(--surface) 82%);
  color: #8f6438;
}

.guide-stage-card[data-stage="ready_for_delivery"] .guide-stage-index,
.guide-stage-card[data-stage="delivered"] .guide-stage-index {
  background: color-mix(in srgb, #2d9d5e 18%, var(--surface) 82%);
  color: #1f6f44;
}

.guide-cta {
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guide-cta h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  margin-bottom: 0.45rem;
  max-width: 18ch;
}

.guide-cta p:last-child {
  color: var(--muted);
  max-width: 58ch;
}

/* ── Quote form section ─────────────────────────────────────────── */

.quote {
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.quote-layout > * {
  min-width: 0;
}

.quote-copy h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.quote-copy p {
  color: var(--muted);
  max-width: 50ch;
}

.quote-copy ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.quote-form {
  display: grid;
  gap: 0.58rem;
}

.quote-helper {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-alt) 66%, var(--surface) 34%);
  display: grid;
  gap: 0.7rem;
}

.quote-helper p {
  color: var(--muted);
  font-size: 0.9rem;
}

.helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ── Forms ──────────────────────────────────────────────────────── */

label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 0.72rem 0.8rem;
  max-width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand-blue) 64%, white 36%);
  border-color: transparent;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.form-text {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Auth card ──────────────────────────────────────────────────── */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 3.5rem 1.2rem 2rem;
}

.auth-wrap--quote {
  padding-inline: clamp(1rem, 4vw, 2.4rem);
  padding-bottom: 3rem;
}

.auth-card {
  width: min(100%, 480px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
  min-width: 0;
}

.auth-card--wide {
  width: min(100%, 720px);
}

.auth-card--quote {
  width: min(100%, 1520px);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-blue) 9%, transparent 91%), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--surface-alt) 4%), var(--surface));
}

.auth-card--quote .auth-head {
  max-width: 72ch;
}

.auth-head {
  margin-bottom: 1.2rem;
}

.auth-head h1 {
  margin: 0.25rem 0 0.4rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.auth-head p {
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 36%, white 64%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 14%, var(--surface) 86%);
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form--quote {
  gap: 1rem;
}

.auth-form--quote .radio-group {
  gap: 0.75rem;
}

.auth-form--quote .radio-card {
  padding: 0.82rem 0.95rem;
}

.auth-form--quote input,
.auth-form--quote select,
.auth-form--quote textarea {
  font-size: 0.94rem;
}

.legal-notice,
.consent-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--surface-alt) 62%, var(--surface) 38%);
}

.legal-notice {
  margin-top: 0.9rem;
}

.legal-notice strong,
.consent-card strong {
  font-size: 0.92rem;
}

.legal-notice p,
.consent-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.legal-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.legal-inline-links a {
  color: var(--brand-navy);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-inline-links a:hover {
  text-decoration: underline;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  cursor: pointer;
}

.consent-checkbox input {
  margin-top: 0.22rem;
  flex: 0 0 auto;
}

.consent-checkbox span {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.consent-checkbox--inline {
  margin-top: 0.8rem;
}

.auth-footer {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Alert ──────────────────────────────────────────────────────── */

.alert {
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.alert-danger {
  color: #7a2929;
  background: #fde8e8;
  border: 1px solid #f5c2c2;
}

body.theme-dark .alert-danger {
  color: #fbb;
  background: rgba(181, 72, 72, 0.2);
  border-color: rgba(181, 72, 72, 0.35);
}

.alert-success {
  color: #1f6f44;
  background: #e6f6ed;
  border: 1px solid #b8e0cb;
}

body.theme-dark .alert-success {
  color: #8fd6b0;
  background: rgba(31, 111, 68, 0.18);
  border-color: rgba(31, 111, 68, 0.35);
}

/* ── Account page ───────────────────────────────────────────────── */

.page-shell {
  padding-top: 3.2rem;
  padding-bottom: 5rem;
}

.customer-backbar {
  padding-top: 1rem;
}

.customer-backbtn {
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, var(--line) 70%);
  color: var(--text);
  background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface) 28%);
  box-shadow: 0 10px 24px rgba(10, 24, 48, 0.08);
}

.customer-backbtn:hover,
.customer-backbtn:focus-visible {
  background: color-mix(in srgb, var(--brand-blue) 18%, var(--surface) 82%);
  outline: none;
}

.account-dashboard-hero {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.account-dashboard-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

.account-dashboard-hero__body {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.account-center-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 24%, var(--line) 76%);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-blue) 12%, transparent 88%), transparent 36%),
    color-mix(in srgb, var(--surface-alt) 42%, var(--surface) 58%);
  box-shadow: var(--shadow);
}

.account-center-bar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-center-bar__copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.account-center-bar__copy h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.account-center-bar__copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.account-center-bar__credits {
  min-width: min(100%, 290px);
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--surface) 68%, var(--surface-alt) 32%);
  display: grid;
  gap: 0.45rem;
}

.account-center-bar__credits span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-center-bar__credits strong {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1;
}

.account-center-bar__help-link {
  color: var(--brand-blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.account-center-bar__help-link:hover,
.account-center-bar__help-link:focus-visible {
  text-decoration: underline;
}

.account-header-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.account-header-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 50%, var(--surface-alt) 50%);
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  font: inherit;
}

.account-header-tab:hover,
.account-header-tab:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-blue) 42%, var(--line) 58%);
  box-shadow: 0 12px 28px rgba(8, 23, 49, 0.12);
  outline: none;
}

.account-header-tab--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-blue) 90%, white 10%), color-mix(in srgb, var(--brand-blue) 72%, var(--brand-navy) 28%));
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-blue) 58%, transparent 42%);
}

.account-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 1rem;
  align-items: start;
}

.account-priority-strip {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 20%, var(--line) 80%);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-blue) 10%, transparent 90%), transparent 34%),
    color-mix(in srgb, var(--surface-alt) 38%, var(--surface) 62%);
  box-shadow: var(--shadow);
}

.account-priority-strip__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-priority-strip__head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.account-priority-strip__head p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.account-priority-strip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.account-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.account-priority-card {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 16%, var(--line) 84%);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 68%, var(--surface-alt) 32%);
}

.account-priority-card--quote {
  border-color: color-mix(in srgb, var(--brand-blue) 36%, var(--line) 64%);
  background: color-mix(in srgb, var(--brand-blue) 8%, var(--surface) 92%);
}

.account-priority-card--tracker {
  border-color: color-mix(in srgb, #27c08a 26%, var(--line) 74%);
  background: color-mix(in srgb, #27c08a 8%, var(--surface) 92%);
}

.account-priority-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.account-priority-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.account-priority-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.account-priority-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 64%, var(--surface) 36%);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 1.4rem;
  align-items: start;
}

.account-grid > * {
  min-width: 0;
  align-self: start;
}

.account-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.account-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.account-panel h2,
.account-panel h3 {
  margin-bottom: 0.35rem;
}

.account-panel > p {
  color: var(--muted);
}

.account-panel--secondary {
  background: color-mix(in srgb, var(--surface) 72%, var(--surface-alt) 28%);
}

.account-panel--tracker {
  margin-top: 1rem;
}

.account-section-help {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.credits-dashboard-dialog {
  width: min(100% - 2rem, 960px);
}

.credits-dashboard-modal__body {
  gap: 1rem;
}

.credits-dashboard-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.credits-dashboard-modal__balance {
  min-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 56%, var(--surface) 44%);
  display: grid;
  gap: 0.2rem;
}

.credits-dashboard-modal__balance span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.credits-dashboard-modal__balance strong {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--text);
}

.credits-dashboard-modal__tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.credits-dashboard-modal__tabs .btn.is-active {
  border-color: color-mix(in srgb, var(--brand-blue) 48%, var(--line) 52%);
  background: color-mix(in srgb, var(--brand-blue) 12%, var(--surface) 88%);
  color: var(--brand-navy);
}

.credits-dashboard-tab {
  display: grid;
  gap: 1rem;
}

.atoms-package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.atoms-package-card {
  display: block;
  cursor: pointer;
}

.atoms-package-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.atoms-package-card__body {
  display: grid;
  gap: 0.3rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 22%, var(--line) 78%);
  background: color-mix(in srgb, var(--surface-alt) 48%, var(--surface) 52%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.atoms-package-card__body strong {
  font-size: 1.15rem;
}

.atoms-package-card__body span {
  color: var(--muted);
  font-size: 0.88rem;
}

.atoms-package-card input:checked + .atoms-package-card__body {
  border-color: color-mix(in srgb, var(--brand-blue) 54%, var(--line) 46%);
  background: color-mix(in srgb, var(--brand-blue) 12%, var(--surface) 88%);
  box-shadow: 0 14px 30px rgba(10, 24, 48, 0.12);
  transform: translateY(-1px);
}

.atoms-package-card.is-disabled {
  cursor: not-allowed;
}

.atoms-package-card.is-disabled .atoms-package-card__body {
  opacity: 0.58;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.account-panel--compact-profile {
  gap: 0.85rem;
}

.account-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.account-panel--compact-profile .info-item {
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  gap: 0.15rem;
}

.account-panel--compact-profile .info-item label {
  font-size: 0.68rem;
}

.account-panel--compact-profile .info-item span {
  font-size: 0.88rem;
}

.quote-flow-banner {
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 26%, var(--line) 74%);
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand-blue) 8%, var(--surface) 92%);
  color: var(--muted);
}

.quote-flow-banner strong {
  color: var(--text);
  font-size: 0.94rem;
}

.quote-flow-banner--strong {
  margin-bottom: 1.2rem;
}

.account-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.account-feature {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-alt) 60%, var(--surface) 40%);
  padding: 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.account-feature strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.93rem;
}

.account-feature span {
  color: var(--muted);
  font-size: 0.86rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
}

.info-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-alt) 54%, var(--surface) 46%);
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.info-item label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-item span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.info-item .empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

/* ── Empty state ────────────────────────────────────────────────── */

.empty-state {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-alt) 40%, var(--surface) 60%);
}

.empty-state strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-family: "Space Grotesk", "Sora", sans-serif;
}

.empty-state span {
  font-size: 0.88rem;
}

.empty-state .button-row {
  margin-top: 0.85rem;
}

/* ── Button rows ────────────────────────────────────────────────── */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.button-row > * {
  min-width: 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, #eff5fc 12%);
}

.footer-grid {
  padding-top: 1.2rem;
  padding-bottom: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.footer-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.footer-grid p {
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-grid a {
  color: inherit;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-parent-brand {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-top: 0.95rem;
  padding-bottom: 0.55rem;
}

.footer-parent-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-parent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, #eef4fb 22%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.footer-parent-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: 0 12px 24px rgba(12, 41, 92, 0.08);
}

.footer-parent-logo {
  display: block;
  width: auto;
  height: clamp(1.95rem, 3vw, 2.7rem);
  max-width: min(100%, 240px);
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding-top: 0.35rem;
  padding-bottom: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1210px) {
  .header-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    right: 1rem;
    width: min(340px, calc(100% - 2rem));
  }
}

@media (max-width: 1110px) {
  .materials-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-tracker {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0;
  }

  .workflow-tracker-step {
    flex: 0 0 50%;
  }

  .workflow-tracker-step:not(:last-child)::after {
    display: none;
  }

  .faq-grid,
  .guide-resource-grid,
  .guide-practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-side {
    margin-top: 0;
  }

  .guide-hero-grid,
  .quote-layout,
  .clarity-grid,
  .account-grid,
  .account-dashboard-main,
  .account-priority-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-subtext,
  .quote-copy p,
  .section-heading h2 {
    max-width: none;
  }

  .header-inner {
    min-height: 74px;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .link-btn {
    padding: 0.42rem 0.72rem;
    font-size: 0.82rem;
  }

  .hero,
  .quote {
    padding-top: 3.2rem;
    padding-bottom: 4.2rem;
  }

  .hero-panel::before {
    width: 170px;
    height: 170px;
    top: -64px;
    right: -54px;
    opacity: 0.55;
  }

  .hero-showcase,
  .hero-showcase-canvas {
    min-height: 290px;
  }

  .hero-showcase--background {
    top: 2.8rem;
    width: min(1200px, calc(100% - 1.8rem));
    min-height: 480px;
    background:
      radial-gradient(circle at 66% 22%, rgba(90, 151, 255, 0.2) 0%, rgba(90, 151, 255, 0.08) 18%, rgba(15, 24, 42, 0) 44%),
      radial-gradient(circle at 62% 58%, rgba(64, 120, 255, 0.09) 0%, rgba(64, 120, 255, 0.03) 24%, rgba(15, 24, 42, 0) 56%);
  }

  .hero-showcase--background .hero-showcase-canvas {
    min-height: 480px;
  }

  .site-nav {
    width: min(300px, calc(100% - 2.4rem));
  }

  .guide-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-tabs-nav {
    top: 4.8rem;
  }

  .account-center-bar__credits {
    width: 100%;
  }

  .account-priority-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 0.9rem;
  }

  .section {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
  }

  .guide-tabs-nav {
    top: 4.4rem;
    padding-top: 0.45rem;
  }

  .guide-tabs-list {
    border-radius: 16px;
    padding: 0.4rem;
    gap: 0.4rem;
  }

  .guide-tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .page-shell {
    padding-top: 2.2rem;
    padding-bottom: 3.6rem;
  }

  .hero {
    padding-top: 2.3rem;
    padding-bottom: 3rem;
  }

  .logo {
    height: 44px;
    max-width: 170px;
  }

  .link-btn {
    display: none;
  }

  .header-inner {
    min-height: 68px;
    gap: 0.65rem;
  }

  .site-nav {
    left: 0.9rem;
    right: 0.9rem;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .hero-panel,
  .auth-card,
  .quote-layout,
  .upload-card,
  .files-panel,
  .account-center-bar,
  .account-panel,
  .order-card,
  .quote-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 8vw, 2.35rem);
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .hero-panel h2 {
    font-size: 1.35rem;
  }

  .hero-panel::before {
    display: none;
  }

  .hero-showcase,
  .hero-showcase-canvas {
    min-height: 250px;
    border-radius: 24px;
  }

  .hero-showcase--background {
    top: 1.2rem;
    width: calc(100% - 1.4rem);
    min-height: 390px;
  }

  .hero-showcase--background .hero-showcase-canvas {
    min-height: 390px;
  }

  .hero-showcase-status,
  .hero-showcase-hint {
    bottom: 0.85rem;
    padding: 0.38rem 0.65rem;
    font-size: 0.73rem;
  }

  .hero-showcase-status {
    left: 0.85rem;
  }

  .hero-showcase-hint {
    right: 0.85rem;
  }

  .hero-facts li {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
  }

  .hero-facts li img {
    grid-row: auto;
    grid-column: 1;
    margin-top: 0;
  }

  .hero-facts li strong,
  .hero-facts li span {
    grid-column: 1;
  }

  .section-heading {
    margin-bottom: 1.2rem;
  }

  .section-heading h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .materials-layout,
  .faq-grid,
  .guide-resource-grid,
  .guide-practice-grid,
  .legal-placeholder-grid,
  .footer-grid,
  .field-grid,
  .quote-choice-grid,
  .quote-meta-grid,
  .account-feature-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .account-contact-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-center-bar__top,
  .account-header-tabs {
    gap: 0.7rem;
  }

  .account-header-tab {
    width: 100%;
  }

  .hero-actions-row .btn,
  .button-row .btn,
  .helper-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .quote-toggle {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .quote-toggle-ui {
    justify-self: start;
  }

  .file-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-tracker {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .workflow-tracker-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
  }

  .workflow-tracker-step:not(:last-child)::after {
    top: 40px;
    left: 19px;
    width: 3px;
    height: calc(100% - 16px);
  }

  .workflow-tracker-step .tracker-dot {
    flex-shrink: 0;
  }

  .workflow-tracker-step .tracker-label {
    margin-top: 0;
    text-align: left;
  }

  .tracker-desc {
    text-align: left;
    max-width: none;
    padding: 0;
  }
}

/* ── Upload / Files ─────────────────────────────────────────────── */

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.upload-grid--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.upload-grid--stacked .upload-card,
.upload-grid--stacked .files-panel {
  width: 100%;
}

.container--files {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 2.4vw, 2.25rem);
}

.upload-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.files-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.dropzone {
  border: 1.5px dashed color-mix(in srgb, var(--brand-blue) 55%, var(--line) 45%);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(77, 158, 248, 0.14), transparent 38%),
    color-mix(in srgb, var(--surface-alt) 66%, var(--surface) 34%);
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dropzone.is-dragover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 0 0, rgba(77, 158, 248, 0.2), transparent 42%),
    color-mix(in srgb, var(--surface-alt) 74%, var(--surface) 26%);
}

.dropzone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.dropzone-copy {
  display: grid;
  gap: 0.3rem;
}

.dropzone-copy p {
  font-size: 0.92rem;
}

.dropzone-copy span {
  color: var(--muted);
  font-size: 0.83rem;
}

.dropzone input[type="file"] {
  display: none;
}

.ghost-btn {
  border: 1px solid color-mix(in srgb, var(--brand-blue) 42%, var(--line) 58%);
  color: var(--brand-navy);
  background: color-mix(in srgb, var(--surface) 84%, white 16%);
  white-space: nowrap;
}

.file-summary {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.file-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  background: color-mix(in srgb, var(--surface-alt) 52%, var(--surface) 48%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.file-list-empty {
  color: var(--muted);
  justify-content: flex-start;
  font-size: 0.88rem;
}

.file-list strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.9rem;
}

.file-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Uploaded file items ────────────────────────────────────────── */

.uploaded-file-list {
  display: grid;
  gap: 0.55rem;
}

.uploaded-file-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.8rem 0.9rem;
  background: color-mix(in srgb, var(--surface-alt) 54%, var(--surface) 46%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.uploaded-file-info {
  min-width: 0;
  flex: 1 1 240px;
}

.uploaded-file-info strong {
  display: block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-info span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.uploaded-file-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.files-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.files-panel-heading-with-help {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 32%, var(--line) 68%);
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-alt) 22%);
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.inline-info-trigger:hover,
.inline-info-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(6, 28, 57, 0.1);
  border-color: color-mix(in srgb, var(--brand-blue) 55%, var(--line) 45%);
}

.upload-mode-banner {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 28%, var(--line) 72%);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(77, 158, 248, 0.14), transparent 45%),
    color-mix(in srgb, var(--surface-alt) 70%, var(--surface) 30%);
  display: grid;
  gap: 0.38rem;
}

.upload-mode-banner strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1rem;
}

.upload-mode-banner p {
  color: var(--muted);
  font-size: 0.88rem;
}

.upload-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 18%, var(--surface) 82%);
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upload-mode-meta {
  color: var(--brand-navy);
  font-weight: 600;
}

.file-chain-list {
  display: grid;
  gap: 0.9rem;
}

.file-chain-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface-alt) 42%, var(--surface) 58%);
}

.file-chain-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.file-chain-head h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.file-chain-head p {
  color: var(--muted);
  font-size: 0.84rem;
}

.file-chain-kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.version-timeline {
  display: grid;
  gap: 0.75rem;
}

.version-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.version-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3.3rem;
  left: 1.65rem;
  bottom: -0.8rem;
  width: 2px;
  background: color-mix(in srgb, var(--brand-blue) 20%, var(--line) 80%);
}

.version-timeline-item.is-current::before {
  background: color-mix(in srgb, #2d9d5e 22%, var(--line) 78%);
}

.version-node {
  position: relative;
  z-index: 1;
  min-width: 3.3rem;
  min-height: 3.3rem;
  padding: 0.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-blue) 28%, var(--line) 72%);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(6, 28, 57, 0.08);
}

.version-timeline-item.is-current .version-node {
  border-color: color-mix(in srgb, #2d9d5e 50%, white 50%);
  color: #1f6f44;
}

.version-card {
  min-width: 0;
}

.uploaded-file-item--timeline {
  background: var(--surface);
}

.version-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 24%, var(--line) 76%);
  background: color-mix(in srgb, var(--surface-alt) 68%, var(--surface) 32%);
  color: var(--brand-navy);
  font-size: 0.73rem;
  font-weight: 700;
}

.version-chip--current {
  border-color: color-mix(in srgb, #2d9d5e 42%, white 58%);
  background: color-mix(in srgb, #2d9d5e 15%, var(--surface) 85%);
  color: #1f6f44;
}

.version-chip--quote {
  border-color: color-mix(in srgb, #ff9f43 38%, white 62%);
  background: color-mix(in srgb, #ff9f43 16%, var(--surface) 84%);
  color: #a85f11;
}

.quote-prefill-banner {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 28%, var(--line) 72%);
  background:
    radial-gradient(circle at top right, rgba(77, 158, 248, 0.12), transparent 44%),
    color-mix(in srgb, var(--surface-alt) 72%, var(--surface) 28%);
  display: grid;
  gap: 0.35rem;
}

.quote-prefill-banner strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.98rem;
}

.quote-prefill-banner p {
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-wizard-card {
  display: grid;
  gap: 1.15rem;
}

.quote-wizard-shell {
  display: grid;
  gap: 0.9rem;
}

.quote-wizard-progress {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background:
    radial-gradient(circle at top right, rgba(77, 158, 248, 0.12), transparent 42%),
    color-mix(in srgb, var(--surface-alt) 70%, var(--surface) 30%);
}

.quote-wizard-progress__eyebrow {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--brand-blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-wizard-progress__copy {
  display: block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.02rem;
}

.quote-wizard-progress__detail {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.25rem;
}

.quote-wizard-progress__track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 78%, var(--surface) 22%);
}

.quote-wizard-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), #2d9d5e);
  transition: width 0.25s ease;
}

.quote-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.quote-stepper__item {
  min-width: 0;
}

.quote-stepper__button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--surface) 16%);
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-alt) 14%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quote-stepper__button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.quote-stepper__index {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 14%, var(--line) 86%);
  background: var(--surface);
  color: var(--brand-navy);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-weight: 700;
}

.quote-stepper__copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.quote-stepper__copy strong {
  display: block;
  font-size: 0.93rem;
  line-height: 1.2;
}

.quote-stepper__copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.quote-stepper__item.is-active .quote-stepper__button,
.quote-stepper__button:hover:not(:disabled),
.quote-stepper__button:focus-visible {
  border-color: color-mix(in srgb, var(--brand-blue) 36%, var(--line) 64%);
  box-shadow: 0 16px 28px rgba(16, 36, 67, 0.08);
  transform: translateY(-1px);
}

.quote-stepper__item.is-active .quote-stepper__button {
  background:
    radial-gradient(circle at top right, rgba(77, 158, 248, 0.13), transparent 44%),
    color-mix(in srgb, var(--surface-alt) 80%, var(--surface) 20%);
}

.quote-stepper__item[data-state="complete"] .quote-stepper__index,
.quote-stepper__item.is-visited .quote-stepper__index {
  border-color: color-mix(in srgb, #2d9d5e 38%, white 62%);
  background: color-mix(in srgb, #2d9d5e 16%, var(--surface) 84%);
  color: #1f6f44;
}

.quote-stepper__item[data-state="pending"] .quote-stepper__index {
  border-color: color-mix(in srgb, #ff9f43 28%, white 72%);
  color: #a85f11;
}

.quote-stepper__item[data-state="optional"] .quote-stepper__index {
  border-color: color-mix(in srgb, var(--line) 76%, var(--surface) 24%);
  color: var(--muted);
}

.quote-wizard-panel {
  display: grid;
  gap: 1rem;
}

.quote-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.quote-step-head__eyebrow {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-step-head h2 {
  margin-bottom: 0.35rem;
}

.quote-step-head p {
  max-width: 62ch;
  color: var(--muted);
}

.quote-step-head__status {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, var(--surface) 24%);
  background: color-mix(in srgb, var(--surface-alt) 74%, var(--surface) 26%);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-step-head__status[data-state="complete"] {
  border-color: color-mix(in srgb, #2d9d5e 38%, white 62%);
  background: color-mix(in srgb, #2d9d5e 16%, var(--surface) 84%);
  color: #1f6f44;
}

.quote-step-head__status[data-state="pending"] {
  border-color: color-mix(in srgb, #ff9f43 32%, white 68%);
  background: color-mix(in srgb, #ff9f43 12%, var(--surface) 88%);
  color: #a85f11;
}

.quote-step-head__status[data-state="optional"] {
  color: var(--muted);
}

.quote-step-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.quote-step-actions--final {
  padding-top: 0.35rem;
}

.quote-review-shell {
  display: grid;
  gap: 1rem;
}

.quote-review-grid,
.quote-review-meta,
.quote-confirm-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-review-card,
.quote-confirm-card__meta-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--surface) 18%);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-alt) 12%);
  box-shadow: var(--shadow);
}

.quote-review-card h3 {
  font-size: 1rem;
}

.quote-review-card--eta strong,
.quote-confirm-card__meta-card strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.quote-confirm-card__meta-card p,
.quote-review-card--eta p {
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-review-meta {
  align-items: start;
}

.quote-review-checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.quote-review-checklist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--surface) 18%);
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface) 42%);
}

.quote-review-checklist__copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.quote-review-checklist__copy strong {
  font-size: 0.92rem;
}

.quote-review-checklist__optional {
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-review-checklist__state,
.quote-confirm-card__meta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--surface) 22%);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-review-checklist__item[data-state="complete"] .quote-review-checklist__state {
  border-color: color-mix(in srgb, #2d9d5e 38%, white 62%);
  background: color-mix(in srgb, #2d9d5e 16%, var(--surface) 84%);
  color: #1f6f44;
}

.quote-review-checklist__item[data-state="pending"] .quote-review-checklist__state {
  border-color: color-mix(in srgb, #ff9f43 32%, white 68%);
  background: color-mix(in srgb, #ff9f43 12%, var(--surface) 88%);
  color: #a85f11;
}

.quote-review-checklist__item[data-state="optional"] .quote-review-checklist__state {
  color: var(--muted);
}

.quote-review-readiness {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, #ff9f43 26%, white 74%);
  background:
    radial-gradient(circle at top right, rgba(255, 159, 67, 0.12), transparent 40%),
    color-mix(in srgb, var(--surface-alt) 70%, var(--surface) 30%);
}

.quote-review-readiness strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1rem;
}

.quote-review-readiness p {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-review-readiness[data-state="ready"] {
  border-color: color-mix(in srgb, #2d9d5e 34%, white 66%);
  background:
    radial-gradient(circle at top right, rgba(45, 157, 94, 0.12), transparent 42%),
    color-mix(in srgb, #2d9d5e 10%, var(--surface) 90%);
}

.quote-optional-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.quote-confirm-card__pill {
  background: color-mix(in srgb, #2d9d5e 16%, var(--surface) 84%);
  color: #1f6f44;
}

.quote-confirm-card__steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  text-align: left;
}

.quote-confirm-card__steps li + li {
  margin-top: 0.45rem;
}

.order-detail-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quote-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1f6f44;
  background: color-mix(in srgb, #2d9d5e 16%, var(--surface) 84%);
  border: 1px solid color-mix(in srgb, #2d9d5e 32%, white 68%);
}

body.theme-dark .quote-badge {
  color: #8fd6b0;
  background: rgba(31, 111, 68, 0.2);
  border-color: rgba(45, 157, 94, 0.35);
}

.quote-badge--expired {
  color: #8d5a06;
  background: color-mix(in srgb, #f0b23d 18%, var(--surface) 82%);
  border-color: color-mix(in srgb, #f0b23d 34%, white 66%);
}

.quote-badge--inactive {
  color: #8a3447;
  background: color-mix(in srgb, #d55a7a 14%, var(--surface) 86%);
  border-color: color-mix(in srgb, #d55a7a 28%, white 72%);
}

body.theme-dark .quote-badge--expired {
  color: #f3ca76;
  background: rgba(122, 82, 12, 0.28);
  border-color: rgba(240, 178, 61, 0.4);
}

body.theme-dark .quote-badge--inactive {
  color: #f0a1b3;
  background: rgba(126, 44, 67, 0.28);
  border-color: rgba(213, 90, 122, 0.4);
}

.quote-offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-offer-card,
.quote-offer-total-card {
  min-width: 0;
}

.quote-offer-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.quote-offer-title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.quote-offer-copy {
  color: var(--muted);
  max-width: 64ch;
}

.quote-offer-meta {
  margin-top: 1rem;
  margin-bottom: 0;
}

.quote-offer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.quote-offer-helper {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.order-success-banner {
  margin-bottom: 1.5rem;
}

.quote-offer-total-card {
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, #2d9d5e 24%, white 76%);
  background:
    radial-gradient(circle at top right, rgba(45, 157, 94, 0.16), transparent 42%),
    linear-gradient(145deg, #123a3b, #1f6f44);
  color: white;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  box-shadow: 0 24px 44px rgba(11, 41, 36, 0.24);
}

.quote-offer-total-card span,
.quote-offer-total-card small {
  color: rgba(255, 255, 255, 0.82);
}

.quote-offer-total-card strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.quote-offer-total-list {
  display: grid;
  gap: 0.65rem;
}

.quote-offer-total-list__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.quote-offer-total-list__row strong {
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: right;
}

.quote-offer-total-list--light strong {
  color: white;
}

.quote-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-detail-container {
  max-width: min(1480px, 96vw);
}

.payment-layout-container {
  max-width: min(1480px, 96vw);
}

@media (min-width: 1100px) {
  .quote-detail-container .quote-offer-hero {
    grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr);
  }

  .quote-detail-container .info-grid--quote-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-detail-container .quote-files-list--horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .quote-detail-container .quote-files-list--horizontal .quote-files-list__item,
  .quote-detail-container .quote-files-list--horizontal .quote-files-list__meta,
  .quote-detail-container .quote-files-list--horizontal .quote-offer-note {
    grid-column: 1 / -1;
  }

  .payment-layout-container .payment-hero {
    grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr);
  }

  .payment-layout-container .info-grid--quote-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1380px) {
  .quote-detail-container .info-grid--quote-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-layout-container .info-grid--quote-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.quote-panel-head h3 {
  margin-bottom: 0.3rem;
}

.quote-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-offer-note {
  margin-top: 1rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.quote-files-list {
  display: grid;
  gap: 0.8rem;
}

.quote-files-list__item {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface) 42%);
}

.quote-files-list__item strong {
  font-size: 0.98rem;
}

.quote-files-list__item span,
.quote-files-list__meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.quote-files-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quote-price-list {
  display: grid;
  gap: 0.75rem;
}

.quote-price-list__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, var(--surface) 16%);
}

.quote-price-list__row strong {
  text-align: right;
}

.quote-price-list__row--total {
  padding-top: 0.15rem;
  border-bottom: 0;
}

.quote-price-list__row--total span,
.quote-price-list__row--total strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.08rem;
}

.payment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.payment-card {
  min-width: 0;
}

.payment-card--summary {
  background:
    radial-gradient(circle at top right, rgba(45, 157, 94, 0.08), transparent 38%),
    var(--surface);
}

.payment-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: color-mix(in srgb, #635bff 14%, var(--surface) 86%);
  color: #4c45cf;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.payment-total-card {
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, #635bff 24%, white 76%);
  background:
    radial-gradient(circle at top right, rgba(99, 91, 255, 0.2), transparent 42%),
    linear-gradient(145deg, #20144f, #3d2d96);
  color: white;
  display: grid;
  align-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 24px 44px rgba(18, 12, 49, 0.2);
}

.payment-total-card span,
.payment-total-card small {
  color: rgba(255, 255, 255, 0.78);
}

.payment-total-card strong {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.payment-card--stripe {
  background:
    radial-gradient(circle at top right, rgba(99, 91, 255, 0.1), transparent 34%),
    var(--surface);
}

.payment-stripe-shell {
  display: grid;
  gap: 1rem;
}

.payment-stripe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.payment-stripe-head strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.payment-stripe-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-inline-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #635bff;
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-inline-note--logo {
  min-width: 0;
  padding: 0.42rem 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 158, 227, 0.14);
}

.payment-provider-logo {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

.payment-stripe-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #635bff, #4b45d4);
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 18px 30px rgba(99, 91, 255, 0.22);
}

.payment-stripe-button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.payment-stripe-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.payment-stripe-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.64;
  pointer-events: none;
}

.payment-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-note.is-error {
  color: #b44b6a;
}

.payment-note.is-success {
  color: #25785e;
}

.payment-consent-form {
  display: grid;
  gap: 0.9rem;
}

.payment-brick-shell {
  min-height: 220px;
  padding: 0.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, #009ee3 16%, var(--border) 84%);
  background: color-mix(in srgb, #009ee3 5%, var(--surface) 95%);
}

.payment-redirect-card {
  display: grid;
  gap: 1rem;
}

.payment-breakdown {
  margin-bottom: 1rem;
}

.payment-inline-summary {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--surface-alt) 62%, var(--surface) 38%);
}

.payment-inline-summary__main {
  margin: 0;
  font-weight: 700;
}

.payment-inline-summary__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-page {
  display: grid;
  gap: 1rem;
}

.legal-page-intro {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
}

.legal-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-placeholder-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-alt) 14%);
  box-shadow: var(--shadow);
}

.legal-placeholder-card h2 {
  font-size: 1rem;
}

.legal-placeholder-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.payment-redirect-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.payment-redirect-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

body.theme-dark .payment-brick-shell {
  background: rgba(18, 26, 41, 0.72);
  border-color: rgba(0, 158, 227, 0.24);
}

/* Coupon / discount code section */
.coupon-section {
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.coupon-section h3 {
  font-size: 1.08rem;
  margin-bottom: 0.85rem;
}

.coupon-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.coupon-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
}

.coupon-input-row input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 18%, transparent 82%);
}

.coupon-input-row button {
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  border: none;
  background: var(--brand-blue);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.coupon-input-row button:hover {
  opacity: 0.88;
}

.coupon-input-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coupon-result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.coupon-success {
  color: #25785e;
}

.coupon-error {
  color: #b44b6a;
}

.coupon-discount-line {
  text-decoration: line-through;
  color: var(--muted);
}

.coupon-remove-link {
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.35rem;
  display: inline-block;
}

.coupon-remove-link:hover {
  color: #b44b6a;
}

.payment-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
  color: var(--brand-navy);
}

.payment-steps li::marker {
  font-weight: 800;
  color: var(--brand-blue);
}

@media (max-width: 720px) {
  .version-timeline-item {
    grid-template-columns: 1fr;
  }

  .version-timeline-item:not(:last-child)::before {
    display: none;
  }

  .version-node {
    min-width: 0;
    min-height: 0;
    width: fit-content;
  }

  .payment-hero,
  .payment-grid,
  .quote-offer-hero,
  .quote-offer-grid {
    grid-template-columns: 1fr;
  }

  .payment-stripe-head {
    flex-direction: column;
  }

  .quote-offer-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Storage bar ────────────────────────────────────────────────── */

.storage-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 70%, var(--line) 30%);
  overflow: hidden;
}

.storage-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-deep));
  transition: width 0.3s ease;
  min-width: 2px;
}

.storage-fill--danger {
  background: linear-gradient(90deg, #e04848, #b53030);
}

/* ── Fab Tracker ───────────────────────────────────────────────── */

.fab-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: 0.5rem 0;
  overflow-x: auto;
  max-width: 100%;
}

.fab-tracker-step {
  --tracker-accent: var(--brand-blue);
  --tracker-soft: color-mix(in srgb, var(--brand-blue) 14%, var(--surface) 86%);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 90px;
}

.fab-tracker-step[data-stage="files_received"] {
  --tracker-accent: #b76a17;
  --tracker-soft: rgba(255, 243, 214, 0.98);
}

.fab-tracker-step[data-stage="payment_received"] {
  --tracker-accent: #0f8a5f;
  --tracker-soft: rgba(223, 247, 237, 0.98);
}

.fab-tracker-step[data-stage="preparing_for_manufacturing"] {
  --tracker-accent: #1d6fa5;
  --tracker-soft: rgba(226, 243, 252, 0.98);
}

.fab-tracker-step[data-stage="manufacturing"] {
  --tracker-accent: #315fd6;
  --tracker-soft: rgba(232, 238, 255, 0.98);
}

.fab-tracker-step[data-stage="quality_assurance"] {
  --tracker-accent: #6a43c2;
  --tracker-soft: rgba(241, 235, 255, 0.98);
}

.fab-tracker-step[data-stage="packaging"] {
  --tracker-accent: #c65a23;
  --tracker-soft: rgba(255, 237, 224, 0.98);
}

.fab-tracker-step[data-stage="ready_for_delivery"] {
  --tracker-accent: #0a8f73;
  --tracker-soft: rgba(221, 248, 242, 0.98);
}

/* Connector line between steps */
.fab-tracker-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 3px;
  background: color-mix(in srgb, var(--tracker-soft) 75%, var(--line) 25%);
  z-index: 0;
  transition: background 0.35s ease;
}

.fab-tracker-step.completed:not(:last-child)::after {
  background: linear-gradient(90deg, var(--tracker-accent), color-mix(in srgb, var(--tracker-accent) 68%, #ffffff 32%));
}

.fab-tracker-step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--tracker-accent) 50%, var(--line) 50%);
}

/* Step indicator circle */
.tracker-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  border: 3px solid color-mix(in srgb, var(--tracker-accent) 25%, var(--line) 75%);
  background: color-mix(in srgb, var(--tracker-soft) 65%, var(--surface) 35%);
  color: var(--tracker-accent);
}

.fab-tracker-step.completed .tracker-dot {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tracker-accent) 78%, white 22%), var(--tracker-accent));
  border-color: var(--tracker-accent);
  color: #fff;
}

.fab-tracker-step.active .tracker-dot {
  border-color: var(--tracker-accent);
  background: color-mix(in srgb, var(--tracker-soft) 78%, white 22%);
  color: var(--tracker-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tracker-accent) 18%, transparent 82%);
  animation: tracker-pulse 2s ease-in-out infinite;
}

.fab-tracker--animating .fab-tracker-step.active .tracker-dot {
  animation: none;
}

.fab-tracker-step--flash .tracker-dot {
  animation: tracker-step-pop 0.45s ease;
}

.fab-tracker-step--flash .tracker-label {
  transform: translateY(-1px);
}

@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tracker-accent) 18%, transparent 82%); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--tracker-accent) 10%, transparent 90%); }
}

@keyframes tracker-step-pop {
  0% {
    transform: scale(0.86);
    opacity: 0.75;
  }
  60% {
    transform: scale(1.07);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.tracker-label {
  margin-top: 0.55rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tracker-accent) 16%, transparent 84%);
  background: color-mix(in srgb, var(--tracker-soft) 72%, white 28%);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: color-mix(in srgb, var(--tracker-accent) 82%, var(--text) 18%);
  line-height: 1.2;
  max-width: 90px;
}

.fab-tracker-step.completed .tracker-label {
  color: var(--tracker-accent);
}

.fab-tracker-step.active .tracker-label {
  color: color-mix(in srgb, var(--tracker-accent) 74%, var(--text) 26%);
  font-weight: 700;
}

/* Checkmark inside completed dots */
.tracker-dot .check-icon {
  display: none;
}

.fab-tracker-step.completed .tracker-dot .check-icon {
  display: inline;
}

.fab-tracker-step.completed .tracker-dot .step-num {
  display: none;
}

/* Order card in dashboard */
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
  min-width: 0;
}

.order-card:hover {
  border-color: var(--brand-blue);
}

.order-card--dashboard {
  margin-bottom: 0;
  border-radius: 20px;
  padding: 1.35rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-blue) 10%, transparent 90%), transparent 30%),
    color-mix(in srgb, var(--surface-alt) 38%, var(--surface) 62%);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  min-width: 0;
}

.order-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-stage-badge {
  --stage-accent: var(--brand-blue);
  --stage-soft: color-mix(in srgb, var(--brand-blue) 14%, var(--surface) 86%);
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--stage-soft);
  color: var(--stage-accent);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 26%, transparent 74%);
}

.order-stage-badge[data-stage="files_received"] {
  --stage-accent: #b76a17;
  --stage-soft: rgba(255, 243, 214, 0.98);
}

.order-stage-badge[data-stage="payment_received"] {
  --stage-accent: #0f8a5f;
  --stage-soft: rgba(223, 247, 237, 0.98);
}

.order-stage-badge[data-stage="preparing_for_manufacturing"] {
  --stage-accent: #1d6fa5;
  --stage-soft: rgba(226, 243, 252, 0.98);
}

.order-stage-badge[data-stage="manufacturing"] {
  --stage-accent: #315fd6;
  --stage-soft: rgba(232, 238, 255, 0.98);
}

.order-stage-badge[data-stage="quality_assurance"] {
  --stage-accent: #6a43c2;
  --stage-soft: rgba(241, 235, 255, 0.98);
}

.order-stage-badge[data-stage="packaging"] {
  --stage-accent: #c65a23;
  --stage-soft: rgba(255, 237, 224, 0.98);
}

.order-stage-badge[data-stage="ready_for_delivery"],
.order-stage-badge[data-stage="delivered"] {
  --stage-accent: #0a8f73;
  --stage-soft: rgba(221, 248, 242, 0.98);
}

.order-stage-badge[data-stage="blocked"],
.order-stage-badge[data-stage="cancelled"],
.order-stage-badge[data-stage="exception"] {
  --stage-accent: #be3f4e;
  --stage-soft: rgba(254, 232, 236, 0.98);
}

.order-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  min-width: 0;
}

.order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-list-stack {
  display: grid;
  gap: 1rem;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0 1rem;
}

.order-detail-fact {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-alt) 52%, var(--surface) 48%);
  padding: 0.78rem 0.85rem;
  display: grid;
  gap: 0.18rem;
}

.order-detail-fact label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-detail-fact span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.order-detail-fact .empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

.order-card-actions {
  margin-top: 0.85rem;
  text-align: right;
}

.order-final-state {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-alt) 46%, var(--surface) 54%);
  color: var(--muted);
  margin-top: 0.85rem;
}

.order-final-state strong {
  color: var(--text);
  font-size: 0.92rem;
}

.order-final-state--detail {
  margin-top: 0;
}

/* Orders list page */
.orders-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.orders-empty strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ── Address cards ─────────────────────────────────────────────── */

.address-list {
  display: grid;
  gap: 0.75rem;
}

.address-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.address-card--default {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-blue) 20%, transparent 80%);
}

.address-card-body p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.address-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.default-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 14%, var(--surface) 86%);
  color: var(--brand-blue);
}

.address-card-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* ── Quote request form ───────────────────────────────────────── */

.quote-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-alt) 8%);
}

.quote-fieldset legend {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 0.4rem;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.quote-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-family: "Sora", sans-serif;
}

.quote-choice-grid,
.quote-meta-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.quote-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quote-fieldset--wide,
.quote-panel--wide {
  grid-column: 1 / -1;
}

.radio-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-card {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.88rem;
}

.radio-card:hover {
  border-color: var(--brand-blue);
}

.radio-card > span {
  display: grid;
  gap: 0.12rem;
}

.radio-card:has(input:checked) {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 8%, var(--surface) 92%);
}

.radio-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface) 42%);
}

.radio-card.is-disabled:hover {
  border-color: var(--line);
}

.radio-card input[type="radio"] {
  accent-color: var(--brand-blue);
  margin: 0;
}

.radio-card-note {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.radio-card--compact {
  flex: unset;
  width: 100%;
}

.radio-card--compact span {
  font-size: 0.84rem;
  line-height: 1.3;
}

.address-picker {
  display: grid;
  gap: 0.4rem;
}

.quote-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-alt) 10%);
}

.quote-panel > .quote-fieldset {
  border: 0;
  padding: 0;
  background: transparent;
}

.quote-panel > .quote-fieldset legend {
  padding-inline: 0;
}

.public-dxf-editor {
  gap: 1rem;
  border-color: color-mix(in srgb, var(--brand-blue) 20%, var(--line) 80%);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-blue) 10%, transparent 90%), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--surface-alt) 10%), var(--surface));
}

.public-dxf-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.public-dxf-editor__head h2 {
  margin: 0.25rem 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.public-dxf-editor__head p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.public-dxf-editor__pill {
  margin-bottom: 0.15rem;
}

.public-dxf-editor__status {
  min-width: min(100%, 260px);
  display: grid;
  gap: 0.32rem;
  justify-items: start;
}

.public-dxf-editor__status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 70%, var(--surface) 30%);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.public-dxf-editor__status-badge[data-tone="success"] {
  border-color: rgba(31, 111, 68, 0.18);
  background: rgba(31, 111, 68, 0.12);
  color: #1f6f44;
}

.public-dxf-editor__status-badge[data-tone="warning"] {
  border-color: rgba(177, 123, 0, 0.2);
  background: rgba(255, 194, 74, 0.16);
  color: #8f5a00;
}

.public-dxf-editor__status-badge[data-tone="danger"] {
  border-color: rgba(163, 43, 43, 0.2);
  background: rgba(229, 92, 92, 0.12);
  color: #8b2b2b;
}

.public-dxf-editor__status small {
  color: var(--muted);
}

.public-dxf-editor__stage {
  display: grid;
  gap: 1rem;
}

.public-dxf-editor__stage[hidden] {
  display: none !important;
}

.public-dxf-prep {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background:
    radial-gradient(circle at top right, rgba(77, 158, 248, 0.12), transparent 42%),
    color-mix(in srgb, var(--surface-alt) 58%, var(--surface) 42%);
}

.public-dxf-prep[hidden] {
  display: none !important;
}

.public-dxf-prep__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.public-dxf-prep__head h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.04rem;
}

.public-dxf-prep__head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.public-dxf-prep__pill {
  margin-bottom: 0.1rem;
}

.public-dxf-prep__status {
  min-width: min(100%, 260px);
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.public-dxf-prep__preview {
  display: grid;
  gap: 0.55rem;
}

.public-dxf-prep__preview strong {
  font-size: 0.88rem;
}

.public-dxf-prep__preview-media {
  display: grid;
  min-height: 180px;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--brand-blue) 26%, var(--line) 74%);
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-alt) 22%);
  overflow: hidden;
}

.public-dxf-prep__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.public-dxf-prep__compare.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.public-dxf-prep__compare-pane {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.public-dxf-prep__compare-pane strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.public-dxf-prep__compare-media {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 0.72rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 28%, var(--line) 72%);
  background: color-mix(in srgb, var(--surface) 76%, var(--surface-alt) 24%);
  overflow: auto;
}

.public-dxf-prep__compare-empty {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.public-dxf-prep__preview-media img,
.public-dxf-prep__compare-media img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.public-dxf-prep__preview-media svg,
.public-dxf-prep__compare-media svg {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  height: auto;
}

.public-dxf-prep__overlay {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 240px;
}

.public-dxf-prep__overlay > svg,
.public-dxf-prep__overlay-trace svg {
  width: 100%;
  max-width: 760px;
  max-height: 360px;
  overflow: visible;
}

.public-dxf-prep__overlay-image {
  opacity: 0.5;
  filter: grayscale(1) contrast(1.08);
}

.public-dxf-prep__overlay > svg [data-entity-key],
.public-dxf-prep__overlay > svg path,
.public-dxf-prep__overlay > svg polyline,
.public-dxf-prep__overlay > svg polygon,
.public-dxf-prep__overlay > svg line,
.public-dxf-prep__overlay > svg circle,
.public-dxf-prep__overlay > svg ellipse {
  stroke-width: 1.8 !important;
}

.public-dxf-prep__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.public-dxf-prep__control {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-alt) 12%);
}

.public-dxf-prep__control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.public-dxf-prep__control-head label {
  font-weight: 700;
}

.public-dxf-prep__control input[type="range"] {
  width: 100%;
}

.public-dxf-prep__control.is-disabled {
  opacity: 0.65;
}

.public-dxf-prep__control--toggle {
  align-content: start;
}

.public-dxf-prep__smooth-strength {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--brand-blue) 14%, var(--line) 86%);
}

.public-dxf-prep__smooth-strength[hidden] {
  display: none !important;
}

.quote-toggle--compact {
  min-height: 100%;
}

.public-dxf-prep__warnings {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.public-dxf-prep__warnings[hidden] {
  display: none !important;
}

.public-dxf-prep__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-dxf-prep__actions [hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .public-dxf-prep__controls {
    grid-template-columns: 1fr;
  }

  .public-dxf-prep__compare {
    grid-template-columns: 1fr;
  }
}

.public-dxf-editor__layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.public-dxf-editor__preview,
.public-dxf-editor__controls {
  display: grid;
  gap: 0.85rem;
  overflow: visible;
}

.public-dxf-editor__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.public-dxf-editor__toolbar-group,
.public-dxf-editor__bulk-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow: visible;
}

.public-dxf-editor__canvas-wrap {
  min-height: 560px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 16%, var(--line) 84%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 60%, var(--surface) 40%), var(--surface)),
    linear-gradient(90deg, rgba(18, 34, 69, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(18, 34, 69, 0.025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  overflow: auto;
  padding: 1rem;
}

.public-dxf-editor__empty {
  min-height: 520px;
}

.public-dxf-editor__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  min-width: 100%;
}

.public-dxf-editor__canvas[hidden],
.public-dxf-editor__empty[hidden] {
  display: none !important;
}

.public-dxf-editor__canvas svg {
  display: block;
  transform-origin: top left;
}

.public-dxf-editor__bulk,
.public-dxf-editor__summary-card,
.public-dxf-editor__interaction-card {
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 48%, var(--surface) 52%);
}

.public-dxf-editor__bulk strong {
  display: block;
  margin-bottom: 0.7rem;
}

.public-dxf-editor__action-btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  min-height: 3rem;
  padding-inline: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.public-dxf-editor__action-label {
  line-height: 1.15;
}

.public-dxf-editor__action-info {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.24rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--surface) 76%, var(--op-color) 24%);
  border: 1px solid color-mix(in srgb, var(--op-color) 70%, white 30%);
  color: var(--op-color);
  opacity: 0;
  transform: translateY(1px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.public-dxf-editor__action-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  max-width: 300px;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--op-color) 36%, var(--line) 64%);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-alt) 8%);
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 26px rgba(12, 28, 56, 0.18);
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.public-dxf-editor__action-btn:hover,
.public-dxf-editor__action-btn:focus-visible {
  z-index: 12;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 28, 56, 0.12);
}

.public-dxf-editor__action-btn:hover .public-dxf-editor__action-info,
.public-dxf-editor__action-btn:focus-visible .public-dxf-editor__action-info {
  opacity: 1;
  transform: translateY(0);
}

.public-dxf-editor__action-btn:hover .public-dxf-editor__action-tooltip,
.public-dxf-editor__action-btn:focus-visible .public-dxf-editor__action-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.public-dxf-editor__action-btn--neutral {
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface) 42%);
  border-color: color-mix(in srgb, var(--line) 76%, var(--brand-blue) 24%);
  color: var(--text);
}

.public-dxf-editor__learn-link {
  display: inline-flex;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.public-dxf-editor__learn-link:hover,
.public-dxf-editor__learn-link:focus-visible {
  color: color-mix(in srgb, var(--brand-navy) 82%, white 18%);
}

.public-dxf-editor__canvas .m24-dxf-entity {
  cursor: pointer;
  transition: opacity 0.14s ease, stroke 0.14s ease, fill 0.14s ease, filter 0.14s ease;
}

.public-dxf-editor__canvas .m24-dxf-entity.is-selected {
  stroke-width: 2.8 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.public-dxf-editor__canvas .m24-dxf-entity.is-repair-closed {
  stroke-dasharray: 10 4;
}

.public-dxf-editor__canvas .m24-dxf-entity.op-ignore {
  stroke: #a3adbd !important;
  fill: none !important;
  opacity: 0.28;
}

.public-dxf-selection-rect {
  fill: rgba(10, 132, 255, 0.12);
  stroke: rgba(10, 132, 255, 0.9);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

@media (max-width: 980px) {
  .public-dxf-prep__head {
    flex-direction: column;
  }

  .public-dxf-editor__layout {
    grid-template-columns: 1fr;
  }

  .public-dxf-editor__canvas-wrap {
    min-height: 420px;
  }

  .public-dxf-editor__empty {
    min-height: 380px;
  }
}

.legend-with-info,
.label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.label-with-info {
  margin-bottom: 0.35rem;
}

.quote-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-alt) 52%, var(--surface) 48%);
  cursor: pointer;
}

.quote-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-toggle-ui {
  position: relative;
  width: 3.15rem;
  height: 1.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 72%, var(--surface) 28%);
  transition: background 160ms ease;
}

.quote-toggle-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(9, 35, 70, 0.18);
  transition: transform 160ms ease;
}

.quote-toggle-copy {
  display: grid;
  gap: 0.12rem;
}

.quote-toggle-copy strong {
  font-size: 0.9rem;
  color: var(--text);
  font-family: "Space Grotesk", "Sora", sans-serif;
}

.quote-toggle-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.quote-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand-blue) 40%, var(--line) 60%);
  background: color-mix(in srgb, var(--brand-blue) 10%, var(--surface) 90%);
}

.quote-toggle:has(input:checked) .quote-toggle-ui {
  background: color-mix(in srgb, var(--brand-blue) 82%, white 18%);
}

.quote-toggle:has(input:checked) .quote-toggle-ui::after {
  transform: translateX(1.35rem);
}

.info-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, var(--line) 70%);
  background: color-mix(in srgb, var(--brand-blue) 10%, var(--surface) 90%);
  color: var(--brand-blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.info-trigger:hover,
.info-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--brand-blue) 60%, var(--line) 40%);
  box-shadow: 0 10px 24px rgba(9, 35, 70, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.info-trigger::before,
.info-trigger::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 6;
}

.info-trigger::before {
  content: "";
  bottom: calc(100% + 0.15rem);
  transform: translate(-50%, 6px);
  border: 6px solid transparent;
  border-top-color: color-mix(in srgb, var(--brand-navy) 92%, black 8%);
}

.info-trigger::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 0.65rem);
  transform: translate(-50%, 8px);
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-navy) 92%, black 8%);
  color: #f5f8fc;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 18px 32px rgba(4, 20, 40, 0.24);
  white-space: normal;
}

.info-trigger:hover::before,
.info-trigger:hover::after,
.info-trigger:focus-visible::before,
.info-trigger:focus-visible::after {
  opacity: 1;
}

.info-trigger:hover::before,
.info-trigger:focus-visible::before {
  transform: translate(-50%, 0);
}

.info-trigger:hover::after,
.info-trigger:focus-visible::after {
  transform: translate(-50%, 0);
}

.quality-help-popover {
  position: relative;
  display: inline-flex;
  margin-top: 0.35rem;
}

.quality-help-popover__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.82rem;
}

.quality-help-popover__trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-blue) 65%, white 35%);
  outline-offset: 3px;
  border-radius: 8px;
}

.quality-help-popover__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, var(--line) 70%);
  background: color-mix(in srgb, var(--brand-blue) 10%, var(--surface) 90%);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.quality-help-popover__text {
  color: color-mix(in srgb, var(--brand-blue) 88%, var(--text) 12%);
}

.quality-help-popover__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(320px, 84vw);
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 22%, var(--line) 78%);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(7, 24, 42, 0.2);
  display: none;
  z-index: 16;
}

.quality-help-popover:hover .quality-help-popover__panel,
.quality-help-popover:focus-within .quality-help-popover__panel {
  display: block;
}

.quality-help-popover__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.quality-help-popover__line {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}

.quality-help-popover__line + .quality-help-popover__line {
  margin-top: 0.25rem;
}

.quality-help-popover__line strong {
  color: var(--text);
  font-weight: 700;
}

.quality-help-popover__image-placeholder {
  margin-top: 0.55rem;
  border: 1px dashed color-mix(in srgb, var(--brand-blue) 30%, var(--line) 70%);
  border-radius: 8px;
  min-height: 72px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--brand-blue) 4%, var(--surface) 96%);
}

body.modal-open {
  overflow: hidden;
}

.quote-info-modal[hidden] {
  display: none;
}

.quote-info-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.quote-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 39, 0.68);
  backdrop-filter: blur(6px);
}

.quote-info-dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 980px);
  max-height: min(88vh, 920px);
  margin: min(5vh, 3rem) auto;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(5, 22, 44, 0.32);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.quote-info-close {
  position: sticky;
  top: 0.15rem;
  z-index: 3;
  margin-left: auto;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 54%, var(--surface) 46%);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.quote-info-dialog__body {
  display: grid;
  gap: 1.15rem;
}

.quote-guide {
  display: grid;
  gap: 1.15rem;
}

.quote-guide-head {
  display: grid;
  gap: 0.45rem;
}

.quote-guide-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.quote-guide-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

.quote-guide-intro {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.quote-guide-highlights {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.supplier-showcase {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 20%, var(--line) 80%);
  background:
    radial-gradient(circle at top left, rgba(77, 158, 248, 0.12), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-blue) 7%, var(--surface) 93%), var(--surface));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(7, 24, 44, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.supplier-showcase:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-blue) 42%, var(--line) 58%);
  box-shadow: 0 20px 34px rgba(7, 24, 44, 0.1);
}

.supplier-showcase-copy {
  display: grid;
  gap: 0.28rem;
}

.supplier-showcase-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.supplier-showcase-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 60ch;
}

.supplier-showcase-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.supplier-showcase-logo {
  display: block;
  width: min(180px, 28vw);
  max-height: 70px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(7, 24, 44, 0.08));
}

.quote-guide-highlight {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand-blue) 7%, var(--surface) 93%);
  color: var(--text);
  font-size: 0.88rem;
}

.quote-guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.quote-guide-card {
  --guide-accent: var(--brand-blue);
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--guide-accent) 4%, var(--surface) 96%), var(--surface));
  box-shadow: 0 16px 30px rgba(7, 24, 44, 0.08);
}

.quote-guide-visual {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--line) 78%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--guide-accent) 18%, var(--surface) 82%), color-mix(in srgb, var(--guide-accent) 6%, var(--surface) 94%));
}

.quote-guide-palette {
  display: flex;
  gap: 0.45rem;
}

.quote-guide-palette span {
  flex: 1;
  min-height: 20px;
  border-radius: 999px;
  background: var(--tone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.quote-guide-visual-lines {
  display: grid;
  gap: 0.4rem;
}

.quote-guide-visual-lines span {
  height: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--guide-accent) 82%, white 18%), color-mix(in srgb, var(--guide-accent) 28%, white 72%));
}

.quote-guide-visual-lines span:nth-child(2) {
  width: 76%;
}

.quote-guide-visual-lines span:nth-child(3) {
  width: 56%;
}

.quote-guide-badge {
  margin: 0;
  color: var(--guide-accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-guide-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.quote-guide-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-guide-image {
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--guide-accent) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--guide-accent) 6%, var(--surface) 94%);
}

.quote-guide-image img {
  display: block;
  width: 100%;
  max-height: 18rem;
  height: auto;
  object-fit: contain;
}

.quote-guide-chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quote-guide-chip-row span {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, transparent 78%);
  background: color-mix(in srgb, var(--guide-accent) 10%, var(--surface) 90%);
  font-size: 0.74rem;
  font-weight: 600;
}

.quote-guide-metrics {
  display: grid;
  gap: 0.55rem;
}

.quote-guide-metric {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.quote-guide-bar {
  height: 0.56rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 72%, transparent 28%);
  overflow: hidden;
}

.quote-guide-bar span {
  display: block;
  width: var(--metric-width);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--guide-accent) 84%, white 16%), color-mix(in srgb, var(--guide-accent) 42%, white 58%));
}

.quote-guide-notes {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.quote-guide-footer {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--brand-blue) 9%, var(--surface) 91%);
  color: var(--muted);
}

/* ── Quick quote ──────────────────────────────────────────────── */

.quick-quote-incentive {
  position: relative;
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 28%, transparent 72%);
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--brand-blue) 19%, transparent 81%), transparent 42%),
    linear-gradient(125deg, color-mix(in srgb, var(--surface) 86%, var(--surface-alt) 14%), color-mix(in srgb, var(--brand-blue) 10%, var(--surface) 90%));
  box-shadow: 0 12px 24px rgba(5, 22, 46, 0.12);
}

.quick-quote-incentive::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-blue) 88%, white 12%), color-mix(in srgb, #6ea8ff 58%, white 42%));
}

.quick-quote-incentive__header {
  display: grid;
  gap: 0.35rem;
}

.quick-quote-incentive__badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, white 70%);
  background: color-mix(in srgb, var(--brand-blue) 15%, var(--surface) 85%);
  color: color-mix(in srgb, var(--brand-blue) 90%, var(--text) 10%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quick-quote-incentive__title {
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--text);
}

.quick-quote-incentive__copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.quick-quote-incentive__benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.quick-quote-incentive__benefits li {
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, var(--line) 82%);
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-alt) 18%);
  color: color-mix(in srgb, var(--text) 88%, var(--brand-blue) 12%);
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 600;
}

.quick-quote-incentive__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.quick-quote-incentive__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 42%, white 58%);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand-blue) 70%, white 30%), color-mix(in srgb, var(--brand-blue) 46%, white 54%));
  color: #0f2f57;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-blue) 28%, transparent 72%);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.quick-quote-incentive__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 11px 24px color-mix(in srgb, var(--brand-blue) 34%, transparent 66%);
}

.quick-quote-incentive__cta:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-blue) 74%, white 26%);
  outline-offset: 3px;
}

.quick-quote-incentive__footer small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .quick-quote-incentive__benefits {
    grid-template-columns: 1fr;
  }
}

.quick-upload-zone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 1.8rem 1.1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.quick-upload-zone.is-dragover {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 6%, var(--surface) 94%);
}

.quick-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quick-upload-label {
  display: block;
  cursor: pointer;
}

.quick-upload-label strong {
  display: block;
  margin-bottom: 0.25rem;
}

.quick-upload-label span {
  font-size: 0.82rem;
  color: var(--muted);
}

.quick-file-name {
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-blue);
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.quick-file-name:empty {
  display: none;
}

/* ── Confirmation page ────────────────────────────────────────── */

.confirm-details {
  margin: 1.5rem 0;
  text-align: left;
}

.confirm-cta {
  margin-top: 1.5rem;
}

/* ── Responsive upload ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .uploaded-file-item {
    flex-direction: column;
    align-items: stretch;
  }

  .uploaded-file-actions {
    justify-content: flex-end;
  }

  .quote-info-dialog {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
  }

  .quote-guide-card,
  .quote-fieldset,
  .quote-panel {
    padding-inline: 1rem;
  }

  .quote-stepper,
  .quote-review-grid,
  .quote-review-meta,
  .quote-confirm-card__meta {
    grid-template-columns: 1fr;
  }

  .quote-stepper__button,
  .quote-review-checklist__item,
  .quote-step-head,
  .quote-step-actions {
    align-items: stretch;
  }

  .quote-step-actions {
    justify-content: stretch;
  }

  .quote-step-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .supplier-showcase {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .supplier-showcase-logo {
    width: min(170px, 58vw);
  }

  .dropzone-head {
    flex-direction: column;
  }

  .fab-tracker {
    gap: 0;
    padding: 0.5rem 0.25rem;
  }

  .fab-tracker-step {
    min-width: 70px;
  }

  .tracker-dot {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }

  .fab-tracker-step:not(:last-child)::after {
    top: 13px;
    left: calc(50% + 13px);
    width: calc(100% - 26px);
    height: 2px;
  }

  .tracker-label {
    font-size: 0.6rem;
    max-width: 70px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 0.75rem;
  }

  .container--files {
    padding-inline: 0.75rem;
  }

  .page-shell {
    padding-top: 1.6rem;
    padding-bottom: 2.8rem;
  }

  .auth-wrap {
    padding: 2rem 0.75rem 1.2rem;
  }

  .auth-wrap--quote {
    padding-inline: 0.75rem;
    padding-bottom: 2rem;
  }

  .quote-wizard-progress,
  .quote-review-card,
  .quote-confirm-card__meta-card,
  .quote-prefill-banner {
    padding-inline: 0.95rem;
  }

  .quote-stepper__button {
    padding: 0.85rem 0.9rem;
  }

  .hero-actions-row,
  .button-row,
  .helper-actions {
    gap: 0.55rem;
  }

  .auth-form > .btn,
  .auth-form > .btn-block,
  .uploaded-file-actions > .btn,
  .uploaded-file-actions > form,
  .uploaded-file-actions > a {
    width: 100%;
  }

  .uploaded-file-info strong {
    white-space: normal;
  }

  .uploaded-file-actions {
    width: 100%;
    justify-content: stretch;
  }

  .uploaded-file-actions > * {
    flex: 1 1 100%;
  }

  .order-card-header,
  .order-meta {
    gap: 0.5rem;
  }

  .order-card-actions {
    text-align: left;
  }

  .quote-info-close {
    width: 100%;
    justify-content: center;
  }
}

/* ── Scroll-reveal animations ───────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="slide-right"] {
  opacity: 0;
  transform: translateX(32px);
}

[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.92);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* stagger children inside a reveal-group */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ── Premium hover micro-interactions ──────────────────────────── */

.materials-layout article,
.faq-card,
.clarity-grid li {
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.32s ease;
}

.materials-layout article:hover,
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 40, 100, 0.10), 0 2px 8px rgba(0, 40, 100, 0.06);
  border-color: color-mix(in srgb, var(--brand-blue) 40%, var(--line) 60%);
}

.clarity-grid li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-panel {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 60, 140, 0.12), 0 2px 10px rgba(0, 60, 140, 0.06);
}

/* ── Material tag stagger on reveal ────────────────────────────── */

[data-reveal-stagger] .material-tags span {
  opacity: 0;
  transform: scale(0.85) translateY(6px);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].in-view .material-tags span:nth-child(1) { transition-delay: 0.10s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view .material-tags span:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view .material-tags span:nth-child(3) { transition-delay: 0.20s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view .material-tags span:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view .material-tags span:nth-child(5) { transition-delay: 0.30s; opacity: 1; transform: none; }
[data-reveal-stagger].in-view .material-tags span:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: none; }

/* ── Eyebrow line-slide accent ─────────────────────────────────── */

.section-heading .eyebrow {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-heading .eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
  transform: translateX(-105%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in-view .eyebrow::after {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal-stagger] > *,
  [data-reveal-stagger] .material-tags span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -----------------------------------------------------------------------
   Files table
   ----------------------------------------------------------------------- */
.files-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.files-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.files-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.55rem 0.6rem;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
  text-align: left;
}

.files-table thead th:nth-child(1) {
  width: 32%;
  min-width: 300px;
}

.files-table thead th:nth-child(6) {
  min-width: 180px;
}

.files-table thead th:nth-child(7) {
  min-width: 150px;
}

.files-table__actions-col {
  width: 1%;
  min-width: 186px;
}

.files-table tbody td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.files-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand-navy) 3%, var(--surface) 97%);
}

.file-name-cell {
  display: block;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  vertical-align: middle;
}

.file-name-stack {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.prepared-downloads {
  display: grid;
  gap: 0.22rem;
}

.prepared-downloads__links {
  display: grid;
  gap: 0.18rem;
}

.prepared-downloads__link,
.prepared-downloads__hint {
  font-size: 0.76rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.prepared-downloads__link {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
}

.prepared-downloads__link:hover {
  text-decoration: underline;
}

.prepared-downloads--pending .prepared-downloads__hint {
  color: var(--muted);
  max-width: 34ch;
}

.file-type-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--brand-navy) 10%, var(--surface) 90%);
  color: var(--brand-navy);
}

.file-order-chip {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.file-order-chip--active {
  background: color-mix(in srgb, #27c08a 14%, var(--surface) 86%);
  color: #1a7d59;
}

.file-order-chip--past {
  background: color-mix(in srgb, var(--muted) 12%, var(--surface) 88%);
  color: var(--muted);
}

.file-order-chip--quoted {
  background: color-mix(in srgb, #4da6ff 14%, var(--surface) 86%);
  color: #1a6ebd;
}

.file-actions-cell {
  display: grid;
  gap: 0.38rem;
  min-width: 11.5rem;
}

.file-actions-primary,
.file-actions-secondary {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.file-actions-primary {
  width: 100%;
}

.file-actions-secondary {
  justify-content: flex-start;
}

.file-action-quote {
  width: 100%;
  min-height: 2.3rem;
  padding-inline: 0.7rem;
  overflow-wrap: anywhere;
}

.file-action-icon {
  width: 2.15rem;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.3rem;
  line-height: 1;
}

.file-actions-secondary form {
  display: flex;
}

.move-project-form {
  display: inline;
}

/* Project chips */
.project-chip {
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-alt) 50%, var(--surface) 50%);
  font-size: 0.84rem;
  max-width: 100%;
}

.project-chip > :first-child {
  min-width: 0;
}

.project-chip strong {
  overflow-wrap: anywhere;
}

.project-chip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.2rem;
}

.project-chip__meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 9%, var(--surface) 91%);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.project-chip__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.project-chip__action {
  min-height: 2rem;
  padding: 0.32rem 0.62rem;
  font-size: 0.72rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.project-chip__action--primary {
  max-width: 8.6rem;
}

.project-chip__action--icon {
  width: 2rem;
  min-width: 2rem;
  padding-inline: 0.3rem;
}

/* Version & rename popup overlay */
.version-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.version-popup-content {
  background: var(--surface);
  border-radius: 16px;
  max-width: 740px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.version-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.version-popup-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.version-popup-body {
  padding: 1rem 1.2rem;
}

.project-help-popup__list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
  display: grid;
  gap: 0.55rem;
}

/* Responsive files table */
@media (max-width: 900px) {
  .container--files {
    padding-inline: 0.95rem;
  }

  .files-table {
    min-width: 0;
  }

  .files-table thead {
    display: none;
  }
  .files-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
  }
  .files-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: none;
    padding: 0.25rem 0.4rem;
    gap: 0.8rem;
  }
  .files-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    margin-right: 0.5rem;
  }
  .file-name-cell {
    max-width: none;
  }

  .file-name-stack {
    width: 100%;
  }
  .file-actions-cell {
    width: 100%;
    min-width: 0;
  }

  .file-actions-primary,
  .file-actions-secondary {
    width: 100%;
  }

  .file-actions-secondary {
    justify-content: flex-start;
  }

  .project-chip {
    width: 100%;
  }
}

/* ── File Preview Modal ─────────────────────────────────────────────── */
.fp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.fp-overlay.fp-visible {
  display: flex;
}
.fp-modal {
  background: var(--surface, #fff);
  border-radius: 16px;
  width: 90vw;
  max-width: 960px;
  height: 80vh;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.fp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line, #e5e5e5);
  flex-shrink: 0;
}
.fp-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.fp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: var(--brand-navy, #003057);
  color: #fff;
  letter-spacing: 0.03em;
}
.fp-btn {
  background: none;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  color: var(--text, #222);
  transition: background 0.15s;
}
.fp-btn:hover {
  background: var(--brand-navy-light, rgba(0,48,87,.06));
}
.fp-btn-close {
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.15rem 0.45rem;
  border: none;
}
.fp-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--line, #e5e5e5);
  flex-shrink: 0;
  background: var(--surface, #fff);
}
.fp-btn-tool {
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  min-width: 32px;
  text-align: center;
}
.fp-zoom-label {
  font-size: 0.78rem;
  color: var(--muted, #888);
  margin-left: 0.3rem;
  min-width: 3em;
}
.fp-body {
  flex: 1;
  position: relative;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
}
.fp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #888);
  font-size: 0.9rem;
  position: absolute;
  inset: 0;
  z-index: 2;
}
.fp-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  transform-origin: center center;
}
.fp-content canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.fp-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.fp-svg-content {
  max-width: 100%;
  max-height: 100%;
}
.fp-3d-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted, #888);
  background: rgba(255,255,255,0.85);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
}
.fp-error {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger, #c0392b);
  font-size: 0.9rem;
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Preview eye button in file tables */
.file-preview-btn {
  background: none;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--brand-navy, #003057);
  transition: background 0.15s, border-color 0.15s;
}
.file-preview-btn:hover {
  background: var(--brand-navy, #003057);
  color: #fff;
  border-color: var(--brand-navy, #003057);
}

/* Upload preview trigger in file list */
.fp-upload-preview-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  font-size: 0.82rem;
  color: var(--brand-navy, #003057);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.fp-upload-preview-btn:hover {
  text-decoration-style: solid;
}

@media (max-width: 640px) {
  .fp-modal {
    width: 98vw;
    height: 85vh;
    max-height: 85vh;
    border-radius: 12px;
  }
  .fp-toolbar {
    flex-wrap: wrap;
  }
}

/* ── Floating help widget ────────────────────────────────────── */
.help-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
}

.help-fab > * {
  pointer-events: auto;
}

.help-fab-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  max-width: min(340px, calc(100vw - 2rem));
  border: none;
  border-radius: 100px;
  background: var(--brand-navy);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(2, 60, 136, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.help-fab-toggle:hover {
  background: var(--brand-deep);
  box-shadow: 0 8px 28px rgba(2, 60, 136, 0.45);
  transform: translateY(-1px);
}

.help-fab-toggle:active {
  transform: translateY(0);
}

.help-fab-toggle svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.help-fab-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  width: min(360px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: helpFadeUp 0.2s ease;
}

.help-fab-panel.is-open {
  display: flex;
}

@keyframes helpFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.help-fab-header {
  padding: 1rem 1.1rem 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.help-fab-header small {
  display: block;
  margin-top: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.help-fab-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}

.help-fab-links a:hover {
  background: var(--surface-alt);
}

.help-fab-links a + a {
  border-top: 1px solid var(--line);
}

.help-fab-links a svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-navy);
}

.help-fab-panel .help-contact-detail {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.1rem;
}

.help-fab-links {
  border-bottom: 1px solid var(--line);
}

.help-fab-toggle {
  position: relative;
}

.help-fab-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.2rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

.help-fab-badge.is-hidden {
  display: none;
}

.help-fab-chat {
  padding: 1rem 1.1rem 1.05rem;
  display: grid;
  gap: 0.75rem;
}

.help-fab-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.help-fab-chat__header strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.help-fab-chat__header span {
  font-size: 0.75rem;
  color: var(--brand-navy);
  font-weight: 700;
}

.help-fab-chat__intro,
.help-fab-chat__empty {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.help-fab-chat__messages {
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.25rem 0.1rem 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.help-fab-chat__message {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  gap: 0.2rem;
}

.help-fab-chat__message.is-customer {
  align-self: flex-end;
}

.help-fab-chat__message.is-agent {
  align-self: flex-start;
}

.help-fab-chat__bubble {
  padding: 0.72rem 0.82rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
}

.help-fab-chat__message.is-customer .help-fab-chat__bubble {
  background: rgba(2, 60, 136, 0.1);
  border-color: rgba(2, 60, 136, 0.18);
}

.help-fab-chat__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.help-fab-chat__message.is-customer .help-fab-chat__meta {
  justify-content: flex-end;
}

.help-fab-chat__emoji-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.help-fab-chat__emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.help-fab-chat__emoji {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  line-height: 1;
  cursor: pointer;
}

.help-fab-chat__composer {
  display: grid;
  gap: 0.55rem;
}

.help-fab-chat__composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-alt);
  color: var(--text);
  padding: 0.78rem 0.9rem;
  resize: vertical;
  min-height: 78px;
  font: inherit;
}

.help-fab-chat__composer textarea:focus {
  outline: none;
  border-color: rgba(2, 60, 136, 0.45);
  box-shadow: 0 0 0 3px rgba(2, 60, 136, 0.14);
}

.help-fab-chat__composer .btn {
  justify-self: flex-end;
}

.help-fab-chat__guest-cta {
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-alt);
  padding: 0.9rem;
}

.help-fab-chat__guest-cta strong {
  font-size: 0.84rem;
  color: var(--text);
}

@media (max-width: 480px) {
  .help-fab {
    bottom: 1rem;
    right: 1rem;
  }
  .help-fab-panel {
    width: calc(100vw - 2rem);
  }
  .help-fab-chat__messages {
    min-height: 190px;
    max-height: 260px;
  }
  .help-fab-toggle span {
    display: none;
  }
  .help-fab-toggle {
    padding: 0.85rem;
    border-radius: 50%;
  }
}
