/* Hanhai 3D-BOX Spatial Previs Studio Stylesheet v2.2.0 */
:root {
  color-scheme: dark;
  --hh3db-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hh3db-canvas: #0d0b09;
  --hh3db-shell: #120f0b;
  --hh3db-panel: rgba(20, 17, 13, 0.96);
  --hh3db-panel-strong: #17130e;
  --hh3db-glass: rgba(18, 15, 11, 0.94);
  --hh3db-input: #1e1913;
  --hh3db-ink: #faf4e6;
  --hh3db-muted: #a69680;
  --hh3db-line: rgba(224, 182, 94, 0.18);
  --hh3db-line-bright: rgba(224, 182, 94, 0.48);
  --hh3db-gold: #dfad52;
  --hh3db-gold-soft: #f0ca7f;
  --hh3db-cyan: #38bdf8;
  --hh3db-red: #ff7f7c;
  --hh3db-green: #38c992;
  --hh3db-shadow: 0 20px 56px rgba(0, 0, 0, 0.52);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

html[data-hhv-appearance="night"] {
  color-scheme: dark;
  --hh3db-canvas: #050506;
  --hh3db-shell: #0a0a0c;
  --hh3db-panel: rgba(14, 14, 16, 0.96);
  --hh3db-panel-strong: #0e0e11;
  --hh3db-glass: rgba(12, 12, 15, 0.94);
  --hh3db-input: #16161a;
  --hh3db-ink: #f6f4ee;
  --hh3db-muted: #a19b90;
  --hh3db-line: rgba(224, 182, 94, 0.16);
  --hh3db-line-bright: rgba(224, 182, 94, 0.44);
}

html[data-hhv-appearance="day"] {
  color-scheme: light;
  --hh3db-canvas: #f5f0e6;
  --hh3db-shell: #fbf8f1;
  --hh3db-panel: #ffffff;
  --hh3db-panel-strong: #fffdf9;
  --hh3db-glass: rgba(255, 252, 246, 0.96);
  --hh3db-input: #f5efe4;
  --hh3db-ink: #1c1710;
  --hh3db-muted: #5e5242;
  --hh3db-line: rgba(176, 124, 40, 0.22);
  --hh3db-line-bright: rgba(176, 124, 40, 0.48);
  --hh3db-gold: #b4730f;
  --hh3db-gold-soft: #8c5a09;
  --hh3db-cyan: #0284c7;
  --hh3db-green: #167a55;
  --hh3db-red: #bd3434;
  --hh3db-shadow: 0 12px 32px rgba(46, 35, 18, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--hh3db-canvas);
  color: var(--hh3db-ink);
  overflow: hidden;
  transition: background-color 220ms var(--hh3db-ease), color 220ms var(--hh3db-ease);
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--hh3db-gold);
  outline-offset: 2px;
}

.hh3db-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: radial-gradient(circle at 78% -15%, rgba(201, 146, 47, 0.14), transparent 38rem), var(--hh3db-canvas);
}

/* Silky GPU ViewTransition circular clip-path reveal (parity with site-wide toggler) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

.hh3db-topbar {
  flex: 0 0 52px;
}

.hh3db-workspace {
  flex: 1 1 0;
}

.hh3db-timeline-dock {
  flex: 0 0 82px;
}

/* Collapsible 3-Step Quick-Start Onboarding Strip */
.hh3db-quickstart-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 14px;
  background: linear-gradient(90deg, rgba(223, 173, 82, 0.14), rgba(223, 173, 82, 0.05) 55%, rgba(56, 189, 248, 0.08));
  border-bottom: 1px solid var(--hh3db-line);
  z-index: 28;
}
html[data-hhv-appearance="day"] .hh3db-quickstart-bar {
  background: linear-gradient(90deg, rgba(180, 115, 15, 0.10), rgba(244, 239, 228, 0.85) 55%, rgba(2, 132, 199, 0.08));
}
.hh3db-quickstart-bar[hidden],
.hh3db-app[data-studio-mode="previs"] .hh3db-quickstart-bar {
  display: none !important;
}
.hh3db-qs-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.hh3db-qs-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dfad52, #ba8226);
  color: #140f08;
  flex-shrink: 0;
}
.hh3db-qs-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-panel);
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms var(--hh3db-ease), background 180ms var(--hh3db-ease);
}
.hh3db-qs-step em {
  font-style: normal;
  color: var(--hh3db-gold-soft);
  font-weight: 800;
}
.hh3db-qs-step:hover {
  border-color: var(--hh3db-gold);
  background: rgba(223, 173, 82, 0.16);
}
.hh3db-qs-arrow {
  color: var(--hh3db-muted);
  font-size: 11px;
}
.hh3db-qs-dismiss {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.hh3db-qs-dismiss:hover {
  color: var(--hh3db-ink);
  border-color: var(--hh3db-line-bright);
}

/* Adaptive Brand VI Logos */
.hh3db-brand-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.hh3db-vi-mark {
  display: block;
  width: 28px;
  height: 23px;
  object-fit: contain;
}
.hh3db-vi-horiz {
  display: block;
  height: 21px;
  width: auto;
  object-fit: contain;
}
html:not([data-hhv-appearance="day"]) .hh3db-vi-day { display: none !important; }
html:not([data-hhv-appearance="day"]) .hh3db-vi-night { display: inline-block !important; }
html[data-hhv-appearance="day"] .hh3db-vi-night { display: none !important; }
html[data-hhv-appearance="day"] .hh3db-vi-day { display: inline-block !important; }

/* Topbar */
.hh3db-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: var(--hh3db-shell);
  border-bottom: 1px solid var(--hh3db-line);
  z-index: 30;
  min-width: 0;
}

