:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-soft: #eef5f3;
  --text: #17201d;
  --muted: #66736f;
  --line: #dce4e1;
  --accent: #0d7c66;
  --accent-strong: #075f4d;
  --gold: #b87914;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(24, 39, 35, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(13, 124, 102, 0.1), transparent 35%),
    linear-gradient(180deg, #fafbfb 0%, var(--bg) 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.nav-actions,
.hero-actions,
.panel-head,
.inline-field,
.action-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #17201d;
  color: #fff;
  letter-spacing: 0;
}

.nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero-copy h1,
.panel h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel,
.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.metric,
.stat {
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric strong,
.stat strong {
  display: block;
  font-size: 30px;
  color: var(--accent-strong);
}

.metric span,
.stat span,
.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 18px;
  padding: 24px 0 40px;
}

.panel {
  padding: 22px;
}

.panel.narrow {
  max-width: 560px;
}

.panel h2 {
  margin: 0;
}

.panel h1.dashboard-section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.panel-head {
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form,
.auth-panel {
  display: grid;
  gap: 14px;
}

.upload-stack {
  padding-top: 18px;
}

.upload-workbench {
  display: grid;
  gap: 18px;
}

.upload-head {
  max-width: 760px;
}

.upload-head h1 {
  margin-bottom: 8px;
}

.upload-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.upload-workbench-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: 18px;
  align-items: start;
}

.upload-info-section,
.upload-file-section {
  display: grid;
  gap: 14px;
}

.upload-info-section {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-drop-zone {
  width: 100%;
  min-height: 286px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed rgba(13, 124, 102, 0.48);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(232, 246, 241, 0.88), rgba(255, 255, 255, 0.86)),
    var(--panel-soft);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.upload-drop-zone:hover,
.upload-drop-zone.is-dragging {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(221, 246, 237, 0.96), rgba(255, 255, 255, 0.92)),
    var(--panel-soft);
  box-shadow: 0 12px 32px rgba(13, 124, 102, 0.12);
}

.upload-drop-zone.has-file {
  border-style: solid;
}

.upload-drop-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #17201d;
  color: #fff;
  font-weight: 900;
}

.upload-drop-zone strong {
  font-size: 24px;
  line-height: 1.2;
}

.upload-drop-zone span:not(.upload-drop-mark),
.upload-drop-zone small {
  color: var(--muted);
  line-height: 1.6;
}

.upload-drop-zone small {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-rule-list {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.upload-rule-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}

.upload-progress,
.upload-result {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.upload-progress-head,
.upload-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.upload-progress-head strong {
  color: var(--accent-strong);
}

.upload-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4e1;
}

.upload-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s ease;
}

.upload-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-result {
  border-color: rgba(13, 124, 102, 0.28);
  background: #e8f6f1;
}

.upload-result h2 {
  margin: 0;
  font-size: 18px;
}

.upload-result-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.upload-result-meta span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

input:disabled {
  color: var(--muted);
  background: #eef3f0;
  cursor: not-allowed;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12);
}

