:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-bottom: #eef2f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --line: rgba(148, 163, 184, 0.24);
  --line-strong: #d1d5db;
  --text: #0f172a;
  --muted: #64748b;
  --muted-dark: #475569;
  --blue: #3b8faf;
  --green: #2f7d4f;
  --red: #b54848;
  --champagne: #fff8dc;
  --champagne-strong: #8f6b25;
  --sage: #e8f8ed;
  --sage-strong: #2f7d4f;
  --porcelain: #eff8ff;
  --porcelain-strong: #2f7f9e;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  font-family:
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-bottom) 100%);
}

button,
input,
select {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(201, 213, 230, 0.72);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.9)),
    var(--porcelain);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(47, 127, 158, 0.12);
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.page {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 10px 16px 14px;
}

.surface {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.quote-card,
.metric-card,
.panel {
  padding: 14px 16px;
}

.kicker {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.quote-card h1 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #030712;
}

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

label span,
.process-strip span,
.result-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(194, 205, 220, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94)),
    #ffffff;
  color: #111827;
  padding: 7px 10px;
  font-size: 16px;
  font-weight: 510;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -9px 18px rgba(15, 23, 42, 0.035),
    0 7px 15px rgba(15, 23, 42, 0.055);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.field:focus {
  border-color: var(--blue);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 20px rgba(37, 99, 235, 0.045),
    0 0 0 4px rgba(37, 99, 235, 0.11),
    0 10px 22px rgba(37, 99, 235, 0.12);
}

.unit-field {
  position: relative;
}

.unit-field .field {
  padding-right: 32px;
}

.unit-suffix {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.field.compact {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 15px;
}

.field.kind-select {
  min-height: 34px;
  padding: 5px 22px 5px 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  text-align-last: center;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 16px rgba(15, 23, 42, 0.028),
    0 7px 16px rgba(15, 23, 42, 0.07);
}

.field.kind-select.warp-kind {
  border-color: rgba(219, 183, 93, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 253, 243, 0.98), rgba(250, 239, 196, 0.6)),
    #fff8dc;
}

.field.kind-select.weft-kind {
  border-color: rgba(111, 185, 129, 0.5);
  background:
    linear-gradient(145deg, rgba(246, 253, 248, 0.98), rgba(212, 241, 221, 0.68)),
    #e8f8ed;
}

.field.kind-select:focus {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 18px rgba(15, 23, 42, 0.04),
    0 0 0 4px rgba(37, 99, 235, 0.1),
    0 10px 20px rgba(15, 23, 42, 0.1);
}

.field.fixed-factor {
  border-color: rgba(125, 211, 252, 0.85);
  background:
    linear-gradient(145deg, rgba(246, 252, 255, 0.98), rgba(225, 243, 253, 0.9)),
    #eff8ff;
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -9px 18px rgba(14, 116, 144, 0.055),
    0 7px 16px rgba(14, 116, 144, 0.07);
  cursor: default;
}

select.field {
  appearance: auto;
}

.readonly {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 251, 0.94)),
    #f8fafc;
  font-weight: 800;
}

#salePrice {
  font-weight: 800;
}

.premium {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(241, 247, 255, 0.98) 42%,
    rgba(219, 234, 254, 0.94) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(37, 99, 235, 0.1);
}

.metric-card {
  position: relative;
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.metric-icon {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  margin-bottom: 0;
  padding: 6px;
  border-radius: 9px;
  stroke-width: 2.4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 14px rgba(15, 23, 42, 0.05),
    0 10px 22px rgba(15, 23, 42, 0.12);
}

.metric-icon.gold {
  color: var(--champagne-strong);
  background:
    linear-gradient(145deg, rgba(255, 253, 243, 0.98), rgba(250, 239, 196, 0.7)),
    var(--champagne);
}

.metric-icon.sage {
  color: var(--sage-strong);
  background:
    linear-gradient(145deg, rgba(246, 253, 248, 0.98), rgba(212, 241, 221, 0.72)),
    var(--sage);
}

.metric-icon.porcelain {
  color: var(--porcelain-strong);
  background:
    linear-gradient(145deg, rgba(246, 252, 255, 0.98), rgba(225, 243, 253, 0.9)),
    var(--porcelain);
}

.metric-card p {
  margin: 0;
  padding-right: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  color: #030712;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.side-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 9px;
}

.panel h2 {
  margin: 0;
  color: #030712;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 900;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn.primary {
  border: 1px solid rgba(47, 127, 158, 0.42);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(246, 252, 255, 0.98) 0%, rgba(225, 243, 253, 0.92) 48%, rgba(212, 241, 221, 0.72) 100%);
  color: #214e60;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -7px -9px 17px rgba(47, 127, 158, 0.1),
    0 10px 20px rgba(47, 127, 158, 0.12);
}