.hh3db-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}
.hh3db-brand-sep { color: var(--hh3db-muted); font-size: 13px; flex-shrink: 0; }
.hh3db-brand-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh3db-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
@media (max-width: 1520px) {
  .hh3db-nav { display: none; }
}
.hh3db-nav-link {
  text-decoration: none;
  color: var(--hh3db-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 180ms var(--hh3db-ease), background 180ms var(--hh3db-ease);
}
.hh3db-nav-link:hover {
  color: var(--hh3db-ink);
  background: rgba(223, 173, 82, 0.12);
}

/* Top-Center Mode Switch (场景搭建 | 成片预演) */
.hh3db-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  gap: 2px;
}
.hh3db-mode-btn {
  border: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 220ms var(--hh3db-ease), color 220ms var(--hh3db-ease), transform 180ms var(--hh3db-ease);
}
.hh3db-mode-btn:hover { color: var(--hh3db-ink); }
.hh3db-mode-btn.is-active {
  background: linear-gradient(135deg, #dfad52, #b98126);
  color: #140f08;
  box-shadow: 0 4px 14px rgba(223, 173, 82, 0.28);
}

.hh3db-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.hh3db-hist-group {
  display: inline-flex;
  gap: 2px;
}

.hh3db-top-btn {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms var(--hh3db-ease), background 180ms var(--hh3db-ease), transform 160ms var(--hh3db-ease);
}
.hh3db-top-btn:hover:not(:disabled) {
  border-color: var(--hh3db-line-bright);
  background: rgba(223, 173, 82, 0.14);
}
.hh3db-top-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hh3db-theme-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
}
.hh3db-theme-btn {
  border: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms var(--hh3db-ease), color 180ms var(--hh3db-ease);
}
.hh3db-theme-btn.is-active {
  background: linear-gradient(135deg, #dfad52, #b98126);
  color: #140f08;
}

.hh3db-login-btn, .hh3db-user-chip {
  border: 1px solid var(--hh3db-line-bright);
  background: rgba(223, 173, 82, 0.12);
  color: var(--hh3db-gold-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* Main Workspace Layout */
.hh3db-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 308px;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 260ms var(--hh3db-ease);
}

.hh3db-app[data-studio-mode="previs"] .hh3db-workspace {
  grid-template-columns: 0px minmax(0, 1fr) 0px;
}
.hh3db-app[data-studio-mode="previs"] .hh3db-sidebar {
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.hh3db-app[data-studio-mode="previs"] .hh3db-vp-float-tl,
.hh3db-app[data-studio-mode="previs"] .hh3db-vp-float-tr,
.hh3db-app[data-studio-mode="previs"] .hh3db-pip-card,
.hh3db-app[data-studio-mode="previs"] .hh3db-controls-hint {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -8px, 0);
}

.hh3db-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--hh3db-shell);
  overflow-y: auto;
  min-height: 0;
  transition: opacity 220ms var(--hh3db-ease);
}
.hh3db-sidebar-left { border-right: 1px solid var(--hh3db-line); }
.hh3db-sidebar-right { border-left: 1px solid var(--hh3db-line); }

.hh3db-panel {
  background: var(--hh3db-panel);
  border: 1px solid var(--hh3db-line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.hh3db-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hh3db-panel-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hh3db-hint {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: var(--hh3db-muted);
}

.hh3db-tag, .hh3db-count {
  font-size: 10px;
  color: var(--hh3db-muted);
  border: 1px solid var(--hh3db-line);
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.hh3db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms var(--hh3db-ease), background 180ms var(--hh3db-ease), transform 160ms var(--hh3db-ease);
}
.hh3db-btn:hover:not(:disabled) {
  border-color: var(--hh3db-line-bright);
  background: rgba(223, 173, 82, 0.14);
}
.hh3db-btn:disabled { opacity: 0.55; cursor: wait; }
.hh3db-btn-xs { padding: 4px 8px; font-size: 11px; }

.hh3db-btn-gold {
  background: linear-gradient(135deg, #dfad52, #ba8226);
  color: #140f08;
  border-color: transparent;
}
.hh3db-btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #ecc06c, #c89030);
}
.hh3db-btn-accent {
  border-color: var(--hh3db-line-bright);
  color: var(--hh3db-gold-soft);
}

.hh3db-link-btn {
  border: none;
  background: transparent;
  color: var(--hh3db-gold-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.hh3db-chip-btn {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms var(--hh3db-ease), border-color 180ms var(--hh3db-ease);
}
.hh3db-chip-btn:hover { color: var(--hh3db-ink); border-color: var(--hh3db-line-bright); }
.hh3db-chip-gold {
  border-color: var(--hh3db-line-bright);
  color: var(--hh3db-gold-soft);
  background: rgba(223, 173, 82, 0.12);
}

/* Left Sidebar 3-Tab Switcher & Panes */
.hh3db-left-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  flex-shrink: 0;
}
.hh3db-left-tab {
  border: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms var(--hh3db-ease), color 180ms var(--hh3db-ease);
}
.hh3db-left-tab:hover { color: var(--hh3db-ink); }
.hh3db-left-tab.is-active {
  background: linear-gradient(135deg, #dfad52, #ba8226);
  color: #140f08;
  box-shadow: 0 3px 10px rgba(223, 173, 82, 0.25);
}
.hh3db-left-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.hh3db-left-pane[hidden] { display: none !important; }

/* Sculpted Character Body-Type & Studio Finish Bar */
.hh3db-char-style-panel {
  padding: 8px 9px;
  gap: 6px;
}
.hh3db-char-style-panel[hidden] { display: none !important; }
.hh3db-char-style-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hh3db-char-style-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--hh3db-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.hh3db-char-body-pills {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  justify-content: flex-end;
}
.hh3db-char-skin-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  flex: 1;
}
.hh3db-mini-pill {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--hh3db-ease), border-color 160ms var(--hh3db-ease), color 160ms var(--hh3db-ease);
}
.hh3db-mini-pill:hover {
  color: var(--hh3db-ink);
  border-color: var(--hh3db-line-bright);
}
.hh3db-mini-pill.is-active {
  background: rgba(223, 173, 82, 0.24);
  border-color: var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
}
.hh3db-skin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-muted);
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 3px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--hh3db-ease), border-color 160ms var(--hh3db-ease), color 160ms var(--hh3db-ease);
}
.hh3db-skin-chip i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.hh3db-skin-chip:hover {
  color: var(--hh3db-ink);
  border-color: var(--hh3db-line-bright);
}
.hh3db-skin-chip.is-active {
  background: rgba(223, 173, 82, 0.22);
  border-color: var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
}

