/* =============================================================
   Used-vehicle export configurator — mockup
   style.css
   ============================================================= */

:root {
  --bg:        #f4f7fb;
  --bg-2:      #ffffff;
  --bg-3:      #edf2f8;
  --line:      #d3dce8;
  --line-soft: #e3e9f1;
  --ink:       #0f2238;
  --ink-2:     #4a5b70;
  --ink-3:     #7d8a9c;
  --gold:      #1f6fd1;
  --gold-2:    #0d55b0;
  --gold-dim:  rgba(31,111,209,.10);
  --danger:    #c8443a;
  --ok:        #2e9a5c;

  --f-cond: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  --f-sans: 'Noto Sans JP', system-ui, -apple-system, sans-serif;

  --r: 10px;
  --stage-h: clamp(240px, 42vh, 480px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(31,111,209,.055), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(31,111,209,.06), transparent 65%),
    var(--bg);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------- top bar ---------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-cond);
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.brand-sep { color: var(--gold); font-weight: 300; }
.brand-product {
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
}

.tagline {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cur-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  background: var(--bg-2);
}
.cur-label {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#currency {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--gold-2);
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
}
#currency option { background: var(--bg-3); color: var(--ink); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-2);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--f-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 6px 13px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-on {
  background: var(--gold);
  color: #ffffff;
}

/* ---------------- layout ---------------- */
.app {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr);
  gap: clamp(16px, 2.2vw, 32px);
  padding: clamp(16px, 2.2vw, 30px) clamp(16px, 3vw, 40px) 24px;
  align-items: start;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
}

/* ---------------- stage ---------------- */
.stage-col {
  position: sticky;
  top: 78px;
  min-width: 0;
}

.stage {
  position: relative;
  height: var(--stage-h);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  background: #eef3f9;
}

/* the lighting rig: radial falloff + blended photo = "lit studio" */
.stage-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 64% 58% at 50% 50%,
              #ffffff 0%, #f3f7fc 42%, #e2eaf4 78%, #d6e0ec 100%);
}

#carImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 14px 14px rgba(15,34,56,.18));
  transition: opacity .34s ease;
  will-change: opacity;
}
#carImg.is-fading { opacity: 0; }

.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%,
              transparent 55%, rgba(170,190,215,.35) 100%);
}

.stage-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}
.badge {
  font-family: var(--f-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(31,111,209,.32);
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.badge-model {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}
.badge-kit {
  border-color: rgba(31,111,209,.6);
  color: var(--gold-2);
}

/* "reference image" flag: shown whenever the photograph contains
   parts the dealer has NOT selected. Honesty beats prettiness in a
   quotation tool. */
.badge-ref {
  background: rgba(200,68,58,.14);
  border-color: rgba(200,68,58,.65);
  color: #c8443a;
}

.stage-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
  z-index: 3;
  text-shadow: none;
}

/* the photo is a representative car of this colour, not necessarily this
   grade. When the chosen lot genuinely looks different, the stage says so
   so the picture is never read as the car just selected. */
.stage-look {
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--gold-2);
  background: rgba(31,111,209,.09);
  border-left: 2px solid var(--gold);
  padding: 7px 10px;
  border-radius: 0 4px 4px 0;
}
.stage-look[hidden] { display: none; }

/* the same warning, inline on the lot card */
.opt-sub.lot-look {
  color: var(--gold-2);
  opacity: .95;
}

/* mileage ladder: the price move from the lot's own odometer.
   Shown in the row itself so the buyer sees the trade before
   clicking, not after. */
.km-delta {
  color: var(--gold-2);
  font-weight: 500;
  white-space: nowrap;
}