.btn.primary svg {
  color: #285f72;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.58));
}

.btn.secondary {
  border: 1px solid #dbe3ee;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
}

#resetButton {
  border: 1px solid rgba(125, 165, 214, 0.62);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.88) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #f8fbff 0%, #e8f2ff 46%, #cfe1f7 100%);
  color: #3c5874;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -6px -8px 16px rgba(62, 104, 153, 0.12),
    0 9px 18px rgba(45, 88, 139, 0.12);
}

#resetButton svg {
  color: #3f5f7f;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));
}

#resetButton:hover {
  border-color: rgba(96, 146, 204, 0.72);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #ffffff 0%, #edf6ff 45%, #d4e8fb 100%);
}

#resetButton:active {
  transform: translateY(1px);
  box-shadow:
    inset 2px 3px 8px rgba(71, 85, 105, 0.16),
    inset -1px -1px 0 rgba(255, 255, 255, 0.75),
    0 4px 10px rgba(15, 23, 42, 0.06);
}

.table-wrap {
  width: 100%;
  margin-top: 8px;
  overflow-x: auto;
}

.quote-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: #111827;
  font-size: 14px;
}

.quote-table th,
.quote-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.quote-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.quote-table .num {
  text-align: right;
  white-space: nowrap;
}

.quote-table output {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.quote-table tr.warp-line [data-result="yarnCost"] {
  display: inline-flex;
  min-width: 64px;
  justify-content: flex-end;
  padding: 5px 8px;
  border: 1px solid rgba(219, 183, 93, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 254, 248, 0.96), rgba(250, 239, 196, 0.38)),
    #fffaf0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 16px rgba(120, 90, 22, 0.035),
    0 5px 14px rgba(120, 90, 22, 0.05);
}

.quote-table tr.weft-line [data-result="yarnCost"] {
  display: inline-flex;
  min-width: 64px;
  justify-content: flex-end;
  padding: 5px 8px;
  border: 1px solid rgba(111, 185, 129, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 254, 250, 0.96), rgba(212, 241, 221, 0.42)),
    #f0fbf3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 16px rgba(28, 99, 54, 0.035),
    0 5px 14px rgba(28, 99, 54, 0.05);
}

.delete-cell {
  width: 44px;
  text-align: right;
}

.delete-btn {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--red);
}

.delete-btn:hover {
  background: #fff5f3;
}

.delete-btn:disabled {
  cursor: not-allowed;
  color: #cbd5e1;
}

.delete-btn:disabled:hover {
  background: transparent;
}

.process-strip,
.result-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.process-strip > *,
.result-strip > * {
  flex: 0 0 auto;
}

.process-strip > * {
  width: 110px;
}

.result-strip > * {
  width: 140px;
}

.negative {
  color: #b91c1c !important;
}