/* Motion Tempo Toolbar & Speed Pills */
.hh3db-motion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hh3db-speed-pills {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
}
.hh3db-speed-chip {
  border: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.hh3db-speed-chip:hover { color: var(--hh3db-ink); }
.hh3db-speed-chip.is-active {
  background: rgba(223, 173, 82, 0.24);
  color: var(--hh3db-gold-soft);
}
.hh3db-speed-slider-row {
  padding: 2px 0;
}

/* Stage Props 14-Card Grid & 8 Mood Swatches */
.hh3db-prop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}
.hh3db-prop-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 7px 7px;
  border-radius: 9px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  cursor: pointer;
  text-align: left;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 34px;
  transition: transform 160ms var(--hh3db-ease), border-color 160ms var(--hh3db-ease), background-color 160ms var(--hh3db-ease);
}
.hh3db-prop-card small { display: none; }
.hh3db-prop-card:hover {
  transform: translate3d(0, -1px, 0);
  border-color: var(--hh3db-gold);
  background: rgba(223, 173, 82, 0.14);
}
.hh3db-prop-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hh3db-prop-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(223, 173, 82, 0.14);
  color: var(--hh3db-gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hh3db-prop-ico svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hh3db-prop-card strong {
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hh3db-prop-card small {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--hh3db-panel-strong);
  border: 1px solid var(--hh3db-line);
  color: var(--hh3db-gold-soft);
  flex-shrink: 0;
}

.hh3db-mood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.hh3db-mood-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms var(--hh3db-ease), background 160ms var(--hh3db-ease);
}
.hh3db-mood-pill:hover { border-color: var(--hh3db-line-bright); }
.hh3db-mood-pill.is-active {
  border-color: var(--hh3db-gold);
  background: rgba(223, 173, 82, 0.18);
  color: var(--hh3db-gold-soft);
}
.hh3db-mood-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

/* Viewport Bottom Shortcut Hint Capsule */
.hh3db-controls-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hh3db-glass);
  border: 1px solid var(--hh3db-line);
  color: var(--hh3db-muted);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 200ms var(--hh3db-ease);
}
.hh3db-controls-hint i {
  font-style: normal;
  color: var(--hh3db-gold);
  opacity: 0.7;
}

/* Right Sidebar Quick Actions & Empty Outliner */
.hh3db-quick-asset-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 5px;
}
.hh3db-inline-acts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hh3db-outliner-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px dashed var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-muted);
  font-size: 11px;
}

/* Pose & Motion Categories & Thumbnail Grid */
.hh3db-pose-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hh3db-cat-pill {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms var(--hh3db-ease), border-color 180ms var(--hh3db-ease), color 180ms var(--hh3db-ease);
}
.hh3db-cat-pill.is-active {
  background: rgba(223, 173, 82, 0.22);
  border-color: var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
}

.hh3db-pose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
.hh3db-motion-grid {
  max-height: calc(100vh - 418px);
  min-height: 220px;
}

