:root {
  --ink: #19211f;
  --muted: #65706d;
  --line: #d9ded8;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --sage: #687c68;
  --olive: #354537;
  --clay: #a7603c;
  --brass: #b99858;
  --mist: #edf1ee;
  --danger: #8f332d;
  --warning: #87621b;
  --success: #2f6e49;
  --info: #315f78;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(25, 33, 31, 0.12);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand::before {
  content: "";
  display: block;
  width: clamp(170px, 18vw, 245px);
  height: 54px;
  background: url("../brand/floorscapes-logo-web.png") center / contain no-repeat;
}

.brand > * {
  display: none !important;
}

.footer-brand::before {
  width: clamp(190px, 24vw, 285px);
  height: 64px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--olive);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: #35413e;
  font-size: 0.93rem;
}

.site-nav a {
  padding: 8px 0;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-menu[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 33, 29, 0.16);
}

.nav-menu-panel a {
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu-panel a:hover {
  background: var(--cream);
}

.nav-pill {
  border: 1px solid var(--olive);
  border-radius: 999px;
  padding: 9px 14px !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 12px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  padding: clamp(80px, 11vw, 140px) clamp(18px, 5vw, 64px) clamp(42px, 8vw, 84px);
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.76), rgba(14, 20, 18, 0.42), rgba(14, 20, 18, 0.2)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2200&q=85") center/cover;
  color: #fff;
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e5c38b;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
}

.hero p {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.detail-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.page-actions {
  margin: 18px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.product-detail-copy .button.secondary,
.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 36px 0 0;
}

.hero-facts div {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.72);
}

.not-found-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - 260px);
  padding: clamp(72px, 12vw, 150px) clamp(20px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(20, 33, 29, 0.9), rgba(20, 33, 29, 0.56)),
    url("../uploads/products/single-images/01_natural_linen_oak.png") center / cover;
  color: #fff;
}

.not-found-copy {
  align-self: center;
  max-width: 760px;
}

.not-found-copy h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
}

.not-found-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.not-found-panel {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 26px;
  background: rgba(251, 250, 246, 0.96);
  color: var(--ink);
}

.not-found-panel h2 {
  margin-top: 0;
}

dd {
  margin: 0;
  font-weight: 800;
}

