/* Shipping Center v2, part 2 (2026-10-28): rule dots, required name, switch, address sheet blocks, stores & chains, usage grid,
   import review, buying flow. New UI standard: theme tokens only (day + night), 44px taps, 24/12/16/8 rhythm, no sideways page scroll. */
#lm-grid-view, #lm-addr-view, #sv2-sheet, #sv2-panel, .sv2-buy { --rla-red: #c0392b; --rla-amber: #b7791f; --rla-green: #1f8a4c; --rla-grey: #7a8494; --sv2-blue: #2f6fdc; --sv2-ink: #1c2230; }
html[data-remodel-mode="night"] #lm-grid-view, html[data-remodel-mode="night"] #lm-addr-view, html[data-remodel-mode="night"] #sv2-sheet, html[data-remodel-mode="night"] #sv2-panel, html[data-remodel-mode="night"] .sv2-buy { --rla-red: #ef6b5c; --rla-amber: #e0a33a; --rla-green: #4cc282; --rla-grey: #9aa3b2; --sv2-blue: #6ea2ff; }
#sv2-sheet[hidden], #sv2-panel[hidden], .sv2-buy[hidden], .sv2-ta[hidden] { display: none !important; }
[data-tone="blue"] { --rla-tone: var(--sv2-blue, #2f6fdc); }

/* ── colour dot + rule chip (Ship-to list, grid, sheet) ── */
.sv2-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; flex: 0 0 auto; box-sizing: border-box; border: 2px solid var(--muted); background: #fff; }
html[data-remodel-mode="night"] .sv2-dot[data-rule="any"] { background: #ecebe6; border-color: #ecebe6; }
.sv2-dot[data-rule="fedex"] { background: var(--sv2-blue, #2f6fdc); border-color: var(--sv2-blue, #2f6fdc); }
.sv2-dot[data-rule="banned"] { background: var(--rla-red, #c0392b); border-color: var(--rla-red, #c0392b); }
.sv2-dot[data-rule="off"] { background: transparent; border-color: var(--muted); border-style: dashed; }
.sv2-rule { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; color: var(--muted); background: color-mix(in srgb, var(--muted) 13%, transparent); }
.sv2-rule[data-rule="fedex"] { color: var(--sv2-blue, #2f6fdc); background: color-mix(in srgb, var(--sv2-blue, #2f6fdc) 14%, transparent); }
.sv2-rule[data-rule="banned"] { color: var(--rla-red, #c0392b); background: color-mix(in srgb, var(--rla-red, #c0392b) 14%, transparent); }
.sv2-rule-lg { font-size: 13px; padding: 4px 12px; margin: 8px 0 0; }
.sv2-rule-lg .sv2-dot { margin-right: 7px; }
.sv2-sh-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* the name that must be on the label: BIG and BOLD */
.sv2-req { display: flex; flex-direction: column; gap: 0; margin: 6px 0 0; }
.sv2-req-l { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rla-amber, #b7791f); }
.sv2-req b { font-size: 19px; line-height: 24px; font-weight: 800; letter-spacing: .1px; color: var(--white); overflow-wrap: anywhere; }
.sv2-req-sheet { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--rla-amber, #b7791f) 13%, transparent); }
.sv2-req-sheet b { font-size: 26px; line-height: 32px; }
.sv2-req-s { margin: 4px 0 0; } .sv2-req-s b { font-size: 14px; line-height: 18px; }
#lm-grid-table .lm-g-addr .sv2-req { margin-top: 6px; }

/* the on / off switch (a 44px tap target around a 40 x 24 track) */
.sv2-sw { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; vertical-align: middle; }
.sv2-sw i { position: relative; display: block; width: 44px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 38%, transparent); transition: background .15s; }
.sv2-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.sv2-sw.is-on i { background: var(--rla-green, #1f8a4c); }
.sv2-sw.is-on i::after { transform: translateX(18px); }
.sv2-sw[disabled] { opacity: .45; cursor: not-allowed; }
.sv2-sw:focus-visible, .sv2-cellbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 12px; }
#lm-grid-table td.lm-g-act { white-space: nowrap; }
#lm-grid-table td.lm-g-act .btn { vertical-align: middle; }

/* ── hub tabs inside the Addresses view ── */
.sv2-hub { margin: 0 0 14px; }
.sv2-views { width: 100%; overflow-x: auto; scrollbar-width: none; }
.sv2-views::-webkit-scrollbar { display: none; }
.sv2-views .inv-kind-tab { min-height: 44px; flex: 1 1 auto; white-space: nowrap; }
.sv2-panel { display: block; padding-bottom: 32px; min-width: 0; }
.sv2-seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; }
.sv2-seg .inv-kind-tab { min-height: 44px; min-width: 44px; padding: 0 14px; white-space: nowrap; }
.sv2-seg .inv-kind-tab[disabled] { opacity: .45; cursor: not-allowed; }
.sv2-view-head { margin: 0 0 12px; }

/* ── address sheet blocks ── */
.sv2-field { padding: 4px 0 12px; }
.sv2-lab { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--white); }
.sv2-lab .rla-meta { font-weight: 400; margin-left: 6px; }
.sv2-lab2 { font-size: 12.5px; color: var(--muted); }
.sv2-inline { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; flex-wrap: wrap; }
.sv2-inline .rla-store-in { flex: 1 1 160px; min-width: 0; width: auto; }
.sv2-inline .btn { min-height: 44px; flex: 0 0 auto; }
.sv2-assign { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; flex-wrap: wrap; }
.sv2-assign .rla-store-in { flex: 1 1 180px; min-width: 0; width: auto; }
.sv2-assign .btn { min-height: 44px; flex: 0 0 auto; }
.sv2-assign .sv2-lab2 { flex: 1 1 100%; }
.sv2-addstore { margin-top: 4px; }
.sv2-store.is-focus { border-color: var(--gold); }
.sv2-nologin { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); vertical-align: 1px; margin-left: 4px; }
.sv2-flag { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--white); background: color-mix(in srgb, var(--rla-amber, #b7791f) 16%, transparent); }
.sv2-note { background: color-mix(in srgb, var(--muted) 12%, transparent); }
.sv2-newrunner { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; }
#sv2-sheet .rla-lk { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }
#sv2-sheet select.rla-store-in { appearance: auto; }

/* ── stores & chains ── */
.sv2-block { margin: 0 0 24px; }
.sv2-list { padding: 0; }
.sv2-srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; min-height: 68px; border-top: 1px solid var(--border); }
.sv2-srow:first-child { border-top: 0; }
.sv2-sname { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.sv2-sname b { font-size: 15px; overflow-wrap: anywhere; }
.sv2-chainsel { min-height: 44px; max-width: 240px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-base, var(--bg-raised)); color: var(--white); font: inherit; font-size: 14px; padding: 0 10px; }
.sv2-step { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 0 0 auto; }
.sv2-step-t { font-size: 14px; min-width: 0; }
.sv2-stepper { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.sv2-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sv2-step-t:has(.sv2-vh):not(:has(.rla-meta)) { display: none; }
.sv2-srow .sv2-step { flex-direction: column; align-items: flex-end; gap: 4px; }
.sv2-srow .sv2-step-t { order: 2; text-align: right; font-size: 12.5px; color: var(--muted); }
.sv2-srow .sv2-stepper { order: 1; }
.rla-sn.is-unl { font-size: 22px; }
.sv2-unl { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--white); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-left: 4px; }
.sv2-unl.is-on { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.sv2-unl[disabled], .sv2-stepper .rla-sb[disabled] { opacity: .4; cursor: default; }
.sv2-add { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.sv2-add .rla-store-in { flex: 1 1 220px; min-width: 0; width: auto; }
.sv2-add .btn { min-height: 44px; }
.sv2-pad { padding: 16px; }

/* ── usage grid ── */
.sv2-legend { margin-top: 0; }
.sv2-sw-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--border); background: transparent; vertical-align: -1px; margin-right: 6px; }
.sv2-sw-key[data-st="banned"] { background: color-mix(in srgb, var(--rla-red, #c0392b) 38%, transparent); border-color: var(--rla-red, #c0392b); }
.sv2-sw-key[data-st="atlimit"] { background: color-mix(in srgb, var(--rla-amber, #b7791f) 42%, transparent); border-color: var(--rla-amber, #b7791f); }
.sv2-sw-key[data-st="fedex"] { background: color-mix(in srgb, var(--sv2-blue, #2f6fdc) 30%, transparent); border-color: var(--sv2-blue, #2f6fdc); }
.sv2-sw-key[data-st="ok"] { background: color-mix(in srgb, var(--rla-green, #1f8a4c) 26%, transparent); border-color: var(--rla-green, #1f8a4c); }
.sv2-gridwrap { max-width: 100%; max-height: 68vh; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-raised); contain: inline-size; }
.sv2-grid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.sv2-grid th, .sv2-grid td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0; text-align: left; vertical-align: top; }
.sv2-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--bg-raised); padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 132px; max-width: 168px; box-shadow: inset 0 -1px 0 var(--border); }
.sv2-grid thead th span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv2-grid .sv2-corner, .sv2-grid .sv2-addr { position: sticky; left: 0; z-index: 2; background: var(--bg-raised); min-width: 220px; max-width: 260px; box-shadow: inset -1px 0 0 var(--border); }
.sv2-grid .sv2-corner { z-index: 4; }
.sv2-addr { padding: 10px 14px !important; font-weight: 400; }
.sv2-addr .rla-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; }
.sv2-cell { padding: 0 !important; }
.sv2-cellbtn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-height: 60px; padding: 8px 12px; border: 0; background: transparent; color: var(--white); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sv2-cellbtn:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.sv2-nm { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.sv2-nm-b { color: var(--rla-red, #c0392b); }
.sv2-plus { color: var(--muted); font-size: 18px; opacity: .45; }
.sv2-cnt { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sv2-cell[data-st="banned"] { background: color-mix(in srgb, var(--rla-red, #c0392b) 16%, transparent); }
.sv2-cell[data-st="atlimit"] { background: color-mix(in srgb, var(--rla-amber, #b7791f) 18%, transparent); }
.sv2-cell[data-st="fedex"] { background: color-mix(in srgb, var(--sv2-blue, #2f6fdc) 12%, transparent); }
.sv2-cell[data-st="ok"] { background: color-mix(in srgb, var(--rla-green, #1f8a4c) 9%, transparent); }
.sv2-grid tr[data-state="off"] .sv2-addr, .sv2-grid tr[data-state="banned"] .sv2-addr { opacity: .85; }
.sv2-gridlist { display: none; }

/* ── import review ── */
.sv2-impbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.sv2-groups { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.sv2-group { overflow: visible; }
.sv2-gtog { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; background: transparent; color: var(--white); font: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.sv2-gt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sv2-gt b { font-size: 15.5px; }
.sv2-gcount { flex: 0 0 auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sv2-gcount b { color: var(--white); }
.sv2-chev { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin: 0 4px 4px 4px; }
.sv2-gtog[aria-expanded="true"] .sv2-chev { transform: rotate(-135deg); margin-top: 6px; }
.sv2-bulk { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.sv2-bulk .btn { min-height: 44px; }
.sv2-all { font-weight: 400; opacity: .7; margin-left: 4px; }
.sv2-items { border-top: 1px solid var(--border); }
.sv2-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); }
.sv2-item:first-child { border-top: 0; }
.sv2-it-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.sv2-it-t b { overflow-wrap: anywhere; }
.sv2-it-a { flex: 0 0 auto; }
.sv2-pick { min-height: 44px; margin-top: 6px; max-width: 280px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-base, var(--bg-raised)); color: var(--white); font: inherit; font-size: 14px; padding: 0 10px; }
.sv2-more { margin: 0 16px 8px; }
.sv2-plan { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-raised); display: flex; flex-direction: column; gap: 12px; }
.sv2-plan-grid.wf-kpi-rail { display: flex; margin: 0; }
@media (min-width: 641px) {
  .sv2-plan-grid.wf-kpi-rail.wf-kpi-thin { --wf-kpi-cap: none; --wf-kpi-basis: 150px; }
  .sv2-plan-grid.wf-kpi-rail.wf-kpi-thin > .pay-kpi { flex: 1 1 150px !important; max-width: none !important; min-width: 0; }
}
.sv2-plan-grid.wf-kpi-rail .pay-kpi-label { white-space: normal !important; } /* the tiles are a wf-kpi-rail wf-kpi-thin row, like every other new-UI screen */
.sv2-pc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--muted) 9%, transparent); }
.sv2-pc b { font-size: 22px; line-height: 28px; font-variant-numeric: tabular-nums; }
.sv2-pc span { font-size: 12.5px; color: var(--muted); }
.sv2-big { min-height: 48px; align-self: flex-start; }

/* ── buying flow ── */
.sv2-buy { position: relative; margin-bottom: 14px; }
.sv2-buy .qp-hint { margin-top: 6px; }
.sv2-ta { display: flex; flex-direction: column; margin: 6px 0 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-raised); overflow: hidden; }
.sv2-ta-i { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 14px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--white); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.sv2-ta-i:first-child { border-top: 0; }
.sv2-ta-i:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.sv2-ta-none { padding: 12px 14px; }
.wfap-card.is-off .wfap-status { color: var(--rla-red, #c0392b); font-weight: 600; }

/* ── phone ── */
@media (max-width: 640px) {
  .sv2-gridwrap { display: none; }
  .sv2-gridlist { display: flex; flex-direction: column; gap: 12px; }
  .sv2-gcard { padding: 4px 0; }
  .sv2-gcard .sv2-req { padding: 0 16px 6px; }
  .sv2-gh { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 60px; padding: 8px 16px; border: 0; background: transparent; color: var(--white); font: inherit; text-align: left; cursor: pointer; }
  .sv2-gh-t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
  .sv2-gh-t b { font-size: 15px; overflow-wrap: anywhere; }
  .sv2-gl { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 48px; padding: 8px 16px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--white); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
  .sv2-gl[data-st="banned"] { background: color-mix(in srgb, var(--rla-red, #c0392b) 14%, transparent); }
  .sv2-gl[data-st="atlimit"] { background: color-mix(in srgb, var(--rla-amber, #b7791f) 16%, transparent); }
  .sv2-gl-s { font-weight: 600; flex: 0 0 40%; min-width: 0; overflow-wrap: anywhere; }
  .sv2-gl-n { flex: 1 1 auto; min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
  .sv2-gl-none { padding: 4px 16px 10px; }
  .sv2-srow { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
  .sv2-srow .sv2-step { flex-direction: row; align-items: center; justify-content: space-between; }
  .sv2-srow .sv2-step-t { order: 0; text-align: left; flex: 1 1 auto; }
  .sv2-srow .sv2-stepper { order: 0; }
  .sv2-chainsel { max-width: 100%; width: 100%; }
  .sv2-item { flex-direction: column; align-items: stretch; }
  .sv2-it-a { width: 100%; }
  .sv2-it-a .inv-kind-tab { flex: 1 1 0; padding: 0 6px; font-size: 13px; }
  .sv2-bulk .btn { flex: 1 1 100%; }
  .sv2-req b { font-size: 18px; }
  .sv2-req-sheet b { font-size: 24px; }
  #sv2-sheet .sv2-seg { display: flex; width: 100%; }
  #sv2-sheet .sv2-seg .inv-kind-tab { flex: 1 1 0; padding: 0 6px; }
}
@media (min-width: 641px) { .sv2-gridlist { display: none; } }
#lm-addr-view > [hidden] { display: none !important; }

/* ── fix round 1 (2026-10-29) ── */
/* Phone Ship-to card (the ≤840px card layout in index.html): the dot, the rule chip and the switch made the three 1fr columns
   wider than the card (limit pill and switch cut off at right = 397 on a 390 screen). Columns may now shrink, a long name wraps,
   and the button + switch get their own full-width row under the numbers. */
@media (max-width: 840px) {
  #page-locations .lm-table tr.lm-g-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #page-locations .lm-table tr.lm-g-row > td { min-width: 0; }
  #page-locations .lm-table tr.lm-g-row td.lm-g-name { overflow-wrap: anywhere; }
  #page-locations .lm-table tr.lm-g-row:has(.sv2-sw) td.lm-g-act { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; white-space: normal; margin-top: 4px; padding-top: 8px !important; border-top: 1px solid var(--lm-line, var(--border)) !important; }
}
/* Phone hub tabs: the last tab ("Import review") sat on the pill's rounded edge. A little air inside the pill, and tighter tabs. */
@media (max-width: 640px) {
  .sv2-views { padding-left: 6px; padding-right: 6px; gap: 2px; }
  .sv2-views .inv-kind-tab { padding: 0 10px; }
}
/* the Full note in the address sheet: plain, amber, no Assign under it */
.sv2-flag b { font-weight: 700; }

/* ── Off and banned places that still hold watches (2026-10-29, fix round 3) ──
   Counted like any place, drawn grey with a plain "Off" / "Banned" pill. The Now number opens those watches in Inventory. */
.lm-st.is-off { background: color-mix(in srgb, #7c8591 18%, transparent); color: color-mix(in srgb, #7c8591 85%, var(--white)); }
.lm-st.is-banned { background: color-mix(in srgb, var(--red) 16%, transparent); color: color-mix(in srgb, var(--red) 75%, var(--white)); }
.lm-g-row.is-offrow > td { color: var(--muted); }
.lm-g-row.is-offrow .lm-g-name b { color: var(--muted); }
/* the tap area is 44px but the number sits exactly where a plain one does (negative margins = the padding) */
.lm-g-now { background: transparent; border: 0; padding: 12px 6px; margin: -12px -6px; min-height: 44px; min-width: 44px; text-align: inherit; line-height: 20px; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-light); text-underline-offset: 3px; }
.lm-g-now:focus-visible { outline: 2px solid var(--gold, #c9a96e); outline-offset: 2px; border-radius: 6px; }
.lm-place.is-offplace .lm-place-nm, .lm-place.is-offplace .lm-place-v b { color: var(--muted); }
.lm-place.is-offplace .lm-st { margin-left: 6px; vertical-align: 1px; }
.lm-unmapped-chip.is-off { color: var(--muted); min-height: 44px; }
.lm-unmapped-chip.is-off em { font-style: normal; font-weight: 600; margin-left: 4px; }

/* ── import: load, steps, chains found (titanium tokens, no gold) ── */
.sv2-imp { --tt-accent: #3f6486; --tt-accent-dim: color-mix(in srgb, #3f6486 14%, transparent); --tt-line: rgba(15, 23, 32, .12); }
html[data-remodel-mode="night"] .sv2-imp, html[data-theme="carbon-titanium"] .sv2-imp, html[data-theme="midnight-gold"] .sv2-imp, html[data-theme="royal-navy"] .sv2-imp, html[data-theme="obsidian-rose"] .sv2-imp { --tt-accent: #7d97b3; --tt-accent-dim: color-mix(in srgb, #7d97b3 20%, transparent); --tt-line: rgba(255, 255, 255, .10); }
.sv2-imp .btn-gold { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; -webkit-text-fill-color: #fff; }
html[data-remodel-mode="night"] .sv2-imp .btn-gold { color: #0f141b; -webkit-text-fill-color: #0f141b; }
.sv2-imp .btn-gold:disabled { background: var(--tt-accent-dim); border-color: transparent; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.sv2-imp .inv-kind-tab.active { background: var(--tt-accent-dim); color: var(--white); box-shadow: inset 0 0 0 1px var(--tt-accent); }
.sv2-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.sv2-steps li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--tt-line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.sv2-steps i { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; border: 1px solid var(--tt-line); }
.sv2-steps span { min-width: 0; overflow-wrap: anywhere; }
.sv2-steps li.is-now { color: var(--white); border-color: var(--tt-accent); background: var(--tt-accent-dim); }
.sv2-steps li.is-now i { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; }
.sv2-steps li.is-done i { background: var(--tt-accent-dim); border-color: var(--tt-accent); color: var(--tt-accent); }
.sv2-up, .sv2-chains { padding: 16px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.sv2-up-t { display: flex; flex-direction: column; gap: 2px; }
.sv2-up-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sv2-file { position: relative; display: inline-flex; align-items: center; min-height: 48px; max-width: 100%; cursor: pointer; overflow: hidden; }
.sv2-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sv2-file span { overflow-wrap: anywhere; text-align: left; }
.sv2-chk { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.sv2-chk input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--tt-accent); }
.sv2-ctab { display: flex; flex-direction: column; }
.sv2-crow { display: grid; grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr)); gap: 8px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--tt-line); font-variant-numeric: tabular-nums; }
.sv2-cc { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sv2-cc i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.sv2-cc b { font-weight: 500; font-size: 15px; }
.sv2-cc.is-name b { font-weight: 600; }
@media (min-width: 641px) { .sv2-crow:first-child .sv2-cc i { display: block; } .sv2-crow:not(:first-child) .sv2-cc i { display: none; } }
.sv2-merges { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; color: var(--muted); }
.sv2-auto { align-self: flex-start; font-size: 12px; line-height: 18px; padding: 1px 8px; border-radius: 999px; color: var(--tt-accent); background: var(--tt-accent-dim); }
@media (max-width: 640px) {
  .sv2-steps { gap: 6px; }
  .sv2-steps li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px; font-size: 12px; }
  .sv2-up-row .sv2-file { flex: 1 1 100%; }
  .sv2-crow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv2-cc.is-name { grid-column: 1 / -1; }
  .sv2-item { flex-direction: column; align-items: stretch; }
}

/* ── import review: the per-line answer buttons never overlap (fix round 1, 2026-10-30) ──
   "Same person" / "Create as runner contacts" are long. Wide screens: they wrap onto a second line instead of squeezing.
   Phone: stacked, one full-width 44px button per answer. Titanium tokens only, no gold. */
.sv2-imp .sv2-it-a { flex-wrap: wrap; row-gap: 8px; max-width: 100%; }
.sv2-imp .sv2-it-a .inv-kind-tab { min-height: 44px; height: auto; min-width: 0; white-space: normal; text-align: center; justify-content: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 640px) {
  .sv2-imp .sv2-item .sv2-it-a { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 8px; border-radius: 12px; }
  .sv2-imp .sv2-item .sv2-it-a .inv-kind-tab { flex: 0 0 auto; width: 100%; padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .sv2-imp .sv2-item .sv2-it-a .inv-kind-tab + .inv-kind-tab { border-top: 1px solid var(--tt-line); border-radius: 0; }
  .sv2-imp .sv2-item .sv2-it-a .inv-kind-tab.active { border-radius: 10px; }
}