/* a physically impossible odometer must warn, not fail silently */
.panel-note.is-warn {
  color: var(--danger, #c8443a);
  margin-top: 6px;
}

/* shown when the photograph for this model has not been shot yet.
   A missing photo must never look like a broken image in a sales
   meeting, and must never pretend a car is there. */
.stage-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.stage-empty[hidden] { display: none; }
.empty-code {
  font-family: var(--f-cond);
  font-size: clamp(30px, 7vw, 50px);
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(31,111,209,.6);
  line-height: 1;
}
.empty-note {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.stage-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 12px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.meta-item {
  background: var(--bg-2);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.meta-label {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-item strong {
  font-family: var(--f-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- panel ---------------- */
.panel-col { min-width: 0; }

.steps {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.steps::-webkit-scrollbar { display: none; }

.step-pill {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .18s;
  flex-shrink: 0;
}
.step-pill .num {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-3);
}
.step-pill:hover { border-color: var(--gold); color: var(--ink-2); }
.step-pill.is-done { color: var(--ink-2); border-color: var(--line); }
.step-pill.is-done .num { color: var(--ok); }
.step-pill.is-active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-2);
}
.step-pill.is-active .num { color: var(--gold); }

.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 24px);
  min-height: 320px;
  outline: none;
}

.panel-head { margin-bottom: 18px; }
.panel-title {
  font-family: var(--f-cond);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 5px;
  color: var(--ink);
}
.panel-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* ---------------- generic cards ---------------- */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* small uppercase group heading inside a panel */
.sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-family: var(--f-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.sub-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(31,111,209,.28), transparent);
}

/* a model year the chosen destination may not import */
.tag-block {
  font-style: normal;
  font-family: var(--f-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #c8443a;
  background: rgba(200,68,58,.14);
  border: 1px solid rgba(200,68,58,.55);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: 1px;
}

.opt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: border-color .18s, background .18s, transform .12s;
}
.opt:hover { border-color: rgba(31,111,209,.5); background: #eef4fc; }
.opt:active { transform: scale(.995); }
.opt.is-on {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(31,111,209,.11), rgba(31,111,209,.03));
}
.opt.is-on::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.opt.is-disabled {
  opacity: .42;
  cursor: not-allowed;
}
.opt.is-disabled:hover { border-color: var(--line); background: var(--bg-3); }

.opt-main { min-width: 0; }
.opt-name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.opt-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.5;
}
.opt-price {
  font-family: var(--f-cond);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-2);
  white-space: nowrap;
  letter-spacing: .02em;
}
.opt-price.free { color: var(--ink-3); font-size: 12px; }

.chip-soon {
  font-family: var(--f-cond);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 3px;
}

/* lot specifics */
.lot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.lot-cell {
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  gap: 5px;
}
.lot-cell b {
  color: var(--ink-2);
  font-weight: 600;
  font-family: var(--f-cond);
  font-size: 12px;
  letter-spacing: .02em;
}
.lot-score {
  color: var(--gold-2);
}

/* ---------------- 3-angle sweep ---------------- */
/* Three frames stacked in the same box. Opacity is driven by JS so
   the car appears to rotate as you drag. Only used for the stock
   body, because a 3-angle set exists only for the unmodified car. */
.sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: pan-y;   /* let vertical page scroll through */
  cursor: grab;
}
.sweep.is-grabbing { cursor: grabbing; }

.sweep-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 14px 14px rgba(15,34,56,.18));
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  transition: opacity .12s linear;
}

/* the single-photo element must sit above the sweep when used */
#carImg { z-index: 2; }

