:root {
  --paper: #f7f4ee;
  --paper-2: #ebe5d9;
  --ink: #171411;
  --muted: #716a5f;
  --line: #d9d0c1;
  --line-strong: #b8a98f;
  --espresso: #31251c;
  --cocoa: #6f4b34;
  --bronze: #a78356;
  --blue: #263f5d;
  --green: #2f7d5d;
  --shadow: 0 22px 60px rgba(31, 25, 18, 0.12);
  --soft-shadow: 0 12px 32px rgba(31, 25, 18, 0.09);
  --radius: 18px;
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(167, 131, 86, 0.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(111, 75, 52, 0.11), transparent 32%),
    linear-gradient(180deg, #f6f1e8 0%, #eee6d9 46%, #e0d4c2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(49, 37, 28, 0.085) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(49, 37, 28, 0.072) 0 1px, transparent 1px 12px),
    linear-gradient(90deg, rgba(167, 131, 86, 0.066) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.18), rgba(111, 75, 52, 0.06));
  background-size: 30px 30px, 34px 34px, 78px 78px, auto;
  mix-blend-mode: multiply;
  opacity: 0.72;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.app-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 22px;
  background: transparent;
  backdrop-filter: none;
}

.brand-lockup,
.topbar-actions,
.section-heading,
.style-strip,
.total-line,
.total-meta,
.field-row,
.dialog-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 16px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.topbar-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.source-pill,
.ghost-button,
.primary-button,
.secondary-button,
.step-tab {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.source-pill[data-tone="warning"] {
  color: #8a5b12;
  border-color: rgba(138, 91, 18, 0.26);
  background: rgba(255, 241, 209, 0.72);
}

.source-pill[data-tone="warning"] .status-dot {
  background: #b8791d;
  box-shadow: 0 0 0 5px rgba(184, 121, 29, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 125, 93, 0.1);
  animation: statusBreath 2.4s ease-in-out infinite;
}

@keyframes statusBreath {
  0%, 100% {
    opacity: 0.78;
    box-shadow: 0 0 0 5px rgba(47, 125, 93, 0.1), 0 0 0 0 rgba(47, 125, 93, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(47, 125, 93, 0.14), 0 0 0 9px rgba(47, 125, 93, 0.08);
  }
}

.ghost-button,
.secondary-button {
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.primary-button {
  padding: 0 20px;
  color: #fff;
  background: var(--espresso);
  border-color: var(--espresso);
  box-shadow: var(--soft-shadow);
}

.primary-button,
.secondary-button,
.ghost-button {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
  border-color: var(--line-strong);
}

.intro-panel,
.craft-section,
.work-main,
.summary-card,
.total-card {
  border: 1px solid rgba(217, 208, 193, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.36);
  box-shadow: 0 22px 58px rgba(31, 25, 18, 0.16), 0 6px 18px rgba(31, 25, 18, 0.08);
  backdrop-filter: blur(22px) saturate(1.08);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: end;
  padding: 34px;
}

.intro-panel p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.craft-section {
  margin-top: 20px;
  padding: 24px;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.craft-card {
  position: relative;
  aspect-ratio: 487 / 467;
  min-height: 0;
  height: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px) saturate(0.92);
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 360ms ease,
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.craft-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(255, 253, 248, 0.78)),
    var(--card-image);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.88;
  filter: saturate(0.72) contrast(0.94) brightness(1.08);
  transition: opacity 360ms ease, filter 360ms ease, transform 420ms ease;
}

.craft-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--bronze);
  transition: transform 360ms ease;
}

.craft-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.craft-card.active::before,
.craft-card.active:hover::before,
.craft-card.active:focus-visible::before {
  transform: scale(1);
}

.craft-card:not(.active):hover::before {
  transform: scale(1.025);
}

.craft-card.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(167, 131, 86, 0.72);
  box-shadow: var(--shadow);
}

.craft-card.active::before {
  background:
    linear-gradient(145deg, rgba(21, 17, 14, 0.4), rgba(255, 253, 248, 0.3)),
    var(--card-image);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 1;
  filter: saturate(0.9) contrast(1.02) brightness(0.86);
}

.craft-card.active::after {
  transform: scaleX(1);
}

.craft-card > * {
  position: relative;
  z-index: 1;
}

.craft-card .eyebrow,
.craft-card p {
  transition: color 260ms ease;
}