.btn,
.mini-btn,
.icon-btn,
.tab {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

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

.btn.secondary {
  background: #e8f1ee;
  color: var(--accent-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn.large {
  min-height: 48px;
  padding-inline: 22px;
}

.btn.wide {
  width: 100%;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status.success {
  color: var(--accent-strong);
  background: #e8f6f1;
}

.status.danger {
  color: var(--danger);
  background: #fff1f0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 25, 0.48);
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
}

#hotspot-content-modal {
  background:
    radial-gradient(circle at 50% 22%, rgba(54, 196, 159, 0.2), transparent 34%),
    rgba(6, 10, 9, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#hotspot-content-modal .modal-panel {
  width: min(760px, calc(100vw - 28px));
  max-height: min(84vh, 820px);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(10, 15, 14, 0.58);
  color: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#hotspot-content-modal .modal-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#hotspot-content-modal .modal-head h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

#hotspot-content-modal .icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#hotspot-content-modal .icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: #edf2f0;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.tooltip-btn {
  position: relative;
}

.tooltip-btn::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 10;
  content: attr(data-tooltip);
  min-width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 21, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tooltip-btn:hover::after,
.tooltip-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  padding: 10px;
  background: #eef3f1;
  color: var(--muted);
}

.tab.is-active {
  background: var(--accent);
  color: #fff;
}

.dashboard-tabs {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.dashboard-tabs .tab {
  min-height: 30px;
  padding: 5px 14px;
  font-size: 13px;
}

.library-type-tabs {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.library-type-tabs .tab {
  min-height: 28px;
  padding: 3px 10px;
  font-size: 13px;
}

.admin-project-tabs {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.admin-project-tabs .tab {
  min-height: 30px;
  padding: 5px 14px;
  font-size: 13px;
}

.account-settings-stack {
  display: grid;
  gap: 8px;
}

.settings-form {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.settings-form-head {
  margin-bottom: 6px;
}

.settings-form-head .eyebrow {
  font-size: 11px;
  margin: 0 0 2px;
}

.settings-form-head .muted {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.settings-form input {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--line);
  width: 100%;
  margin-bottom: 6px;
}

.settings-form input:last-child {
  margin-bottom: 0;
}

.settings-form .inline-field {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.settings-form .inline-field input {
  flex: 1;
  margin-bottom: 0;
}

.settings-form .inline-field button {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 13px;
  min-height: auto;
}

.settings-form .btn {
  padding: 6px 14px;
  font-size: 13px;
  min-height: auto;
}

.settings-form .btn.wide {
  padding: 7px 14px;
}

.settings-form .notice {
  margin-top: 6px;
  font-size: 13px;
}

.dashboard-tab-panel {
  display: grid;
  gap: 14px;
}

.folder-breadcrumbs,
.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-breadcrumbs {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.folder-crumb {
  min-height: 22px;
  border: 0;
  padding: 2px 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.folder-crumb:first-child {
  color: var(--accent-strong);
  font-weight: 600;
}

.folder-separator {
  color: var(--muted);
}

.bulk-toolbar {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.bulk-toolbar select {
  width: min(260px, 100%);
  min-height: 34px;
  padding: 7px 10px;
}

.inline-field {
  align-items: flex-end;
}

.inline-field label {
  flex: 1;
}

.notice {
  padding: 11px 12px;
  border-radius: var(--radius);
  background: #eef3f1;
  color: var(--muted);
}

.notice.success {
  color: var(--accent-strong);
  background: #e8f6f1;
}

.notice.error,
.text-red {
  color: var(--danger);
}

.mini-help {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.editor-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 30;
  min-width: 140px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 18px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  transition: opacity 0.8s ease-out;
  opacity: 1;
  pointer-events: none;
}

.editor-toast.fading {
  opacity: 0;
}

.editor-toast.success {
  border: none;
}

.editor-toast.error {
  border: none;
}

.text-green {
  color: var(--accent-strong);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #f8faf9;
  font-size: 13px;
  white-space: nowrap;
}

.mini-btn {
  padding: 7px 10px;
  background: #edf3f1;
  color: var(--accent-strong);
}

.mini-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.action-cell {
  flex-wrap: wrap;
}

.search-input {
  max-width: 200px;
  padding: 6px 10px;
  font-size: 13px;
}

.footer {
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .topbar,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 44px 0 24px;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-field {
    display: grid;
  }

  .upload-workbench-grid {
    grid-template-columns: 1fr;
  }

  .upload-info-section {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .upload-drop-zone {
    min-height: 232px;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy h1,
  .panel h1 {
    font-size: 36px;
  }

  .stats-row,
  .tabs {
    grid-template-columns: 1fr;
  }

  .btn,
  .hero-actions {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  resize: vertical;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12);
}

.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.btn.danger,
.ghost.danger {
  color: var(--danger);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.model-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.model-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.model-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.model-meta div {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.model-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.model-meta dd {
  margin: 4px 0 0;
  font-size: 13px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.version-badge {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 30;
  font-size: 12px;
  color: #111;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.editor-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  background: var(--bg);
}

.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.check-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.split-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.split-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thumbnail-editor {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.model-thumbnail-frame {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(54, 196, 159, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(13, 124, 102, 0.18), rgba(54, 196, 159, 0.08));
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
}

.model-thumbnail-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-thumbnail-frame img.is-empty,
.model-thumbnail-frame img:not([src]),
.model-thumbnail-frame img[src=""] {
  display: none;
}

.model-thumbnail-frame.has-thumbnail span {
  display: none;
}

.model-thumbnail-frame span {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.thumbnail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.thumbnail-actions .btn {
  min-height: 32px;
  padding: 6px 10px;
}

.share-qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.share-qr-card canvas {
  width: 160px;
  height: 160px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.share-qr-card span {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.music-current,
.material-current {
  min-height: auto;
  padding: 2px 0;
  border: none;
  border-radius: 0;
  background: none;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  word-break: break-all;
}

.editor-theme-light .material-current {
  color: var(--muted);
}

.music-current strong,
.material-current strong {
  color: rgba(255,255,255,0.95);
}

.editor-theme-light .material-current strong {
  color: var(--text);
}

.compare-upload-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 8px;
  background: rgba(13, 124, 102, 0.06);
}

.compare-upload-card strong {
  color: var(--text);
}

.compare-upload-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.compare-controls {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.compare-model-list {
  display: grid;
  gap: 6px;
}

.compare-model-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.compare-model-item.is-selected {
  margin: 2px 0;
  padding: 7px 6px;
  border: 1px solid rgba(54, 196, 159, 0.58);
  border-radius: 8px;
  background: rgba(54, 196, 159, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}

.compare-model-item.is-selected + .compare-model-item {
  border-top-color: transparent;
}

.compare-model-index {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 124, 102, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.compare-model-item input {
  min-width: 0;
}

.compare-model-item [data-compare-name] {
  grid-column: 2;
  grid-row: 1;
}

.compare-model-item [data-compare-select] {
  grid-column: 3;
  grid-row: 1;
}

.compare-model-item [data-compare-delete] {
  grid-column: 4;
  grid-row: 1;
}

.compare-default-toggle {
  grid-column: 2 / -1;
  grid-row: 2;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.compare-default-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.compare-model-item .btn {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 12px;
}

.compare-model-item .btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #06231c;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
}

.viewer-area,
.share-viewer-wrap {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.viewer-canvas {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 320px;
  background: #f5f7f8;
  overflow: hidden;
  touch-action: none;
}

.viewer-canvas canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-thumbnail-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: none;
  width: var(--thumbnail-guide-size, min(70%, calc(100vh - 220px)));
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  border: 2px dashed var(--accent);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 0 9999px rgba(13, 124, 102, 0.045);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.editor-shell[data-active-panel="info"] .viewer-thumbnail-guide {
  display: block;
}

.viewer-thumbnail-guide::before {
  content: "缩略图范围";
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(13, 124, 102, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.viewer-panorama-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.viewer-canvas[data-panorama="1"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(245, 247, 248, var(--panorama-softness, 0));
}

.viewer-reset-focus {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(210, 230, 222, 0.34);
  border-radius: 6px;
  background: rgba(12, 18, 17, 0.68);
  color: #f5fffb;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.viewer-reset-focus.hidden {
  display: none;
}

.viewer-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(520px, calc(100% - 36px));
  box-shadow: var(--shadow);
}

.compare-viewer-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #f5f7f8;
}

.compare-stage {
  --compare-slider: 50%;
  --compare-mix-left: 0.5;
  --compare-mix-right: 0.5;
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  background: #f5f7f8;
}

.compare-viewer-wrap[data-mode="split-x"] .compare-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.compare-viewer-wrap[data-mode="split-y"] .compare-stage {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.compare-viewer-wrap[data-mode="mix"] .compare-stage,
.compare-viewer-wrap[data-mode="overlay"] .compare-stage {
  display: block;
}

.compare-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-color: rgba(13, 124, 102, 0.14);
}

.compare-pane .viewer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.compare-viewer-wrap[data-mode="split-x"] .compare-pane-a {
  border-right: 1px solid rgba(13, 124, 102, 0.2);
}

.compare-viewer-wrap[data-mode="split-y"] .compare-pane-a {
  border-bottom: 1px solid rgba(13, 124, 102, 0.2);
}

.compare-viewer-wrap[data-mode="mix"] .compare-pane,
.compare-viewer-wrap[data-mode="overlay"] .compare-pane {
  position: absolute;
  inset: 0;
}

.compare-viewer-wrap[data-mode="mix"] .compare-pane-a {
  opacity: var(--compare-mix-left);
}

.compare-viewer-wrap[data-mode="mix"] .compare-pane-b {
  opacity: var(--compare-mix-right);
}

.compare-viewer-wrap[data-mode="overlay"] .compare-pane-a {
  clip-path: inset(0 calc(100% - var(--compare-slider)) 0 0);
}

.compare-viewer-wrap[data-mode="overlay"] .compare-pane-b {
  clip-path: inset(0 0 0 var(--compare-slider));
}

.compare-viewer-wrap[data-mode="split-x"] .compare-divider,
.compare-viewer-wrap[data-mode="split-y"] .compare-divider {
  display: none;
}

.compare-divider {
  position: absolute;
  z-index: 8;
  cursor: ew-resize;
  pointer-events: auto;
}

.compare-viewer-wrap[data-mode="mix"] .compare-divider,
.compare-viewer-wrap[data-mode="overlay"] .compare-divider {
  left: var(--compare-slider);
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(13, 124, 102, 0.52), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.compare-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.compare-pane-label {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 7;
  max-width: min(260px, calc(100% - 28px));
  padding: 6px 10px;
  border: 1px solid rgba(210, 230, 222, 0.22);
  border-radius: 6px;
  background: rgba(12, 18, 17, 0.68);
  color: #f5fffb;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.compare-pane-b .compare-pane-label {
  left: auto;
  right: 14px;
}

.compare-reset-view {
  position: absolute;
  right: 14px;
  top: 46px;
  z-index: 7;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(210, 230, 222, 0.22);
  border-radius: 6px;
  background: rgba(12, 18, 17, 0.68);
  color: #f5fffb;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.compare-pane-a .compare-reset-view {
  right: 14px;
}

.viewer-area.is-compare #viewer-status {
  display: none;
}

.hotspot-list {
  display: grid;
  gap: 8px;
}

.hotspot-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 40px);
  overflow: hidden;
}

.hotspot-asset-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--muted);
}

.hotspot-asset-preview > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hotspot-asset-preview strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-asset-preview #hotspot-asset-clear {
  padding: 3px 8px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  cursor: pointer;
}

.hotspot-asset-preview #hotspot-asset-clear:hover {
  background: #cc3344;
  color: #fff;
  border-color: #cc3344;
}

.hotspot-selected-assets {
  display: grid;
  gap: 6px;
  max-height: 176px;
  overflow-y: auto;
  padding-right: 2px;
}

.hotspot-selected-empty,
.hotspot-selected-item {
  min-height: 30px;
  display: grid;
  align-items: center;
  border-radius: 6px;
  font-size: 12px;
}

.hotspot-selected-empty {
  padding: 6px 9px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.hotspot-selected-item {
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.hotspot-selected-thumb {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(54, 196, 159, 0.12);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.hotspot-selected-thumb img,
.hotspot-selected-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotspot-selected-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.hotspot-selected-remove {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  cursor: pointer;
}

.hotspot-selected-remove:hover {
  background: #cc3344;
  color: #fff;
  border-color: #cc3344;
}

.hotspot-library-panel {
  width: min(720px, 94vw);
  height: min(620px, 84vh);
  display: flex;
  flex-direction: column;
}

.hotspot-library-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 2px 2px;
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 4px;
}

.breadcrumb-chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
}

.breadcrumb-chip.is-active,
.breadcrumb-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.hotspot-library-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: left;
}

.hotspot-library-item:hover {
  border-color: var(--accent);
}

.hotspot-lib-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
}

.hotspot-lib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hotspot-lib-thumb .asset-icon {
  font-size: 22px;
}

.hotspot-lib-name {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-panel.is-active {
  display: flex;
}

.hotspot-list-view,
.hotspot-edit-form {
  min-height: 0;
}


.hotspot-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.icon-option {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.icon-option:hover {
  border-color: var(--accent);
  background: rgba(13,124,102,0.12);
}

.icon-option.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.editor-theme-dark .icon-option {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
}

.editor-theme-dark .icon-option:hover {
  background: rgba(13,124,102,0.18);
}

.editor-theme-dark .icon-option.is-active {
  background: var(--accent);
  color: #06231c;
}

.hotspot-list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.hotspot-list-view .hotspot-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  align-content: start;
}

.hotspot-save-row {
  flex-shrink: 0;
  padding-top: 6px;
}

.hotspot-save-row .btn {
  width: 100%;
}

.hotspot-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding-right: 2px;
  flex: 1;
  min-height: 0;
}

.hotspot-edit-form > label,
.hotspot-edit-form > .split-row,
.hotspot-edit-form > .check-row,
.hotspot-edit-form > button:not(.icon-btn) {
  min-height: 0;
}

.hotspot-edit-head {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
  background: var(--panel);
  flex-shrink: 0;
}

.hotspot-edit-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.hotspot-form-scroll {
  display: grid;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.hotspot-form-card {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.hotspot-form-card.hotspot-form-basic {
  border-top: 0;
  padding-top: 0;
}

.hotspot-form-card > label {
  min-height: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.hotspot-form-card > label.check-row {
  grid-template-columns: auto;
}

.hotspot-check-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hotspot-check-inline .check-row {
  min-height: 30px;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
}

.hotspot-check-inline .check-row input {
  width: 16px;
  height: 16px;
}

.hotspot-form-card .pbr-slider-row,
.hotspot-form-card .split-row {
  grid-column: 1 / -1;
  gap: 8px;
}

.hotspot-form-card select {
  width: 100%;
}

.hotspot-form-card .eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hotspot-form-card .icon-option {
  background: rgba(255,255,255,0.04);
}

.hotspot-voiceover-box {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hotspot-panel,
.hotspot-list-view,
.hotspot-edit-form,
.hotspot-form-scroll,
.hotspot-form-card,
.hotspot-form-card > *,
.hotspot-selected-assets,
.hotspot-asset-preview {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.hotspot-panel.is-active {
  display: flex;
}

.hotspot-icon-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hotspot-icon-grid .icon-option {
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  aspect-ratio: auto;
  padding: 0;
  font-size: 17px;
  line-height: 1;
}

.hotspot-icon-grid .icon-option span {
  display: block;
  max-width: 100%;
  line-height: 1;
}

.hotspot-form-card .split-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}

.hotspot-form-actions {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.hotspot-form-actions .btn {
  width: 100%;
}

.hotspot-main-actions {
  align-items: center;
}

.hotspot-share-count {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--accent-strong);
  background: rgba(54, 196, 159, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.hotspot-batch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 32px;
  overflow: visible;
}

.hotspot-batch-bar .check-row {
  min-height: 24px;
  padding: 2px 4px;
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.hotspot-batch-bar select {
  min-height: 24px;
  padding: 3px 6px;
  font-size: 11px;
  max-width: 120px;
}

.hotspot-batch-bar .btn {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.hotspot-batch-bar > .hidden {
  display: none !important;
}

.hotspot-batch-icon-grid {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(28px, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-top: 4px;
}

.hotspot-batch-icon-grid.hidden {
  display: none;
}

.hotspot-batch-icon-grid .icon-option {
  min-height: 26px;
  min-width: 0;
  font-size: 14px;
}

.hotspot-batch-icon-grid .icon-option span {
  line-height: 1;
}

.hotspot-batch-apply {
  justify-self: end;
}

.hotspot-share-panel {
  width: min(520px, 94vw);
}

.hotspot-share-body {
  display: grid;
  gap: 12px;
}

.hotspot-share-body canvas {
  justify-self: center;
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.hotspot-share-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hotspot-share-body input[readonly] {
  cursor: text;
}

.hotspot-item {
  display: grid;
  grid-template-columns: 15px 18px 20px minmax(70px, 1fr) repeat(4, 22px);
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  background: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hotspot-item:last-child {
  border-bottom: none;
}

.hotspot-num {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.hotspot-icon-display {
  font-size: 14px;
  text-align: center;
  line-height: 1;
}

.hotspot-select {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.hotspot-name {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-name:hover {
  border-color: var(--accent);
  background: rgba(54, 196, 159, 0.1);
}

.hotspot-action-btn {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.hotspot-action-btn:hover {
  background: rgba(54, 196, 159, 0.14);
  color: #fff;
  border-color: var(--accent);
}

.hotspot-action-share.is-shared {
  color: #06231c;
  background: var(--accent);
  border-color: var(--accent);
}

.hotspot-action-delete:hover {
  background: #cc3344;
  border-color: #cc3344;
}

#hotspot-pick-hint {
  padding: 6px 0;
  color: #fff;
  background: none;
  border: none;
  font-size: 13px;
}

.hotspot-drawer-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.hotspot-drawer-item:hover {
  border-color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 28, 34, 0.38);
}

.modal-panel {
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* Auth modal overrides - prevent second .modal-backdrop/.modal-panel from breaking auth layout */
#auth-modal .modal-backdrop {
  position: absolute;
  z-index: 0;
  display: block;
  padding: 0;
  background: rgba(18, 27, 25, 0.48);
}

#auth-modal .modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: none;
  display: block;
  overflow-y: visible;
}

#account-settings-modal .modal-backdrop,
#admin-account-settings-modal .modal-backdrop {
  position: absolute;
  z-index: 0;
  display: block;
  padding: 0;
  background: rgba(18, 27, 25, 0.48);
}

#account-settings-modal .modal-panel,
#admin-account-settings-modal .modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(86vh, 820px);
  display: block;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: #eef4f1;
  color: var(--text);
  font-size: 20px;
}

.author-badge,
.fullscreen-btn {
  position: absolute;
  z-index: 4;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

.author-badge {
  bottom: 16px;
  left: 16px;
  max-width: min(360px, calc(100% - 28px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-fullscreen-icon {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(10, 15, 14, 0.48);
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.share-fullscreen-icon.hidden {
  display: none;
}

.share-fullscreen-icon:hover {
  background: rgba(10, 15, 14, 0.68);
}

.fullscreen-btn {
  top: 14px;
  right: 14px;
  cursor: pointer;
}

/* viewer-controlbar removed - controls are now overlay icons */

.switch-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
}

.switch-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.hotspot-list-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.music-toggle {
  position: absolute;
  right: 14px;
  bottom: 58px;
  z-index: 4;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.music-toggle + .music-toggle {
  bottom: 104px;
}

.hotspot-drawer {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  width: min(300px, 88%);
  height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 14, 0.72);
  color: rgba(255,255,255,0.92);
  box-shadow: -8px 0 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hotspot-drawer .modal-head h2 {
  color: rgba(255,255,255,0.92);
}

.hotspot-drawer .icon-btn {
  color: rgba(255,255,255,0.7);
}

.hotspot-drawer .hotspot-list {
  color: rgba(255,255,255,0.85);
}

.hotspot-content-body {
  display: grid;
  gap: 12px;
}

#hotspot-content-modal .hotspot-content-body {
  color: rgba(255, 255, 255, 0.88);
}

.hotspot-carousel {
  display: grid;
  gap: 12px;
}

.hotspot-carousel-stage {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 8px;
  background: rgba(9, 14, 13, 0.08);
  overflow: hidden;
}

#hotspot-content-modal .hotspot-carousel-stage {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.hotspot-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 17, 0.08);
}

#hotspot-content-modal .hotspot-carousel-controls {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

#hotspot-content-modal .hotspot-carousel-controls span {
  color: rgba(255, 255, 255, 0.72);
}

#hotspot-content-modal .tour-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#hotspot-content-modal .tour-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.2);
}

.hotspot-voiceover-toggle {
  position: absolute;
  right: 18px;
  top: 72px;
  z-index: 6;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(12, 18, 17, 0.54);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hotspot-voiceover-toggle.is-playing,
.hotspot-voiceover-toggle:hover {
  background: rgba(13, 124, 102, 0.88);
}

.hotspot-carousel-controls span {
  min-width: 54px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.tour-btn.danger:hover,
.tour-btn.danger:not(:disabled) {
  border-color: #cc3344;
  color: #cc3344;
}

.tour-btn.danger:not(:disabled):hover {
  background: #cc3344;
  color: #fff;
}

.hotspot-media {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #f5f7f8;
}

#hotspot-content-modal .hotspot-media {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hotspot-media.zoomable {
  cursor: zoom-in;
}

.hotspot-media.expanded {
  max-height: none;
  cursor: zoom-out;
}

.hotspot-pdf {
  min-height: 62vh;
  border: 1px solid var(--line);
}

#hotspot-content-modal .hotspot-pdf {
  border-color: rgba(255, 255, 255, 0.18);
}

.rich-text {
  line-height: 1.7;
  color: var(--text);
  white-space: normal;
}

#hotspot-content-modal .rich-text {
  min-height: 120px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

#hotspot-content-modal .muted {
  color: rgba(255, 255, 255, 0.64);
}

.share-shell {
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.share-viewer-wrap {
  height: 100vh;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.share-view-count-overlay {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 10;
  padding: 0;
  background: none;
  color: #17201d;
  font-size: 12px;
}

.share-password-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 247, 248, 0.86);
  backdrop-filter: blur(8px);
}

.share-deleted-panel {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 247, 248, 0.9);
  backdrop-filter: blur(8px);
}

.share-deleted-card {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.share-deleted-card h2 {
  margin: 0;
  color: var(--danger);
  font-size: 24px;
  letter-spacing: 0;
}

.share-deleted-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .editor-shell {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .viewer-area,
  .viewer-canvas {
    min-height: 50vh;
  }
}

.showcase-panel {
  margin: 0 0 36px;
}

.search-field {
  min-width: min(320px, 100%);
}

.case-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.case-card,
.asset-card,
.project-row,
.folder-row {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.case-thumb,
.project-thumb {
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.case-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.case-thumb img,
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-thumb img {
  position: absolute;
  inset: 0;
}

.case-thumb > span {
  position: relative;
  z-index: 1;
}

.case-thumb-meta {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: calc(100% - 16px);
  justify-items: end;
  text-align: right;
}

.case-thumb-meta span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.case-thumb-description {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: end;
  padding: 34px 10px 10px;
  background: linear-gradient(180deg, rgba(9, 14, 13, 0.18), rgba(9, 14, 13, 0.84));
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.case-card:hover .case-thumb-description,
.case-card:focus-visible .case-thumb-description {
  opacity: 1;
}

.case-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.case-body h3,
.asset-card h3,
.project-main h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.case-body p,
.asset-card p,
.project-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.case-description {
  display: -webkit-box;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf5f2;
  color: var(--accent-strong);
  font-size: 12px;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.project-row {
  display: grid;
  grid-template-columns: 28px 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
}

.project-row.no-select {
  grid-template-columns: 88px minmax(0, 1fr) auto;
}

.folder-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.folder-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #edf5f2;
  color: var(--accent-strong);
  font-weight: 800;
}

.item-check,
.asset-check {
  display: grid;
  place-items: center;
}

.item-check input,
.asset-check input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.project-thumb {
  width: 88px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
}

.project-actions {
  display: flex;
  gap: 6px;
}

.icon-btn.danger {
  color: var(--danger);
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.asset-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.asset-upload-btn input,
.asset-replace-input {
  display: none;
}

.asset-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.asset-check {
  position: absolute;
  top: 10px;
  left: 10px;
}

.asset-thumb,
.trash-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #edf5f2;
  color: var(--accent-strong);
  font-weight: 800;
}

.asset-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 132px;
}

.asset-thumb img,
.asset-thumb video,
.trash-thumb img,
.trash-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-video-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(9, 14, 13, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}

.asset-used {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.asset-used.is-used {
  background: #16a34a;
}

.trash-table-wrap {
  margin-top: 12px;
}

.trash-table {
  min-width: 900px;
}

.trash-table th:first-child,
.trash-table td:first-child {
  width: 44px;
  text-align: center;
}

.trash-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

.trash-name-cell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.trash-name-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-thumb {
  width: 52px;
  height: 42px;
  font-size: 13px;
}

.type-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf5f2;
  color: var(--accent-strong);
  font-size: 12px;
  white-space: nowrap;
}

.pdf-frame {
  width: 100%;
  height: 70vh;
  border: 0;
}

.reference-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-shell {
  grid-template-columns: 80px 320px minmax(0, 1fr);
}

.editor-theme-dark {
  --bg: #111816;
  --panel: rgba(22, 30, 28, 0.72);
  --panel-soft: rgba(33, 45, 41, 0.8);
  --text: #edf7f3;
  --muted: #9db1aa;
  --line: rgba(210, 230, 222, 0.16);
  --accent: #36c49f;
  --accent-strong: #8ff0d4;
  background: #0f1514;
}

.editor-theme-light {
  background: var(--bg);
}

.editor-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  height: calc(100vh - 52px);
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: rgba(14, 21, 19, 0.82);
  backdrop-filter: blur(18px);
}

.rail-btn {
  width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #f5fffb;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.1;
  cursor: pointer;
}

.editor-theme-light .editor-rail {
  background: rgba(255, 255, 255, 0.9);
}

.editor-theme-light .rail-btn {
  background: rgba(13, 124, 102, 0.06);
  color: var(--text);
}

.rail-icon {
  font-size: 18px;
  line-height: 1;
}

.rail-btn.is-active {
  background: var(--accent);
  color: #06231c;
}

.editor-theme-light .rail-btn.is-active {
  color: #fff;
}

.rail-theme-row {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.editor-sidebar {
  background: var(--panel);
  backdrop-filter: blur(18px);
  height: calc(100vh - 52px);
  padding-top: 12px;
  overflow-x: hidden;
}

.editor-panel {
  display: none;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.editor-panel label:not(.check-row) {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.editor-panel .split-row label {
  grid-template-columns: auto;
}

.editor-panel input[type="range"] {
  display: block;
  width: 100%;
  margin-top: 2px;
}

.editor-panel input:not([type="range"]):not([type="checkbox"]):not([type="color"]),
.editor-panel select,
.editor-panel .btn,
.editor-floating-actions .btn,
.hotspot-share-body input[readonly],
.hotspot-share-body select {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 13px;
  line-height: 1.2;
}

.editor-panel input[type="file"] {
  padding: 4px 8px;
}

.editor-panel input[type="color"] {
  min-height: 30px;
  padding: 3px;
}

.editor-panel .btn.small,
.editor-floating-actions .btn.compact,
.hotspot-share-body .btn.small {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}

.editor-panel .action-row {
  gap: 5px;
}

.editor-panel textarea {
  padding: 8px 9px;
  font-size: 13px;
  line-height: 1.45;
}

.share-whitelist-box {
  display: grid;
  gap: 5px;
}

.share-whitelist-list {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.share-whitelist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px 26px;
  gap: 5px;
  align-items: center;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}

.share-whitelist-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.share-whitelist-item.is-expired .share-whitelist-name {
  color: #c75454;
}

.share-whitelist-item select {
  width: 100%;
  min-height: 26px;
  padding: 3px 6px;
  font-size: 12px;
}

.share-whitelist-remove {
  width: 26px;
  height: 26px;
  padding: 0;
}

.editor-panel .eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  grid-column: 1 / -1;
}

.editor-panel.is-active {
  display: grid;
}

.editor-panel.hotspot-panel.is-active {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.editor-panel.hotspot-panel.is-active * {
  min-width: 0;
}

.panorama-preset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#bg-panorama-section,
.pbr-env-panorama-section {
  display: grid;
  gap: 8px;
}

#bg-panorama-section.hidden,
.pbr-env-panorama-section.hidden {
  display: none;
}

.panorama-preset-btn {
  min-height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
}

.panorama-preset-btn img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  display: block;
}

.panorama-preset-btn span {
  display: block;
  padding: 5px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.panorama-preset-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.editor-theme-dark input,
.editor-theme-dark select,
.editor-theme-dark textarea,
.editor-theme-dark .music-current,
.editor-theme-dark .hotspot-edit-head,
.editor-theme-dark .hotspot-form-actions,
.editor-theme-dark .empty-state {
  background: rgba(9, 14, 13, 0.72);
  color: var(--text);
  border-color: var(--line);
}

.editor-theme-dark .btn.secondary,
.editor-theme-dark .icon-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.editor-theme-dark .share-qr-card {
  background: rgba(9, 14, 13, 0.72);
}

.editor-floating-actions {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 0 8px;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.editor-floating-actions .btn {
  flex: 0 0 auto;
}

.editor-return-btn {
  text-decoration: none;
}

.btn.compact {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}

.theme-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: grid;
  place-items: center;
}

.theme-swatch:hover {
  border-color: var(--accent);
}

.theme-swatch.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.editor-floating-actions select {
  min-width: 86px;
  min-height: 34px;
  padding: 7px 9px;
}


.dual-range {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 8px 0;
}

.dual-range-label {
  position: relative;
  font-size: 13px;
  color: var(--muted);

.dual-range-label em {
  font-size: 11px;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 600;
  margin-left: 2px;
}
}

.dual-range-track {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
}

.dual-range-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(255,255,255,0.16);
  width: 100%;
  overflow: hidden;
}

.dual-range-fill-active {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.dual-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.dual-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #0f1514;
  box-shadow: 0 0 0 3px rgba(54,196,159,0.35);
  margin-top: -7px;
  position: relative;
  z-index: 3;
}

.dual-range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #0f1514;
}

.dual-range-vals {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.dual-range-vals em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 600;
}

.pbr-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.pbr-slider-row > label {
  min-height: 0;
}

.btn-reset-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.btn-reset-icon:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.editor-pbr-buttons {
  position: absolute;
  left: 14px;
  bottom: 120px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.55);
  backdrop-filter: blur(12px);
}

.pbr-mini-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pbr-mini-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.view-cube {
  position: absolute;
  left: 18px;
  bottom: 60px;
  z-index: 8;
  width: 160px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 15, 14, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  cursor: pointer;
}

.view-cube canvas {
  display: block;
  width: 160px;
  height: 160px;
}

.hotspot-item {
  grid-template-columns: 15px 18px 20px minmax(70px, 1fr) repeat(4, 22px);
  gap: 2px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hotspot-item:last-child {
  border-bottom: none;
}

.hotspot-name {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-panel {
  width: min(1100px, 94vw);
  height: min(780px, 88vh);
}

.preview-panel .viewer-canvas {
  min-height: 560px;
}

.share-password-card {
  display: grid;
  gap: 14px;
}

@media (max-width: 920px) {
  .editor-shell {
    grid-template-columns: 1fr;
  }

  .editor-rail {
    height: auto;
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .project-row {
    grid-template-columns: 28px 72px minmax(0, 1fr);
  }

  .project-row.no-select {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .project-actions {
    grid-column: 1 / -1;
  }

  .dashboard-tabs,
  .library-type-tabs {
    grid-template-columns: 1fr;
  }

  
.dual-range {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 8px 0;
}

.dual-range-label {
  font-size: 13px;
  color: var(--muted);
}

.dual-range-track {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
}

.dual-range-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(255,255,255,0.16);
  width: 100%;
  overflow: hidden;
}

.dual-range-fill-active {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.dual-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.dual-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #0f1514;
  box-shadow: 0 0 0 3px rgba(54,196,159,0.35);
  margin-top: -7px;
  position: relative;
  z-index: 3;
}

.dual-range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #0f1514;
}

.dual-range-vals {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.dual-range-vals em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 600;
}

.pbr-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.pbr-slider-row > label {
  min-height: 0;
}

.btn-reset-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.btn-reset-icon:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.editor-pbr-buttons {
  position: absolute;
  left: 14px;
  bottom: 120px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.55);
  backdrop-filter: blur(12px);
}

.pbr-mini-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pbr-mini-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.view-cube {
  position: absolute;
  left: 18px;
  bottom: 60px;
  z-index: 8;
  width: 160px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 15, 14, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  cursor: pointer;
}

.view-cube canvas {
  display: block;
  width: 160px;
  height: 160px;
}

}


.dual-range-curr::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--accent);
  box-shadow: 0 0 6px rgba(54,196,159,0.5);
  margin-top: -4px;
}

.dual-range-curr::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--accent);
}

.folder-open-target {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}



// 文件夹无边框，添加阴影
.project-row.folder-row-item,
.folder-card {
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.folder-thumb {
  background: rgba(54,196,159,0.08);
  font-size: 28px;
  cursor: pointer;
}

.folder-title-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.folder-title-btn:hover {
  color: var(--accent);
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-toolbar .action-row {
  flex-shrink: 0;
}

.trash-notice {
  margin: 0;
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
}

.stats-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.panel-head .btn {
  align-self: flex-start;
}

.asset-upload-btn {
  display: inline-flex;
  cursor: pointer;
}

.folder-card {
  cursor: pointer;
}

.folder-card-thumb {
  background: rgba(54,196,159,0.08);
  font-size: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.folder-card h3 {
  margin: 0;
}

.folder-card .folder-title-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
}

.folder-card .folder-title-btn:hover {
  color: var(--accent);
}

.dashboard-stats-compact .panel-head {
  margin-top: 0;
}

.dashboard-stats-compact .panel-head h1 {
  font-size: 18px;
}

.dashboard-stats-compact .stats-row {
  gap: 8px;
}

.dashboard-stats-compact .stat {
  padding: 12px 14px;
}

.dashboard-stats-compact .stat strong {
  font-size: 22px;
}

.dashboard-stats-compact {
  padding: 14px 18px;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5;
  pointer-events: none;
}

.viewer-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.viewer-loading-text {
  color: var(--muted);
  font-size: 13px;
}

/* Tour bar at bottom of viewer */
.tour-bar {
  flex-shrink: 0;
  z-index: 10;
  background: rgba(14,21,19,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-btn {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.tour-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tour-btn:disabled { opacity: 0.35; cursor: default; }

.tour-time {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.tour-add-kf-inline {
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}

.tour-timeline {
  position: relative;
  height: 44px;
}

.tour-audio-tracks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  gap: 1px;
}

.tour-audio-block {
  height: 100%;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4px;
  overflow: hidden;
}

.tour-audio-block:hover {
  filter: brightness(1.12);
}

.tour-audio-block span {
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-progress-bar {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  cursor: pointer;
}

.tour-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
}

.tour-progress-thumb {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  left: 0%;
  transform: translateX(-50%);
  cursor: pointer;
}

.tour-keyframe-dots {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: auto;
  z-index: 2;
}

.tour-kf-dot {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: translateX(-50%);
  cursor: grab;
}

.tour-kf-dot::before {
  content: "";
  position: absolute;
  inset: 1px 2px 0;
  border-radius: 5px 5px 3px 3px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 58%, 50% 100%, 42% 58%, 0 58%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.32));
}

.tour-kf-dot::after {
  content: "";
  position: absolute;
  inset: 2px 3px 1px;
  border-radius: 4px 4px 3px 3px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 58% 56%, 50% 100%, 42% 56%, 0 56%);
}

.tour-kf-dot span {
  position: relative;
  z-index: 1;
  transform: translateY(-3px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.tour-kf-dot:active,
.tour-dragging .tour-kf-dot {
  cursor: grabbing;
}

/* Tour panel in sidebar */
.tour-audio-list {
  display: grid;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.tour-audio-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  cursor: grab;
  font-size: 12px;
}

.tour-audio-item:active { cursor: grabbing; }

.tour-audio-item .tour-audio-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.tour-audio-item .tour-audio-dur {
  font-size: 11px;
  color: var(--muted);
}

.tour-audio-item .tour-audio-replace {
  height: 22px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.tour-audio-item .tour-audio-replace:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tour-audio-item .tour-audio-del {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.tour-audio-item .tour-audio-del:hover { background: #cc3344; color: #fff; border-color: #cc3344; }

.tour-bar.hidden { display: none; }

.tour-keyframe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tour-keyframe-head .eyebrow {
  margin: 0;
}

.tour-keyframe-list {
  display: grid;
  gap: 3px;
  max-height: min(340px, 45vh);
  overflow-y: auto;
}

.editor-panel[data-editor-panel-content="tour"].is-active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.editor-panel[data-editor-panel-content="tour"].is-active .tour-keyframe-list {
  flex: 0 0 auto;
  min-height: 80px;
  max-height: 160px;
}

.tour-kf-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  color: var(--muted);
}

.tour-kf-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.tour-kf-time input {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 5px;
  font-size: 12px;
}

.tour-kf-time em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tour-kf-row .tour-kf-goto {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.tour-kf-row .tour-kf-del {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.tour-kf-row .tour-kf-del:hover { background: #cc3344; color: #fff; border-color: #cc3344; }

.tour-kf-row .tour-kf-goto:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.share-tour-console {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 8;
  width: min(580px, calc(100% - 24px));
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
  border-radius: 14px 14px 0 0;
  background: rgba(10, 15, 14, 0.58);
  color: #fff;
  box-shadow: 0 -8px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.share-tour-console.hidden {
  display: none;
}

.share-compare-console {
  position: absolute;
  left: 50%;
  top: 10%;
  z-index: 10;
  width: min(620px, 36vw);
  min-width: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px 58px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(210, 230, 222, 0.24);
  border-radius: 8px;
  background: rgba(10, 15, 14, 0.58);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.share-compare-console.hidden {
  display: none;
}

.share-overlay-btn {
  position: absolute;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(10, 15, 14, 0.48);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#share-hotspot-list-btn { top: 52px; right: 14px; }
#share-music-toggle { top: 90px; right: 14px; }
#share-narration-toggle { top: 128px; right: 14px; }

.share-overlay-btn.hidden { display: none; }

.share-fullscreen-icon.drawer-open {
  top: auto;
  bottom: 14px;
}

.share-overlay-btn:hover {
  background: rgba(10, 15, 14, 0.68);
}

.share-compare-entry {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 10;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(210, 230, 222, 0.24);
  border-radius: 8px;
  background: rgba(10, 15, 14, 0.58);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.share-compare-entry.hidden {
  display: none;
}

.share-compare-console select,
.share-compare-console input[type="range"] {
  min-width: 0;
  width: 100%;
}

.share-compare-console input[type="range"] {
  grid-column: 1 / -1;
}

.share-compare-exit {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 114, 114, 0.62);
  border-radius: 7px;
  background: rgba(211, 47, 47, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.share-compare-exit:hover {
  background: #b71c1c;
  border-color: rgba(255, 170, 170, 0.9);
}

.share-compare-wrap {
  z-index: 3;
}

.share-tour-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.share-tour-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.share-tour-time {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.share-tour-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.share-tour-actions .tour-btn {
  width: 34px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.share-tour-progress {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.share-tour-progress .tour-progress-fill {
  position: absolute;
  left: 0;
  top: 11px;
  height: 6px;
  border-radius: 999px;
}

.share-tour-progress .tour-progress-thumb {
  top: 7px;
}

.share-tour-progress .tour-keyframe-dots {
  bottom: 2px;
}

@media (max-width: 760px) {
  .share-tour-console {
    width: min(88vw, 420px);
    min-width: 0;
  }

  .share-compare-console {
    width: min(92vw, 520px);
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }

  .share-compare-console select:nth-of-type(3) {
    grid-column: 1;
  }

  .share-compare-exit {
    grid-column: 2;
  }

  .compare-viewer-wrap[data-mode="split-x"] .compare-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .compare-viewer-wrap[data-mode="split-x"] .compare-pane-a {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 124, 102, 0.2);
  }

  .compare-model-item {
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    gap: 5px;
  }

  .compare-model-item .btn {
    width: auto;
  }
}
