:root {
  color-scheme: light;
  --navy: #0b2b47;
  --navy-2: #183a54;
  --green: #2fb45a;
  --green-dark: #168043;
  --amber: #f3a51b;
  --ink: #17212b;
  --muted: #66727d;
  --line: #d8e1e7;
  --soft: #f5f7f8;
  --cool: #eef7f4;
  --white: #fff;
  --danger: #c94538;
  --shadow: 0 16px 34px rgba(12, 35, 55, 0.08);
  --radius: 6px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 2.4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar .icon {
  color: #fff;
}

.header-main {
  display: grid;
  grid-template-columns: 250px minmax(260px, 1fr) auto;
  gap: 22px;
  width: min(1420px, calc(100% - 48px));
  min-height: 92px;
  align-items: center;
  margin: 0 auto;
}

.brand,
.header-actions button,
.product-nav button,
.config-topbar button,
.admin-sidebar button,
.chat-panel button {
  border: 0;
  background: none;
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 0;
  border-radius: 50%;
  background: url("/assets/media/onenite-mark.svg") center / contain no-repeat;
  box-shadow: 0 10px 22px rgba(11, 43, 71, 0.14);
}

.brand-mark::after {
  display: none;
  content: "";
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 50%;
}

.brand-mark.small::after {
  display: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  background: #f2f4f5;
  padding: 0 16px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--navy);
  font-weight: 850;
}

.header-actions button:last-child {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.product-nav {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: min(44px, 4vw);
  background: #f6f7f8;
  color: var(--navy);
  font-weight: 900;
}

.product-nav button {
  min-height: 44px;
  padding: 0 4px;
}

.shell-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1fr);
  gap: 40px;
  width: min(1420px, calc(100% - 48px));
  margin: 28px auto 0;
}