.craft-card.active .eyebrow,
.craft-card.active p {
  color: rgba(23, 20, 17, 0.74);
}

.craft-card h3 {
  margin: 34% 0 4px;
  font-size: 28px;
}

.craft-card p {
  margin: 16px 0 20px;
  min-height: 82px;
  color: var(--muted);
  line-height: 1.7;
}

.craft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.craft-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(49, 37, 28, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.78;
  box-shadow: 0 4px 14px rgba(31, 25, 18, 0.08);
}

.craft-meta span {
  opacity: 1;
}

.craft-card.active .craft-meta span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(24, 20, 17, 0.72);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.work-main {
  min-width: 0;
  padding: 24px;
}

.style-strip {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.field,
.field-stack {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.28;
}

.field {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

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

.field > input,
.field > select,
.field > textarea {
  grid-column: 1;
}

.field > small {
  grid-column: 2;
  align-self: center;
  min-width: 20px;
  margin-top: 0;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}

.field input,
.field select,
.field textarea,
.field-stack input,
.field-stack select,
.field-stack textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.field textarea,
.field-stack textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.compact {
  min-width: 210px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin: 20px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.step-tab {
  border: 0;
  color: var(--muted);
  background: transparent;
  transition: background 260ms ease, color 260ms ease, transform 260ms ease;
}

.step-tab.active {
  color: #fff;
  background: var(--espresso);
  box-shadow: var(--soft-shadow);
}

.drawer-panel {
  min-width: 0;
  max-width: 100%;
  animation: materialDrawer 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hidden {
  display: none !important;
}

.panel-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.26);
}

.panel-card > * {
  min-width: 0;
}

.panel-card + .panel-card {
  margin-top: 16px;
}


.subroute-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: 12px;
}

.subroute-button {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(217, 208, 193, 0.78);
  border-radius: 14px;
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.34);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.subroute-button strong {
  color: var(--ink);
  font-size: 18px;
}

.subroute-button span {
  font-size: 13px;
  line-height: 1.6;
}

.subroute-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(31, 25, 18, 0.08);
}

.subroute-button.active {
  color: rgba(255, 255, 255, 0.76);
  border-color: rgba(49, 37, 28, 0.82);
  background: linear-gradient(145deg, rgba(49, 37, 28, 0.94), rgba(73, 55, 42, 0.88));
  box-shadow: 0 16px 36px rgba(31, 25, 18, 0.14);
}

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

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  column-gap: 16px;
  row-gap: 18px;
  align-items: start;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field > span,
.field-stack > span {
  display: block;
  min-height: 16px;
  line-height: 1.28;
}

.field small {
  display: block;
}

.panel-card > .field-grid,
.panel-card > .field-stack,
.panel-card > .note-box,
.panel-card > .material-select-field {
  margin: 0;
}


.note-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(247, 244, 238, 0.7);
  line-height: 1.7;
}


.material-builder-card {
  gap: 20px;
}

.material-builder-head,
.material-subhead,
.material-group-topline,
.material-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.material-builder-head p,
.material-subhead span,
.material-group-summary small {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.ratio-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.ratio-pill.ready {
  color: #0b7a55;
  background: rgba(225, 248, 238, 0.72);
}

.ratio-pill.warning {
  color: #8a5b12;
  background: rgba(255, 241, 209, 0.76);
}

.material-group-list {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.material-group-card {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(217, 208, 193, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.material-group-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.55fr);
  min-width: 0;
  align-items: end;
}

.material-group-topline.can-delete {
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.55fr) auto;
}
.material-route-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: 10px;
}

.material-route-pill {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  color: var(--muted);
  border: 1px solid rgba(217, 208, 193, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.material-route-pill strong {
  color: var(--ink);
  font-size: 14px;
}

.material-route-pill span {
  font-size: 12px;
  line-height: 1.45;
}

.material-route-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 37, 28, 0.28);
  box-shadow: 0 10px 24px rgba(31, 25, 18, 0.08);
}

.material-route-pill.active {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(49, 37, 28, 0.82);
  background: linear-gradient(145deg, rgba(49, 37, 28, 0.94), rgba(73, 55, 42, 0.88));
  box-shadow: 0 14px 30px rgba(31, 25, 18, 0.12);
}

.material-route-pill.active strong {
  color: #fff;
}