.sweep-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.sweep-dots {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.sweep-dot {
  appearance: none;
  border: 1px solid rgba(31,111,209,.45);
  background: rgba(255,255,255,.85);
  color: var(--ink-3);
  font-family: var(--f-cond);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all .18s;
}
.sweep-dot:hover { border-color: var(--gold); color: var(--ink-2); }
.sweep-dot.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.sweep-hint {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-shadow: none;
  opacity: .85;
}

/* ---------------- build-system tabs ---------------- */
.build-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.build-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .18s, color .18s, border-color .18s;
}
.build-tab:hover { color: var(--ink-2); background: var(--bg-2); }
.build-tab.is-on {
  background: linear-gradient(100deg, rgba(31,111,209,.16), rgba(31,111,209,.04));
  border-color: rgba(31,111,209,.55);
  color: var(--ink);
}
.build-tab-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.build-tab-count {
  font-family: var(--f-cond);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.build-tab.is-on .build-tab-count { color: var(--gold-2); }

.build-desc {
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------------- parts: per-zone selection ---------------- */
.parts-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.set-badge {
  font-family: var(--f-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #ffffff;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
}

.zone { margin-bottom: 16px; }
.zone:last-of-type { margin-bottom: 0; }

.zone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.zone-name {
  font-family: var(--f-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.zone-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(31,111,209,.28), transparent);
}
.zone-count {
  font-family: var(--f-cond);
  font-size: 10px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  order: 3;
}

/* ---------------- parts shop: category rail + shelf ---------------- */
.shop {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.shop-rail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: sticky;
  top: 0;
}

.zone-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 7px;
  background: var(--bg-2);
  color: var(--ink-3);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .16s;
}
.zone-tab:hover { border-color: rgba(31,111,209,.4); color: var(--ink-2); }
.zone-tab.is-on {
  background: linear-gradient(100deg, rgba(31,111,209,.16), rgba(31,111,209,.03));
  border-color: var(--line);
  border-left-color: var(--gold);
  color: var(--ink);
}
.zone-tab-name {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}
.zone-tab-count {
  font-family: var(--f-cond);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.zone-tab.is-on .zone-tab-count { color: var(--gold-2); }
.zone-tab-count.has-pick { color: var(--gold); }

.shop-shelf { min-width: 0; }
.shelf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.shelf-name {
  font-family: var(--f-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.shelf-count {
  font-family: var(--f-cond);
  font-size: 10px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}
.shelf-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(31,111,209,.28), transparent);
}

.part {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 13px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: border-color .18s, background .18s;
}
.part:hover { border-color: rgba(31,111,209,.5); background: #eef4fc; }
.part.is-on {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(31,111,209,.1), rgba(31,111,209,.02));
}

.part-box {
  width: 19px;
  height: 19px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.part.is-on .part-box {
  background: var(--gold);
  border-color: var(--gold);
}

.part-main { min-width: 0; }
.part-name {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.part-desc {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.45;
}
.part-price {
  font-family: var(--f-cond);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-2);
  white-space: nowrap;
  letter-spacing: .02em;
}

/* a part that physically contradicts the current selection stays
   visible and priced — it must be obvious WHY it is unavailable */
.part.is-blocked {
  cursor: not-allowed;
  opacity: .46;
  border-style: dashed;
}
.part.is-blocked:hover {
  border-color: var(--line);
  background: var(--bg-3);
}
.part-conflict {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--danger);
}
.panel-warn {
  color: #c8443a !important;
  border-left: 2px solid rgba(200,68,58,.6);
  padding-left: 10px;
}

.parts-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(100deg, rgba(31,111,209,.09), transparent 70%);
}
.parts-sum-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.parts-sum-val {
  font-family: var(--f-cond);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.parts-sum-val em {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}

/* ---------------- colour swatches ---------------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.swatch {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: var(--r);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s, transform .12s;
  text-align: left;
}
.swatch:hover { border-color: rgba(31,111,209,.55); }
.swatch.is-on { border-color: var(--gold); }
.swatch:active { transform: scale(.99); }

.swatch-img {
  position: relative;
  display: block;
  height: 74px;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, #ffffff, #e4ecf5 78%);
  overflow: hidden;
}
.swatch-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
  filter: drop-shadow(0 14px 14px rgba(15,34,56,.18));
}

/* no photograph on disk yet: show the paint alone, never a broken
   frame. Keeps the colour meaningful without inventing a car. */
.swatch-img.is-pending {
  display: flex;
  align-items: center;
  justify-content: center;
}
.swatch-img.is-pending > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.55), 0 4px 14px rgba(0,0,0,.5);
}
.swatch-body {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px 11px;
}
.swatch-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  flex-shrink: 0;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.5);
}
.swatch-name {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-2);
  min-width: 0;
}
.swatch-name b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
}
.swatch-code {
  font-family: var(--f-cond);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .08em;
}
.swatch.is-on .swatch-name b { color: var(--gold-2); }
.swatch-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.swatch.is-on .swatch-check { display: flex; }

/* ---------------- checklist ---------------- */
.parts {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.parts-title {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.parts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 5px 16px;
}
.parts li {
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}
.parts li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------------- units / destination ---------------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}
.dest {
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: var(--r);
  padding: 13px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: all .18s;
}
.dest:hover { border-color: rgba(31,111,209,.5); }
.dest.is-on {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(31,111,209,.12), rgba(31,111,209,.02));
}
.dest-flag { font-size: 20px; line-height: 1; display: block; margin-bottom: 7px; }
.dest-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.dest-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 4px;
  display: block;
  line-height: 1.45;
}

/* the year rule is part of the lane offer, not fine print */
.dest-rule {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-cond);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--ink-3);
}
.dest.is-blocked .dest-name { color: var(--ink-2); }
.dest.is-blocked .dest-rule { color: #c8443a; }
.dest.is-blocked::after {
  content: "";
  display: block;
  margin-top: 7px;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg,
    rgba(200,68,58,.7) 0 6px, transparent 6px 12px);
}
.dest-badge {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--f-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #c8443a;
  background: rgba(200,68,58,.16);
  border: 1px solid rgba(200,68,58,.6);
  border-radius: 3px;
  padding: 2px 7px;
}