.hero {
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.media-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.generated-art {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.product-render {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.generated-art img,
.thumb-art img {
  display: block;
  width: 300%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.product-render img {
  display: block;
  width: 300%;
  height: 130%;
  max-width: none;
  object-fit: fill;
}

.art-product img {
  transform: translateX(0);
}

.art-measurement img {
  transform: translateX(-33.3333%);
}

.art-components img {
  transform: translateX(-66.6667%);
}

.hero-art {
  min-height: 400px;
  aspect-ratio: 1.28;
}

.shutter-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  background: linear-gradient(180deg, #fbfcfc, #f1f4f5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.large-preview {
  min-height: 400px;
}

.thumb-row {
  display: grid;
  grid-template-columns: 58px repeat(4, 1fr);
  gap: 12px;
}

.thumb-row button,
.thumb-row span,
.thumb-row figure {
  overflow: hidden;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.thumb-row button {
  display: grid;
  place-items: center;
  color: var(--navy);
}

.thumb-row figure {
  margin: 0;
}

.thumb-product img {
  height: 130%;
}

.thumb-preview {
  display: grid;
  place-items: center;
}

.mini-preview {
  height: 74px;
  min-height: 74px;
  border: 0;
  border-radius: 0;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(10px, 2vw, 26px);
}

.breadcrumb,
.kicker {
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li,
.rating-line,
.google-rating,
.hero-actions,
.price-callout,
.config-topbar,
.toggle-row,
.table-toolbar,
.admin-heading,
.chat-form,
.chat-actions,
.reviews-header {
  display: flex;
  align-items: center;
}

.check-list .icon,
.rating-line .icon {
  color: var(--amber);
}

.rating-line {
  gap: 7px;
  color: var(--amber);
  font-weight: 850;
}

.rating-line span {
  color: var(--muted);
  font-weight: 700;
}

.google-rating {
  width: fit-content;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid #e8eef2;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(12, 35, 55, 0.06);
  color: var(--muted);
  padding: 8px 13px;
  font-size: 0.95rem;
  font-weight: 800;
}

.google-rating strong {
  color: var(--navy);
}

.google-g {
  background: conic-gradient(from -45deg, #4285f4 0 26%, #34a853 0 42%, #fbbc05 0 64%, #ea4335 0 82%, #4285f4 0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 1.08rem;
  font-weight: 950;
}

.rating-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--amber);
}

.google-rating .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
}

.btn.primary {
  background: var(--green);
  color: #fff;
}

.btn.primary:hover {
  background: var(--green-dark);
}

.btn.subtle {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.price-callout {
  gap: 10px;
  color: var(--muted);
}

.price-callout strong {
  color: var(--navy);
  font-size: 1.55rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1420px, calc(100% - 48px));
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.trust-band article {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.trust-band article:last-child {
  border-right: 0;
}

.trust-band .icon {
  color: var(--navy);
}

.trust-band strong {
  color: var(--navy);
}

.trust-band span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.detail-stack,
.detail-art-grid {
  display: grid;
  gap: 16px;
}

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

.support-art {
  min-height: 190px;
  aspect-ratio: 1.35;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 36px;
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 74px;
  scroll-margin-top: 170px;
}

.faq-intro {
  display: grid;
  align-content: start;
  gap: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(12, 35, 55, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.faq-item.open {
  border-color: #bfd0dc;
  box-shadow: 0 18px 34px rgba(12, 35, 55, 0.08);
}

.faq-trigger {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 18px;
  width: 100%;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 20px 22px;
  text-align: left;
}

.faq-trigger span {
  font-weight: 900;
}

.faq-trigger i {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fafb;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 220ms ease;
}

.faq-trigger i::before,
.faq-trigger i::after {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
  content: "";
  transition: transform 220ms ease;
}

.faq-trigger i::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-trigger i {
  border-color: var(--navy);
  background: var(--navy);
  transform: rotate(180deg);
}

.faq-item.open .faq-trigger i::before,
.faq-item.open .faq-trigger i::after {
  background: #fff;
}

.faq-item.open .faq-trigger i::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 300ms ease,
    opacity 220ms ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  border-top: 1px solid var(--line);
  margin: 0 22px;
  padding: 16px 0 22px;
}

.reviews-section {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto 88px;
  padding: 34px 0;
}

.reviews-header {
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}

.reviews-header span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber);
  font-weight: 850;
}

.reviews-header button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--amber);
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
}

.review-carousel {
  display: grid;
  grid-auto-columns: minmax(250px, 1fr);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  padding: 22px 0 8px;
  scrollbar-width: thin;
}

.review-card {
  display: grid;
  gap: 18px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.review-card header {
  display: flex;
  gap: 12px;
}

.review-card header > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--avatar);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.review-card small {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--amber);
}

.review-card p {
  color: var(--ink);
}

.configure-page {
  min-height: 100vh;
  background: #f7f8f9;
}

.config-topbar {
  justify-content: space-between;
  width: min(1500px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  color: var(--navy);
}

.config-topbar button {
  min-height: 40px;
  color: var(--navy);
  font-weight: 850;
}

.config-shell {
  display: grid;
  grid-template-columns: 220px minmax(340px, 1fr) minmax(270px, 0.58fr) minmax(250px, 0.42fr);
  gap: 16px;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto 44px;
}

.step-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  list-style: none;
}

.step-nav button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  width: 100%;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px;
  color: var(--muted);
  text-align: left;
}

.step-nav button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.step-nav button strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.step-nav button.active {
  background: var(--navy);
  color: #fff;
}

.step-nav button.active strong {
  color: #fff;
}

.config-workspace,
.preview-card,
.price-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(12, 35, 55, 0.04);
}

.config-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 560px;
  padding: 26px;
}

.choice-grid,
.color-grid,
.extras-grid,
.dimension-grid {
  display: grid;
  gap: 14px;
}

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

.choice,
.extra-option {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  padding: 18px;
  text-align: left;
}

.choice.selected,
.extra-option:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.choice span,
.choice small,
.extra-option small {
  color: var(--muted);
}

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

.swatch {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
}

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

.dimension-grid label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 850;
}