.choice-popover {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.choice-popover[hidden] {
  display: none;
}

.choice-card {
  width: min(100%, 360px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 18px;
}

.choice-card h3 {
  margin: 0 0 14px;
  color: #020617;
  font-size: 20px;
  font-weight: 900;
}

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

.choice-button {
  min-height: 72px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.choice-button.primary {
  border-color: rgba(47, 127, 158, 0.42);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(246, 252, 255, 0.98) 0%, rgba(225, 243, 253, 0.92) 48%, rgba(212, 241, 221, 0.72) 100%);
  color: #214e60;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -7px -9px 17px rgba(47, 127, 158, 0.1),
    0 10px 20px rgba(47, 127, 158, 0.12);
}

.choice-button span,
.choice-button small {
  display: block;
}

.choice-button span {
  font-size: 18px;
  font-weight: 900;
}

.choice-button small {
  margin-top: 6px;
  color: currentColor;
  font-size: 13px;
  font-weight: 750;
  opacity: 0.7;
}

.choice-cancel {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 15px;
  font-weight: 900;
}

@media (hover: hover) {
  .btn:hover,
  .choice-button:hover,
  .choice-cancel:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(190px, 0.7fr) repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 1120px) {
  .side-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar {
    position: sticky;
    min-height: auto;
    padding: 6px 8px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.13);
  }

  .brand strong {
    font-size: 15px;
  }

  .page {
    padding: 6px 6px 16px;
  }

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

  .quote-card,
  .metric-card,
  .panel {
    padding: 10px;
    border-radius: 10px;
  }

  .quote-card {
    grid-column: 1 / -1;
    display: none;
  }

  .kicker {
    display: none;
  }

  .quote-card h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
  }

  .quote-card h1 {
    font-size: 0;
  }

  .quote-card h1::before {
    content: attr(data-mobile-title);
    font-size: 24px;
    line-height: 1.1;
  }

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

  label span,
  .process-strip span,
  .result-strip span {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .field {
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 15px;
  }

  .metric-card {
    min-height: 62px;
    justify-content: flex-start;
  }

  .metric-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    display: block;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 6px;
    border-radius: 9px;
    stroke-width: 2.5;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -7px 12px rgba(15, 23, 42, 0.05),
      0 8px 16px rgba(15, 23, 42, 0.12);
  }

  .metric-card p {
    padding-right: 30px;
    font-size: 12px;
  }

  .metric-card strong {
    margin-top: 6px;
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.05;
  }

  .workspace-grid {
    gap: 8px;
    margin-top: 8px;
  }

  .side-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .panel-head {
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
  }

  .panel h2 {
    font-size: 18px;
  }

  .panel p {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.35;
  }

  .actions {
    display: grid;
    width: auto;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(70px, 1fr));
    gap: 6px;
  }

  .btn {
    min-height: 38px;
    gap: 5px;
    padding: 0 8px;
    font-size: 14px;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }

  .table-wrap {
    margin-top: 8px;
    overflow: visible;
  }

  .quote-table {
    min-width: 0;
    display: block;
    width: 100%;
    font-size: 14px;
  }

  .quote-table thead {
    display: none;
  }

  .quote-table tbody {
    display: grid;
    gap: 7px;
  }

  .quote-table tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 1fr)) !important;
    grid-auto-flow: row;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(201, 213, 230, 0.82);
    border-radius: 12px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.86)),
      rgba(255, 255, 255, 0.84);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 10px 22px rgba(15, 23, 42, 0.065);
  }

  .quote-table th,
  .quote-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .quote-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  .quote-table td:nth-child(1)::before {
    content: "类型";
  }

  .quote-table td:nth-child(2)::before {
    content: "门幅";
  }

  .quote-table td:nth-child(3)::before {
    content: "筘/纬密";
  }

  .quote-table tr.warp-line td:nth-child(3)::before {
    content: "筘号";
  }

  .quote-table tr.weft-line td:nth-child(3)::before {
    content: "T 数";
  }

  .quote-table td:nth-child(4)::before {
    content: "穿入";
  }

  .quote-table tr.weft-line td:nth-child(4)::before {
    content: "系数";
  }

  .quote-table td:nth-child(5)::before {
    content: "D数";
  }

  .quote-table td:nth-child(6)::before {
    content: "损耗";
  }

  .quote-table td:nth-child(7)::before {
    content: "纱价";
  }

  .quote-table td:nth-child(8)::before {
    content: "用量";
  }

  .quote-table td:nth-child(9)::before {
    content: "纱成本";
  }

  .quote-table td:nth-child(10)::before {
    content: "";
  }

  .field.compact {
    min-height: 38px;
    padding: 6px 8px;
    border-color: rgba(195, 206, 222, 0.92);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.94)),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -8px 16px rgba(15, 23, 42, 0.034),
      0 7px 15px rgba(15, 23, 42, 0.055);
    font-size: 15px;
  }

  .field.kind-select {
    min-height: 38px;
    padding: 6px 20px 6px 6px;
    font-size: 13px;
  }

  .quote-table .num {
    text-align: left;
  }

  .quote-table output {
    display: flex;
    min-height: 38px;
    align-items: center;
    padding: 6px 7px;
    border: 1px solid rgba(201, 211, 225, 0.9);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 251, 0.94)),
      #f8fafc;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -8px 16px rgba(15, 23, 42, 0.035),
      0 7px 15px rgba(15, 23, 42, 0.045);
    font-size: 15px;
  }

  .quote-table tr.warp-line [data-result="yarnCost"],
  .quote-table tr.weft-line [data-result="yarnCost"] {
    display: flex;
    min-width: 0;
    justify-content: flex-start;
    padding: 6px 7px;
  }

  .delete-cell {
    width: auto;
    align-self: end;
    text-align: left;
  }

  .delete-btn {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(181, 72, 72, 0.26);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 243, 0.95)),
      #fff7f3;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      inset 0 -8px 16px rgba(181, 72, 72, 0.035),
      0 7px 15px rgba(181, 72, 72, 0.055);
  }

  .delete-btn:disabled {
    border-color: rgba(203, 213, 225, 0.9);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 252, 0.92)),
      #f8fafc;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 5px 12px rgba(15, 23, 42, 0.04);
  }

  .process-strip,
  .result-strip {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

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

  .result-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-strip > *,
  .result-strip > * {
    width: auto;
  }

  .choice-card {
    width: min(100%, 330px);
    padding: 14px;
  }

  .choice-button {
    min-height: 64px;
  }

  .choice-button span {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .brand strong {
    font-size: 14px;
  }

  .metric-card strong {
    font-size: 18px;
  }

}
