/* Shared visual language for project tabs, accounts and dialogs. */
:root {
  --accent: #71364b;
  --accent-hover: #59283a;
  --bg: #f6f2ec;
  --white: #fffdf9;
  --ink: #302d2a;
  --muted: #6d625a;
  --line: #e3dacf;
  --soft: #f0e9df;
  --green: var(--accent);
  --lime: #f0e2e5;
  --orange: #8b602e;
  --surface: #fffdf9;
  --surface-muted: #f7f2ea;
}
body {
  font-family: 'Golos Text', Arial, sans-serif;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}
::selection { background: #3d3931; color: #c8ad83; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }
h1, h2, h3 { font-weight: 500; }
.btn { border-radius: 6px; font-weight: 500; transition: background .18s, border-color .18s, color .18s; }
.btn:not(.secondary):not(.soft):not(.ghost):hover { background: var(--accent-hover); }
.btn.secondary { background: var(--surface); color: var(--accent); border-color: #4a4c4b; }
.btn.secondary:hover { background: var(--soft); border-color: #4a4c4b; }
.btn.soft { background: #303437; color: var(--accent); }
.btn.soft:hover { background: #3d3931; }
.btn.ghost { color: var(--accent); }
.btn.ghost:hover { background: #303437; }
.btn:disabled { opacity: .55; }
.article-link { color: var(--accent); }
.article-link:hover { color: var(--accent-hover); }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: 1.2px; }

/* A cream masthead and the same burgundy mark as the homepage. */
.appbar {
  min-height: 82px; height: auto; padding: 18px 32px;
  background: #303437; color: var(--ink); border-bottom: 1px solid var(--line);
}
.appbar .brand { color: var(--ink); font-size: 25px; font-weight: 500; letter-spacing: -1px; }
.brand .brand-mark { width: 35px; height: 28px; color: var(--accent); flex-shrink: 0; }
.appbar .crumb { color: var(--muted); margin-left: 30px; font-size: 14px; }
.appbar .right { gap: 16px; }
.appbar .city select { color: var(--ink); }
.avatar { background: #303437; color: var(--accent); font-weight: 500; border: 1px solid #4a4c4b; }
.shell { grid-template-columns: 230px minmax(0,1fr); min-height: calc(100svh - 82px); }
.sidebar { padding: 32px 16px; background: #303437; gap: 6px; }
.sidebar .label { color: #b9b7b0; font-weight: 400; letter-spacing: 2px; }
.nav-item { position: relative; color: #b9b7b0; border-radius: 6px; font-weight: 400; padding: 14px 17px; }
.nav-item:hover { background: #303437; color: var(--accent); }
.nav-item.active { background: #303437; color: var(--accent); font-weight: 500; box-shadow: inset 2px 0 var(--accent); }
.sidebar .sidebar-bottom { border-top: 1px solid var(--line); margin-top: auto; padding-top: 24px; }
.workspace { padding: 36px clamp(24px,3vw,48px) 56px; min-width: 0; }
.project-heading { margin-bottom: 28px; align-items: center; }
.project-heading h1 { font-size: clamp(28px,2.7vw,39px); line-height: 1.2; font-weight: 400; letter-spacing: -1.1px; margin: 8px 0 10px; }
.project-heading p { font-size: 14px; line-height: 1.7; }
.demo-banner { color: var(--muted); font-size: 14px; line-height: 1.7; }
.demo-banner .icon { color: #c8ad83; flex-shrink: 0; }

/* Warm paper-like surfaces, thin rules and restrained corners. */
.panel, .stat { background: var(--surface); border-color: var(--line); border-radius: 10px; box-shadow: 0 2px 12px #4b332303; }
.panel { padding: 26px; min-width: 0; }
.panel h2 { font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -.6px; }
.panel h3 { font-weight: 500; line-height: 1.45; }
.panel-head { padding-bottom: 16px; border-bottom: 1px solid #4a4c4b; margin-bottom: 20px; }
.panel-head .panel-head { padding: 0; border: 0; }
.stat { padding: 24px; border-top: 2px solid #4a4c4b; }
.stat strong { color: var(--accent); font-size: 29px; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 14px; }
.tag { background: #303437; color: #c8ad83; border-radius: 6px; font-weight: 500; padding: 6px 10px; line-height: 1.4; }
.tag.lime { background: #303437; color: var(--accent); }
.tag.amber { color: #c8ad83; background: #303437; }
.feature-photo, .render img { border-radius: 4px; }
.render .caption { background: #232629; border-radius: 6px; }
.design-option { border-radius: 4px; background: #303437; }
.design-option.selected { border-color: var(--accent); }
.design-option span { color: var(--ink); line-height: 1.5; }
.totals { gap: 14px; line-height: 1.5; }
.totals.total { background: var(--accent); color: #f1e8d8; border-radius: 6px; padding: 18px; font-weight: 500; }
.totals.total b { font-weight: 500; }
.progress-line { background: #3d3931; height: 5px; }
.progress-line i { background: #45423a; }
.product-row .price, .supplier-cost, .catalog .price, .master-right strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.task b, .subheading { font-weight: 500; }
.task { padding: 18px 0; }
.table-wrap { border-radius: 4px; }
th { background: #303437; color: #b9b7b0; padding-top: 15px; padding-bottom: 15px; letter-spacing: .25px; }
td { background: transparent; font-variant-numeric: tabular-nums; }
td strong { font-weight: 500; }
tbody tr:hover { background: #303437; }
.qty { color: var(--ink); background: #303437; border-color: #4a4c4b; border-radius: 6px; }

/* Plans, forms, catalogue and progress. */
.field>span, .catalogue-filters label span { font-weight: 500; color: #b9b7b0; }
.field input, .field select, .field textarea, .catalogue-filters input, .catalogue-filters select,
.mobile-role select { border-color: #4a4c4b; background: #303437; color: var(--ink); border-radius: 6px; }
.field input::placeholder, .field textarea::placeholder { color: #b9b7b0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.plan { border-radius: 4px; background-color: #303437; background-image: linear-gradient(#303437 1px,transparent 1px),linear-gradient(90deg,#303437 1px,transparent 1px); }
.room { border-color: #4a4c4b; }
.room .bed { background: #303437; border-color: #4a4c4b; border-radius: 4px; }
.bed i { background: #303437; border-color: #4a4c4b; }
.chip { background: var(--surface); color: #b9b7b0; border-radius: 6px; }
.chip:hover { border-color: #4a4c4b; }
.chip.active { background: var(--accent); color: #f1e8d8; border-color: var(--accent); }
.supplier-status { background: #303437; border-color: #4a4c4b; border-radius: 4px; }
.supplier-status p { color: #b9b7b0; }
.supplier-status p.catalogue-warning { color: #c8ad83; }
.catalogue-toolbar h2 { font-weight: 400; font-size: 32px; }
.supplier-image { background: #303437; border-radius: 6px; }
.supplier-image .icon { color: #b9b7b0; }
.supplier-article { font-weight: 500; }
.master .avatar { border-radius: 4px; }
.master h3 { font-weight: 500; }
.report { background: #303437; border-radius: 4px; }
.report-images img { border-radius: 6px; }
.empty-upload { background: #303437; border-color: #4a4c4b; border-radius: 4px; }
.step-number { border-radius: 6px; color: var(--accent); background: #303437; font-weight: 500; }
.change { border-radius: 4px; background: #303437; border-color: #4a4c4b; }

/* Account, registration and room visualization use the same surfaces. */
.account-notice { color: #c8ad83; background: #303437; border: 1px solid #4a4c4b; border-radius: 4px; }
.account-notice .icon { color: #c8ad83; flex-shrink: 0; }
.role-select select { background: #303437; }
.role-option { background: #303437; border-radius: 4px; }
.role-option:has(input:checked) { border-color: var(--accent); background: #303437; }
.role-option b { color: var(--accent); font-weight: 500; }
.role-questionnaire { border-radius: 4px; background: #303437; padding: 22px; }
.role-questionnaire legend { color: var(--accent); font-weight: 500; }
.cloud-empty>.icon { color: #c8ad83; }
.cloud-title { font-weight: 500; }
.profile-chooser-dialog .profile-panel { background: transparent; padding: 0; border: 0; box-shadow: none; }
.profile-chooser-dialog .cloud-grid { margin-top: 24px; gap: 16px; }
.profile-chooser-dialog .cloud-grid>.panel { border-top: 2px solid #4a4c4b; }
.profile-chooser-dialog .cloud-grid h3 { color: var(--accent); font-size: 23px; font-weight: 400; }
.profile-chooser-dialog .cloud-grid p { font-size: 14px; line-height: 1.8; }
.visual-workspace { padding-top: 36px; }
.visual-upload { background: #303437; border-color: #4a4c4b; border-radius: 4px; }
.visual-upload input::file-selector-button { font: inherit; padding: 8px 12px; margin-right: 10px; background: #303437; color: var(--accent); border: 1px solid #4a4c4b; border-radius: 6px; cursor: pointer; }
.visual-source-preview, .visual-reference>img, .visual-comparison img, .visual-version>img { border-radius: 6px; }
.visual-source-preview, .visual-comparison img { background: #303437; }
.visual-placeholder { background: #303437; border-radius: 4px; }
.visual-version { background: #303437; border-radius: 4px; }
.visual-version.selected { background: #303437; border-color: var(--accent); }
.visual-version b { font-weight: 500; }
.visual-status { background: #303437; color: #c8ad83; border-color: #4a4c4b; border-radius: 4px; }
.visual-error { border-radius: 4px; }
.visual-entry { background: linear-gradient(115deg,#303437,#303437); border-left: 3px solid #4a4c4b; }
.visual-entry p { font-size: 14px; }

/* Dialogs and company presentation. */
.overlay { background: #232629; backdrop-filter: blur(5px); }
.dialog { background: #303437; border: 1px solid #4a4c4b; border-radius: 14px; box-shadow: 0 24px 80px #3b1e2333; }
.dialog h2 { font-weight: 400; font-size: 27px; letter-spacing: -.6px; }
.close { background: #303437; border-color: #4a4c4b; color: var(--accent); }
.close:hover { background: #303437; }
.dialog .intro { color: var(--muted); font-size: 14px; }
#toast { background: #232629; border-radius: 4px; color: #f1e8d8; }
.company-presentation { background: #303437; }
.company-intro { background: var(--accent); color: #f1e8d8; }
.company-intro .company-kicker { color: #b9b7b0; }
.company-subtitle { color: #b9b7b0; }
.company-intro-bottom p { color: #f1e8d8; }
.company-rule { border-color: #4a4c4b; }
.company-visual:after { background: linear-gradient(transparent,#232629); }
.company-story { border-color: #4a4c4b; }
.company-story-number { color: #c8ad83; }
.company-story-label { color: #c8ad83; }
.company-principle { background: #303437; }
.company-principle-copy p { color: #b9b7b0; }
.company-principle-copy .company-emphasis { color: var(--ink); }

@media (min-width:1151px) { .profile-chooser-dialog .cloud-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:1150px) {
  .shell { grid-template-columns: 195px minmax(0,1fr); }
  .workspace { padding: 28px 24px 40px; }
  .sidebar { padding: 28px 12px; }
  .sidebar .nav-item { padding: 13px 12px; }
  .appbar .right { gap: 12px; }
}
@media (max-width:760px) {
  .appbar { min-height: 76px; height: auto; padding: 16px 18px; flex-wrap: wrap; gap: 14px; }
  .appbar .brand { font-size: 23px; white-space: nowrap; }
  .brand .brand-mark { width: 31px; height: 24px; }
  .appbar .right { gap: 8px; flex-wrap: wrap; }
  .appbar .right .btn { font-size: 14px; padding: 9px 12px; }
  .shell { display: block; min-height: calc(100svh - 76px); }
  .mobile-nav { background: #303437; border-color: var(--line); padding: 10px 14px; }
  .mobile-nav .nav-item { border-radius: 6px; }
  .mobile-nav .nav-item.active { box-shadow: inset 0 -2px var(--accent); }
  .workspace, .visual-workspace { padding: 25px 16px 36px; }
  .project-heading { gap: 12px; margin-bottom: 22px; align-items: flex-start; }
  .project-heading h1 { font-size: 28px; margin-top: 6px; letter-spacing: -.8px; }
  .panel { padding: 20px; }
  .panel h2 { font-size: 19px; }
  .panel-head { padding-bottom: 14px; gap: 12px; }
  .stat { padding: 18px; }
  .stat strong { font-size: 24px; }
  .dialog { padding: 22px; max-height: 90svh; }
  .dialog h2 { font-size: 25px; }
  .dialog .actions, .profile-panel .actions { flex-wrap: wrap; }
  .profile-chooser-dialog .cloud-grid { grid-template-columns: 1fr; }
  .role-questionnaire { padding: 18px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .visual-entry .btn { width: 100%; }
  .catalogue-toolbar h2 { font-size: 27px; }
}
@media (prefers-reduced-motion:reduce) { .btn { transition: none; } }

/* Aligned, concise authorization cards. */
.account-entry-caption { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 24px; }
.account-entry .cloud-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; }
.account-role-card { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; text-align: center; gap: 28px; padding: 26px 20px; }
.account-role-card h3 { margin: 0; line-height: 1.4; }
.account-role-card .btn { width: 100%; margin-top: auto; min-height: 46px; }
@media(max-width:640px) { .account-entry .cloud-grid { grid-template-columns: 1fr; } .account-role-card { gap: 18px; padding: 22px; } }

/* Customer-only shortcuts in the homepage masthead. */
.premium-home .toplinks.customer-links { gap: 8px clamp(14px,1.6vw,24px); flex-wrap: wrap; justify-content: flex-end; }
.premium-home .toplinks.customer-links button { font-size: clamp(13px,1.15vw,19px); }
@media(max-width:1050px) and (min-width:761px) { .premium-home:has(.customer-links) .premium-brand { font-size: 24px; gap: 10px; } .premium-home:has(.customer-links) .premium-brand svg { width: 34px; } .premium-home .toplinks.customer-links { gap: 16px; } }
@media(max-width:760px) { .premium-home .toplinks.customer-links { justify-content: flex-start; flex-wrap: wrap; gap: 6px 20px; } .premium-home .toplinks.customer-links button { font-size: 14px; } }
.customer-workspace-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.customer-workspace-links button { background: transparent; color: var(--accent); padding: 8px 0; font-size: 14px; }
.customer-workspace-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:760px) { .appbar:has(.customer-workspace-links) .right { width: 100%; } .customer-workspace-links { gap: 6px 18px; } }

/* Readability and interaction standards, based on NN/g, Baymard and WCAG. */
html { scroll-padding-top: 24px; }
body.dialog-open { overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--white); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:where(main):focus { outline: none; }
.btn { min-height: 44px; padding: 12px 20px; font-size: 15px; line-height: 1.4; white-space: normal; text-align: center; }
.btn.small { min-height: 40px; font-size: 14px; padding: 10px 16px; }
.btn.ghost { min-height: 44px; padding: 10px 12px; }
.brand, .close, .chip, .nav-item { min-height: 44px; }
.close { width: 44px; height: 44px; flex-shrink: 0; }
.tag { font-size: 13px; }
.undertext, .field small, .product-row small, .supplier-availability, .supplier-cost small, .supplier-article,
.task small, .sidebar .sidebar-bottom, .visual-version small, .visual-comparison figcaption { font-size: 13px; line-height: 1.65; }
.undertext { max-width: 75ch; margin-top: 16px; }
.sidebar .label, .eyebrow { font-size: 12px; letter-spacing: 1px; line-height: 1.6; color: var(--muted); }
.project-heading p, .stat small, .catalogue-toolbar p, .catalogue-count, .company-visual-caption span+span { font-size: 14px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; }
.panel-head { align-items: center; border-bottom: 0; padding-bottom: 0; gap: 16px; }
.panel p, .cloud-description, .company-principle-copy p, .report p { font-size: 16px; line-height: 1.65; max-width: 72ch; }
.panel p.muted { font-size: 15px; }
.task b, .product-row b { font-size: 15px; line-height: 1.5; }
.task { flex-wrap: wrap; }
.task>div { flex: 1; min-width: 160px; }
.totals { font-size: 15px; align-items: baseline; }
.totals.total { font-size: 22px; background: var(--surface-muted); color: var(--ink); border-top: 1px solid var(--line); }
.totals.total b { color: var(--accent); }
.product-row { flex-wrap: wrap; }
.product-row .meta { min-width: 130px; }
.product-row .price { font-size: 15px; }
.render .caption { font-size: 13px; line-height: 1.5; max-width: calc(100% - 30px); }
.design-option span { font-size: 14px; padding: 12px; }
.design-option { min-height: 44px; }
.content-grid, .cloud-grid, .supplier-grid, .visual-layout { gap: 24px; }
.right-stack, .list, .timeline, .visual-results { gap: 24px; }
.shell { max-width: 1720px; margin: 0 auto; }
.workspace { max-width: 1440px; }
.nav-item { font-size: 14px; line-height: 1.5; }
.sidebar { gap: 8px; }
.customer-workspace-links button { min-height: 44px; font-size: 14px; }
.appbar .right { flex-wrap: wrap; justify-content: flex-end; }
.appbar .left { min-width: 0; }
.appbar .crumb { font-size: 13px; line-height: 1.5; }
.demo-banner, .account-notice { font-size: 14px; line-height: 1.6; }
.account-notice { padding: 18px 20px; background: #303437; color: #b9b7b0; border-color: #4a4c4b; }
.account-notice .icon, .demo-banner .icon { color: #c8ad83; }
.field>span, .catalogue-filters label span { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.field input, .field select, .field textarea, .catalogue-filters input, .catalogue-filters select, .mobile-role select { min-height: 46px; font-size: 16px; line-height: 1.5; padding: 11px 14px; }
.field textarea { min-height: 120px; }
.field { margin-bottom: 24px; }
.form-grid { gap: 0 24px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.check-compare { padding: 10px 0; font-size: 14px; min-height: 44px; gap: 10px; cursor: pointer; }
.qty { min-height: 44px; width: 90px; font-size: 16px; border-color: #4a4c4b; }
table { font-size: 14px; }
th { font-size: 13px; font-weight: 500; color: #b9b7b0; }
th, td { padding: 18px 16px; line-height: 1.6; }
td small { font-size: 13px; }
.table-wrap { overscroll-behavior-inline: contain; }
.master p { font-size: 15px; }
.master-right { flex-shrink: 0; }
.master-main { min-width: 0; }
.master .avatar { width: 52px; height: 52px; }
.master-right strong { font-size: 27px; }
.chip { font-size: 14px; padding: 10px 16px; }
.supplier-product h3 { font-size: 17px; line-height: 1.5; }
.supplier-product p { font-size: 14px; }
.supplier-image { height: 170px; }
.supplier-product .supplier-buttons { margin-top: 8px; }
.supplier-status p { font-size: 14px; }
.supplier-status { gap: 24px; padding: 24px; }
.supplier-status>div { min-width: 0; }
.empty-upload, .visual-placeholder { font-size: 15px; padding: 28px; }
.role-option b { font-size: 17px; }
.role-option span { font-size: 14px; }
.role-option { padding: 22px 18px; gap: 12px; }
.role-options { align-items: stretch; }
.role-questionnaire legend { font-size: 16px; }
.cloud-empty { padding: 44px 28px; }
.cloud-empty h2, .cloud-empty h3 { line-height: 1.4; }
.cloud-empty p { font-size: 16px; max-width: 52ch; }
.account-role-card { border-top: 1px solid var(--line)!important; gap: 28px; padding: 28px; }
.account-role-card h3 { font-size: 24px; }
.profile-chooser-dialog .cloud-grid { margin-top: 24px; }
.profile-chooser-dialog .account-entry-caption { color: var(--muted); font-size: 16px; }
.profile-chooser-dialog>.row-between { grid-template-columns: 44px minmax(0,1fr) 44px; }
.dialog { width: min(560px,100%); max-height: calc(100svh - 40px); padding: 28px; }
.dialog.wide { width: min(1080px,100%); }
.dialog .intro { font-size: 16px; line-height: 1.65; max-width: 72ch; }
.dialog .row-between { align-items: center; }
.dialog .actions { flex-wrap: wrap; gap: 12px; }
#toast { font-size: 15px; line-height: 1.6; padding: 14px 22px; }
.visual-upload small, .visual-reference .field span { font-size: 13px; }
.visual-upload { padding: 20px; background: #303437; }
.visual-upload input::file-selector-button { min-height: 44px; }
.visual-status, .visual-error { font-size: 15px; line-height: 1.65; }
.visual-version { min-height: 88px; padding: 12px; }
.visual-version small { color: var(--muted); }
.visual-version b { line-height: 1.5; }
.visual-entry { background: #303437; border-left: 2px solid #4a4c4b; }
.company-intro { background: #232629; }
.company-intro-bottom p { font-size: 16px; }
.company-kicker { font-size: 12px; letter-spacing: 1.2px; }
.company-intro .company-kicker { color: #f1e8d8; }
.company-principle-copy p { font-size: 16px; color: var(--muted); }
.company-story p { max-width: 60ch; }
.company-story-number { color: #c8ad83; }
.company-visual-caption { font-size: 16px; }
.premium-home { --wine: var(--accent); --ink: #302d2a; --muted: #675b52; background: #303437; }
.premium-home .topbar { gap: 24px; }
.premium-home .premium-brand { font-size: clamp(25px,2.4vw,36px); letter-spacing: -1px; }
.premium-home .hero h1 { font-weight: 400; letter-spacing: -1.3px; line-height: 1.14; }
.premium-home .hero p { line-height: 1.55; }
.premium-home .toplinks button { min-height: 44px; line-height: 1.5; }
.premium-home .toplinks.customer-links button { font-size: 15px; }
.premium-home .footer { font-size: 12px; color: #b9b7b0; gap: 12px; }
.reference-footer-links { gap: 12px 24px; }
.reference-footer-links button { font-size: 14px; min-height: 44px; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.premium-home .footer>span { padding: 6px 10px; border-radius: 6px; background: #303437; color: #b9b7b0; }
@media(min-width:1151px) { .sidebar { position: sticky; top: 0; align-self: start; min-height: calc(100svh - 84px); } }
@media(max-width:1150px) {
  .appbar { flex-wrap: wrap; gap: 12px 24px; }
  .appbar .right { margin-left: auto; }
  .customer-workspace-links { gap: 4px 18px; }
  .master { flex-wrap: wrap; }
  .master-right { min-width: 180px; }
  .premium-home:has(.customer-links) .topbar { flex-wrap: wrap; }
  .premium-home .toplinks.customer-links { gap: 4px 18px; }
}
@media(max-width:900px) {
  .account-entry .cloud-grid { grid-template-columns: 1fr; }
  .account-role-card { gap: 20px; padding: 24px; }
  .role-options { grid-template-columns: 1fr; }
  .visual-layout { grid-template-columns: minmax(0,1fr); }
  .visual-upload input { width: 100%; }
}
@media(max-width:760px) {
  .panel { padding: 22px; }
  .panel h2 { font-size: 21px; }
  .panel h3 { font-size: 18px; }
  .project-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .project-heading h1 { font-size: 30px; }
  .project-heading .btn { font-size: 14px; padding: 10px 14px; }
  .appbar .right { margin-left: 0; width: 100%; justify-content: flex-start; }
  .appbar .right .btn { font-size: 14px; min-height: 44px; }
  .mobile-nav { position: sticky; top: 0; z-index: 20; padding: 8px 12px; scrollbar-width: thin; }
  .mobile-nav .nav-item { min-height: 44px; font-size: 14px; }
  .demo-banner { font-size: 13px; }
  .account-notice { font-size: 14px; padding: 16px; }
  .content-grid, .right-stack, .visual-results, .cloud-grid { gap: 20px; }
  .stat { padding: 18px 20px; flex-wrap: wrap; }
  .stat strong { font-size: 26px; }
  .master-main { min-width: min(100%,220px); }
  .master-right { min-width: 0; }
  .supplier-status { padding: 20px; }
  .supplier-buttons { gap: 12px; }
  .supplier-buttons .btn { flex: 1 1 auto; }
  .dialog { padding: 22px; max-height: calc(100svh - 24px); }
  .overlay { padding: 12px; }
  .dialog .actions>.btn { flex: 1 1 auto; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .undertext { font-size: 13px; }
  .table-wrap { margin: 0; }
  .table-wrap table { min-width: 520px; }
  .check-compare { align-items: flex-start; }
  .check-compare input { margin-top: 3px; }
  .design-options { grid-template-columns: 1fr; }
  .design-option { display: flex; align-items: center; }
  .design-option img { width: 86px; height: 64px; }
  .premium-home { min-height: 810px; }
  .premium-home .premium-copy { top: 160px; }
  .premium-home .hero p { font-size: 17px; }
  .premium-home .hero .actions>.btn { min-height: 48px; font-size: 17px; }
  .reference-backdrop img { top: 405px; height: calc(100% - 455px); }
  .premium-home .footer { font-size: 12px; bottom: 10px; gap: 4px; }
  .reference-footer-links { gap: 4px 18px; }
  .reference-footer-links button { font-size: 13px; }
  .premium-home .footer>span { background: transparent; padding: 0; max-width: 100%; text-align: left; }
  .company-intro h2 { font-size: 36px; letter-spacing: -1px; }
}
@media(max-width:380px) { .premium-home { min-height: 850px; } .premium-home .hero h1 { font-size: 36px; } .reference-footer-links { gap: 0; flex-direction: column; align-items: flex-start; } .reference-backdrop img { top: 410px; height: calc(100% - 505px); } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; } }

/* Connected customer, contractor and shop workflows. */
.section-intro { margin-bottom: 24px; }
.section-intro h2 { font-size: 26px; font-weight: 500; line-height: 1.3; margin: 0 0 12px; }
.section-intro p { max-width: 66ch; color: var(--muted); margin: 0; line-height: 1.7; }
.market-filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto auto; gap: 16px; align-items: end; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 20px 0 24px; }
.market-filters.shop-filters { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto auto; }
.market-filters .field { margin: 0; min-width: 0; }
.market-filters.compact { display: flex; flex-wrap: wrap; max-width: 560px; }
.market-filters.compact .field { flex: 1; min-width: 180px; }
.market-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 20px 0; }
.market-toolbar p { max-width: 60ch; color: var(--muted); }
.market-price { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.market-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.market-history { padding: 16px 20px; background: var(--surface-muted); border-radius: 6px; margin: 20px 0; }
.market-history p { font-size: 14px; margin: 6px 0; overflow-wrap: anywhere; }
.market-review, .market-quote { padding: 20px; background: var(--surface-muted); border-radius: 8px; margin: 24px 0; }
.market-review p { margin-bottom: 0; }
.market-chat { max-height: 44svh; min-height: 180px; overflow: auto; padding: 12px 4px; margin: 20px 0; display: flex; flex-direction: column; gap: 16px; }
.market-message { padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-width: 85%; align-self: flex-start; }
.market-message.mine { background: #303437; border-color: #4a4c4b; align-self: flex-end; }
.market-message b { font-size: 13px; font-weight: 500; color: #c8ad83; }
.market-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; line-height: 1.65; }
.market-message small { font-size: 12px; color: var(--muted); }
#market-form-error { color: #c8ad83; font-size: 14px; }
@media(max-width:1150px) { .market-filters, .market-filters.shop-filters { grid-template-columns: 1fr 1fr; } .market-filters>.btn { min-height: 46px; } }
@media(max-width:760px) { .market-filters, .market-filters.shop-filters { grid-template-columns: 1fr; padding: 18px; } .market-filters.compact { display: grid; } .market-toolbar { align-items: stretch; flex-direction: column; gap: 12px; } .market-message { max-width: 94%; padding: 14px 16px; } .market-price { font-size: 22px; } .section-intro h2 { font-size: 24px; } }

/* A single, explicit entry point for all participant types. */
.auth-dialog { width: min(640px,100%); padding: 28px 32px; }
.auth-dialog>.row-between { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 12px; }
.auth-dialog>.row-between>h2 { grid-column: 2; text-align: center; font-size: 22px; }
.auth-dialog>.row-between>.close { grid-column: 3; }
.auth-intro { text-align: center; margin: 22px 0 24px; }
.auth-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; background: #303437; color: var(--accent); border-radius: 12px; }
.auth-mark .icon { width: 25px; height: 25px; }
.auth-intro h3 { font-size: 25px; line-height: 1.3; margin: 16px 0 12px; font-weight: 500; letter-spacing: -.5px; }
.auth-intro p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 auto; max-width: 43ch; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #303437; padding: 4px; border-radius: 8px; margin-bottom: 28px; }
.auth-switch button { min-height: 44px; padding: 10px 12px; background: transparent; border-radius: 6px; color: #b9b7b0; font-size: 15px; }
.auth-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent); font-weight: 500; box-shadow: 0 1px 4px #302d2a12; }
.auth-participants { padding: 0; border: 0; margin: 0; min-width: 0; }
.auth-participants legend { font-size: 14px; color: #b9b7b0; padding: 0; margin-bottom: 12px; font-weight: 500; }
.auth-participant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.auth-participant { position: relative; min-height: 138px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; border: 1px solid #4a4c4b; background: var(--surface); border-radius: 8px; padding: 30px 12px 20px; cursor: pointer; }
.auth-participant input { position: absolute; right: 12px; top: 12px; }
.auth-participant b { font-size: 15px; font-weight: 500; line-height: 1.4; }
.auth-participant-icon { color: #b9b7b0; display: flex; }
.auth-participant-icon .icon { width: 27px; height: 27px; }
.auth-participant:has(input:checked) { background: #303437; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.auth-participant:has(input:checked) .auth-participant-icon { color: var(--accent); }
.auth-participant:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-primary { margin-top: 24px; }
.auth-primary .btn { min-height: 48px; }
.auth-footnote { color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; margin: 18px auto 0; max-width: 52ch; }
.auth-bottom { text-align: center; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-bottom button { background: transparent; color: var(--accent); padding: 8px 4px; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.auth-notice { font-size: 14px; line-height: 1.65; padding: 14px 16px; background: #303437; color: #c8ad83; border-radius: 6px; margin: 18px 0 0; }
.auth-hint { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }
@media(max-width:640px) { .auth-dialog { padding: 22px; } .auth-intro { margin-top: 18px; } .auth-intro h3 { font-size: 23px; } .auth-participant-grid { grid-template-columns: 1fr; gap: 10px; } .auth-participant { min-height: 64px; padding: 16px 46px 16px 18px; flex-direction: row; justify-content: flex-start; gap: 16px; } .auth-participant input { top: calc(50% - 9px); right: 18px; } .auth-switch { margin-bottom: 22px; } .auth-bottom { margin-top: 20px; } }

/* Standalone registration, with explicit progress and completion. */
.signup-dialog { width: min(700px,100%); }
.signup-dialog>.row-between>h2 { font-size: 25px; }
.signup-progress { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0; margin: 28px 0; }
.signup-progress li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.signup-progress li>span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1px solid #4a4c4b; font-size: 13px; }
.signup-progress .current { color: var(--accent); font-weight: 500; }
.signup-progress .current>span { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.signup-progress .done>span { background: #303437; color: var(--accent); border-color: #4a4c4b; }
.signup-step-heading { margin: 0 0 22px; }
.signup-step-heading>span { font-size: 13px; color: var(--muted); }
.signup-step-heading h3 { font-size: 24px; line-height: 1.3; margin: 8px 0 0; font-weight: 500; }
.signup-instruction { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 22px 0; max-width: 65ch; }
.signup-instruction h3 { color: var(--ink); font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.signup-instruction p { margin: 0; }
.signup-code { max-width: 250px; font-size: 25px!important; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.signup-secondary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.signup-verified { font-size: 14px; line-height: 1.6; color: #b9b7b0; padding: 14px 16px; background: #303437; border-radius: 6px; }
.signup-summary { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.signup-summary p { margin: 12px 0 0; line-height: 1.65; }
.signup-summary p>span { font-size: 14px; color: var(--muted); }
.signup-success { text-align: center; padding: 28px 10px 8px; }
.signup-success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; color: var(--accent); background: #303437; border-radius: 50%; }
.signup-success-icon .icon { width: 32px; height: 32px; }
.signup-success h3 { font-size: 26px; font-weight: 500; margin: 24px 0 16px; }
.signup-success p { line-height: 1.7; color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
@media(max-width:640px) { .signup-progress { gap: 7px; margin: 22px 0; } .signup-progress li { font-size: 12px; gap: 6px; } .signup-progress li>span { width: 26px; height: 26px; } .signup-step-heading h3 { font-size: 22px; } .signup-secondary .btn { width: 100%; } }

.signup-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