.hh3db-pose-card {
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  cursor: pointer;
  text-align: left;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 156px;
  transition: transform 180ms var(--hh3db-ease), border-color 180ms var(--hh3db-ease), background-color 180ms var(--hh3db-ease), box-shadow 180ms var(--hh3db-ease);
}
.hh3db-pose-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--hh3db-line-bright);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.hh3db-pose-card.is-active {
  border-color: var(--hh3db-gold);
  background: rgba(223, 173, 82, 0.16);
  box-shadow: 0 0 0 1px rgba(223, 173, 82, 0.42), 0 8px 22px rgba(0, 0, 0, 0.32);
}
.hh3db-pose-thumb-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #241e18, #110e0b);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hh3db-pose-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 11;
  border-radius: 7px;
  object-fit: cover;
  background: transparent;
  display: block;
  transition: transform 240ms var(--hh3db-ease);
}
.hh3db-pose-card:hover .hh3db-pose-thumb {
  transform: scale(1.035);
}
.hh3db-pose-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(14, 11, 8, 0.9);
  border: 1px solid rgba(223, 173, 82, 0.42);
  color: #f0ca7f;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
}
html[data-hhv-appearance="day"] body .hh3db-sidebar .hh3db-pose-card .hh3db-pose-badge {
  background: rgba(255, 252, 246, 0.94) !important;
  border-color: rgba(184, 134, 54, 0.36) !important;
  color: #261e14 !important;
  -webkit-text-fill-color: #261e14 !important;
  box-shadow: 0 2px 6px rgba(46, 35, 18, 0.12) !important;
}
.hh3db-pose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 3px 2px;
}
.hh3db-pose-meta strong {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hh3db-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh3db-pose-meta i {
  font-style: normal;
  font-size: 9px;
  color: var(--hh3db-gold-soft);
  opacity: 0.85;
  flex-shrink: 0;
}

/* Custom Zero-Native Select Control */
.hh3db-cselect-host { position: relative; min-width: 0; flex: 1; }
.hh3db-cselect-compact { flex: 0 0 auto; min-width: 104px; }
.hh3db-cselect-inline { flex: 0 0 auto; min-width: 96px; }

.hh3db-cselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: border-color 180ms var(--hh3db-ease), background 180ms var(--hh3db-ease);
}
.hh3db-cselect-trigger:hover { border-color: var(--hh3db-line-bright); }
.hh3db-cselect-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hh3db-caret {
  font-size: 10px;
  color: var(--hh3db-gold);
  flex-shrink: 0;
  transition: transform 180ms var(--hh3db-ease);
}
.hh3db-cselect-trigger[aria-expanded="true"] .hh3db-caret,
.hh3db-tpl-trigger[aria-expanded="true"] .hh3db-caret {
  transform: rotate(180deg);
}

.hh3db-cselect-menu {
  position: fixed;
  z-index: 2000;
  min-width: 140px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border-radius: 10px;
  background: var(--hh3db-panel-strong);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
  animation: hh3dbPopIn 180ms var(--hh3db-ease) both;
}
.hh3db-cselect-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 150ms var(--hh3db-ease);
}
.hh3db-cselect-option:hover { background: rgba(223, 173, 82, 0.14); }
.hh3db-cselect-option[aria-selected="true"] {
  background: rgba(223, 173, 82, 0.24);
  color: var(--hh3db-gold-soft);
  font-weight: 700;
}

@keyframes hh3dbPopIn {
  from { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Viewport & Floating Spatial Overlays */
.hh3db-stage-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.hh3db-viewport-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0d0b09;
}

.hh3db-canvas-host {
  position: absolute;
  inset: 0;
}
.hh3db-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hh3db-vp-float-tl {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 10;
  max-width: min(330px, calc(50% - 14px));
  transition: opacity 220ms var(--hh3db-ease), transform 220ms var(--hh3db-ease);
}

.hh3db-vp-float-tr {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 10;
  max-width: calc(100% - min(344px, 50%));
  transition: opacity 220ms var(--hh3db-ease), transform 220ms var(--hh3db-ease);
}

.hh3db-vp-float-tl .hh3db-float-pill-bar,
.hh3db-vp-float-tr .hh3db-float-pill-bar {
  flex-wrap: wrap;
  row-gap: 3px;
}

.hh3db-vp-float-tl.is-tpl-open,
.hh3db-vp-float-tl:has(.hh3db-tpl-trigger[aria-expanded="true"]),
.hh3db-vp-float-tl:has(.hh3db-tpl-menu:not([hidden])) {
  z-index: 200 !important;
}
/* Official Scene Template Visual Dropdown */
.hh3db-tpl-dropdown { position: relative; }
.hh3db-tpl-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 6px;
  border-radius: 12px;
  background: var(--hh3db-glass);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms var(--hh3db-ease), transform 180ms var(--hh3db-ease);
}
.hh3db-tpl-trigger:hover { transform: translate3d(0, -1px, 0); }
.hh3db-tpl-thumb-sm {
  width: 56px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: #1c1813;
  flex-shrink: 0;
}
.hh3db-tpl-trigger-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hh3db-tpl-trigger-txt small {
  font-size: 9px;
  color: var(--hh3db-gold-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hh3db-tpl-trigger-txt strong {
  font-size: 12px;
  color: var(--hh3db-ink);
  white-space: nowrap;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh3db-tpl-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(680px, calc(100vw - 360px));
  min-width: 480px;
  max-height: min(520px, calc(100vh - 200px));
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: var(--hh3db-panel-strong);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 210 !important;
  animation: hh3dbPopIn 200ms var(--hh3db-ease) both;
}
.hh3db-tpl-menu[hidden] { display: none !important; }

.hh3db-tpl-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hh3db-line);
}
.hh3db-tpl-menu-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hh3db-tpl-menu-title strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--hh3db-ink);
}
.hh3db-tpl-menu-title small {
  font-size: 10px;
  color: var(--hh3db-muted);
}
.hh3db-tpl-cats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.hh3db-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hh3db-tpl-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 11px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  cursor: pointer;
  text-align: left;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 168px;
  transition: transform 180ms var(--hh3db-ease), border-color 180ms var(--hh3db-ease), box-shadow 180ms var(--hh3db-ease);
}
.hh3db-tpl-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--hh3db-line-bright);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.hh3db-tpl-card.is-active {
  border-color: var(--hh3db-gold);
  background: rgba(223, 173, 82, 0.16);
  box-shadow: 0 0 0 1px rgba(223, 173, 82, 0.4);
}
.hh3db-tpl-cover {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #17130f;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.hh3db-tpl-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #1a1612;
  transition: transform 240ms var(--hh3db-ease);
}
.hh3db-tpl-card:hover img {
  transform: scale(1.04);
}
.hh3db-tpl-lens-badge {
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.9);
  border: 1px solid rgba(223, 173, 82, 0.42);
  color: #f0ca7f;
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
}
.hh3db-tpl-story-tag {
  position: absolute;
  left: 6px;
  top: 5px;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 16, 11, 0.94), rgba(40, 30, 16, 0.92));
  border: 1px solid rgba(223, 173, 82, 0.55);
  color: #ffe2a4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.hh3db-tpl-card strong {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hh3db-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh3db-tpl-card span {
  font-size: 9.5px;
  color: var(--hh3db-muted);
  margin-top: 2px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh3db-tpl-card.is-benchmark {
  border-color: rgba(223, 173, 82, 0.52);
  background: linear-gradient(180deg, rgba(223, 173, 82, 0.14), rgba(20, 16, 12, 0.85));
}
html[data-hhv-appearance="day"] .hh3db-tpl-card.is-benchmark {
  background: linear-gradient(180deg, rgba(223, 173, 82, 0.16), rgba(255, 252, 246, 0.96));
}
.hh3db-rig-bind-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh3db-rig-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.hh3db-rig-row label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--hh3db-muted);
}
.hh3db-rig-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.hh3db-rig-kf-status {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--hh3db-muted);
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(223, 173, 82, 0.07);
  border: 1px dashed rgba(223, 173, 82, 0.25);
}
.hh3db-tl-dur-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--hh3db-muted);
  white-space: nowrap;
}
.hh3db-tl-dur-wrap input {
  width: 48px;
  padding: 2px 4px;
  border-radius: 5px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-gold-soft);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}