.route-field-grid {
  padding: 12px;
  border: 1px solid rgba(217, 208, 193, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
}

.route-readonly {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.route-readonly strong {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  color: var(--ink);
}

.woven-material-card {
  gap: 18px;
}

.woven-material-topline {
  grid-template-columns: minmax(0, 1fr);
}

.woven-material-topline.can-delete {
  grid-template-columns: minmax(0, 1fr) auto;
}

.woven-conversion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(217, 208, 193, 0.68);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.74);
}

.woven-conversion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.woven-conversion-result {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.woven-conversion-result div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.woven-conversion-result span {
  color: var(--muted);
}

.woven-conversion-result strong {
  white-space: nowrap;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.woven-conversion-result .highlight {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.woven-conversion-result .highlight strong {
  color: var(--blue);
}

.leather-mode-tag {
  border-color: rgba(196, 137, 44, 0.32);
  background: rgba(255, 246, 226, 0.72);
}

.leather-material-card {
  gap: 14px;
  padding: 16px;
}

.leather-material-topline {
  grid-template-columns: minmax(0, 1fr) auto;
}

.leather-material-topline.can-delete {
  grid-template-columns: minmax(0, 1fr) auto;
}

.leather-conversion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(217, 208, 193, 0.6);
  border-radius: 14px;
  background: rgba(245, 245, 247, 0.82);
}

.leather-component-head {
  margin-top: 2px;
}

.leather-component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px minmax(180px, 0.42fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.leather-price-note {
  min-height: 48px;
}

.leather-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.36fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px dashed rgba(49, 37, 28, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.64);
}

.leather-treatment-drawer {
  border: 1px solid rgba(217, 208, 193, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.leather-treatment-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.leather-treatment-drawer summary strong {
  color: var(--ink);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.leather-treatment-grid {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.leather-material-summary strong {
  color: var(--ink);
}

.leather-route-note {
  margin: 0;
}

.material-group-summary {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.74);
  border: 1px solid rgba(217, 208, 193, 0.68);
}

.material-group-summary strong,
.component-price strong,
.treatment-card b {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

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

.component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(180px, 0.45fr);
  min-width: 0;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.component-row.can-delete {
  grid-template-columns: minmax(0, 1fr) 120px minmax(180px, 0.45fr) auto;
}

.component-price {
  display: grid;
  gap: 6px;
  min-height: 46px;
  align-content: center;
  color: var(--muted);
  font-size: 12px;
}

.component-price strong {
  color: var(--ink);
  font-size: 14px;
}

.add-material-button,
.add-component-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(49, 37, 28, 0.16);
  border-radius: 14px;
  color: #fff;
  background: var(--espresso);
  box-shadow: 0 14px 28px rgba(31, 25, 18, 0.14);
}

.add-component-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.icon-delete {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(142, 42, 34, 0.72);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #b6453b, #8f2e28);
  box-shadow: 0 10px 22px rgba(142, 42, 34, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.icon-delete:hover,
.icon-delete:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #c44c41, #7f2924);
  box-shadow: 0 14px 26px rgba(142, 42, 34, 0.24);
}


.icon-delete-small {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  align-self: center;
  padding: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.icon-delete-small span {
  transform: translateY(-1px);
}.icon-delete:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

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

.treatment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.treatment-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.treatment-card.active {
  border-color: rgba(49, 37, 28, 0.54);
  background: rgba(247, 244, 238, 0.88);
  box-shadow: 0 12px 24px rgba(31, 25, 18, 0.1);
}

.treatment-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--espresso);
}

.treatment-card strong,
.treatment-card small {
  display: block;
}

.treatment-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.treatment-card b {
  white-space: nowrap;
}.process-grid,
.aux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.process-card,
.aux-row,
.source-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.process-card {
  position: relative;
  min-height: 124px;
  padding: 16px;
  transition:
    border-color 280ms ease,
    transform 280ms ease,
    box-shadow 280ms ease,
    background 280ms ease;
}

.process-card:hover {
  transform: translateY(-2px);
}

.process-card.active {
  border-color: var(--bronze);
  background: rgba(250, 246, 236, 0.95);
  box-shadow: inset 0 0 0 1px rgba(167, 131, 86, 0.26), var(--soft-shadow);
}

.process-card .price-slide {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  transform: translateY(3px);
  opacity: 0.75;
  transition: transform 280ms ease, opacity 280ms ease;
}

.process-card.active .price-slide {
  transform: translateY(0);
  opacity: 1;
}

.process-card label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.process-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--bronze);
}

.process-card strong {
  display: block;
  margin-bottom: 7px;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.aux-row {
  display: grid;
  grid-template-columns: 1fr 90px 120px 96px;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.aux-row input,
.aux-row select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.7);
}

.auxiliary-card {
  gap: 18px;
}

.aux-list {
  display: grid;
  gap: 14px;
}

.aux-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 1.25fr) minmax(168px, 0.5fr) minmax(150px, 0.45fr) minmax(112px, 0.28fr) 36px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px 14px 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--bronze);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 20px rgba(31, 25, 18, 0.05);
}

