:root {
  --head-bg: #151b21;
  --head-border: #263039;
  --btn-bg: #222b34;
  --btn-border: #33404b;
  --btn-text: #dbe7f2;
  --accent: #0284c7;
  --accent-border: #38bdf8;
  --muted: #8a9aa9;
  --panel: rgba(21, 27, 33, .98);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f1419;
  font-family: Avenir, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; }
input, textarea { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
[hidden] { display: none !important; }

.model-preview-page {
  position: fixed;
  inset: 0;
  background: #1a1a2e;
  overflow: hidden;
}

.studio-viewer-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0f1419;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------------- header ---------------- */
.mv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
  background: var(--head-bg);
  border-bottom: 1px solid var(--head-border);
  color: #e8eef4;
  font-size: 13px;
  z-index: 20;
  overflow-x: auto;
  overflow-y: visible;
  flex-wrap: nowrap;
  white-space: nowrap;
  scrollbar-width: none;
  flex-shrink: 0;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: #f0f8ff; text-decoration: none; font-size: 15px; font-weight: 700; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; color: #93aab9; font-size: 9px; font-weight: 400; letter-spacing: 1px; margin-top: 2px; }
.mv-head::-webkit-scrollbar { display: none; }
.mv-head > * { flex-shrink: 0; }

.mv-title {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .3px;
  color: #e8eef4;
}

.mv-stats {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .2px;
}

.mv-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mv-tools button {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
}
.mv-tools button:hover { background: #2c3844; border-color: #485a6b; }
.mv-tools button.active { background: var(--accent); border-color: var(--accent-border); color: #fff; }
.mv-tools .primary-action { background: #0284c7; color: #fff; border-color: #38bdf8; font-weight: 700; }

.view-dropdown { position: relative; display: inline-block; flex-shrink: 0; }

.btn-dropdown {
  background: #1e2832 !important;
  border: 1px solid var(--accent-border) !important;
  color: var(--accent-border) !important;
  font-weight: 600;
  gap: 4px;
  min-width: 64px;
  padding: 5px 9px !important;
}
.btn-dropdown.open { background: var(--accent) !important; color: #fff !important; }
.arrow-icon { font-size: 10px; transition: transform .2s; }
.btn-dropdown.open .arrow-icon { transform: rotate(180deg); }

.mv-badge {
  color: var(--accent-border);
  border: 1px solid rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .08);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  flex-shrink: 0;
  line-height: 1.3;
}

/* ---------------- display menu ---------------- */
.display-menu {
  position: fixed;
  top: 52px;
  left: 0;
  width: 220px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .75);
  z-index: 9999;
  color: #e8eef4;
}
.display-menu[hidden] { display: none; }

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #263039;
}
.menu-header span:first-child { font-size: 12px; font-weight: 600; color: var(--accent-border); }
.menu-sub { font-size: 10px; color: #7a8b9a; }

.menu-list { display: flex; flex-direction: column; gap: 7px; max-height: 240px; overflow-y: auto; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background .15s;
}
.menu-item:hover { background: rgba(56, 189, 248, .1); }
.menu-item input[type=checkbox] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 13px;
  height: 13px;
  margin: 0;
}
.item-label { color: #dbe7f2; }
.menu-divider { height: 1px; background: #263039; margin: 10px 0; }
.menu-bg-section { display: flex; flex-direction: column; gap: 6px; }
.bg-title { font-size: 11px; color: var(--muted); }
.bg-presets { display: flex; align-items: center; gap: 8px; }
.bg-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #3a4752;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s;
}
.bg-chip:hover { transform: scale(1.12); }
.bg-chip.active { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-border); }
.bg-custom-btn {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2a3540;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
  border: 1px dashed #4b5d6e;
}
.bg-picker { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---------------- size panel ---------------- */
.size-panel {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .75);
  z-index: 9999;
  color: #e8eef4;
}
.size-panel[hidden] { display: none; }
.size-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.size-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
}
.size-grid input {
  width: 96px;
  background: #0f1419;
  border: 1px solid #33404b;
  color: #e8eef4;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  outline: none;
}
.size-grid input:focus { border-color: var(--accent-border); }
.size-hint {
  font-size: 10px;
  line-height: 1.6;
  color: #7a8b9a;
  margin-bottom: 10px;
}
.door-face { margin: 2px 0 10px; }
.door-wall-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.door-wall-row .door-face-label { margin-bottom: 0; }
.wall-tabs { display: flex; gap: 4px; }
.wall-tabs button {
  background: #1e2832;
  border: 1px solid #33404b;
  color: #cbd5e1;
  border-radius: 5px;
  font-size: 11px;
  padding: 4px 7px;
  cursor: pointer;
  line-height: 1.2;
}
.wall-tabs button.active { background: var(--accent); border-color: var(--accent-border); color: #fff; }
.wall-tabs button:disabled { opacity: .35; cursor: not-allowed; }
.door-face-label {
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 6px;
  line-height: 1.4;
}
.door-track {
  position: relative;
  height: 34px;
  background: #0f1419;
  border: 1px solid #33404b;
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
  overflow: hidden;
}
.door-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 30%;
  border-radius: 3px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 0 8px rgba(56, 189, 248, .55);
}
.door-readout {
  font-size: 11px;
  color: #8a9aa9;
  margin-top: 5px;
}
.door-readout b { color: #e8eef4; }
.size-apply {
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent-border);
  color: #fff;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.size-apply:hover { background: #0294d8; }
.size-apply:active { transform: scale(.99); }

/* ---------------- budget quote ---------------- */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quote-overlay[hidden] { display: none; }
.quote-card {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  color: #222;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.quote-head h3 { margin: 0; font-size: 19px; color: #1d5b8a; }
.quote-head p { margin: 3px 0 0; font-size: 12px; color: #888; }
.quote-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f2f4f6;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  line-height: 1;
}
.quote-meta {
  margin: 12px 0;
  font-size: 12px;
  color: #555;
  background: #f6f8fa;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.6;
}
.quote-details { color: #4d6576; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-copyright { color: #80919f; font-size: 11px; margin: 18px 0 0; }
.quote-warn {
  margin: -4px 0 12px;
  font-size: 11px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 7px 10px;
  line-height: 1.6;
}
.quote-warn[hidden] { display: none; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.quote-table th {
  background: #f2f6f9;
  color: #1d5b8a;
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid #e2e8ee;
  text-align: center;
}
.quote-table td { padding: 8px; border-bottom: 1px solid #eef2f5; text-align: center; }
.quote-table td:first-child { text-align: left; }
.quote-table tfoot td {
  font-weight: 700;
  color: #c0392b;
  border-bottom: none;
  padding-top: 12px;
  font-size: 15px;
}
.quote-chart { display: flex; align-items: center; gap: 18px; margin: 18px 0 10px; }
.quote-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #e8eef3;
}
.quote-donut::after { content: ''; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.quote-donut span { position: relative; z-index: 1; font-size: 11px; color: #555; text-align: center; line-height: 1.2; }
.quote-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #333; flex: 1; }
.quote-legend .row { display: flex; align-items: center; }
.quote-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.quote-legend .num { margin-left: auto; color: #666; }
.quote-notes { margin: 10px 0; padding-left: 18px; font-size: 11px; color: #888; line-height: 1.7; }
.quote-actions { display: flex; gap: 10px; margin-top: 14px; }
.quote-print {
  flex: 1;
  background: #1d5b8a;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.quote-cancel {
  flex: 0 0 96px;
  background: #f0f2f5;
  color: #555;
  border: none;
  border-radius: 22px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}
@media print {
  body * { visibility: hidden !important; }
  #quoteOverlay, #quoteOverlay * { visibility: visible !important; }
  #quoteOverlay {
    position: absolute !important;
    inset: 0 !important;
    background: #fff !important;
    padding: 0 !important;
    display: block !important;
  }
  .quote-card {
    box-shadow: none !important;
    max-height: none !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    padding: 24px !important;
  }
  html, body, #app { position: static !important; overflow: visible !important; height: auto !important; background: #fff !important; }
  #quoteOverlay { overflow: visible !important; }
  .quote-card { overflow: visible !important; }
  .dialog-overlay, .toast, .loading-overlay { display: none !important; }
  .quote-actions, .quote-close { display: none !important; }
}

/* ---------------- 客户方案 / 品牌 ---------------- */
.solution-summary { position: absolute; top: 24px; left: 28px; max-width: 380px; padding: 18px 20px; color: #f0f8ff; background: rgba(15, 25, 34, .78); border: 1px solid rgba(147, 195, 220, .2); border-radius: 12px; pointer-events: none; box-shadow: 0 8px 24px #10182226; }
.summary-eyebrow { color: #67d1ed; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.solution-summary h1 { margin: 10px 0 7px; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.solution-summary p { margin: 0; color: #b4c6d3; font-size: 11px; }
.summary-values { display: flex; gap: 25px; margin-top: 18px; }
.summary-values span { color: #90a9bc; font-size: 10px; }
.summary-values b { display: block; font-size: 15px; font-weight: 600; color: #f1f8fc; margin-top: 6px; }
.solution-summary .summary-contact { margin-top: 13px; overflow-wrap: anywhere; }
.viewer-help { position: absolute; bottom: 18px; left: 28px; font-size: 11px; color: #d3e2ec; opacity: .8; pointer-events: none; }
.brand-footer { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: #151d25; color: #869ead; font-size: 10px; border-top: 1px solid #30404c; }
.brand-footer button { border: 0; padding: 0; background: transparent; color: #b6d6e8; font-size: 10px; cursor: pointer; }
.mobile-actions { display: none; }

/* ---------------- 分享 / 品牌弹窗 ---------------- */
.dialog-overlay { position: fixed; inset: 0; z-index: 11000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 15, 25, .75); backdrop-filter: blur(6px); }
.dialog-card { background: #f8fbfd; color: #17364c; border-radius: 18px; padding: 28px; width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; box-shadow: 0 20px 70px #0005; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-head .summary-eyebrow { color: #0c83af; }
.dialog-head h2 { margin: 8px 0 0; font-size: 23px; }
.dialog-close { border: 0; background: #e7eef3; color: #607989; border-radius: 50%; width: 32px; height: 32px; font-size: 23px; cursor: pointer; flex-shrink: 0; }
.dialog-intro { color: #637e90; line-height: 1.8; font-size: 12px; margin: 15px 0 20px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #3d5b6e; font-size: 12px; margin-bottom: 15px; }
.field input, .field textarea { background: #fff; color: #203d51; border: 1px solid #cfdee7; border-radius: 8px; padding: 11px 12px; min-width: 0; width: 100%; font-size: 14px; outline: 0; }
.field input:focus, .field textarea:focus { border-color: #0284c7; box-shadow: 0 0 0 3px #0284c712; }
.field textarea { resize: vertical; }
.field input[readonly] { background: #eaf1f6; font-size: 12px; color: #678194; }
.share-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.share-notice { color: #80929f; font-size: 11px; margin: -3px 0 18px; line-height: 1.6; }
.share-hint { color: #0c83af; font-size: 12px; line-height: 1.7; min-height: 20px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 16px; }
.dialog-actions button { flex: 1; background: #e8f0f6; border: 1px solid #cfe0eb; color: #2d5a77; border-radius: 9px; padding: 12px 8px; font-size: 13px; cursor: pointer; }
.dialog-actions .action-primary { background: #0284c7; color: #fff; border-color: #0284c7; }
.about-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.about-points span { background: #e3f1f8; color: #167da3; padding: 8px 10px; border-radius: 7px; font-size: 12px; }
.display-menu, .size-panel, .mobile-tools { max-height: calc(100dvh - 100px); overflow-y: auto; }

@media (min-width: 901px) and (max-width: 1190px) {
  .mv-stats { display: none; }
  .mv-head { gap: 8px; padding: 0 10px; }
  .mv-tools { gap: 4px; }
  .mv-tools button { padding: 5px 7px; }
  .brand { font-size: 13px; }
  .brand img { width: 26px; height: 26px; }
  .mv-title { max-width: 140px; }
}

@media (max-width: 900px) {
  .mv-title, .mv-stats { display: none; }
  .solution-summary { top: 14px; left: 14px; right: 14px; max-width: none; padding: 12px 14px; }
  .solution-summary h1 { margin: 6px 0 0; font-size: 16px; }
  .solution-summary > p:not(.summary-contact) { display: none; }
  .summary-values { margin-top: 10px; gap: 30px; }
  .summary-values b { font-size: 13px; margin-top: 4px; }
  .solution-summary .summary-contact { margin-top: 9px; font-size: 10px; }
  .viewer-help { bottom: 12px; left: 14px; font-size: 10px; }
  .viewer-help span { display: none; }
  .brand-footer { padding: 9px 14px; gap: 8px; font-size: 9px; }
  .brand-footer .footer-note { display: none; }
  .mobile-actions { display: flex; gap: 8px; background: #151d25; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); flex-shrink: 0; }
  .mobile-actions button { flex: 1; border: 1px solid #344d5d; background: #233744; color: #e0edf5; padding: 12px 4px; border-radius: 8px; font-size: 13px; cursor: pointer; }
  .mobile-actions button:last-child { background: #0284c7; border-color: #38bdf8; font-weight: 700; color: #fff; }
  .dialog-overlay { padding: 12px; }
  .dialog-card { padding: 22px 18px; border-radius: 14px; }
  .dialog-head h2 { font-size: 20px; }
  .share-fields { gap: 10px; }
  .field input, .field textarea { font-size: 16px; }
}
@media (max-height: 560px) {
  .solution-summary { padding: 10px 14px; }
  .solution-summary > p, .summary-eyebrow { display: none; }
  .solution-summary h1 { margin-top: 0; font-size: 14px; }
  .summary-values { margin-top: 6px; }
}
@media (max-width: 560px) {
  .quote-card { padding: 16px; }
  .quote-chart { flex-direction: column; }
  .quote-donut { width: 96px; height: 96px; }
}

/* ---------------- canvas ---------------- */
.mv-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, #4d5863 0%, #414b55 38%, #37414c 72%, #2e3741 100%);
  overflow: hidden;
}
.mv-canvas.wire-mode {
  background: radial-gradient(120% 90% at 50% 8%, #323a44 0%, #2a323b 48%, #1f262e 100%);
}
.mv-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .22) 100%);
}

.loading-overlay { position: fixed; inset: 0; z-index: 12000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #101923; color: #b6d6e8; font-size: 13px; transition: opacity .4s; }
.loading-overlay.hide { opacity: 0; pointer-events: none; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid #264251; border-top-color: #38bdf8; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 76px; left: 50%; transform: translate(-50%, 10px); z-index: 13000; max-width: calc(100vw - 32px); width: max-content; padding: 11px 18px; border-radius: 10px; background: rgba(8, 24, 37, .95); color: #e4f2fa; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 6px 25px #0004; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- mobile header / tool sheet ---------------- */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 4px;
  background: #1e2832;
  border: 1px solid var(--accent-border);
  color: var(--accent-border);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn.active { background: var(--accent); color: #fff; border-color: var(--accent-border); }
.mobile-menu-btn .mm-arrow { font-size: 10px; }
.mobile-tools {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: min(420px, calc(100vw - 20px));
  z-index: 9998;
  background: rgba(21, 27, 33, .98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .75);
  color: #e8eef4;
}
.mobile-tools[hidden] { display: none; }
.mt-group { margin-bottom: 10px; }
.mt-group:last-child { margin-bottom: 0; }
.mt-label { display: block; font-size: 10px; color: #7a8b9a; margin-bottom: 6px; letter-spacing: .5px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chips button {
  flex: 1 0 28%;
  background: #222b34;
  border: 1px solid #33404b;
  color: #dbe7f2;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.2;
}
.mt-chips button.active { background: var(--accent); border-color: var(--accent-border); color: #fff; }
.mt-chips button:active { transform: scale(.98); }

@media (max-width: 900px) {
  .mv-head {
    height: 52px;
    padding: 0 12px;
    gap: 8px;
    overflow: visible;
  }
  .mv-title { max-width: 150px; font-size: 13px; }
  .mv-stats { display: none; font-size: 10px; }
  .mv-tools { display: none; }
  .mv-badge { display: none; }
  .mobile-menu-btn { display: inline-flex; margin-left: auto; }
  .display-menu { width: min(320px, calc(100vw - 20px)); }
  .size-panel { width: min(340px, calc(100vw - 20px)); }
}