/* Floating Pill Bar */
.hh3db-float-pill-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 10px;
  background: var(--hh3db-glass);
  border: 1px solid var(--hh3db-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.hh3db-vsep {
  width: 1px;
  height: 16px;
  background: var(--hh3db-line);
  margin: 0 3px;
}
.hh3db-tool-btn {
  border: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms var(--hh3db-ease), background 160ms var(--hh3db-ease);
}
.hh3db-tool-btn:hover { color: var(--hh3db-ink); background: rgba(223, 173, 82, 0.12); }
.hh3db-tool-btn.is-active {
  background: linear-gradient(135deg, #dfad52, #ba8226);
  color: #140f08;
}

/* Joint Hover Pill */
.hh3db-joint-hover-pill {
  position: absolute;
  z-index: 12;
  pointer-events: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 15, 11, 0.92);
  border: 1px solid var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
  font-size: 11px;
  font-weight: 700;
  transform: translate3d(-50%, -140%, 0);
  white-space: nowrap;
}

/* Bottom-Left Real-Time PiP Card (240x135) */
.hh3db-pip-card {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 11;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hh3db-glass);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
  transition: opacity 220ms var(--hh3db-ease), transform 220ms var(--hh3db-ease);
}
.hh3db-pip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--hh3db-line);
  background: rgba(16, 13, 10, 0.72);
}
html[data-hhv-appearance="day"] .hh3db-pip-head {
  background: rgba(245, 240, 230, 0.9);
}
.hh3db-pip-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--hh3db-gold-soft);
  white-space: nowrap;
}
.hh3db-pip-title em {
  font-style: normal;
  color: var(--hh3db-ink);
}
.hh3db-pip-acts {
  display: inline-flex;
  gap: 4px;
}
.hh3db-pip-btn {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
}
.hh3db-pip-btn:hover { border-color: var(--hh3db-gold); color: var(--hh3db-gold-soft); }

.hh3db-pip-body {
  position: relative;
  width: 240px;
  height: 135px;
  background: #0a0908;
}
.hh3db-pip-card.is-collapsed .hh3db-pip-body {
  display: none;
}
#hh3db-pip-canvas {
  display: block;
  width: 240px;
  height: 135px;
}
.hh3db-pip-badge {
  position: absolute;
  right: 6px;
  bottom: 5px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.78);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  pointer-events: none;
}