/* hard stop: this lane cannot take this vehicle */
.block-banner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(200,68,58,.42);
  border-left: 3px solid var(--danger);
  border-radius: 0 9px 9px 0;
  background: rgba(200,68,58,.075);
}
.block-banner b {
  font-size: 12.5px;
  font-weight: 700;
  color: #f0b6ae;
  letter-spacing: .02em;
}
.block-banner span {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  flex-wrap: wrap;
}
.qty-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.qty-ctl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
}
.qty-ctl button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-size: 18px;
  width: 36px;
  height: 34px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s;
}
.qty-ctl button:hover:not(:disabled) { background: var(--gold-dim); }
.qty-ctl button:disabled { color: var(--ink-3); cursor: not-allowed; }
.qty-ctl output {
  font-family: var(--f-cond);
  font-size: 17px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: var(--ink);
}
.qty-hint {
  font-size: 11px;
  color: var(--ink-3);
  flex: 1;
  min-width: 160px;
  line-height: 1.5;
}
.qty-hint b { color: var(--gold-2); font-family: var(--f-cond); font-size: 13px; }

/* ---------------- notes / regs ---------------- */
.regs {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(31,111,209,.035);
  padding: 13px 16px;
}
.regs h4 {
  margin: 0 0 9px;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.regs ul { margin: 0; padding-left: 16px; }
.regs li {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.regs li:last-child { margin-bottom: 0; }

/* ---------------- quotation ---------------- */
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.quote-ref {
  font-family: var(--f-cond);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.quote-ref b { color: var(--gold-2); font-size: 13px; }

.lines { display: flex; flex-direction: column; gap: 0; }
.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line-soft);
  font-size: 12.5px;
}
.line:last-child { border-bottom: 0; }
.line-name { color: var(--ink-2); min-width: 0; }
.line-name small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.line-val {
  font-family: var(--f-cond);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: .02em;
}
.line.is-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--gold);
  border-bottom: 0;
}
.line.is-total .line-name {
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}
.line.is-total .line-val {
  color: var(--gold-2);
  font-size: 20px;
}
.line.is-sub .line-name { color: var(--ink-3); font-size: 11.5px; }
.line.is-sub .line-val { color: var(--ink-2); font-size: 12.5px; }

.quote-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------------- totals bar ---------------- */
.totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(31,111,209,.1), rgba(31,111,209,.02) 55%, transparent);
  flex-wrap: wrap;
}
.totals-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.totals-label {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.totals-value {
  font-family: var(--f-cond);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.1;
}
.totals-sub { font-size: 10.5px; color: var(--ink-3); }

/* a blocked lane shows words, never a number that looks buyable */
.totals-value.is-blocked {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--danger);
}

