/* ==========================================================================
   石阶 · Minimalist Modern UI Theme (简约现代版)
   Architectural gallery aesthetic — high-clarity controls, soft tonal cards,
   frosted viewport HUD, crisp obsidian charcoal accent.
   ========================================================================== */

:root {
  interpolate-size: allow-keywords;
  --bg-page: #f4f4f1;
  --bg-stage: #f1f2eb;
  --surface: #ffffff;
  --surface-subtle: #f6f6f3;
  --surface-track: #f1f1ed;
  --surface-hover: #ededE8;

  --ink: #171816;
  --ink-secondary: #52554f;
  --ink-muted: #8a8d86;

  --accent: #181a18;
  --accent-hover: #2d312d;
  --accent-soft: #f2f2ee;
  --green: #181a18;

  --line: rgba(23, 24, 22, 0.08);
  --line-strong: rgba(23, 24, 22, 0.16);
  --paper: #ffffff;

  --hud-bg: rgba(255, 255, 255, 0.82);
  --hud-border: rgba(23, 24, 22, 0.08);
  --hud-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 58px;
}

/* ── Base & Typography ───────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
a {
  transition: background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.16s var(--ease),
    opacity 0.18s var(--ease);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Slim Architectural Header ───────────────────────────────────────────── */
.header {
  height: var(--header-h);
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.brand {
  gap: 10px;
}

.brand svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand > span {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.brand small {
  display: inline;
  margin-top: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.header-note {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.prototype {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
}

.prototype:hover {
  background: var(--surface-subtle);
  border-color: rgba(23, 24, 22, 0.28);
}

/* ── Main Split Layout ───────────────────────────────────────────────────── */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  height: calc(100dvh - var(--header-h));
  min-height: 0;
}

/* ── 3D Stage & Frosted Gallery HUD ──────────────────────────────────────── */
.viewer {
  background: var(--bg-stage);
}

/* Top-left status capsule */
.model-chip {
  left: 20px;
  top: 20px;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-pill);
  background: var(--hud-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--hud-shadow);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.model-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f6b51;
  flex: none;
}

/* Subtle architectural meta caption tucked cleanly under chip */
.model-status {
  top: 62px;
  bottom: auto;
  left: 24px;
  font-size: 11px;
  color: rgba(23, 24, 22, 0.46);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: min(420px, calc(100% - 260px));
}

/* Top-right view mode segmented capsule */
.view-tools {
  top: 20px;
  right: 20px;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-pill);
  background: var(--hud-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--hud-shadow);
}

.view-tools button {
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.view-tools button:hover {
  color: var(--ink);
  background: rgba(23, 24, 22, 0.05);
}

.view-tools button.active {
  background: var(--accent);
  color: #ffffff;
}

/* Bottom floating camera pill */
.camera-tools {
  bottom: 34px;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-pill);
  background: var(--hud-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--hud-shadow);
}

.camera-tools button {
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.camera-tools button:hover {
  color: var(--ink);
  background: rgba(23, 24, 22, 0.05);
}

.camera-tools button.active {
  background: var(--accent);
  color: #ffffff;
}

.camera-tools .minor {
  font-size: 12px;
  color: var(--ink-muted);
  padding: 8px 12px;
}

.camera-tools .minor:hover {
  color: var(--ink);
}

.camera-tools .minor.active {
  color: #ffffff;
}

.camera-tools .camera-divider {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
  margin: 0 4px;
}

.camera-tools .camera-reset {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-secondary);
}

.camera-tools .camera-reset:hover {
  color: var(--ink);
  background: rgba(23, 24, 22, 0.06);
}

/* Transparent unobtrusive interaction hint (replaces opaque bottom strip) */
.scene-footer {
  border-top: 0;
  background: transparent;
  padding: 0;
  bottom: 10px;
  height: 18px;
  pointer-events: none;
  color: rgba(23, 24, 22, 0.38);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* ── Right Configurator Sidebar ──────────────────────────────────────────── */
.config {
  background: var(--surface);
  border-left: 1px solid var(--line);
}

/* Segmented Control for 4 Fixed Main Tabs */
.config-tabs {
  margin: 14px 20px 10px;
  padding: 4px;
  gap: 3px;
  border-bottom: 0;
  border-radius: 11px;
  background: var(--surface-track);
}

.config-tabs .main-tab {
  position: relative;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.config-tabs .main-tab.has-active::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 11px;
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #4f6b51;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.config-tabs .main-tab:hover {
  color: var(--ink);
}

.config-tabs .main-tab[aria-selected="true"] {
  border-color: transparent;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
}

.config-scroll {
  padding: 0 9px 0 20px;
  scrollbar-gutter: stable;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 24, 22, 0.14) transparent;
}

/* Sub-tabs inside page */
.sub-tabs {
  gap: 6px;
  padding: 4px 0 14px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.sub-tabs button {
  border: 1px solid transparent;
  background: var(--surface-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.sub-tabs button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.sub-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

/* Option Sections */
.option-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.layout-section,
.side-inline-section,
#options-joint .option-section,
#options-glass .option-section,
#options-wood .option-section {
  border-bottom: 0;
}

.side-inline-section {
  margin-top: 12px;
  padding-top: 14px;
  padding-bottom: 6px;
  border-top: 1px solid var(--line);
}

.side-inline-section .side-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.side-inline-section .side-options button {
  min-height: 72px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.side-inline-section .side-options svg {
  width: 44px;
  height: 24px;
}

.side-inline-section .side-options span {
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.layout-section {
  padding-top: 14px;
}

.section-title {
  margin-bottom: 14px;
}

h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h3 > span {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-track);
  color: var(--ink-muted);
}

.section-meta {
  font-size: 11px;
  color: var(--ink-muted);
}

.text-button {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 500;
}

.text-button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.field-note {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.65;
  margin: 10px 0 0;
}

/* ── Modern Tonal Option Cards ───────────────────────────────────────────── */
.options {
  gap: 8px;
}

.options button {
  border: 1.5px solid transparent;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  color: var(--ink);
}

.options button:hover {
  background: var(--surface-hover);
  border-color: rgba(23, 24, 22, 0.1);
}

.options button.selected {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.options button.selected::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.options svg {
  stroke: #343832;
  stroke-width: 1.35;
}

.options button.selected svg {
  stroke: var(--ink);
}

/* Layout cards */
.layout-options {
  gap: 10px;
}

.layout-options button {
  padding: 16px 8px 14px;
}

.layout-options svg {
  width: 58px;
  height: 38px;
  margin: 0 auto 10px;
  opacity: 0.78;
}

.layout-options button.selected svg {
  opacity: 1;
}

.layout-options span {
  font-size: 12px;
  font-weight: 500;
}

/* Compact buttons (skirting, glass toggle, zigzag) as sleek segmented track */
.compact-options {
  padding: 3px;
  gap: 3px;
  border-radius: 11px;
  background: var(--surface-track);
}

.compact-options button {
  padding: 9px 8px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
}

.compact-options button:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: transparent;
  color: var(--ink);
}

.compact-options button.selected::after {
  display: none;
}

.compact-options button.selected {
  background: var(--surface);
  border-color: transparent;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* ── Material Tab ────────────────────────────────────────────────────────── */
#options-material .option-section {
  padding: 12px 0 10px;
}

#options-material .section-title {
  margin-bottom: 10px;
}

/* 5-part selector as sleek segmented bar */
.material-targets {
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: var(--surface-track);
  margin-bottom: 10px;
}

.material-targets button {
  min-height: 34px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.material-targets button:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: transparent;
  color: var(--ink);
}

.material-targets button.selected {
  background: var(--surface);
  border-color: transparent;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.material-targets button.selected::after {
  display: none;
}

/* Stone Swatch Cards */
.material-options {
  gap: 8px;
}

.material-options button {
  padding: 6px 7px 8px;
  border: 1.5px solid transparent;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
}

.material-options button:hover {
  background: var(--surface-hover);
}

.material-options button.selected {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.material-options button.selected::after {
  top: 10px;
  right: 10px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.swatch {
  height: 34px;
  border-radius: 7px;
  margin-bottom: 6px;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.swatch.linear {
  height: 46px;
  border-radius: 7px;
}

.material-options span {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.material-options button.selected span {
  color: var(--ink);
  font-weight: 600;
}

/* Collapsible Accordions (.fold) — smooth expand, zero layout shift */
.fold {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.fold::details-content {
  block-size: 0;
  opacity: 0;
  overflow: hidden;
  transition: block-size 0.22s var(--ease),
    opacity 0.18s var(--ease),
    content-visibility 0.22s allow-discrete;
}

.fold[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.fold > summary {
  min-height: 44px;
  padding: 6px 14px;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.16s var(--ease);
}

.fold > summary:hover {
  background: var(--surface-subtle);
}

.fold > summary:hover .fold-value {
  background: var(--surface);
}

.fold > summary::after {
  border-color: var(--ink-muted);
  transform: translateY(-1.5px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.fold[open] > summary::after {
  transform: translateY(1.5px) rotate(-135deg);
}

.fold-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.fold-value {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
  transition: background-color 0.16s var(--ease);
}

.fold-body {
  padding: 6px 14px 12px;
  border-top: 1px solid var(--line);
}

/* Texture Slider & Controls */
.fold .texture-controls {
  margin: 0 0 8px;
}

.texture-heading {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.texture-heading output {
  color: var(--ink);
}

.texture-heading button {
  min-height: 28px;
}

.texture-controls input[type="range"] {
  accent-color: var(--accent);
  min-height: 24px;
  margin: 4px 0 0;
}

/* Interactive SketchUp-style Slab Viewport Picker */
.slab-picker {
  position: relative;
  height: 78px;
  margin: 8px 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #232422;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.slab-picker.dragging {
  cursor: grabbing;
  border-color: var(--accent);
}

.slab-picker canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slab-picker-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  height: 64%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.94);
  border-radius: 5px;
  box-shadow: 0 0 0 999px rgba(16, 18, 16, 0.34), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: width 0.14s var(--ease), height 0.14s var(--ease), transform 0.08s linear;
}

.slab-picker.dragging .slab-picker-frame {
  transition: none;
}

.slab-picker-hint {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 20, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
}

.slab-picker.dragging .slab-picker-hint,
.texture-controls:disabled .slab-picker-hint {
  opacity: 0;
}

.texture-controls:disabled .slab-picker {
  cursor: default;
  filter: grayscale(0.4);
  opacity: 0.5;
}

.texture-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 2px;
}

.texture-presets button {
  min-height: 28px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
}

.texture-presets button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.texture-presets button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

.texture-directions {
  padding: 3px;
  gap: 3px;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--surface-track);
}

.texture-directions button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.texture-directions button.selected {
  background: var(--surface);
  border-color: transparent;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.texture-controls .field-note {
  margin-top: 8px;
}

.surface-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.surface-label {
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.surface-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
  max-width: 196px;
  padding: 2px;
  gap: 2px;
  border-radius: 9px;
  background: var(--surface-track);
}

.surface-options button {
  min-height: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.surface-options button:hover {
  color: var(--ink);
}

.surface-options button.selected {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.custom-material {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.custom-material input {
  width: 38px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.custom-material button {
  min-height: 34px;
}

/* Stone Catalog Filters & Grid */
.catalog-filters {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
}

.catalog-filters input,
.catalog-filters select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  padding: 6px 10px;
  font-size: 12px;
}

.catalog-filters input:focus,
.catalog-filters select:focus {
  background: var(--surface);
  border-color: var(--accent);
}

.catalog-options {
  gap: 10px;
}

.catalog-options button {
  padding: 6px 6px 10px;
  border-radius: 10px;
}

.catalog-options img {
  height: 84px;
  background: #1b1c1b;
  border-radius: 6px;
  margin-bottom: 8px;
}

.catalog-options button span {
  font-size: 12px;
  font-weight: 500;
  padding: 0 2px;
}

.catalog-options button small {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-track);
  color: var(--ink-secondary);
  margin: 5px 2px 0;
}

.catalog-options [data-status="待核验"] small {
  background: #fbf3e2;
  color: #8a6116;
}

.catalog-options [data-status="需重做"] small {
  background: #fbeae7;
  color: #a93c2c;
}

/* ── Detail / Joint & Side Cards ─────────────────────────────────────────── */
.raw-joint-card {
  min-height: 46px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.raw-joint-card:hover {
  background: var(--surface-hover);
}

.raw-joint-card small {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(23, 24, 22, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
}

.raw-joint-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.raw-joint-card[aria-pressed="true"] small {
  background: var(--accent);
  color: #ffffff;
}

.joint-options button {
  padding: 10px 10px;
  min-height: 62px;
  gap: 8px;
}

.joint-options button > small {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
}

.joint-options span {
  font-size: 12px;
  font-weight: 500;
}

.section-card {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 12px;
}

.section-card p {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.side-options button {
  padding: 14px 6px 12px;
}

.side-options span {
  font-size: 11px;
  font-weight: 500;
}

/* ── Glass & Wood Extra Controls ─────────────────────────────────────────── */
.glass-looks {
  margin-top: 20px;
}

.glass-looks legend {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.glass-options button,
.wood-options button {
  min-height: 76px;
  padding: 10px 6px;
}

.glass-options button span,
.wood-options button span {
  font-size: 12px;
  font-weight: 500;
}

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

.wood-style-options button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 10px 11px;
  text-align: left;
}

.wood-style-options button span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.wood-style-options button small {
  font-size: 10px;
  color: var(--ink-muted);
  line-height: 1.3;
}

.wood-swatch {
  margin: 0 auto 8px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.wood-swatch.oak {
  background: linear-gradient(135deg, #d3b690, #b8956b);
  border-color: #9e7d56;
}

.wood-swatch.ivory {
  background: linear-gradient(135deg, #f3ede1, #e1d8c6);
  border-color: #c7beac;
}

/* Secondary buttons across panel */
.secondary {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

/* ── Bottom Save Bar ─────────────────────────────────────────────────────── */
.save-panel {
  border-top: 1px solid var(--line);
  padding: 14px 20px 12px;
  background: var(--surface);
}

.save-panel #selection-summary {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.primary {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.primary:hover {
  background: var(--accent-hover);
}

.save-panel #save {
  min-height: 42px;
  padding: 8px 18px;
  box-shadow: 0 2px 10px rgba(24, 26, 24, 0.16);
}

.save-panel #save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(24, 26, 24, 0.22);
}

.save-panel #save:active {
  transform: translateY(0);
}

.save-panel > small {
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* ── Save Dialog & Toast ─────────────────────────────────────────────────── */
#save-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

dialog::backdrop {
  background: rgba(16, 18, 16, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-title-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dialog-heading h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.plan-angle-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  background: var(--surface-track);
}

#save-dialog .plan-angle-toggle button {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

#save-dialog .plan-angle-toggle button.selected {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#save-dialog #close-dialog {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#save-dialog #close-dialog:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

#plan-preview {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

#save-dialog .dialog-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: 8px;
  margin-top: 16px;
}

#save-dialog .dialog-actions button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  #save-dialog .dialog-actions {
    grid-template-columns: 1fr 1fr;
  }
  #save-dialog .dialog-actions #download {
    grid-column: 1 / -1;
  }
}

#plan-feedback {
  color: var(--ink-muted);
  font-size: 11px;
  margin-top: 10px;
}

#toast {
  border-radius: var(--radius-pill);
  background: rgba(24, 26, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ── Wide Desktop ────────────────────────────────────────────────────────── */
@media (min-width: 1500px) {
  main {
    grid-template-columns: minmax(0, 1fr) 416px;
  }

  .config-tabs {
    margin: 16px 24px 10px;
  }

  .config-scroll {
    padding: 0 13px 0 24px;
  }

  .save-panel {
    padding: 14px 24px 12px;
  }
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1050px) {
  main {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .header {
    padding: 0 18px;
  }

  .config-tabs {
    margin: 12px 16px 8px;
  }

  .config-scroll {
    padding: 0 5px 0 16px;
  }

  .save-panel {
    padding: 12px 16px 10px;
  }

  .view-tools {
    top: 16px;
    right: 16px;
  }

  .model-chip {
    top: 16px;
    left: 16px;
  }

  .model-status {
    top: 56px;
    left: 20px;
  }
}

/* ── Mobile (390px+ crisp & non-overlapping) ─────────────────────────────── */
@media (max-width: 720px) {
  :root {
    --header-h: 52px;
  }

  .header {
    height: var(--header-h);
    padding: 0 14px;
  }

  .brand svg {
    width: 20px;
    height: 20px;
  }

  .brand > span {
    font-size: 15px;
    gap: 7px;
  }

  .brand small {
    padding-left: 7px;
    font-size: 10px;
  }

  .prototype {
    padding: 5px 10px;
    font-size: 11px;
  }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(220px, 40dvh, 360px) minmax(0, 1fr);
    height: calc(100dvh - var(--header-h));
  }

  .viewer {
    height: auto;
    min-height: 0;
  }

  .model-chip {
    left: 12px;
    top: 12px;
    padding: 6px 11px;
    font-size: 11px;
    max-width: calc(100% - 172px);
  }

  /* Prevent status line from ever overlapping the 3D staircase on mobile */
  .model-status {
    display: none;
  }

  .view-tools {
    top: 12px;
    right: 12px;
    display: flex;
    max-width: none;
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
  }

  .view-tools button {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  .camera-tools {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 3px;
    transform: none;
    max-width: none;
  }

  .camera-tools button {
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .camera-tools .camera-reset {
    width: 30px;
    height: 30px;
    padding: 0 !important;
  }

  .scene-footer {
    display: none;
  }

  .config {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .config-tabs {
    margin: 10px 14px 6px;
    padding: 3px;
  }

  .config-tabs .main-tab {
    min-height: 34px;
    font-size: 13px;
  }

  .config-scroll {
    padding: 0 14px;
    scrollbar-gutter: auto;
  }

  .layout-options {
    gap: 8px;
  }

  .layout-options button {
    padding: 12px 6px 10px;
  }

  .save-panel {
    position: static;
    padding: 10px 14px 10px;
    box-shadow: none;
  }

  .save-panel #save {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (min-width: 520px) and (max-width: 720px) and (max-height: 480px) and (orientation: landscape) {
  main {
    grid-template-columns: minmax(0, 1fr) minmax(282px, 47%);
    grid-template-rows: minmax(0, 1fr);
  }

  .config {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ==========================================================================
   UI 3.0 · Full-Bleed Architectural Gallery + Floating Drawer + Borderless Slab Wall
   ========================================================================== */

:root {
  --v3-drawer-w: 384px;
  --v3-gap: 18px;
  --v3-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.v3-gallery {
  background: var(--bg-stage);
  overflow: hidden;
}

body.v3-gallery main {
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.v3-gallery .viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 38% 46%, #f6f6f0 0%, #eeefe7 62%, #e6e7de 100%);
}

body.v3-gallery #scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.v3-brand-hud {
  position: fixed;
  top: 20px;
  left: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(23, 24, 22, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: 0 8px 28px rgba(18, 20, 18, 0.06), 0 1px 2px rgba(18, 20, 18, 0.04);
}

.v3-brand-hud .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.v3-brand-hud .brand svg {
  width: 19px;
  height: 19px;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.v3-brand-hud .brand > span {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.v3-hud-sep {
  width: 1px;
  height: 15px;
  background: rgba(23, 24, 22, 0.14);
}

.v3-brand-hud .model-chip {
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.v3-brand-hud .model-chip::before {
  width: 6px;
  height: 6px;
}

.v3-top-actions {
  position: fixed;
  top: 20px;
  right: calc(var(--v3-drawer-w) + var(--v3-gap) + 14px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: right 0.36s var(--v3-ease);
}

body.v3-panel-collapsed .v3-top-actions {
  right: 22px;
}

.v3-top-actions .view-tools {
  position: static;
  box-shadow: 0 8px 28px rgba(18, 20, 18, 0.06), 0 1px 2px rgba(18, 20, 18, 0.04);
}

.v3-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(23, 24, 22, 0.09);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: 0 8px 28px rgba(18, 20, 18, 0.06), 0 1px 2px rgba(18, 20, 18, 0.04);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.v3-panel-toggle:hover {
  background: #ffffff;
  border-color: rgba(23, 24, 22, 0.22);
}

.v3-panel-toggle svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

body.v3-panel-collapsed .v3-panel-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 26, 24, 0.24);
}

body.v3-panel-collapsed .v3-panel-toggle:hover {
  background: var(--accent-hover);
}

body.v3-gallery .camera-tools {
  position: fixed;
  bottom: 24px;
  left: calc((100vw - var(--v3-drawer-w) - var(--v3-gap)) / 2);
  transform: translateX(-50%);
  z-index: 20;
  transition: left 0.36s var(--v3-ease);
  box-shadow: 0 10px 32px rgba(18, 20, 18, 0.07), 0 1px 2px rgba(18, 20, 18, 0.04);
}

body.v3-panel-collapsed .camera-tools {
  left: 50%;
}

body.v3-gallery aside.config {
  position: fixed;
  top: var(--v3-gap);
  right: var(--v3-gap);
  bottom: var(--v3-gap);
  width: var(--v3-drawer-w);
  height: auto;
  z-index: 25;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 24, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 24px 64px rgba(18, 20, 18, 0.11), 0 2px 10px rgba(18, 20, 18, 0.04);
  overflow: hidden;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.38s var(--v3-ease), opacity 0.28s var(--v3-ease);
}

body.v3-panel-collapsed aside.config {
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
}

body.v3-gallery .config-tabs {
  margin: 14px 16px 10px;
  padding: 4px;
  background: var(--surface-track);
  border-radius: 11px;
}

body.v3-gallery .config-scroll {
  padding: 0 16px 14px;
}

body.v3-gallery .save-panel {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(23, 24, 22, 0.07);
  padding: 13px 16px 12px;
}

body.v3-gallery .section-title h3 > span {
  display: none;
}

body.v3-gallery .section-title h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.v3-gallery .material-options [data-value="linear"] {
  position: relative;
  padding: 0;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px solid transparent;
}

body.v3-gallery .material-options [data-value="linear"] .swatch.linear {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: #9f988b url("assets/marble-linear-slab-v1.webp") center/118% auto no-repeat;
}

body.v3-gallery .material-options [data-value="linear"] > span {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

body.v3-gallery .material-options [data-value="linear"].selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(24, 26, 24, 0.14);
}

.v3-slab-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.v3-slab-wall button {
  position: relative;
  display: block;
  width: 100%;
  height: 106px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1.5px solid rgba(23, 24, 22, 0.08);
  background: #e9e9e4;
  text-align: left;
  box-shadow: 0 2px 8px rgba(18, 20, 18, 0.04);
  transition: transform 0.2s var(--v3-ease), box-shadow 0.2s var(--v3-ease), border-color 0.2s var(--v3-ease);
}

.v3-slab-wall button:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 24, 22, 0.26);
  box-shadow: 0 8px 20px rgba(18, 20, 18, 0.10);
}

.v3-slab-wall button.selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(24, 26, 24, 0.16), 0 8px 20px rgba(18, 20, 18, 0.12);
}

.v3-slab-wall button.selected::after {
  right: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  z-index: 3;
}

.v3-slab-crop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e5e4dd;
}

.v3-slab-crop img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  object-fit: unset !important;
  pointer-events: none;
  transition: transform 0.35s var(--v3-ease);
}

.v3-slab-wall button:hover .v3-slab-crop img {
  filter: contrast(1.03) brightness(1.02);
}

.v3-slab-crop::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  background: linear-gradient(to top, rgba(16, 18, 16, 0.44), transparent);
  pointer-events: none;
}

.v3-slab-wall button > span {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

@media (max-width: 860px) {
  body.v3-gallery {
    overflow: auto;
  }

  body.v3-gallery main {
    height: auto;
    min-height: 100dvh;
  }

  body.v3-gallery .viewer {
    position: relative;
    width: 100%;
    height: 54dvh;
    min-height: 360px;
  }

  .v3-brand-hud {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    gap: 8px;
  }

  .v3-brand-hud .model-chip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100vw - 120px);
  }

  .v3-top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .v3-panel-toggle {
    display: none;
  }

  body.v3-gallery .camera-tools {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
  }

  body.v3-gallery aside.config {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -14px 10px 12px;
    border-radius: 20px;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Unified Stone Library Section (No flat color presets, directly browsable slab wall) */
.v3-material-section {
  padding-top: 8px !important;
}

.v3-material-section .material-targets {
  margin-bottom: 10px;
}

.v3-material-section #texture-fold {
  margin: 0 0 14px;
}

.v3-catalog-block {
  margin-top: 2px;
}

.v3-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.v3-catalog-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.v3-catalog-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.v3-catalog-count {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-track);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.v3-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.v3-upload-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.v3-slab-wall.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  border-radius: 14px;
  background: rgba(24, 26, 24, 0.03);
}

.v3-slab-wall button[data-custom="1"] .v3-slab-crop img {
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}

.v3-slab-wall button .v3-slab-del {
  position: absolute;
  top: 7px;
  left: 7px;
  right: auto;
  bottom: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(20, 22, 20, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.16s var(--ease), background-color 0.16s var(--ease);
}

.v3-slab-wall button:hover .v3-slab-del,
.v3-slab-wall button:focus-within .v3-slab-del,
.v3-slab-wall button.selected .v3-slab-del {
  opacity: 1;
}

.v3-slab-wall button .v3-slab-del:hover {
  background: #b9382c;
}

@media (hover: none) {
  .v3-slab-wall button .v3-slab-del {
    opacity: 0.92;
  }
}

.v3-catalog-block .catalog-filters {
  margin-top: 0;
  margin-bottom: 10px;
}

.v3-catalog-block .catalog-filters input {
  background: var(--surface-subtle);
  border-color: var(--line);
  border-radius: 10px;
}

.v3-catalog-block .catalog-filters input:focus {
  background: var(--surface);
  border-color: var(--accent);
}