/* Cinema 4-Act Micro-Story Director Subtitle HUD */
.hh3db-story-hud {
  position: absolute;
  left: 268px;
  right: 16px;
  bottom: 42px;
  max-width: 540px;
  margin: 0 auto;
  z-index: 11;
  padding: 7px 12px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 15, 11, 0.94), rgba(11, 9, 7, 0.96));
  border: 1px solid rgba(223, 173, 82, 0.42);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.46);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 220ms var(--hh3db-ease), transform 220ms var(--hh3db-ease);
}
html[data-hhv-appearance="day"] .hh3db-story-hud {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(246, 240, 229, 0.98));
  border-color: rgba(180, 115, 15, 0.38);
  box-shadow: 0 12px 30px rgba(90, 65, 24, 0.16);
}
.hh3db-story-hud[hidden] { display: none !important; }
.hh3db-app[data-studio-mode="previs"] .hh3db-story-hud {
  left: 50%;
  right: auto;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(640px, 90vw);
  max-width: 640px;
}
.hh3db-story-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hh3db-story-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1.5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dfad52, #b88024);
  color: #140f08;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hh3db-story-act {
  font-size: 11px;
  font-weight: 700;
  color: var(--hh3db-gold-soft);
  white-space: nowrap;
}
.hh3db-story-shot {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: var(--hh3db-cyan);
  white-space: nowrap;
}
.hh3db-story-acts-ctl {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hh3db-story-chip {
  border: 1px solid var(--hh3db-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hh3db-ink);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--hh3db-ease), border-color 160ms var(--hh3db-ease), color 160ms var(--hh3db-ease);
}
html[data-hhv-appearance="day"] .hh3db-story-chip {
  background: rgba(180, 115, 15, 0.08);
}
.hh3db-story-chip:hover,
.hh3db-story-chip.is-active {
  border-color: var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
  background: rgba(223, 173, 82, 0.18);
}
.hh3db-story-chip-gold {
  border-color: rgba(223, 173, 82, 0.55);
  color: var(--hh3db-gold-soft);
}
.hh3db-story-sub {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hh3db-ink);
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Previs HUD */
.hh3db-previs-hud {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hh3db-glass);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
}
.hh3db-previs-hud[hidden] { display: none !important; }
.hh3db-previs-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--hh3db-gold-soft);
}

/* Aspect Frame Overlay */
.hh3db-aspect-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.hh3db-aspect-overlay.is-active { display: flex; }
.hh3db-aspect-frame {
  position: relative;
  border: 2px solid rgba(223, 173, 82, 0.85);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.56);
  transition: width 180ms var(--hh3db-ease), height 180ms var(--hh3db-ease);
}
.hh3db-aspect-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(18, 15, 11, 0.85);
  color: #f0ca7f;
  border: 1px solid rgba(223, 173, 82, 0.45);
}

/* Drag & Drop Veil */
.hh3db-drop-veil {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 11, 9, 0.88);
  pointer-events: none;
}
.hh3db-drop-veil[hidden] { display: none !important; }
.hh3db-drop-box {
  padding: 24px 32px;
  border-radius: 16px;
  border: 2px dashed var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
  font-size: 14px;
  font-weight: 700;
}

.hh3db-toast {
  position: absolute;
  top: 124px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(460px, calc(100% - 40px));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hh3db-panel-strong);
  border: 1px solid var(--hh3db-line-bright);
  color: var(--hh3db-gold-soft);
  font-size: 12px;
  font-weight: 600;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--hh3db-ease);
  box-shadow: var(--hh3db-shadow);
}
.hh3db-toast.is-visible { opacity: 1; }

/* Right Panel Hierarchy, Import Menu & 5-Channel AI Control Maps */
.hh3db-import-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hh3db-import-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 240px;
  padding: 5px;
  border-radius: 11px;
  background: var(--hh3db-panel-strong);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: hh3dbPopIn 180ms var(--hh3db-ease) both;
}
.hh3db-import-menu[hidden] { display: none !important; }
.hh3db-menu-item {
  display: block;
  width: 100%;
  padding: 6px 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.hh3db-menu-item:hover { background: rgba(223, 173, 82, 0.16); color: var(--hh3db-gold-soft); }
.hh3db-menu-sep {
  border: 0;
  border-top: 1px solid var(--hh3db-line);
  margin: 3px 4px;
}

.hh3db-cam-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hh3db-asset-drawer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 140px;
  overflow-y: auto;
  padding-top: 4px;
  border-top: 1px dashed var(--hh3db-line);
}
.hh3db-asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  font-size: 11px;
}
.hh3db-asset-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hh3db-outliner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 170px;
  overflow-y: auto;
}
.hh3db-outliner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--hh3db-input);
  font-size: 11px;
  cursor: pointer;
  transition: background 150ms var(--hh3db-ease), border-color 150ms var(--hh3db-ease);
}
.hh3db-outliner-item.is-selected {
  border-color: var(--hh3db-line-bright);
  background: rgba(223, 173, 82, 0.14);
  color: var(--hh3db-gold-soft);
}
.hh3db-outliner-item.is-group-child {
  margin-left: 14px;
  opacity: 0.92;
}
.hh3db-outliner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hh3db-outliner-acts { display: inline-flex; gap: 3px; flex-shrink: 0; }
.hh3db-icon-btn {
  border: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 1px 4px;
}
.hh3db-icon-btn:hover { color: var(--hh3db-ink); }

