:root {
  --bg: #f6f1e8;
  --paper: #fbf8f1;
  --paper-bright: #fffdf8;
  --ink: #171713;
  --muted: #625f59;
  --line: rgba(23, 23, 19, .19);
  --line-strong: rgba(23, 23, 19, .42);
  --copper: #a86f3f;
  --copper-light: #d7a277;
  --forest: #163f36;
  --green: #2d6a4f;
  --warning: #b06b2b;
  --danger: #a83d32;
  --display: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  --body: "Avenir Next", "Gill Sans", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --motion-fast: 160ms;
  --motion-base: 250ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@view-transition { navigation: auto; }
@keyframes planner-page-enter {
  from { opacity: .72; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes planner-page-exit {
  from { opacity: 1; }
  to { opacity: .82; }
}
::view-transition-old(root) { animation: planner-page-exit var(--motion-fast) ease-in both; }
::view-transition-new(root) { animation: planner-page-enter var(--motion-base) var(--ease-out) both; }

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { min-width: 320px; margin: 0; background: var(--bg); font-family: var(--body); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.i18n-pending [data-i18n] { visibility: hidden; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 0 clamp(28px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 232, .96);
}

.brand { justify-self: start; font-family: var(--display); font-size: 1.06rem; letter-spacing: .18em; }
.brand span { margin-left: .15em; color: var(--copper); }
.site-links { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 42px); }
.site-links a {
  position: relative;
  padding: 8px 0;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--motion-fast) var(--ease-out);
}
.site-links a:hover::after,
.site-links a.active::after { transform: scaleX(1); transform-origin: left; }
.site-links a.active { color: var(--copper); }
.topbar-meta { display: flex; justify-self: end; align-items: center; gap: 18px; }
.privacy-mark { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; letter-spacing: .02em; white-space: nowrap; }
.privacy-mark i { width: 7px; height: 7px; border-radius: 50%; background: #4d8265; box-shadow: 0 0 0 5px rgba(77, 130, 101, .12); }
.language-toggle {
  display: inline-flex;
  min-width: 92px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  transition: border-color var(--motion-fast), color var(--motion-fast);
}
.language-toggle:hover { border-color: var(--line-strong); }
html[lang="en"] .language-option-en,
html[lang="zh-CN"] .language-option-zh { color: var(--copper); font-weight: 600; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform var(--motion-fast), opacity var(--motion-fast); }

main { padding: 0 clamp(20px, 3.4vw, 56px) 80px; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: clamp(52px, 7vw, 108px);
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 68px) 0 clamp(36px, 4vw, 54px);
  align-items: end;
}
.kicker { margin: 0 0 16px; color: var(--copper); font-size: .75rem; letter-spacing: .16em; }
.intro h1 { margin: 0; font-family: var(--display); font-size: clamp(3.1rem, 4.7vw, 4.8rem); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.intro h1 em { color: var(--copper); font-weight: 400; }
.intro-copy > p { max-width: 570px; margin: 0 0 30px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.workflow span { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 15px 8px 0 0; color: var(--muted); font-size: .78rem; }
.workflow span::before { position: absolute; top: -1px; left: 0; width: 0; height: 1px; content: ""; background: var(--copper); transition: width .3s ease; }
.workflow .active::before { width: 54%; }
.workflow b { color: var(--ink); font-family: var(--mono); font-size: .68rem; font-weight: 500; }

.planner-shell {
  display: grid;
  grid-template-columns: minmax(520px, .93fr) minmax(520px, 1.07fr);
  gap: 18px;
  max-width: 1340px;
  margin: 0 auto;
  align-items: start;
}
.input-column, .result-column { display: grid; gap: 18px; min-width: 0; }
.panel, .viewer-panel, .result-panel { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.panel { width: 100%; padding: clamp(22px, 2.5vw, 38px); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.panel-heading > div { display: flex; align-items: center; gap: 16px; }
.panel-heading h2, .viewer-head h2 { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.section-number { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); color: var(--copper); font-family: var(--mono); font-size: .68rem; }
.row-count { color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; white-space: nowrap; }

.import-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.upload-button, .text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  cursor: pointer;
  font-size: .75rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.upload-button { gap: 9px; border-color: var(--forest); background: var(--forest); color: white; }
.upload-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.upload-button:hover, .text-action:hover { transform: translateY(-1px); }
.text-action:hover { border-color: var(--line-strong); background: white; }
.notice { margin: 0 0 16px; padding: 10px 12px; border: 1px solid rgba(45, 106, 79, .28); background: rgba(45, 106, 79, .08); color: var(--forest); font-size: .75rem; }
.notice.error { border-color: var(--danger); background: rgba(168, 61, 50, .08); color: var(--danger); }
.hidden { display: none !important; }

.cargo-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.cargo-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.cargo-table th { height: 42px; padding: 0 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.cargo-table th:first-child { width: 22%; padding-left: 0; }
.cargo-table th:nth-child(2), .cargo-table th:nth-child(3), .cargo-table th:nth-child(4) { width: 10%; }
.cargo-table th:nth-child(5) { width: 10%; }
.cargo-table th:nth-child(6) { width: 11%; }
.cargo-table th:nth-child(7) { width: 18%; }
.cargo-table th:last-child { width: 5%; }
.cargo-table td { padding: 8px 5px; border-bottom: 1px solid var(--line); }
.cargo-table td:first-child { padding-left: 0; }
.cargo-table td:last-child { padding-right: 0; text-align: right; }
.cargo-table input, .cargo-table select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,.45);
  color: var(--ink);
  font-size: .75rem;
  transition: border-color .2s, background .2s;
}
.cargo-table input:focus, .cargo-table select:focus { border-color: var(--copper); background: white; }
.cargo-table input.invalid { border-color: var(--danger); background: rgba(168, 61, 50, .05); }
.remove-row { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }
.remove-row:hover { color: var(--danger); }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 15px; border: 1px dashed var(--line-strong); background: transparent; cursor: pointer; color: var(--muted); font-size: .75rem; }
.add-row:hover { color: var(--ink); border-style: solid; }
.add-row span:first-child { color: var(--copper); font-size: 1rem; }

.settings-panel { box-shadow: none; }
.panel-heading.compact { margin-bottom: 22px; }
.container-options { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.container-card { min-width: 0; cursor: pointer; }
.container-card input { position: absolute; opacity: 0; pointer-events: none; }
.container-card span { display: flex; min-height: 78px; padding: 13px; border: 1px solid var(--line); flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.28); transition: all .2s; }
.container-card strong { font-size: 1rem; font-weight: 600; }
.container-card small { color: var(--muted); font-family: var(--mono); font-size: .6rem; line-height: 1.4; }
.container-card input:checked + span { border-color: var(--forest); background: var(--forest); color: white; box-shadow: inset 0 0 0 1px var(--forest); }
.container-card input:checked + span small { color: rgba(255,255,255,.74); }
.setting-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.setting-row > label { display: grid; gap: 8px; color: var(--muted); font-size: .75rem; }
.setting-row input, .setting-row select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.45); color: var(--ink); outline: 0; }
.input-suffix { position: relative; }
.input-suffix b { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-family: var(--mono); font-size: .58rem; font-weight: 500; }
.calculate-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin-top: 22px; padding: 0 21px; border: 1px solid var(--copper); background: var(--copper); color: var(--paper); cursor: pointer; font-family: var(--body); font-size: .8rem; letter-spacing: .05em; }
.calculate-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
.calculate-button:hover svg { transform: translateX(4px); }
.calculate-button[disabled] { cursor: wait; opacity: .65; }
.calculation-note { margin: 12px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }

.viewer-panel { position: relative; overflow: hidden; background: var(--forest); color: var(--paper); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; min-height: 96px; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.viewer-head .kicker { margin: 0 0 7px; color: var(--copper-light); }
.viewer-head h2 { color: var(--paper); }
.viewer-actions { display: flex; gap: 5px; }
.viewer-actions button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: white; cursor: pointer; }
.viewer-actions button:hover { border-color: var(--copper-light); color: var(--copper-light); }
.canvas-wrap { position: relative; aspect-ratio: 16 / 10; min-height: 390px; background: radial-gradient(circle at 50% 42%, #3d443e, #242723 72%); overflow: hidden; }
.canvas-wrap::before { position: absolute; inset: 0; content: ""; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 28px 28px; }
#loadCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
#loadCanvas:active { cursor: grabbing; }
.canvas-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 27px; color: rgba(255,255,255,.52); pointer-events: none; }
.canvas-empty p { margin: 0; font-size: .75rem; letter-spacing: .03em; }
.empty-cube { position: relative; width: 78px; height: 54px; border: 1px solid rgba(213,155,109,.7); transform: skewY(-17deg); }
.empty-cube::before, .empty-cube::after { position: absolute; content: ""; border: 1px solid rgba(213,155,109,.45); }
.empty-cube::before { inset: -17px 13px 17px -14px; }
.empty-cube::after { inset: 14px -15px -15px 14px; }
.canvas-badge { position: absolute; right: 15px; bottom: 13px; color: rgba(255,255,255,.48); font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; pointer-events: none; }
.container-switcher { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 42px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.container-switcher button { border: 0; background: transparent; color: var(--copper-light); cursor: pointer; }
.container-switcher span { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; }
.legend { display: flex; gap: 15px; min-height: 48px; padding: 14px 20px; flex-wrap: wrap; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.7); font-size: .68rem; }
.legend i { width: 9px; height: 9px; border-radius: 2px; }

.result-panel { padding: clamp(22px, 2.5vw, 34px); box-shadow: none; }
.result-status { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.status-dot { width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: #aaa59b; box-shadow: 0 0 0 6px rgba(113,109,100,.1); }
.status-dot.success { background: var(--green); box-shadow: 0 0 0 6px rgba(45,106,79,.11); }
.status-dot.warning { background: var(--warning); box-shadow: 0 0 0 6px rgba(176,107,43,.11); }
.result-status strong { font-size: 1rem; font-weight: 600; }
.result-status p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: 24px; }
.metrics article { min-height: 112px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics small { display: block; margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.metrics strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1; }
.metrics span { display: block; margin-top: 7px; color: var(--muted); font-size: .7rem; }
.comparison { margin-top: 26px; }
.comparison-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.comparison-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.comparison-head > span { color: var(--muted); font-size: .68rem; }
.comparison-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; min-height: 45px; border-bottom: 1px solid var(--line); }
.comparison-row strong { font-family: var(--mono); font-size: .67rem; }
.comparison-row .bar { height: 5px; background: rgba(28,28,24,.09); }
.comparison-row .bar i { display: block; height: 100%; background: var(--copper); }
.comparison-row span { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.comparison-row.recommended strong::after { content: "★"; margin-left: 5px; color: var(--copper); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
.result-actions button { min-height: 44px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: .75rem; }
.result-actions button:last-child { background: var(--forest); border-color: var(--forest); color: white; }
.result-actions button:disabled { opacity: .4; cursor: not-allowed; }
.report-notice { margin: 10px 0 0; padding: 9px 11px; border: 1px solid rgba(45,106,79,.28); background: rgba(45,106,79,.08); color: var(--forest); font-size: .72rem; }
.report-notice.error { border-color: var(--danger); background: rgba(168,61,50,.08); color: var(--danger); }
.result-followup { margin-top: 24px; padding: 22px; border: 1px solid rgba(168,111,63,.36); background: rgba(168,111,63,.07); }
.result-followup .kicker { margin-bottom: 9px; }
.result-followup h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.result-followup > p:not(.kicker) { max-width: 560px; margin: 8px 0 17px; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.result-followup a { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; border: 1px solid var(--forest); background: var(--forest); color: white; font-size: .75rem; }
.risk-boundary { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; line-height: 1.65; }

.print-report { display: none; }
dialog { width: min(680px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(20,18,14,.3); }
dialog::backdrop { background: rgba(20,18,14,.52); backdrop-filter: blur(4px); }
dialog form { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head > div { display: flex; align-items: center; gap: 13px; }
.dialog-head h2 { margin: 0; font-family: var(--display); font-weight: 400; }
.dialog-head > button { border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; }
dialog form > p { margin: 18px 0; color: var(--muted); font-size: .76rem; }
dialog textarea { width: 100%; resize: vertical; padding: 13px; border: 1px solid var(--line); border-radius: 0; background: white; font-family: var(--mono); font-size: .69rem; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.dialog-actions button { min-width: 100px; height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.dialog-actions button:last-child { background: var(--ink); color: white; }

@media (max-width: 1180px) {
  .privacy-mark { display: none; }
  .planner-shell { grid-template-columns: 1fr; }
  .viewer-panel { position: relative; top: auto; }
  .intro { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1400px) and (min-width: 1181px) {
  .container-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding-inline: 20px;
  }
  .topbar-meta { gap: 10px; }
  .language-toggle { min-width: 86px; height: 44px; }
  .menu-toggle { display: block; }
  .site-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 40;
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
  }
  .site-links a { min-height: 44px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-links a::after { display: none; }
  .nav-open .site-links { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
  main { padding-inline: 14px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .intro h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .planner-shell { display: flex; flex-direction: column; }
  .result-column { display: contents; }
  .viewer-panel { order: 3; width: 100%; }
  .input-column { display: contents; }
  .cargo-panel { order: 1; width: 100%; }
  .settings-panel { order: 2; width: 100%; }
  .result-panel { order: 4; width: 100%; }
  .panel-heading { align-items: flex-start; }
  .panel-heading .row-count { display: none; }
  .container-options { grid-template-columns: 1fr 1fr; }
  .canvas-wrap { min-height: 280px; }
  .setting-row { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .topbar { min-height: 72px; }
  .brand { font-size: .88rem; }
  .intro { padding-bottom: 30px; }
  .intro h1 { font-size: clamp(2.65rem, 12vw, 3.25rem); }
  .workflow span { font-size: .7rem; }
  .panel, .result-panel { padding: 19px 15px; }
  .panel-heading h2 { font-size: 1.15rem; }
  .import-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .upload-button { grid-column: 1 / -1; }
  .viewer-head { min-height: 82px; padding: 15px; }
  .viewer-head h2 { font-size: 1.15rem; }
  .canvas-wrap { aspect-ratio: 1 / 1; min-height: 0; }
  .metrics article { min-height: 100px; }
  .metrics strong { font-size: 1.65rem; }
  .result-actions { grid-template-columns: 1fr; }
}

html[lang="zh-CN"] .site-links a { letter-spacing: .04em; }
html[lang="zh-CN"] .intro h1 { line-height: 1.08; letter-spacing: -.02em; }
html[lang="zh-CN"] .intro h1 em { font-style: normal; }
html[lang="zh-CN"] .kicker { letter-spacing: .1em; }

@media (max-width: 760px) {
  html[lang="zh-CN"] .intro h1 { font-size: clamp(2.35rem, 9.7vw, 3rem); }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .topbar, main, dialog { display: none !important; }
  html, body { background: white; }
  .print-report { display: block !important; color: #1c1c18; background: white; }
  .print-page { min-height: 186mm; break-after: page; page-break-after: always; font-family: var(--body); }
  .print-page:last-child { break-after: auto; page-break-after: auto; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 5mm; border-bottom: 1px solid rgba(28,28,24,.25); }
  .print-head span { font-family: var(--display); font-size: 10pt; letter-spacing: .16em; }
  .print-head span b { color: var(--copper); font-weight: 400; }
  .print-head h1 { margin: 2mm 0 0; font-family: var(--display); font-size: 22pt; font-weight: 400; }
  .print-head p { margin: 0; color: var(--muted); font-size: 7.5pt; line-height: 1.5; text-align: right; }
  .print-container-title { display: flex; justify-content: space-between; align-items: flex-end; margin: 5mm 0 3mm; }
  .print-container-title div { display: grid; gap: 1mm; }
  .print-container-title small { color: var(--copper); font-family: var(--mono); font-size: 7.5pt; letter-spacing: .1em; text-transform: uppercase; }
  .print-container-title strong { font-family: var(--display); font-size: 20pt; font-weight: 400; }
  .print-container-title > span { color: var(--green); font-size: 7.5pt; }
  .print-visual { height: 88mm; overflow: hidden; border: 1px solid rgba(28,28,24,.16); background: #272b27; }
  .print-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .print-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3mm; border-top: 1px solid rgba(28,28,24,.2); border-left: 1px solid rgba(28,28,24,.2); }
  .print-metrics div { min-height: 17mm; padding: 3mm; border-right: 1px solid rgba(28,28,24,.2); border-bottom: 1px solid rgba(28,28,24,.2); }
  .print-metrics small { display: block; margin-bottom: 1.5mm; color: var(--muted); font-family: var(--mono); font-size: 6.5pt; text-transform: uppercase; }
  .print-metrics strong { font-family: var(--display); font-size: 15pt; font-weight: 400; }
  .print-sku { margin-top: 4mm; }
  .print-sku h2 { margin: 0 0 2mm; font-family: var(--display); font-size: 11pt; font-weight: 400; }
  .print-sku table { width: 100%; border-collapse: collapse; font-size: 7.5pt; }
  .print-sku td { padding: 1.5mm 2mm; border-bottom: 1px solid rgba(28,28,24,.13); text-align: right; }
  .print-sku td:first-child { text-align: left; }
  .print-sku i { display: inline-block; width: 2.2mm; height: 2.2mm; margin-right: 2mm; border-radius: 1px; vertical-align: middle; }
  .print-page footer { margin-top: 3mm; color: var(--muted); font-family: var(--mono); font-size: 6.5pt; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .01ms !important;
  }
}