.dimension-grid input,
.table-toolbar input,
.table-toolbar select,
.chat-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.info-note,
.success-note {
  border-radius: var(--radius);
  background: var(--cool);
  color: var(--navy);
  padding: 14px 16px;
}

.success-note {
  background: #e8f8ec;
  color: var(--green-dark);
  font-weight: 850;
}

.measurement-art {
  min-height: 210px;
  aspect-ratio: 2.1;
}

.extra-option {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.extra-option input {
  width: 18px;
  height: 18px;
}

.config-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.preview-card,
.price-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.preview-card .shutter-preview {
  min-height: 260px;
}

.toggle-row {
  gap: 8px;
}

.toggle-row button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
}

.price-card > strong {
  color: var(--navy);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
}

.price-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.price-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-form {
  display: grid;
  gap: 18px;
}

.summary-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
}

.summary-box strong {
  color: var(--navy);
  font-size: 1.7rem;
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100vh;
  background: var(--navy);
  padding: 22px 18px;
  color: #fff;
}

.admin-brand {
  margin-bottom: 18px;
  color: #fff;
}

.admin-sidebar button:not(.brand) {
  min-height: 44px;
  border-radius: 6px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  font-weight: 850;
}

.admin-sidebar button.active,
.admin-sidebar button:not(.brand):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.access-note {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.admin-content {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px;
}

.admin-heading {
  justify-content: space-between;
  gap: 20px;
}

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

.kpi-grid article,
.panel {
  padding: 20px;
}

.kpi-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.kpi-grid span,
.kpi-grid small,
.queue-row span,
.alert-row span,
.bom-line small {
  color: var(--muted);
}

.kpi-grid strong {
  color: var(--navy);
  font-size: 2rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 16px;
}

.admin-columns,
.production-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 16px;
}

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

.panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.queue-row,
.alert-row,
.bom-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.queue-row b {
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  padding: 5px 9px;
  font-size: 0.76rem;
}

.admin-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.72fr) max-content;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-card-row span {
  display: grid;
  gap: 4px;
}

.admin-card-row small,
.empty-note,
.rule-list + p {
  color: var(--muted);
}

.admin-card-row b {
  width: fit-content;
  border-radius: 999px;
  background: #eef3f7;
  color: var(--navy);
  padding: 6px 10px;
  font-size: 0.75rem;
}

.admin-card-row button,
.button-strip button,
.work-step button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 0 10px;
  font-weight: 850;
}

.admin-card-row > button,
.admin-card-row > .button-strip {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
}

.button-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  padding: 18px;
}

.alert-row .icon {
  color: var(--amber);
}

.timeline > div {
  display: grid;
  gap: 8px;
}

.timeline span {
  display: inline-block;
  min-height: 22px;
  border-radius: 4px;
  background: #dfe5e9;
  color: var(--navy);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.timeline span.active {
  background: var(--navy);
  color: #fff;
}

.timeline span.done {
  background: #dff3e4;
  color: var(--green-dark);
}

.production-job header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.production-job header b {
  border-radius: 999px;
  background: #eef3f7;
  color: var(--navy);
  padding: 6px 10px;
  font-size: 0.75rem;
}

.work-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.work-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf1f4;
  color: var(--navy);
  font-weight: 900;
}

.work-step.active > span {
  background: var(--navy);
  color: #fff;
}

.work-step.done > span {
  background: #dff3e4;
  color: var(--green-dark);
}

.work-step small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.work-step.done button {
  opacity: 0.5;
}

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