/* Sliders & Transform Inputs */
.hh3db-sliders, .hh3db-light-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh3db-slider-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.hh3db-slider-row label { color: var(--hh3db-muted); white-space: nowrap; }
.hh3db-slider-row output { text-align: right; font-variant-numeric: tabular-nums; font-size: 10px; }
.hh3db-slider-row input[type="range"] { width: 100%; accent-color: #dfad52; }

.hh3db-transform-grid { display: flex; flex-direction: column; gap: 6px; }
.hh3db-vec-row {
  display: grid;
  grid-template-columns: 44px repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.hh3db-vec-row span { color: var(--hh3db-muted); font-weight: 600; }
.hh3db-vec-row input {
  width: 100%;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  border-radius: 6px;
  padding: 4px 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* 5-Channel AI Control Maps Grid */
.hh3db-ctrl-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.hh3db-ctrl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border-radius: 9px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
}
.hh3db-ctrl-card:first-child { grid-column: span 2; }
.hh3db-ctrl-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #0d0b09;
  object-fit: cover;
  display: block;
}
.hh3db-ctrl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.hh3db-ctrl-head strong { font-size: 10px; font-weight: 700; }
.hh3db-ctrl-acts {
  display: flex;
  gap: 3px;
}
.hh3db-ctrl-acts button {
  flex: 1;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-panel-strong);
  color: var(--hh3db-muted);
  font-size: 9px;
  font-weight: 600;
  padding: 3px 4px;
  border-radius: 5px;
  cursor: pointer;
}
.hh3db-ctrl-acts button:hover { color: var(--hh3db-gold-soft); border-color: var(--hh3db-line-bright); }

.hh3db-push-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hh3db-export-stack { display: flex; flex-direction: column; gap: 6px; }
.hh3db-video-row {
  display: grid;
  grid-template-columns: 64px 74px minmax(0, 1fr);
  gap: 5px;
}
.hh3db-export-status { font-size: 11px; color: var(--hh3db-gold-soft); min-height: 15px; }

/* Bottom 15s Timeline Dock */
.hh3db-timeline-dock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--hh3db-shell);
  border-top: 1px solid var(--hh3db-line);
  z-index: 25;
}
.hh3db-tl-controls, .hh3db-tl-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hh3db-tl-btn {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.hh3db-tl-btn.hh3db-btn-gold {
  background: linear-gradient(135deg, #dfad52, #ba8226);
  color: #140f08;
  border-color: transparent;
}
.hh3db-tl-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--hh3db-muted);
  white-space: nowrap;
}
.hh3db-tl-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--hh3db-gold-soft);
  min-width: 90px;
  white-space: nowrap;
}

.hh3db-tl-track-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  height: 60px;
  padding: 19px 10px 15px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  border-radius: 9px;
}
.hh3db-tl-acts {
  position: absolute;
  top: 3px;
  left: 8px;
  right: 8px;
  height: 15px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  z-index: 3;
}
.hh3db-tl-acts:empty { display: none; }
.hh3db-tl-act-pill {
  border: 1px solid rgba(223, 173, 82, 0.25);
  background: rgba(223, 173, 82, 0.08);
  color: var(--hh3db-muted);
  font-size: 9px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  line-height: 13px;
  transition: background-color 150ms var(--hh3db-ease), border-color 150ms var(--hh3db-ease), color 150ms var(--hh3db-ease);
}
.hh3db-tl-act-pill:hover {
  border-color: var(--hh3db-gold);
  color: var(--hh3db-ink);
}
.hh3db-tl-act-pill.is-active {
  background: linear-gradient(90deg, rgba(223, 173, 82, 0.34), rgba(56, 189, 248, 0.18));
  border-color: var(--hh3db-gold);
  color: var(--hh3db-gold-soft);
}
.hh3db-tl-ruler {
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--hh3db-muted);
  opacity: 0.72;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.hh3db-tl-check input[type="checkbox"] {
  accent-color: #d4a84f;
  cursor: pointer;
}
.hh3db-tl-scrubber {
  width: 100%;
  height: 12px;
  margin: 0;
  accent-color: #d4a84f;
  cursor: pointer;
  z-index: 2;
}
.hh3db-tl-markers {
  position: relative;
  height: 10px;
  margin: 0 6px;
  pointer-events: none;
  z-index: 2;
}
.hh3db-kf-dot {
  position: absolute;
  top: 1px;
  width: 7px;
  height: 7px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transform: translateX(-50%) rotate(45deg);
  background: #d4a84f;
  border: 1px solid #181208;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 150ms var(--hh3db-ease), background 150ms var(--hh3db-ease);
}
.hh3db-kf-dot:hover { transform: translateX(-50%) rotate(45deg) scale(1.25); }
.hh3db-kf-dot.is-active {
  background: #dfad52;
  box-shadow: 0 0 0 2px #ffffff;
}

/* Modals (Operation Manual & AI/MCP Bridge) */
.hh3db-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 6, 0.82);
}
.hh3db-modal-backdrop[hidden] { display: none !important; }

.hh3db-modal-card {
  width: min(780px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--hh3db-panel-strong);
  border: 1px solid var(--hh3db-line-bright);
  box-shadow: var(--hh3db-shadow);
  overflow: hidden;
  animation: hh3dbPopIn 220ms var(--hh3db-ease) both;
}
.hh3db-modal-lg { width: min(920px, 96vw); }

.hh3db-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hh3db-line);
}
.hh3db-modal-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.hh3db-modal-head p { margin: 4px 0 0; font-size: 11px; color: var(--hh3db-muted); }

.hh3db-modal-close {
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-input);
  color: var(--hh3db-ink);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hh3db-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px 0;
  border-bottom: 1px solid var(--hh3db-line);
}
.hh3db-tab-btn {
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--hh3db-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
}
.hh3db-tab-btn.is-active {
  background: var(--hh3db-input);
  border-color: var(--hh3db-line);
  color: var(--hh3db-gold-soft);
}

.hh3db-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}