.section,
.page-intro,
.product-detail {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.page-intro {
  background: var(--mist);
}

.page-intro.compact {
  padding-bottom: clamp(34px, 5vw, 56px);
}

.page-intro p {
  max-width: 840px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.category-grid,
.product-grid,
.feature-grid,
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.product-card,
.panel,
.quote-panel,
.kpi,
.feature,
details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.category-card {
  overflow: hidden;
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card strong,
.category-card span {
  display: block;
  padding-inline: 18px;
}

.category-card strong {
  padding-top: 18px;
  font-size: 1.2rem;
}

.category-card span {
  padding-bottom: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.muted-band {
  background: var(--mist);
}

.section-heading {
  margin-bottom: 26px;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

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

.feature {
  display: flex;
  align-items: center;
  min-height: 96px;
  border: 0;
  border-left: 4px solid var(--brass);
  border-radius: 0;
  padding: 16px 14px 16px 18px;
  background: #fff;
}

.feature span {
  display: none;
}

.feature strong {
  display: block;
  line-height: 1.35;
}

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

.product-card {
  position: relative;
  overflow: visible;
}

.product-card:hover,
.product-card:focus-within {
  z-index: 80;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 180ms ease, filter 180ms ease;
}

.product-thumb {
  display: block;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.product-thumb:hover img,
.product-thumb:focus-visible img,
.product-thumb:focus-within img {
  position: relative;
  z-index: 90;
  transform: scale(1.9);
  filter: saturate(1.04) contrast(1.02);
  box-shadow: 0 24px 70px rgba(20, 33, 29, 0.35);
  background: #fff;
}

.product-grid .product-card:nth-child(3n + 1) .product-thumb img {
  transform-origin: left center;
}

.product-grid .product-card:nth-child(3n) .product-thumb img {
  transform-origin: right center;
}

@media (hover: none) {
  .product-thumb img {
    cursor: default;
  }

  .product-thumb:hover img,
  .product-thumb:focus-visible img,
  .product-thumb:focus-within img {
    transform: none;
    filter: none;
  }
}

.product-swatch-image {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 78px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 33, 29, 0.18);
}

.product-swatch-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.product-card-body {
  padding: 18px;
}

.product-card-body p,
.trade-note,
.quiet,
.lead-note {
  color: var(--muted);
  line-height: 1.5;
}

.product-meta {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  color: #49524f;
  font-size: 0.92rem;
}

.price-lock {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--olive);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  border-left: 4px solid var(--brass);
  padding: 14px 14px 14px 18px;
  background: #fff;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.product-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 0;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: #fff;
}

.segmented a,
.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.segmented .active,
.segmented button.active {
  background: var(--olive);
  color: #fff;
}

.product-toolbar .segmented button.active {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(168, 95, 56, 0.16);
}

.compact-list {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 18px;
}

.po-inline-panel {
  margin-top: 18px;
}

.po-inline-form {
  gap: 12px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.product-media {
  position: relative;
  z-index: 1;
}

.product-media > img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center center;
}

.product-media > img:hover,
.product-media > img:focus-visible {
  position: relative;
  z-index: 20;
  transform: scale(1.35);
  box-shadow: 0 24px 60px rgba(20, 33, 29, 0.28);
  outline: 2px solid rgba(168, 95, 56, 0.35);
  outline-offset: 4px;
}

@media (hover: none) {
  .product-media > img {
    cursor: default;
  }

  .product-media > img:hover,
  .product-media > img:focus-visible {
    transform: none;
    box-shadow: none;
    outline: none;
  }
}

.product-detail-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.spec-grid div {
  min-height: 82px;
  padding: 14px;
  background: #fff;
}

.quote-panel,
.trade-panel,
.panel {
  padding: 22px;
}

.quote-panel,
.trade-panel {
  position: sticky;
  top: 96px;
}

label {
  display: grid;
  gap: 7px;
  color: #34403d;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
}

.login-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-hint {
  display: block;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.checkbox-label {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  color: #34403d;
  line-height: 1.5;
}

.checkbox-label input {
  margin-top: 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-row input {
  flex: 0 0 auto;
}

.settings-panel {
  max-width: 760px;
}

.settings-toggle {
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--mist);
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.quote-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.quote-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  background: #fff;
}

.quote-summary.clean div {
  align-items: center;
}

.quote-request-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.65fr);
}

.quote-product-preview {
  display: grid;
  gap: 16px;
}

.quote-product-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quote-product-preview h2 {
  margin: 6px 0 8px;
}

.quote-product-preview p {
  margin-bottom: 14px;
}

.success-box {
  border: 1px solid rgba(47, 110, 73, 0.3);
  border-radius: 8px;
  padding: 18px;
  background: #edf8f1;
}

.trade-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trade-panel p {
  color: var(--muted);
  line-height: 1.58;
}

.public-trade-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.public-trade-facts div {
  padding: 13px;
  background: #fff;
}

.panel-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.success-box strong,
.success-box span {
  display: block;
  margin-bottom: 8px;
}

.form-layout,
.account-dashboard,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}

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

.form-grid.stacked-form {
  grid-template-columns: 1fr;
}

.form-grid fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.form-grid legend {
  padding: 0 8px;
  font-weight: 800;
}

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

.side-panel {
  border-left: 4px solid var(--olive);
  padding: 22px;
  background: var(--mist);
}

.status-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 6px;
  padding: 5px 10px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status.warning { background: #fff4d8; color: #5e4100; border: 1px solid #d8ae4f; }
.status.success { background: #e8f6ed; color: #184b2f; border: 1px solid #75ad87; }
.status.danger { background: #fae8e6; color: #6d211c; border: 1px solid #c67b75; }
.status.info { background: #e5f1f6; color: #1e4e64; border: 1px solid #79a9bd; }
.status.muted { background: #eef0ef; color: #3d4643; border: 1px solid #b9c0bd; }

.admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
}

.kpi {
  padding: 20px;
}

.kpi span,
.kpi strong {
  display: block;
}

.kpi span {
  color: var(--muted);
}

.kpi strong {
  margin-top: 8px;
  font-size: 1.8rem;
}

.compact-heading {
  margin-bottom: 18px;
}

.control-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 22px;
  align-items: start;
}

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

.control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.control-card-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.control-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.control-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.control-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.control-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--mist);
}

.control-stat span,
.control-stat strong,
.settings-list dt,
.settings-list dd {
  display: block;
}

.control-stat span,
.settings-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.control-stat strong {
  margin-top: 6px;
  font-size: 1.35rem;
}

.settings-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.settings-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.communications-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.communication-list,
.communication-thread-list,
.message-timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.communication-contact,
.communication-thread {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.communication-contact {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.communication-contact span,
.communication-contact small {
  color: var(--muted);
}

.communication-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.communication-thread.active {
  border-color: var(--copper);
  box-shadow: 0 0 0 2px rgba(168, 95, 56, 0.12);
}

.communication-thread > button {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.communication-thread > button span:last-child {
  color: var(--muted);
}

.communication-thread-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.message-item {
  border-left: 4px solid var(--line);
  padding: 14px 16px;
  background: var(--mist);
}

.message-item.outbound {
  border-left-color: var(--copper);
}

.message-item.inbound {
  border-left-color: var(--olive);
}

.message-item.internal_note {
  border-left-color: var(--ink);
}

.message-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.message-item h3 {
  margin: 8px 0;
  font-size: 1rem;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(300px, 0.42fr) minmax(420px, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 190px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.message-sidebar,
.message-desk {
  min-height: 620px;
}

.mail-app {
  padding: 0;
  background: #f5f7fb;
}

.mail-ribbon {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #d6dce7;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 33, 29, 0.08);
  overflow-x: auto;
}

.ribbon-action {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 74px;
  min-height: 62px;
  border: 0;
  border-right: 1px solid #e3e7ef;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
}

.ribbon-action span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #c8d2e2;
  border-radius: 6px;
  color: #0f6cbd;
  font-size: 1.05rem;
}

.ribbon-action.primary span {
  background: #0f6cbd;
  border-color: #0f6cbd;
  color: #fff;
}

.ribbon-action.active,
.ribbon-action:hover {
  background: #eef5ff;
}

.ribbon-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ribbon-action[data-delete-selected] span {
  color: #a33b2b;
}

.outlook-shell {
  padding: 0;
}

.outlook-folders {
  border-right: 1px solid #d8dee9;
  background: #f3f6fb;
  padding: 16px 10px;
  overflow: auto;
}

.folder-heading {
  display: grid;
  gap: 4px;
  padding: 0 10px 12px;
}

.mail-folder-list,
.trade-customer-list {
  display: grid;
  gap: 4px;
}

.mail-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mail-folder:hover,
.mail-folder.active {
  background: #dcecff;
}

.mail-folder strong {
  color: #0f5fa8;
}

.folder-filter {
  display: grid;
  gap: 6px;
  margin: 16px 10px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.outlook-list {
  min-height: 620px;
  border-right: 1px solid #d8dee9;
  background: #fff;
  overflow: auto;
}

.message-list-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #d8dee9;
  background: #fff;
}

.message-list-head div {
  display: flex;
  gap: 18px;
  align-items: end;
}

.message-list-head h1 {
  margin: 0;
  border-bottom: 3px solid #0f6cbd;
  padding-bottom: 5px;
  font-size: 1rem;
}

.message-list-head span {
  color: var(--muted);
  padding-bottom: 8px;
}

.message-list-head input {
  width: 100%;
  border-radius: 4px;
  background: #f5f7fb;
}

.outlook-reading {
  padding: 0;
  background: #faf9f5;
  overflow: auto;
}

.mail-pane {
  min-height: calc(100vh - 190px);
}

.mail-pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #d8dee9;
  background: #fff;
}

.mail-pane-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.1;
}

.mail-pane-actions {
  display: flex;
  gap: 10px;
  padding: 14px 28px;
  border-bottom: 1px solid #e7ebf1;
  background: #fff;
}

.mail-compose {
  display: grid;
  gap: 18px;
  margin: 24px;
  padding: 0 0 22px;
  border: 1px solid #c8d2e2;
  border-radius: 6px;
  background: #fff;
}

.mail-compose .form-grid,
.mail-compose .page-actions,
.mail-compose .form-result {
  margin-inline: 22px;
}

.mail-compose .mail-pane-header {
  padding: 22px;
}

.mail-thread-under-reply {
  margin-top: 18px;
  border-top: 1px solid #d8dee9;
}

.mail-message-body {
  margin-top: 12px;
  color: #24302d;
  line-height: 1.65;
}

.file-attach-field input[type="file"] {
  padding: 12px;
  background: #f7f8fb;
}

.file-attach-field span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.message-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.message-toolbar input,
.message-toolbar select {
  min-width: 0;
}

.message-thread-list {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.message-thread-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.message-thread-button.active {
  background: #cfe5fb;
  box-shadow: inset 4px 0 0 #0f6cbd;
}

.message-thread-button:hover {
  background: #eef5ff;
}

.thread-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #bbede9;
  color: #15544d;
  font-size: 0.78rem;
  font-weight: 800;
}

.thread-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.thread-subject,
.message-thread-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-button small,
.chat-meta,
.email-meta,
.message-empty {
  color: var(--muted);
}

.message-thread-top,
.message-header,
.chat-meta,
.email-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.message-header {
  align-items: start;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.message-header h2,
.message-empty h2 {
  margin: 0;
}

.chat-history {
  display: grid;
  gap: 12px;
  padding: 20px 0;
}

.chat-bubble {
  max-width: 78%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.chat-bubble.sent {
  justify-self: end;
  background: #f7e8dd;
  border-color: #d4a58b;
}

.chat-bubble.received {
  justify-self: start;
  background: #fff;
}

.chat-bubble p {
  margin-bottom: 0;
}

.admin-chat-pane {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  min-height: calc(100vh - 285px);
  background: #fbfaf6;
}

.admin-chat-history {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 24px 28px;
}

.admin-chat-bubble {
  max-width: min(680px, 78%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 33, 29, 0.06);
}

.admin-chat-bubble.team {
  justify-self: end;
  border-color: #d4a58b;
  background: #f7e8dd;
}

.admin-chat-bubble.customer {
  justify-self: start;
}

.admin-chat-bubble strong,
.admin-chat-bubble small {
  display: block;
}

.admin-chat-bubble p {
  margin: 5px 0;
  line-height: 1.5;
}

.admin-chat-bubble small {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-chat-composer,
.admin-chat-ended {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  background: #fff;
}

.admin-chat-composer .page-actions {
  margin-top: 0;
}

.message-reply,
.message-compose-card {
  display: grid;
  gap: 12px;
  margin: 0 24px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.message-compose-card {
  margin: 24px;
  padding: 20px;
  border: 1px solid #d8dee9;
  border-radius: 4px;
  background: #fff;
}

.message-compose-card:not([hidden]),
.message-reply:not([hidden]) {
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  margin: 24px;
  padding: 22px;
  border: 1px solid #c8d2e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.is-composing-email #active-message-view {
  display: none;
}

.message-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
}

.blank-pane {
  min-height: calc(100vh - 190px);
  background: #faf9f5;
}

.trade-customer-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trade-customer-panel h2 {
  margin-top: 0;
  font-size: 1rem;
}

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

.trade-customer-folder {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.trade-customer-folder.active {
  background: #dcecff;
  box-shadow: none;
}

.trade-customer-folder span {
  color: var(--muted);
  font-size: 0.86rem;
}

.email-history {
  display: grid;
  gap: 0;
  padding: 20px 24px;
}

.email-record {
  padding: 20px 24px;
  border: 1px solid #ded9ce;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}

.email-record.sent {
  background: #fff;
}

.email-record-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.email-attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e4e1d8;
  color: var(--muted);
  font-size: 0.86rem;
}

.email-attachment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #c8d2e2;
  border-radius: 4px;
  background: #f7f8fb;
  color: var(--ink);
  font-weight: 700;
}

.email-attachment-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.email-attachment-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d6d1c5;
  border-radius: 4px;
  background: #fff;
  color: var(--clay);
  font-weight: 800;
  text-decoration: none;
}

.danger-link {
  border: 0;
  background: transparent;
  color: #a33b2b;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

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

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

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

details {
  padding: 18px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  color: var(--olive);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 32px;
  padding: 36px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
  justify-content: end;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
}

.legal-section h2 {
  margin-top: 0;
}

.legal-section ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 33, 29, 0.22);
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.cookie-preferences {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cookie-preferences .checkbox-label {
  padding: 0;
}

.account-help-chat {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 140;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.help-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(20, 33, 29, 0.18);
  border-radius: 8px;
  padding: 10px 14px 10px 10px;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 18px 42px rgba(20, 33, 29, 0.2);
  cursor: pointer;
}

.help-chat-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: url("../icons/favicon.svg") center / contain no-repeat;
  box-shadow: 0 0 0 1px rgba(185, 152, 88, 0.18);
}

.help-chat-toggle strong {
  font-size: 1rem;
}

.admin-chat-alert {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 145;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 158px;
  border: 1px solid rgba(185, 152, 88, 0.42);
  border-radius: 8px;
  padding: 10px 12px 10px 10px;
  background: var(--olive);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(20, 33, 29, 0.22);
}

.admin-chat-alert[hidden] {
  display: none;
}

.admin-chat-alert.needs-reply {
  border-color: var(--brass);
  box-shadow: 0 18px 42px rgba(20, 33, 29, 0.24), 0 0 0 4px rgba(185, 91, 55, 0.14);
}

.admin-chat-alert-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-chat-alert-copy strong {
  font-size: 0.98rem;
  line-height: 1;
}

.admin-chat-alert-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.admin-chat-alert b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 0.8rem;
}

.help-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 33, 29, 0.24);
}

.help-chat-panel[hidden] {
  display: none;
}

.help-chat-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
  background: var(--paper);
}

.help-chat-panel header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.help-chat-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.help-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 16px;
  background: #fbfaf6;
}

.help-chat-message {
  max-width: 88%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.help-chat-message.customer {
  justify-self: end;
  background: #f0eee7;
}

.help-chat-message.team {
  justify-self: start;
}

.help-chat-message strong,
.help-chat-message small {
  display: block;
}

.help-chat-message p {
  margin: 4px 0;
  line-height: 1.45;
}

.help-chat-message small {
  color: var(--muted);
  font-size: 0.75rem;
}

.help-chat-panel form {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.help-chat-status {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  background: #fff;
}

.help-chat-start {
  border-top: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.help-chat-panel textarea {
  min-height: 84px;
  resize: vertical;
}

@media (max-width: 1120px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand::before {
    width: 158px;
    height: 44px;
  }

  .site-nav {
    position: fixed;
    inset: 68px 10px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 33, 29, 0.18);
  }

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

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

  .product-detail,
  .form-layout,
  .account-dashboard,
  .admin-grid,
  .control-room-grid,
  .not-found-hero,
  .communications-layout,
  .messages-shell {
    grid-template-columns: 1fr;
  }

  .quote-panel,
  .trade-panel {
    position: static;
  }

  main,
  .section,
  .page-intro,
  .admin-result {
    min-width: 0;
    max-width: 100%;
  }

  .feature-grid,
  .steps,
  .admin-kpis,
  .control-card-grid,
  .control-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 2.35rem;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-facts,
  .two-col,
  .category-grid,
  .product-grid,
  .feature-grid,
  .steps,
  .admin-kpis,
  .control-card-grid,
  .control-stat-grid,
  .form-grid,
  .spec-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .product-toolbar,
  .split {
    align-items: stretch;
    flex-direction: column;
  }

  .communication-thread {
    grid-template-columns: 1fr;
  }

  .communication-thread-meta,
  .message-item-head,
  .message-thread-top,
  .message-header,
  .chat-meta {
    justify-content: start;
  }

  .message-toolbar,
  .message-header,
  .message-thread-top {
    flex-direction: column;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .admin-chat-bubble {
    max-width: 100%;
  }

  .quote-summary div {
    display: grid;
    gap: 4px;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .panel,
  .quote-panel,
  .side-panel {
    max-width: 100%;
  }

  .site-nav a,
  .site-nav .button {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav .nav-menu {
    width: 100%;
  }

  .site-nav .nav-menu summary {
    min-height: auto;
    padding: 10px 0;
  }

  .site-nav .nav-menu-panel {
    position: static;
    min-width: 0;
    border: 0;
    padding: 4px 0 0 12px;
    background: transparent;
    box-shadow: none;
  }

  .footer-links {
    justify-content: start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1 1 140px;
  }

  .account-help-chat {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .help-chat-panel {
    width: 100%;
    max-height: calc(100vh - 90px);
  }

  .help-chat-toggle {
    width: 100%;
    justify-items: start;
  }

  .admin-chat-alert {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}
