/* CrispSign Lobby Panel Builder — layout stylesheet.
 *
 * Header + drawer + account cluster come from styles.css + site-chrome.css
 * + builder-v2.css (all loaded before this file). We only layer product-
 * specific layout on top and reuse the site design tokens.
 *
 * MODELED ON yard-sign.css: class names below are a mechanical .ys- -> .lp-
 * rename of that file's shell/rail/stepper/upload/review/footer rules (same
 * visual system, same tokens), with panel-specific additions appended at
 * the bottom (material grid, seg/seg-btn control, standoff dot layer, and a
 * CSS-only wall backdrop since no photoreal lobby-wall asset exists yet —
 * see RESULT-lobby-panel.md open risks).
 */

/* ═══════════════════════ SHELL LAYOUT ═══════════════════════ */
/* builder-v2.css sets .v2-shell to fixed inset 0 flex-column when
   body[data-v2-shell] is set. Don't redefine here. */

/* Product identity strip */
.lp-context {
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(10,18,38,0.08);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.lp-context-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E81820;
}
.lp-context-sep { color: rgba(10,18,38,0.20); font-weight: 700; }
.lp-context-note { font-size: 13px; color: #5C6273; font-weight: 500; }

/* ═══════════════════════ MAIN SPLIT ═══════════════════════ */
.lp-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.lp-preview {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  background: #11151F;
  overflow: hidden;
}
.lp-preview-inner {
  position: absolute;
  inset: 0;
}
.lp-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #F7F5F0;
  background-image: url('/assets/scenes/lobby-panel-wall-with-door.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

/* The door in the wall scene is the scale reference. JS sizes this slot from
   the rendered scene height (84 in door at roughly 90% of image height). */
.lp-panel-slot {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: width .28s cubic-bezier(.4,0,.2,1),
              height .28s cubic-bezier(.4,0,.2,1),
              left .28s cubic-bezier(.4,0,.2,1),
              top .28s cubic-bezier(.4,0,.2,1);
}
.lp-panel-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(14,26,43,0.18);
  box-shadow: 0 10px 22px rgba(14,26,43,0.22), inset 0 1px 0 rgba(255,255,255,0.78);
}

.lp-dim-width,
.lp-dim-height {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-navy, #0E1A2B);
  font-family: 'Golos Text', 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
}
.lp-dim-width {
  left: 0;
  top: -28px;
  width: 100%;
}
.lp-dim-height {
  right: -31px;
  top: 0;
  height: 100%;
  flex-direction: column;
}
.lp-dim-line {
  position: relative;
  flex: 1 1 auto;
  min-width: 8px;
  height: 1px;
  background: var(--brand-navy, #0E1A2B);
}
.lp-dim-height .lp-dim-line {
  width: 1px;
  min-width: 0;
  min-height: 8px;
  height: auto;
}
.lp-dim-label {
  padding: 2px 4px;
  background: rgba(247,245,240,0.90);
  border-radius: 2px;
  white-space: nowrap;
}
.lp-dim-height .lp-dim-label { writing-mode: vertical-rl; }
.lp-dim-width .lp-dim-line:first-child::before,
.lp-dim-width .lp-dim-line:last-child::after,
.lp-dim-height .lp-dim-line:first-child::before,
.lp-dim-height .lp-dim-line:last-child::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: var(--brand-navy, #0E1A2B);
}
.lp-dim-width .lp-dim-line:first-child::before {
  left: 0;
  top: -2px;
  border-left: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
}
.lp-dim-width .lp-dim-line:last-child::after {
  right: 0;
  top: -2px;
  border-right: 1px solid;
  border-top: 1px solid;
  transform: rotate(45deg);
}
.lp-dim-height .lp-dim-line:first-child::before {
  top: 0;
  left: -2px;
  border-top: 1px solid;
  border-left: 1px solid;
  transform: rotate(45deg);
}
.lp-dim-height .lp-dim-line:last-child::after {
  bottom: 0;
  left: -2px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
}

/* ── Art slot — positioned + sized by JS from the calibrated baseline.
   Baseline = 24×18 landscape which is the sign face in the hero photo. */
.lp-art-slot {
  position: absolute;
  transition: left .28s cubic-bezier(.4,0,.2,1),
              top .28s cubic-bezier(.4,0,.2,1),
              width .28s cubic-bezier(.4,0,.2,1),
              height .28s cubic-bezier(.4,0,.2,1);
}
/* The visible sign face inside the slot — always 100% of the slot.
   Pure white Coroplast panel. NO fake flute overlay — real Coroplast is
   almost solid white when face-lit; the flute ribs only read subtly
   from the side. Layering a fake gradient on top of uploaded art
   corrupts the customer's design. Left blank so uploaded art shows as
   it will actually print. */
.lp-sign-face {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  /* Very subtle inner shadow along the top edge suggests the sign sits
     forward of the stake with a hair of separation — no crop of
     uploaded art. */
  box-shadow:
    0 6px 14px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-art-placeholder {
  color: rgba(10,18,38,0.45);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  line-height: 1.45;
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: auto;
}
.lp-art-placeholder-icon {
  font-size: 32px;
  font-weight: 700;
  color: #E81820;
  margin-bottom: 8px;
  line-height: 1;
}
.lp-art-placeholder-cta {
  color: #E81820;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.lp-art-placeholder-cta:hover { color: #C21418; }
.lp-art-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.lp-art-img[hidden] { display: none !important; }

/* Fit mode toggle — Fit / Fill / Stretch controls on the Art step */
.lp-fit-mode {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E4E8EF;
}
.lp-fit-mode[hidden] { display: none; }
.lp-fit-mode-label {
  font-size: 12px;
  font-weight: 700;
  color: #4B5768;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.lp-fit-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lp-fit-tab {
  border: 1.5px solid #DDE3EC;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.lp-fit-tab:hover { border-color: #E81820; }
.lp-fit-tab.is-active {
  border-color: #E81820;
  background: #FEF3F3;
}
.lp-fit-tab-name {
  font-weight: 700;
  font-size: 13px;
  color: #0A1226;
}
.lp-fit-tab-desc {
  font-size: 11px;
  color: #6E7887;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .lp-fit-mode-tabs { grid-template-columns: 1fr; }
}

/* Chip */
.lp-preview-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(10,18,38,0.86);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 5;
  max-width: 480px;
  font-family: 'Inter', system-ui, sans-serif;
}
.lp-chip-eyebrow {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3px;
  font-weight: 600;
}
.lp-chip-line { font-size: 13px; font-weight: 500; }

/* ═══════════════════════ RAIL ═══════════════════════ */
.lp-rail {
  flex: 0 0 380px;
  background: #fff;
  border-left: 1px solid rgba(10,18,38,0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lp-rail-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 22px 12px;
  font-family: 'Inter', system-ui, sans-serif;
}

.lp-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  gap: 4px;
  justify-content: space-between;
}
.lp-stepper li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  color: #5C6273;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lp-stepper li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(10,18,38,0.15);
  background: #fff;
  color: #5C6273;
  font-size: 11px;
  font-weight: 700;
}
.lp-stepper li.is-done span {
  background: #E81820;
  border-color: #E81820;
  color: #fff;
  font-size: 0;
}
.lp-stepper li.is-done span::after { content: "✓"; font-size: 12px; }
.lp-stepper li.is-active span {
  background: #0A1226;
  border-color: #0A1226;
  color: #fff;
}
.lp-stepper li.is-active { color: #0A1226; }

.lp-q-step {
  font-size: 10px;
  color: #E81820;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.lp-q-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #0A1226;
  margin: 0 0 6px;
  line-height: 1.15;
}
.lp-q-hint {
  font-size: 13px;
  color: #5C6273;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ── Size grid — 3+2 flow for 5 tiles ── */
.lp-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lp-size-tile {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 8px;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.lp-size-tile:hover { border-color: #E81820; }
.lp-size-tile.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.lp-size-diagram {
  background: #0A1226;
  border-radius: 2px;
  flex-shrink: 0;
  transition: background .15s;
  max-height: 72px;
  max-width: 60px;
}
.lp-size-tile.is-active .lp-size-diagram { background: #E81820; }
/* Custom-size tile: the diagram box shows a plus icon instead of a solid rectangle,
   because the size isn't fixed until the user enters it. */
.lp-size-diagram--custom {
  background: transparent;
  border: 2px dashed #94A1B2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A1B2;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .15s, color .15s;
}
.lp-size-tile.is-active .lp-size-diagram--custom {
  background: transparent;
  border-color: #E81820;
  color: #E81820;
}
.lp-size-tile.is-active .lp-size-diagram--custom span { color: #E81820; }

/* Custom size inputs — revealed when Custom tile is selected */
.lp-custom-size {
  margin-top: 12px;
  padding: 14px 16px;
  background: #F5F7FB;
  border: 1px solid #DDE3EC;
  border-radius: 12px;
}
.lp-custom-size[hidden] { display: none; }
.lp-custom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lp-custom-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-custom-label {
  font-size: 11px;
  font-weight: 600;
  color: #4B5768;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lp-custom-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #C6CEDA;
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color .15s;
}
.lp-custom-input-wrap:focus-within {
  border-color: #E81820;
  box-shadow: 0 0 0 3px rgba(232,24,32,0.10);
}
.lp-custom-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #0A1226;
  padding: 10px 0;
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
}
.lp-custom-input-wrap input::-webkit-outer-spin-button,
.lp-custom-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lp-custom-suffix {
  font-size: 13px;
  color: #7A8595;
  font-weight: 500;
  padding-left: 8px;
  flex-shrink: 0;
}
.lp-custom-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6E7887;
}
.lp-size-label {
  font-weight: 700;
  color: #0A1226;
  font-size: 13px;
}
.lp-size-note {
  font-size: 10px;
  color: #5C6273;
  text-align: center;
  line-height: 1.2;
}

/* ── Quantity grid ── */
.lp-qty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lp-qty-tile {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 8px;
  padding: 14px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.lp-qty-tile:hover { border-color: #E81820; }
.lp-qty-tile.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.lp-qty-num {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #0A1226;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lp-qty-note {
  font-size: 11px;
  color: #5C6273;
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.3;
}
.lp-qty-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: #5C6273;
}
.lp-qty-custom input {
  border: 1px solid rgba(10,18,38,0.10);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  width: 90px;
  color: #0A1226;
  background: #fff;
}
.lp-qty-custom input:focus { outline: 2px solid #E81820; outline-offset: -1px; }

/* ── Login gate (Step 3) ── */
.lp-art-gate {
  border: 1px solid rgba(232,24,32,0.30);
  background: rgba(232,24,32,0.05);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.lp-gate-text {
  color: #0A1226;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.lp-gate-cta {
  display: inline-block;
  background: #E81820;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}
.lp-gate-cta:hover { background: #C21418; }

/* ── Upload dropzone ── */
.lp-upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px dashed rgba(10,18,38,0.20);
  border-radius: 12px;
  background: #FAF7F2;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lp-upload-drop:hover {
  border-color: #E81820;
  background: rgba(232,24,32,0.05);
}
.lp-upload-drop.is-dragging {
  border-color: #E81820;
  background: rgba(232,24,32,0.10);
}
.lp-upload-icon { font-size: 30px; color: #E81820; font-weight: 700; line-height: 1; }
.lp-upload-text { font-weight: 600; font-size: 14px; color: #0A1226; }
.lp-upload-sub { font-size: 11px; color: #5C6273; }
.lp-upload-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34,197,94,0.10);
  color: #22C55E;
  font-size: 12px;
  font-weight: 500;
}
.lp-upload-fine {
  font-size: 11px;
  color: #5C6273;
  margin-top: 12px;
  line-height: 1.4;
  font-style: italic;
}

/* ── Options ── */
.lp-opt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(10,18,38,0.08);
  cursor: pointer;
}
.lp-opt-row:last-child { border-bottom: none; }
.lp-opt-name { font-weight: 600; font-size: 14px; color: #0A1226; grid-column: 1; }
.lp-opt-desc { font-size: 12px; color: #5C6273; grid-column: 1; grid-row: 2; }
.lp-opt-toggle { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.lp-opt-toggle input[type="checkbox"] {
  appearance: none;
  width: 44px; height: 24px;
  border-radius: 12px;
  background: rgba(10,18,38,0.15);
  position: relative;
  cursor: pointer;
  transition: background .15s;
  margin: 0;
}
.lp-opt-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.lp-opt-toggle input[type="checkbox"]:checked { background: #E81820; }
.lp-opt-toggle input[type="checkbox"]:checked::before { transform: translateX(20px); }
.lp-opt-toggle input[type="number"],
.lp-opt-toggle .lp-opt-select {
  border: 1px solid rgba(10,18,38,0.10);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  background: #fff;
  color: #0A1226;
}
.lp-opt-toggle input[type="number"] { width: 60px; text-align: center; }
.lp-opt-toggle .lp-opt-select { min-width: 140px; }

/* ── Review ── */
.lp-review-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  column-gap: 12px;
  font-size: 13px;
}
.lp-review-list dt { color: #5C6273; }
.lp-review-list dd { margin: 0; color: #0A1226; font-weight: 500; text-align: right; }

/* ═══════════════════════ RAIL FOOTER ═══════════════════════ */
.lp-rail-foot {
  flex-shrink: 0;
  border-top: 1px solid rgba(10,18,38,0.08);
  padding: 14px 22px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}
.lp-total { margin-bottom: 12px; }
.lp-total-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C6273;
  font-weight: 600;
}
.lp-total-value {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #E81820;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 3px 0 2px;
}
.lp-total-note {
  font-size: 11px;
  color: #22C55E;
  font-weight: 500;
}

/* Locked price block (shown when logged out) */
.lp-locked {
  margin-bottom: 12px;
}
.lp-locked-urgency {
  font-size: 12px;
  color: #0A1226;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 6px;
  animation: lpLockedPulse 2.4s ease-in-out infinite;
}
.lp-locked-star {
  color: #E81820;
  font-size: 14px;
  animation: lpStarSpin 3.6s ease-in-out infinite;
}
@keyframes lpLockedPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes lpStarSpin { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(18deg); } }
@media (prefers-reduced-motion: reduce) {
  .lp-locked-urgency, .lp-locked-star { animation: none; }
}
.lp-locked-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #E81820;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  box-sizing: border-box;
}
.lp-locked-cta:hover { background: #C21418; }

.lp-navrow { display: flex; gap: 8px; }
.lp-btn-primary,
.lp-btn-ghost {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  border: none;
}
.lp-btn-primary { background: #E81820; color: #fff; }
.lp-btn-primary:hover:not(:disabled) { background: #C21418; }
.lp-btn-primary:disabled {
  background: rgba(10,18,38,0.20);
  color: rgba(10,18,38,0.50);
  cursor: not-allowed;
}
.lp-btn-ghost {
  background: transparent;
  color: #0A1226;
  border: 1px solid rgba(10,18,38,0.15);
}
.lp-btn-ghost:hover:not(:disabled) { border-color: #0A1226; }
.lp-btn-ghost:disabled { color: rgba(10,18,38,0.30); cursor: not-allowed; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 900px) {
  .lp-main { flex-direction: column; }
  .lp-preview { min-height: 50vh; }
  .lp-rail {
    flex: 1 1 auto;
    border-left: none;
    border-top: 1px solid rgba(10,18,38,0.08);
  }
  .lp-size-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════ PANEL-SPECIFIC ADDITIONS ═══════════════════════ */
/* Everything below is new for the Lobby Panel builder — not present in
   yard-sign.css. Reuses the same design tokens (colors, radii, fonts). */

/* Standoff dots overlay on the panel face preview */
.lp-standoff-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp-standoff-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.15);
}
.lp-standoff-dot.is-silver { background: linear-gradient(135deg, #E8ECF2, #A9B2C0); }
.lp-standoff-dot.is-black { background: linear-gradient(135deg, #3A3F4A, #14161B); }

/* Generic segmented control ("seg"/"seg-btn") — ported concept from
   crispsign-builders lobby/panel.html's rail controls (standoff color,
   corners, acrylic type, sides). Not present in this repo before this PR. */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg-btn {
  border: 1.5px solid #DDE3EC;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0A1226;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.seg-btn:hover { border-color: #E81820; }
.seg-btn.is-active {
  border-color: #E81820;
  background: #E81820;
  color: #fff;
}

.lp-substep {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(10,18,38,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-substep[hidden] { display: none; }
.lp-cap {
  font-size: 11px;
  font-weight: 700;
  color: #4B5768;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lp-select {
  border: 1px solid #C6CEDA;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0A1226;
  background: #fff;
  width: 100%;
}
.lp-select:focus { outline: 2px solid #E81820; outline-offset: -1px; }

.lp-custom-warning {
  margin: 10px 0 0;
  font-size: 12px;
  color: #B42318;
  background: rgba(232,24,32,0.08);
  border: 1px solid rgba(232,24,32,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.4;
}
.lp-custom-warning[hidden] { display: none; }

/* ── Material grid (Step 1) ── */
.lp-material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.lp-material-tile {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 10px;
  padding: 12px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.lp-material-tile:hover { border-color: #E81820; }
.lp-material-tile.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.lp-material-name {
  font-weight: 700;
  font-size: 13px;
  color: #0A1226;
  line-height: 1.25;
}
.lp-material-sub {
  font-size: 11px;
  color: #5C6273;
  line-height: 1.3;
}
.lp-material-tile.is-default .lp-material-name::after {
  content: " (default)";
  font-weight: 500;
  color: #E81820;
  font-size: 10px;
}
.lp-material-detail {
  margin-top: 12px;
  font-size: 12px;
  color: #4B5768;
  line-height: 1.5;
  background: #F5F7FB;
  border: 1px solid #DDE3EC;
  border-radius: 10px;
  padding: 12px 14px;
}
.lp-material-detail dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
}
.lp-material-detail dt { color: #7A8595; font-weight: 600; }
.lp-material-detail dd { margin: 0; color: #0A1226; }

@media (max-width: 900px) {
  .lp-material-grid { grid-template-columns: 1fr; }
}