.hh3db-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hh3db-guide-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
}
.hh3db-guide-card h4 { margin: 0 0 8px; font-size: 13px; color: var(--hh3db-gold-soft); }
.hh3db-guide-card ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--hh3db-ink);
}
.hh3db-guide-card kbd, .hh3db-guide-card code {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--hh3db-line);
  background: var(--hh3db-panel-strong);
  font-size: 10px;
  color: var(--hh3db-gold-soft);
}

.hh3db-bridge-bar, .hh3db-cloud-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.hh3db-input {
  flex: 1;
  min-width: 160px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--hh3db-ink);
}
.hh3db-input-sm { max-width: 160px; }

.hh3db-code-area {
  width: 100%;
  min-height: 320px;
  padding: 12px;
  border-radius: 10px;
  background: #0b0908;
  color: #e6dfd3;
  border: 1px solid var(--hh3db-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
}
html[data-hhv-appearance="day"] .hh3db-code-area {
  background: #f8f5ef;
  color: #1f1b16;
}

.hh3db-cloud-list, .hh3db-prompt-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hh3db-cloud-item, .hh3db-prompt-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hh3db-input);
  border: 1px solid var(--hh3db-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh3db-cloud-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hh3db-prompt-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.5;
  color: var(--hh3db-muted);
}

/* Responsive */
@media (max-width: 1220px) {
  .hh3db-workspace {
    grid-template-columns: 256px minmax(0, 1fr) 264px;
  }
  .hh3db-nav { display: none; }
  .hh3db-controls-hint { display: none; }
}

@media (max-width: 880px) {
  html, body { overflow-x: hidden; overflow-y: auto; height: auto !important; }
  .hh3db-app {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }
  .hh3db-topbar {
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    padding: 8px 10px;
    gap: 8px;
  }
  .hh3db-timeline-dock { flex: 0 0 auto; height: auto !important; }
  .hh3db-mode-switch { align-self: flex-start; }
  .hh3db-topbar-right { justify-content: flex-start; flex-wrap: wrap; }
  .hh3db-workspace {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    gap: 10px;
  }
  .hh3db-sidebar {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-left: none;
    border-right: none;
  }
  .hh3db-stage-col { order: -1; flex: 0 0 auto !important; display: flex; flex-direction: column; height: auto !important; overflow: visible !important; }
  .hh3db-viewport-wrap { min-height: 440px; height: auto !important; display: flex; flex-direction: column; overflow: visible !important; }
  .hh3db-canvas-host { position: relative !important; inset: auto !important; width: 100%; height: 320px !important; min-height: 320px; flex: 0 0 320px !important; }
  .hh3db-vp-float-tl, .hh3db-vp-float-tr { position: static !important; max-width: 100% !important; align-items: flex-start; padding: 6px 8px 0; }
  .hh3db-pip-card { display: none !important; }
  .hh3db-tpl-menu { min-width: 0; width: min(94vw, 520px); }
  .hh3db-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh3db-manual-grid { grid-template-columns: 1fr; }
  .hh3db-timeline-dock { grid-template-columns: 1fr; }
  .hh3db-tl-controls, .hh3db-tl-actions { flex-wrap: wrap; }
  .hh3db-motion-grid { max-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Track 2 (#362): Zero-Blur Performance Lock + Refined Luxury Day-Mode Studio Parity with /3d/ */
body.hanhai-3d-box-standalone {
  background-image: none !important;
}
#hanhai-3d-box-app,
#hanhai-3d-box-app *,
#hanhai-3d-box-app *::before,
#hanhai-3d-box-app *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-topbar {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f3ea 100%) !important;
  border-bottom: 1px solid rgba(176, 124, 40, 0.22) !important;
  box-shadow: 0 2px 10px rgba(46, 35, 18, 0.05) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-sidebar {
  background: #fbf8f1 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-panel {
  background: #ffffff !important;
  border-color: rgba(176, 124, 40, 0.2) !important;
  box-shadow: 0 2px 10px rgba(46, 35, 18, 0.05) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-top-btn:not(.hh3db-btn-gold) {
  background: #ffffff !important;
  border-color: rgba(176, 124, 40, 0.24) !important;
  color: #261e14 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-top-btn:not(.hh3db-btn-gold):hover:not(:disabled) {
  background: #f6eedf !important;
  border-color: rgba(176, 124, 40, 0.48) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-mode-switch,
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-theme-switch {
  background: #f3ece0 !important;
  border-color: rgba(176, 124, 40, 0.24) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-pose-card {
  background: #fffdf9 !important;
  border-color: rgba(176, 124, 40, 0.2) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-pose-card:hover {
  border-color: rgba(176, 124, 40, 0.48) !important;
  box-shadow: 0 6px 16px rgba(46, 35, 18, 0.1) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-float-pill-bar,
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-tpl-trigger,
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-pip-card,
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-controls-hint {
  background: rgba(255, 252, 246, 0.96) !important;
  border-color: rgba(176, 124, 40, 0.28) !important;
  box-shadow: 0 8px 22px rgba(46, 35, 18, 0.1) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-timeline-dock {
  background: #fbf8f1 !important;
  border-top: 1px solid rgba(176, 124, 40, 0.22) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance="day"], [data-hh-theme="day"], .hhd4-day) body.hanhai-3d-box-standalone .hh3db-toast {
  background: rgba(255, 252, 246, 0.98) !important;
  color: #261e14 !important;
  border-color: rgba(176, 124, 40, 0.42) !important;
  box-shadow: 0 10px 26px rgba(46, 35, 18, 0.16) !important;
}