.rule-list span {
  border-radius: 999px;
  background: #eef3f7;
  color: var(--navy);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.table-toolbar {
  gap: 12px;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 0.9rem;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
}

th {
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr.low td {
  background: #fff8ee;
}

td small {
  color: var(--muted);
}

.reservation-panel {
  position: sticky;
  top: 24px;
}

.reservation-art {
  min-height: 190px;
  aspect-ratio: 1.35;
}

.bom-line {
  grid-template-columns: 1fr auto;
}

.bom-line small {
  grid-column: 1 / -1;
}

.mobile-sticky {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 28;
  display: none;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
}

.mobile-sticky span {
  color: var(--navy);
  font-weight: 900;
  padding-left: 10px;
}

.mobile-sticky button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
}

.chat-pill {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 0 18px;
  font-weight: 900;
}

.chat-panel {
  display: grid;
  width: min(420px, calc(100vw - 28px));
  min-height: 560px;
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid #cbd9e1;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.chat-panel header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  background: var(--navy);
  color: #fff;
  padding: 0 16px;
}

.chat-panel header small {
  display: block;
  color: #8fe8a8;
}

.chat-panel header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
}

.chat-messages {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 320px;
  overflow-y: auto;
  padding: 18px;
}

.chat-messages p {
  width: fit-content;
  max-width: 82%;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  line-height: 1.45;
}

.chat-messages .assistant {
  background: #f0f2f3;
}

.chat-messages .customer {
  justify-self: end;
  background: #e7eef5;
}

.chat-consent {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 0.8rem;
}

.chat-form {
  gap: 8px;
  padding: 10px 14px;
}

.chat-form input[name="message"] {
  border-radius: 999px;
}

.chat-form button,
.file-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
}

.file-button input {
  display: none;
}

.chat-actions {
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.chat-actions button {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 850;
}

@media (max-width: 1320px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-content {
    padding: 26px;
  }

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

  .timeline {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: 210px minmax(200px, 1fr) auto;
  }

  .header-actions span {
    display: none;
  }

  .config-shell {
    grid-template-columns: 180px minmax(320px, 1fr) 320px;
  }

  .price-card {
    grid-column: 2 / -1;
  }

  .ops-grid,
  .inventory-layout,
  .admin-columns,
  .production-grid {
    grid-template-columns: 1fr;
  }

  .reservation-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .header-main {
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, 720px);
    min-height: 74px;
  }

  .search,
  .product-nav {
    display: none;
  }

  .header-actions button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .header-actions button:nth-child(2) {
    display: none;
  }

  .shell-grid,
  .hero,
  .split-section,
  .faq-section,
  .config-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .shell-grid,
  .section,
  .faq-section,
  .reviews-section,
  .trust-band {
    width: min(100% - 28px, 720px);
  }

  .faq-section {
    padding-bottom: 52px;
  }

  .hero {
    margin-top: 14px;
    padding: 16px;
  }

  .large-preview,
  .hero-art {
    min-height: 270px;
  }

  .thumb-row {
    display: none;
  }

  .hero-copy {
    padding: 0;
  }

  .trust-band,
  .kpi-grid,
  .detail-art-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-band article:nth-child(2n) {
    border-right: 0;
  }

  .reviews-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-sticky {
    display: flex;
  }

  .configure-page .site-header {
    position: static;
  }

  .config-shell {
    width: min(100% - 24px, 720px);
  }

  .step-nav {
    grid-auto-columns: minmax(150px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .choice-grid,
  .color-grid,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    grid-column: auto;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-columns: repeat(6, auto);
    overflow-x: auto;
  }

  .admin-brand,
  .access-note {
    display: none;
  }

  .admin-content {
    padding: 18px;
  }

  .admin-card-row,
  .work-step {
    grid-template-columns: 1fr;
  }

  .button-strip {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 50%;
  }

  .brand-mark::after {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .google-rating {
    width: 100%;
    justify-content: center;
  }

  .faq-trigger {
    grid-template-columns: 1fr 30px;
    padding: 18px;
  }

  .faq-trigger i {
    width: 30px;
    height: 30px;
  }

  .faq-answer p {
    margin: 0 18px;
  }

  .trust-band,
  .kpi-grid,
  .detail-art-grid {
    grid-template-columns: 1fr;
  }

  .trust-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band article:last-child {
    border-bottom: 0;
  }

  .config-workspace {
    min-height: auto;
    padding: 18px;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    min-height: 520px;
  }
}