.aux-card:nth-child(2n) {
  border-left-color: #8a8e94;
}

.aux-card:nth-child(3n) {
  border-left-color: #c6504a;
}

.aux-select-field select {
  min-height: 42px;
}

.aux-qty-field small {
  color: var(--muted);
  line-height: 1.5;
}

.aux-price-input {
  position: relative;
  display: block;
  align-items: center;
}

.aux-price-input::before {
  position: absolute;
  left: 11px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted);
  content: "¥";
  pointer-events: none;
}

.aux-price-input input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px 0 30px;
  background: rgba(255, 255, 255, 0.78);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
}

.aux-stepper input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
}

.aux-qty-field {
  display: grid;
  gap: 7px;
}

.aux-qty-field > span,
.aux-total span {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.aux-qty-control {
  display: grid;
  grid-template-columns: minmax(126px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.aux-qty-control small {
  white-space: nowrap;
}

.aux-stepper {
  display: grid;
  grid-template-columns: 36px minmax(48px, 1fr) 36px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.aux-stepper button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.aux-stepper button:hover {
  background: rgba(167, 131, 86, 0.12);
  color: var(--espresso);
}

.aux-stepper input {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
  background: transparent;
}

.aux-total {
  display: grid;
  gap: 6px;
  text-align: right;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.aux-total strong {
  font-size: 16px;
}

.aux-delete {
  justify-self: center;
}

.add-aux-button {
  min-height: 52px;
  border: 1px solid rgba(167, 131, 86, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(167, 131, 86, 0.2)),
    var(--espresso);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(49, 37, 28, 0.18);
  cursor: pointer;
}

.add-aux-button:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(185, 146, 92, 0.24)),
    #3c2b21;
  transform: translateY(-1px);
}

.aux-total {
  text-align: right;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.summary-rail {
  position: sticky;
  top: 94px;
  display: grid;
  min-width: 0;
  gap: 16px;
}

.total-card {
  padding: 26px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent),
    #191613;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 54px rgba(31, 25, 18, 0.24), 0 8px 18px rgba(31, 25, 18, 0.14);
}

.total-card .eyebrow,
.total-card small,
.total-card .total-meta {
  color: rgba(255, 255, 255, 0.68);
}

.total-line {
  gap: 8px;
  margin: 8px 0 22px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.total-line span {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.total-meta {
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-card {
  padding: 22px;
}

.ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
}

.cost-ring {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  background: conic-gradient(var(--espresso) 0 55%, var(--bronze) 55% 72%, var(--blue) 72% 86%, #d9d3c8 86% 100%);
  box-shadow: inset 0 0 0 1px rgba(49, 37, 28, 0.08), 0 14px 34px rgba(31, 25, 18, 0.12);
  transition: background 420ms ease;
}

.ring-center {
  display: none;
}

.layer-list,
.source-list {
  display: grid;
  gap: 10px;
}

.provenance-card .source-list {
  gap: 12px;
  margin-top: 14px;
}

.layer-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.layer-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.layer-value {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.source-item {
  padding: 12px;
}

.source-item strong {
  display: block;
  margin-bottom: 5px;
}

.source-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.export-actions p {
  color: var(--muted);
  line-height: 1.7;
}

.export-actions button {
  width: 100%;
  margin-top: 10px;
}

.export-save-hint {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.export-dialog {
  width: min(920px, calc(100vw - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.export-dialog::backdrop {
  background: rgba(21, 18, 15, 0.55);
  backdrop-filter: blur(8px);
}

.export-sheet {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  animation: paperLift 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.export-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.export-head img {
  width: 104px;
  height: 58px;
  object-fit: contain;
}

.export-head p {
  margin: 0 0 5px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.export-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.export-summary div,
.export-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.export-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.export-summary strong {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
}

.export-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.export-table th,
.export-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.export-table th:last-child,
.export-table td:last-child {
  text-align: right;
}

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

.dialog-actions {
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 50;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: var(--espresso);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

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

@keyframes paperLift {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  animation: reveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

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

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .summary-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 18px 14px 48px;
  }

  .topbar,
  .intro-panel,
  .section-heading,
  .style-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .intro-panel,
  .craft-grid,
  .field-grid,
  .field-grid.two,
  .subroute-switch,
  .material-group-topline,
  .material-group-topline.can-delete,
  .material-route-selector,
  .woven-conversion-panel,
  .woven-conversion-grid,
  .leather-conversion-panel,
  .leather-component-row,
  .leather-custom-row,
  .component-row,
  .component-row.can-delete,
  .process-grid,
  .aux-card,
  .secondary-input-grid,
  .secondary-input-grid.has-woven-usage,
  .secondary-usage-fields,
  .summary-rail,
  .export-summary {
    grid-template-columns: 1fr;
  }

  .step-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 12px;
  }

  .aux-row {
    grid-template-columns: 1fr;
  }

  .aux-total {
    text-align: left;
  }

  .aux-delete {
    justify-self: end;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell,
  .dialog-actions {
    display: none;
  }

  .export-dialog {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
  }

  .export-sheet {
    box-shadow: none;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}












.editable-title {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 42px;
  padding: 3px 8px 5px;
  margin-left: -8px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: text;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.editable-title:hover,
.editable-title:focus-visible {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(176, 145, 95, 0.42);
  box-shadow: 0 8px 24px rgba(46, 37, 27, 0.08);
  outline: none;
}
.style-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.title-edit-row {
  display: flex;
  align-items: center;
  width: min(100%, 920px);
  gap: 8px;
}

.title-edit-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(104, 99, 89, 0.72);
  pointer-events: none;
}
.secondary-builder-card {
  gap: 20px;
}

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

.secondary-add-card,
.secondary-toggle {
  border: 1px solid rgba(49, 37, 28, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.secondary-add-card {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 14px;
}

.secondary-add-card:hover,
.secondary-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 26px rgba(31, 25, 18, 0.08);
}

.secondary-add-card span,
.secondary-toggle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.secondary-list {
  display: grid;
  gap: 16px;
}

.secondary-card,
.empty-secondary-state {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(217, 208, 193, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.secondary-card {
  position: relative;
}

.empty-secondary-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.secondary-topline {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr) minmax(160px, 0.55fr);
  gap: 12px;
  align-items: end;
  padding-right: 42px;
}

.secondary-topline.can-delete {
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr) minmax(160px, 0.55fr) auto;
}

.static-field {
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  justify-content: center;
}

.static-field strong {
  font-size: 15px;
  line-height: 1.25;
}

.secondary-card-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #b94a45;
  border-color: rgba(137, 42, 38, 0.35);
  box-shadow: 0 10px 20px rgba(95, 42, 36, 0.18);
}

.secondary-card-delete:hover {
  background: #9f3733;
  transform: translateY(-1px);
}

.secondary-input-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.44fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.secondary-input-grid.has-woven-usage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.secondary-usage-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.secondary-usage-fields .field {
  min-width: 0;
}

.auto-metric {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.62);
}

.auto-metric span,
.auto-metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auto-metric strong {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

.secondary-toggle {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  text-align: center;
}

.secondary-component-list .component-row {
  background: rgba(255, 255, 255, 0.54);
}

html {
  scroll-behavior: smooth;
}

.site-shell {
  max-width: 1680px;
}

.site-topbar {
  margin-bottom: 18px;
  padding-inline: clamp(14px, 1.8vw, 24px);
  border-bottom: 1px solid rgba(42, 43, 43, 0.18);
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(18px);
}

.site-brand-lockup {
  color: inherit;
  text-decoration: none;
}

.site-brand-lockup h1 {
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #343434;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(42, 43, 43, 0.18);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.site-hero,
.site-section,
.costing-tool-section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 112px;
}

.site-hero {
  min-height: clamp(560px, 74vh, 760px);
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 0.92fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 56px);
  border: 1px solid rgba(42, 43, 43, 0.16);
  border-radius: 8px;
  background: #b89976;
  box-shadow: 0 30px 80px rgba(21, 21, 20, 0.13);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 26, 18, 0.18) 0%, rgba(236, 220, 198, 0.08) 45%, rgba(249, 248, 244, 0.54) 66%, rgba(249, 248, 244, 0.86) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(54, 42, 31, 0.16));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  filter: saturate(0.78) contrast(0.92) brightness(1.06);
}

.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: center;
  max-width: 720px;
  margin-left: auto;
  padding: clamp(24px, 3.6vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(248, 246, 239, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 28px 70px rgba(72, 49, 30, 0.16);
  backdrop-filter: blur(28px) saturate(1.16);
}

.hero-copy h2 {
  margin: 0;
  color: rgba(45, 49, 50, 0.92);
  font-size: clamp(54px, 7.8vw, 112px);
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy > p {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(50, 50, 48, 0.86);
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.8;
}

.hero-copy .eyebrow {
  color: rgba(61, 58, 52, 0.76);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  text-decoration: none;
}

.site-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.hero-note {
  z-index: 1;
  position: absolute;
  right: clamp(22px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 36px);
  display: flex;
  gap: 18px;
  color: rgba(44, 43, 40, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-section {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(42, 43, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 54px rgba(31, 25, 18, 0.09);
  backdrop-filter: blur(18px);
}

.site-section-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.site-section-head h2 {
  color: #262626;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 900;
  line-height: 0.98;
}

.site-section-head.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.site-section-head.split > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-grid,
.tool-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.company-profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: 18px;
  margin-bottom: 16px;
}

.company-profile-copy,
.company-facts,
.company-flow article {
  border: 1px solid rgba(42, 43, 43, 0.15);
  border-radius: 8px;
  background: rgba(250, 249, 246, 0.72);
}

.company-profile-copy {
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
}

.company-profile-copy h3 {
  max-width: 760px;
  margin-bottom: 0;
  color: #262626;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 0.98;
}

.company-profile-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #5f5d59;
  font-size: 16px;
  line-height: 1.9;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.company-facts div {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid rgba(42, 43, 43, 0.12);
  border-bottom: 1px solid rgba(42, 43, 43, 0.12);
}

.company-facts div:nth-child(2n) {
  border-right: 0;
}

.company-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.company-facts strong {
  color: #363636;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.company-facts span {
  margin-top: 12px;
  color: #74716b;
  font-size: 13px;
  font-weight: 800;
}

.about-grid article,
.tool-card,
.contact-card {
  border: 1px solid rgba(42, 43, 43, 0.15);
  border-radius: 8px;
  background: rgba(250, 249, 246, 0.72);
}

.about-grid article {
  min-height: 220px;
  padding: 22px;
}

.detail-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: #757575;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-grid h3,
.product-card h3,
.tool-card h3 {
  color: #262626;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.08;
}

.about-grid p,
.product-card p,
.tool-card p {
  margin: 14px 0 0;
  color: #66615b;
  line-height: 1.75;
}

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

.company-flow article {
  position: relative;
  min-height: 240px;
  padding: 22px;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border: 1px solid rgba(42, 43, 43, 0.18);
  border-radius: 50%;
  color: #575757;
  font-size: 12px;
  font-weight: 900;
}

.company-flow h3 {
  margin-bottom: 0;
  color: #262626;
  font-size: 24px;
}

.company-flow p {
  margin: 14px 0 0;
  color: #66615b;
  line-height: 1.75;
}

.about-section,
.company-section {
  border: 1px solid rgba(42, 43, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 54px rgba(31, 25, 18, 0.09);
  backdrop-filter: blur(18px);
}

.about-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(253, 252, 248, 0.98), rgba(253, 252, 248, 0.9)),
    #fdfcf8;
}

.about-cover::before {
  content: "FORTEZZA UOMO";
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 2;
  color: rgba(42, 43, 43, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.about-cover-media {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, 0.02), rgba(20, 19, 17, 0.5)),
    url("./1.png");
  background-size: cover;
  background-position: 46% center;
  filter: saturate(0.82) contrast(0.96);
}

.about-cover-media::before {
  content: "FU";
  position: absolute;
  top: 28px;
  left: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(82px, 11vw, 160px);
  font-weight: 900;
  line-height: 0.8;
}

.about-cover-media::after {
  content: "QUALITY / SELECTION / SUPPLY";
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.about-cover-content {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 34px;
  padding: clamp(30px, 4vw, 58px);
}

.about-cover-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(42, 43, 43, 0.16);
  color: #6b6964;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-cover-label span:last-child {
  color: #262626;
}

.about-cover-copy {
  display: grid;
  gap: 20px;
}

.about-cover-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f6b63;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-cover-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(42, 43, 43, 0.34);
}

.about-cover h2 {
  max-width: 820px;
  margin: 0;
  color: #8f8b82;
  font-size: 88px;
  font-weight: 900;
  line-height: 1.08;
}

.about-cover h2 span {
  display: block;
  text-align: left;
}

.about-cover h2 .title-ink {
  color: #242424;
}

.about-cover-copy p {
  max-width: 850px;
  margin: 0;
  color: #5f5d59;
  font-size: 17px;
  line-height: 1.95;
}

.about-cover-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(42, 43, 43, 0.16);
  border-bottom: 1px solid rgba(42, 43, 43, 0.16);
}

.about-cover-stats div {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  align-content: start;
  min-height: 118px;
  padding: 22px 20px 20px 0;
}

.about-cover-stats div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(42, 43, 43, 0.12);
}

.about-cover-stats strong {
  display: block;
  color: #343434;
  font-size: 52px;
  line-height: 0.95;
  white-space: nowrap;
}

.about-cover-stats span {
  display: block;
  color: #74716b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.about-cover-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: end;
}

.about-cover-path article {
  position: relative;
  min-height: 178px;
  padding-top: 22px;
  border-top: 2px solid rgba(42, 43, 43, 0.2);
}

.about-cover-path article::before {
  content: attr(data-step);
  display: inline-flex;
  margin-bottom: 38px;
  color: #8b877d;
  font-size: 12px;
  font-weight: 900;
}

.about-cover-path h3 {
  color: #262626;
  font-size: 24px;
}

.about-cover-path p,
.about-cover-services p {
  margin: 14px 0 0;
  color: #66615b;
  line-height: 1.75;
}

.about-cover-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(42, 43, 43, 0.14);
}

.about-cover-services article {
  padding: 20px 26px 0 0;
}

.about-cover-services article + article {
  padding-left: 26px;
  border-left: 1px solid rgba(42, 43, 43, 0.12);
}

.product-section {
  padding-inline: clamp(14px, 2.4vw, 28px);
  border: 0;
  border-top: 1px solid rgba(42, 43, 43, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.about-section .site-section-head,
.company-section .site-section-head {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(42, 43, 43, 0.16);
}

.about-section .site-section-head h2,
.company-section .site-section-head h2 {
  max-width: 780px;
}

.company-profile-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.company-profile-copy {
  min-height: 0;
  padding: 34px 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 43, 43, 0.14);
  border-radius: 0;
  background: transparent;
}

.company-profile-copy h3 {
  max-width: 980px;
  font-size: clamp(32px, 5vw, 72px);
}

.company-profile-copy p {
  max-width: 900px;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-bottom: 1px solid rgba(42, 43, 43, 0.14);
  border-radius: 0;
  background: transparent;
}

.company-facts div,
.company-facts div:nth-child(2n),
.company-facts div:nth-last-child(-n + 2) {
  min-height: 132px;
  padding: 24px 22px 24px 0;
  border-right: 0;
  border-bottom: 0;
}

.company-facts div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(42, 43, 43, 0.12);
}

.about-section .about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid rgba(42, 43, 43, 0.14);
}

.about-section .about-grid article {
  min-height: 0;
  padding: 28px 26px 32px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.about-section .about-grid article + article {
  padding-left: 26px;
  border-left: 1px solid rgba(42, 43, 43, 0.12);
}

.company-flow {
  gap: 0;
  border-top: 1px solid rgba(42, 43, 43, 0.14);
  border-bottom: 1px solid rgba(42, 43, 43, 0.14);
}

.company-flow article {
  min-height: 0;
  padding: 26px 24px 30px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.company-flow article + article {
  padding-left: 24px;
  border-left: 1px solid rgba(42, 43, 43, 0.12);
}

.flow-step {
  width: auto;
  height: auto;
  margin-bottom: 58px;
  border: 0;
  border-radius: 0;
  color: #8a8780;
  font-size: 12px;
  justify-content: flex-start;
}

.product-card {
  display: grid;
  grid-template-rows: minmax(360px, 27vw);
  align-items: end;
  border: 1px solid rgba(42, 43, 43, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 18px 52px rgba(44, 34, 24, 0.1);
}

.product-card img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.92) brightness(1.04);
}

.product-card div {
  grid-area: 1 / 1;
  align-self: end;
  margin: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(248, 246, 239, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 48px rgba(57, 42, 28, 0.14);
  backdrop-filter: blur(24px) saturate(1.12);
}

.product-card .detail-label {
  color: rgba(69, 67, 62, 0.72);
}

.tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 300px;
  padding: 22px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 43, 43, 0.28);
  box-shadow: 0 16px 36px rgba(31, 25, 18, 0.1);
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.tool-status,
.tool-index {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(42, 43, 43, 0.16);
  border-radius: 999px;
  color: #565656;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.is-ready .tool-status {
  color: #1f6a4d;
  border-color: rgba(31, 106, 77, 0.26);
  background: rgba(223, 244, 235, 0.78);
}

.is-reserved .tool-status {
  color: #737373;
  background: rgba(240, 240, 238, 0.86);
}

.tool-card .site-button {
  width: 100%;
  margin-top: 24px;
}

.costing-tool-section {
  scroll-margin-top: 96px;
  margin-top: 24px;
}

.tool-workbench-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(42, 43, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 46px rgba(31, 25, 18, 0.08);
}

.tool-workbench-heading h2 {
  font-size: clamp(28px, 4vw, 54px);
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.contact-card {
  min-width: min(100%, 480px);
  padding: 22px;
  color: #4b4b4b;
}

.contact-card p,
.contact-card span {
  display: block;
  margin: 0;
  color: #66615b;
  line-height: 1.7;
}

.contact-card a {
  display: inline-flex;
  margin: 8px 0;
  color: #242424;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 1081px) and (max-width: 1240px) {
  .about-cover h2 {
    font-size: 72px;
  }

  .about-cover-stats strong {
    font-size: 42px;
  }
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    width: 100%;
    opacity: 1;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(250, 249, 246, 0.34), rgba(250, 249, 246, 0.82) 42%, rgba(250, 249, 246, 0.92)),
      linear-gradient(90deg, rgba(52, 37, 24, 0.12), rgba(255, 255, 255, 0.24));
  }

  .hero-copy {
    grid-column: 1;
    margin-left: 0;
    max-width: 720px;
  }

  .about-grid,
  .about-cover,
  .about-cover-stats,
  .about-cover-path,
  .about-cover-services,
  .company-profile-panel,
  .company-flow,
  .tool-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .about-cover-media {
    min-height: 320px;
  }

  .about-cover-content {
    padding: 24px;
  }

  .about-cover h2 {
    font-size: 44px;
  }

  .about-cover-stats div,
  .about-cover-stats div + div {
    min-height: 118px;
    padding: 22px 0;
    border-left: 0;
    border-bottom: 0;
  }

  .about-cover-stats strong {
    font-size: 36px;
  }

  .about-cover-path article {
    min-height: 0;
  }

  .about-cover-path article::before {
    margin-bottom: 22px;
  }

  .about-cover-services article,
  .about-cover-services article + article {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .about-cover-services article + article {
    border-top: 1px solid rgba(42, 43, 43, 0.12);
  }

  .product-card {
    grid-template-rows: minmax(360px, 86vw);
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .company-facts div,
  .company-facts div:nth-child(2n),
  .company-facts div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(42, 43, 43, 0.12);
  }

  .company-facts div:last-child {
    border-bottom: 0;
  }

  .about-section .about-grid,
  .company-flow {
    grid-template-columns: 1fr;
  }

  .about-section .about-grid article,
  .about-section .about-grid article + article,
  .company-flow article,
  .company-flow article + article {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(42, 43, 43, 0.12);
  }

  .about-section .about-grid article:last-child,
  .company-flow article:last-child {
    border-bottom: 0;
  }

  .flow-step {
    margin-bottom: 22px;
  }
}

@media (max-width: 430px) {
  .about-cover h2 {
    font-size: 38px;
  }
}

@media (max-width: 860px) {
  .site-topbar,
  .site-section-head.split,
  .tool-workbench-heading,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .contact-card {
    width: 100%;
    min-width: 0;
  }

  .hero-copy h2 {
    max-width: 100%;
    font-size: clamp(40px, 11vw, 50px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-note {
    position: static;
    margin-top: 34px;
    flex-direction: column;
    gap: 6px;
  }

  .site-section,
  .tool-workbench-heading {
    padding: 20px;
  }
}