.totals-mini {
  display: flex;
  gap: 18px;
  font-size: 10px;
}
.totals-mini div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.totals-mini span {
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.totals-mini b {
  font-family: var(--f-cond);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---- desktop: keep the running total permanently on screen ----
   The quotation is the number a dealer actually looks at, so the
   panel scrolls inside the column instead of pushing the total
   below the fold. */
@media (min-width: 1081px) {
  .panel-col {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 96px);
  }
  .steps { flex: 0 0 auto; }
  .panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .panel::-webkit-scrollbar { width: 8px; }
  .panel::-webkit-scrollbar-track { background: transparent; }
  .panel::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
  }
  .panel::-webkit-scrollbar-thumb:hover { background: #b9c6d6; }
  .totals, .panel-nav { flex: 0 0 auto; }
}

/* ---------------- buttons ---------------- */
.panel-nav {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}
.btn {
  appearance: none;
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s;
  border: 1px solid transparent;
  letter-spacing: .03em;
}
.btn-primary {
  background: var(--gold);
  color: #ffffff;
  flex: 1;
}
.btn-primary:hover { background: var(--gold-2); }
.btn-primary:disabled {
  background: var(--bg-3);
  color: var(--ink-3);
  border-color: var(--line);
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ghost:disabled { opacity: .35; cursor: not-allowed; }
.btn-small {
  font-size: 11.5px;
  padding: 8px 15px;
  background: var(--bg-3);
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-small:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------------- footer ---------------- */
.site-foot {
  padding: 20px clamp(16px, 3vw, 40px) 26px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}
.site-foot p {
  max-width: 1560px;
  margin: 0 auto 6px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.foot-brand {
  font-family: var(--f-cond);
  letter-spacing: .1em;
  color: #9aa6b5 !important;
  font-size: 10px !important;
  text-transform: uppercase;
}

/* ---------------- dealer margin simulator ---------------- */
.sim { margin-top: 2px; }
.sim-row {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.sim-label {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
#simRange {
  appearance: none;
  flex: 1;
  min-width: 120px;
  height: 4px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}
#simRange::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #ffffff;
  cursor: pointer;
}
#simRange::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.sim-pct {
  font-family: var(--f-cond);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-2);
  min-width: 46px;
  text-align: right;
}
.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.sim-grid > div {
  background: var(--bg-2);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sim-grid span {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sim-grid b {
  font-family: var(--f-cond);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sim-retail { color: var(--gold-2) !important; }
.sim-gross { color: var(--ok) !important; }

/* ---------------- saved quotes ---------------- */
.hist-list { display: flex; flex-direction: column; gap: 6px; }
.hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: border-color .16s;
}
.hist-item:hover { border-color: var(--gold); }
.hist-main { min-width: 0; }
.hist-ref {
  display: block;
  font-family: var(--f-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-2);
}
.hist-sub {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.hist-val {
  font-family: var(--f-cond);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------------- stock CSV import ---------------- */
.csv-input {
  width: 100%;
  margin: 9px 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.csv-input:focus { border-color: var(--gold); }
.csv-input::placeholder { color: #9aa6b5; }
.csv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------------- toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  background: var(--gold);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .app {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stage-col {
    position: relative;
    top: 0;
  }
  :root { --stage-h: clamp(200px, 34vh, 340px); }
}

@media (max-width: 680px) {
  .tagline { display: none; }
  .topbar { gap: 10px; padding: 10px 14px; }
  .brand-mark, .brand-product { font-size: 19px; }
  .cur-wrap { padding: 3px 4px 3px 9px; }
  .cur-label { display: none; }
  .app { padding: 12px 14px 18px; }
  .panel { padding: 15px 14px; border-radius: 12px; min-height: 0; }
  .panel-title { font-size: 18px; }
  .stage { border-radius: 11px; }
  .stage-badges { top: 9px; left: 9px; gap: 4px; }
  .badge { font-size: 9.5px; padding: 3px 7px; }
  .stage-caption { font-size: 9px; bottom: 8px; left: 11px; right: 11px; }
  .stage-meta { margin-top: 8px; }
  .meta-item { padding: 8px 10px; }
  .meta-item strong { font-size: 13.5px; }
  .meta-label { font-size: 8.5px; }
  .totals { padding: 12px 14px; gap: 10px; }
  .totals-value { font-size: 22px; }
  .totals-mini { gap: 14px; }
  .totals-mini b { font-size: 12px; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .swatch-img { height: 58px; }
  .opt { padding: 11px 12px; gap: 8px; }
  .opt-name { font-size: 12.5px; }
  .opt-price { font-size: 13.5px; }
  .parts ul { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; gap: 7px; }
  .btn { padding: 10px 16px; font-size: 12px; }
  .qty-row { padding: 12px; gap: 10px; }

  /* three figures side by side would clip a seven-figure yen amount
     behind an ellipsis on a phone. A quote must never hide a number,
     so they stack instead. */
  .sim-grid { grid-template-columns: 1fr; }
  .sim-grid b { font-size: 16px; }
}

/* on phones the category rail would eat the width, so it becomes a
   horizontally scrollable strip above the shelf — same model, one axis */
@media (max-width: 760px) {
  .shop {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .shop-rail {
    position: static;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .shop-rail::-webkit-scrollbar { display: none; }
  .zone-tab {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-left-width: 1px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .zone-tab.is-on { border-left-color: var(--gold); }
  .zone-tab-name { font-size: 11.5px; }
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  #carImg { transition: none !important; }
}

/* =============================================================
   PRINTED A4 QUOTATION
   -------------------------------------------------------------
   The on-screen app is a dark, sticky, two-column grid — none of
   which belongs on paper. #printSheet is built on demand by
   buildPrintSheet() and is the ONLY thing that prints.
   ============================================================= */
.print-sheet { display: none; }

@media print {
  @page { size: A4 portrait; margin: 14mm 13mm; }

  html, body {
    background: #fff !important;
    color: #111 !important;
    display: block !important;
    min-height: 0 !important;
  }

  /* everything on screen is suppressed */
  .topbar,
  .site-foot,
  .toast,
  .skip,
  .app { display: none !important; }

  .print-sheet {
    display: block !important;
    font-family: 'Noto Sans JP', system-ui, sans-serif;
    font-size: 10pt;
    line-height: 1.55;
    color: #111;
  }

  .ps-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12pt;
    padding-bottom: 7pt;
    border-bottom: 2pt solid #111;
    margin-bottom: 10pt;
  }
  .ps-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19pt;
    font-weight: 700;
    letter-spacing: .12em;
  }
  .ps-brand b { color: #8a6a34; }
  .ps-ref { text-align: right; }
  .ps-ref span {
    display: block;
    font-size: 7pt;
    letter-spacing: .16em;
    color: #666;
  }
  .ps-ref b {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13pt;
    letter-spacing: .04em;
  }

  .ps-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6pt 10pt;
    margin-bottom: 11pt;
  }
  .ps-meta div { min-width: 0; }
  .ps-meta span {
    display: block;
    font-size: 7pt;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #777;
  }
  .ps-meta b { font-size: 10pt; font-weight: 600; }

  .ps-block {
    border: 1pt solid #b0423a;
    border-left: 3pt solid #b0423a;
    background: #fdf3f2;
    padding: 8pt 10pt;
    margin-bottom: 11pt;
    page-break-inside: avoid;
  }
  .ps-block b { display: block; font-size: 10.5pt; color: #8c2f28; }
  .ps-block span { font-size: 8.5pt; color: #444; }

  .ps-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10pt;
    page-break-inside: auto;
  }
  .ps-table th,
  .ps-table td {
    padding: 4pt 0;
    border-bottom: .5pt dotted #ccc;
    vertical-align: baseline;
    font-size: 9.5pt;
    font-weight: 400;
    text-align: left;
  }
  .ps-table th { color: #333; width: 68%; }
  .ps-table th span {
    display: block;
    font-size: 7.5pt;
    color: #888;
    margin-top: 1pt;
  }
  .ps-table td {
    text-align: right;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11pt;
    font-weight: 600;
    white-space: nowrap;
  }
  .ps-table tr.is-total th,
  .ps-table tr.is-total td {
    border-top: 1pt solid #111;
    border-bottom: 1pt solid #111;
    font-weight: 700;
    padding-top: 6pt;
    padding-bottom: 6pt;
  }
  .ps-table tr.is-total th { font-size: 10.5pt; }
  .ps-table tr.is-total td { font-size: 13pt; }
  .ps-table tr.is-sub th,
  .ps-table tr.is-sub td { font-size: 9pt; color: #555; }

  .ps-grand {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10pt;
    border-top: 2pt solid #111;
    border-bottom: 2pt solid #111;
    padding: 8pt 0;
    margin: 10pt 0;
    page-break-inside: avoid;
  }
  .ps-grand span { font-size: 10pt; font-weight: 600; }
  .ps-grand b {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 21pt;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .ps-grand small { font-size: 8pt; color: #666; }

  .ps-sim {
    display: flex;
    align-items: baseline;
    gap: 10pt;
    padding: 6pt 9pt;
    border: .5pt solid #bbb;
    background: #f7f7f5;
    margin-bottom: 10pt;
    page-break-inside: avoid;
  }
  .ps-sim span { font-size: 8.5pt; color: #555; }
  .ps-sim b {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13pt;
    font-weight: 700;
    margin-left: auto;
  }
  .ps-sim small { font-size: 8pt; color: #777; }

  .ps-regs {
    margin: 0 0 9pt;
    padding-left: 13pt;
    page-break-inside: avoid;
  }
  .ps-regs li {
    font-size: 8pt;
    line-height: 1.6;
    color: #444;
    margin-bottom: 3pt;
  }

  .ps-foot {
    margin: 0;
    padding-top: 6pt;
    border-top: .5pt solid #ccc;
    font-size: 7.5pt;
    color: #777;
  }
}

/* screen-side hint that a print job is being prepared */
body.is-printing { cursor: progress; }
