/* src/styles/editor.css */
:root {
  --ed-bg-base: #0f0f1a;
  --ed-bg-panel: #12122a;
  --ed-bg-toolbar: #16162a;
  --ed-bg-input: #1a1a3e;
  --ed-bg-button: #2a2a4e;
  --ed-bg-hover: #3a3a6e;
  --ed-bg-active: #252540;
  --ed-border: #3a3a5e;
  --ed-border-subtle: #2a2a4e;
  --ed-accent: #3a6ea5;
  --ed-accent-hover: #4a8ec5;
  --ed-accent-subtle: #1a2a4e;
  --ed-warm: #e8801f;
  --ed-warm-hover: #ff9533;
  --ed-warm-subtle: #3a2418;
  --ed-text: #d0d0e0;
  --ed-text-bright: #ffffff;
  --ed-text-heading: #e0e0f0;
  --ed-text-secondary: #aaaacc;
  --ed-text-muted: #8888aa;
  --ed-text-dim: #555577;
  --ed-text-subtle: #6666aa;
  --ed-danger: #ff6666;
  --ed-danger-bg: #4a2020;
  --ed-danger-border: #6a3030;
  --ed-success: #66aa66;
  --ed-scrollbar: #3a3a5e;
  --ed-scrollbar-hover:#555577;
}
[data-theme=slate] {
  --ed-bg-base: #141418;
  --ed-bg-panel: #1c1c22;
  --ed-bg-toolbar: #202028;
  --ed-bg-input: #26262e;
  --ed-bg-button: #32323c;
  --ed-bg-hover: #42424e;
  --ed-bg-active: #2a2a32;
  --ed-border: #3e3e48;
  --ed-border-subtle: #32323c;
  --ed-accent: #5a8abf;
  --ed-accent-hover: #6a9ad0;
  --ed-accent-subtle: #1e2a38;
  --ed-text: #d4d4dc;
  --ed-text-bright: #ffffff;
  --ed-text-heading: #e4e4ec;
  --ed-text-secondary: #aaaab4;
  --ed-text-muted: #88889a;
  --ed-text-dim: #5a5a6a;
  --ed-text-subtle: #6a6a88;
  --ed-danger: #ee6666;
  --ed-danger-bg: #3a2020;
  --ed-danger-border: #5a3030;
  --ed-success: #66aa66;
  --ed-scrollbar: #3e3e48;
  --ed-scrollbar-hover:#5a5a6a;
}
[data-theme=ocean] {
  --ed-bg-base: #0c1518;
  --ed-bg-panel: #101e24;
  --ed-bg-toolbar: #142428;
  --ed-bg-input: #1a2c32;
  --ed-bg-button: #243a42;
  --ed-bg-hover: #2e4a54;
  --ed-bg-active: #1e3038;
  --ed-border: #2e4a52;
  --ed-border-subtle: #243a42;
  --ed-accent: #2e9abf;
  --ed-accent-hover: #3eb0d5;
  --ed-accent-subtle: #162830;
  --ed-text: #ccdde4;
  --ed-text-bright: #ffffff;
  --ed-text-heading: #d8e8f0;
  --ed-text-secondary: #8eaab8;
  --ed-text-muted: #6a8a98;
  --ed-text-dim: #4a6a78;
  --ed-text-subtle: #5a8a9a;
  --ed-danger: #ee6666;
  --ed-danger-bg: #2e1818;
  --ed-danger-border: #4e2828;
  --ed-success: #44bb88;
  --ed-scrollbar: #2e4a52;
  --ed-scrollbar-hover:#4a6a78;
}
[data-theme=light] {
  --ed-bg-base: #f4f6fa;
  --ed-bg-panel: #ffffff;
  --ed-bg-toolbar: #eef2f7;
  --ed-bg-input: #ffffff;
  --ed-bg-button: #e4eaf2;
  --ed-bg-hover: #d8e0ea;
  --ed-bg-active: #ccd6e4;
  --ed-border: #c8d2e0;
  --ed-border-subtle: #e0e6ee;
  --ed-accent: #2870c8;
  --ed-accent-hover: #1d5fb0;
  --ed-accent-subtle: #e0ecf8;
  --ed-warm: #e8801f;
  --ed-warm-hover: #d06a10;
  --ed-warm-subtle: #fdebd0;
  --ed-text: #1f2937;
  --ed-text-bright: #000000;
  --ed-text-heading: #0f172a;
  --ed-text-secondary: #475569;
  --ed-text-muted: #64748b;
  --ed-text-dim: #94a3b8;
  --ed-text-subtle: #4a6ab0;
  --ed-danger: #cc3333;
  --ed-danger-bg: #fde8e8;
  --ed-danger-border: #f0b0b0;
  --ed-success: #2a8a2a;
  --ed-scrollbar: #c0c8d4;
  --ed-scrollbar-hover:#9aa4b4;
}
[data-theme=light] .editor-canvas-area,
[data-theme=light] .timeline-ruler,
[data-theme=light] .asset-detail-preview {
  background: #d8d8e0;
}
[data-theme=light] .lib-detail-img {
  background-color: #e0e0e8;
}
[data-theme=light] .toolbar-info-btn {
  color: var(--ed-text-muted);
}
[data-theme=light] .credits-version {
  color: #4455aa;
}
[data-theme=light] .credits-link {
  color: var(--ed-accent);
  border-color: var(--ed-accent);
}
[data-theme=light] .credits-link:hover {
  color: var(--ed-accent-hover);
}
[data-theme=light] .tf-btn.secondary {
  border-color: var(--ed-border-subtle);
}
[data-theme=light] .tf-btn.toggle:hover {
  background: var(--ed-bg-hover);
}
[data-theme=light] .tf-btn.toggle.active {
  background: #f0e8c8;
  border-color: #c0a840;
  color: #7a6010;
}
[data-theme=light] .tf-btn.muted {
  border-color: var(--ed-border-subtle);
}
[data-theme=light] .tf-btn.muted:hover {
  color: var(--ed-text-secondary);
}
[data-theme=light] .prop-flip-btn {
  background: var(--ed-bg-button);
  border-color: var(--ed-border);
  color: var(--ed-text-muted);
}
[data-theme=light] .prop-flip-btn:hover {
  border-color: var(--ed-accent);
  color: var(--ed-text);
}
[data-theme=light] .prop-flip-btn.active {
  background: #d0e4f8;
  border-color: var(--ed-accent);
  color: #1a5090;
}
[data-theme=light] .settings-panel .property-group,
[data-theme=light] .properties-panel .property-group {
  border-bottom-color: var(--ed-border-subtle);
}
[data-theme=light] .settings-section-header:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ed-text);
}
[data-theme=light] .settings-subsection {
  color: var(--ed-text-muted);
  border-bottom-color: var(--ed-border-subtle);
}
[data-theme=light] .hotkey-btn {
  color: var(--ed-text);
}
[data-theme=light] .hotkey-btn:hover {
  border-color: var(--ed-accent);
  background: var(--ed-bg-hover);
}
[data-theme=light] .hotkey-btn.recording {
  border-color: var(--ed-accent);
  background: #e0eaf8;
  color: #1a4a8a;
}
[data-theme=light] .settings-panel .property-row.volume-row label {
  color: var(--ed-text-muted);
}
[data-theme=light] .settings-volume-slider {
  background: #d0d0d8 !important;
}
[data-theme=light] .settings-volume-slider::-webkit-slider-thumb {
  background: var(--ed-accent);
}
[data-theme=light] .settings-volume-slider::-moz-range-thumb {
  background: var(--ed-accent);
}
[data-theme=light] .property-row input[type=range]::-webkit-slider-thumb {
  background: var(--ed-accent);
}
[data-theme=light] .property-row input[type=range]::-moz-range-thumb {
  background: var(--ed-accent);
}
[data-theme=light] .object-list-item.selected,
[data-theme=light] .layer-row.selected {
  border-left-color: #d08a20;
}
[data-theme=light] .layer-name {
  color: var(--ed-text);
}
[data-theme=light] .layer-icon-btn {
  background: var(--ed-bg-button);
}
[data-theme=light] .layer-icon-btn:hover {
  color: var(--ed-text-bright);
}
[data-theme=light] .picker-btn.danger {
  color: var(--ed-danger);
}
[data-theme=light] .picker-btn.danger:hover {
  color: #aa2020;
}
[data-theme=light] .asset-sound-icon,
[data-theme=light] .asset-list-icon {
  color: var(--ed-accent);
}
[data-theme=light] .asset-category-badge,
[data-theme=light] .asset-list-icon,
[data-theme=light] .tpl-source-library {
  color: #2a7ab8;
  background: rgba(42, 122, 184, 0.12);
}
[data-theme=light] .template-card-category,
[data-theme=light] .lib-card-badge,
[data-theme=light] .lib-tag-chip,
[data-theme=light] .asset-tag-chip {
  background: #e0e0f0;
  color: var(--ed-text-muted);
}
[data-theme=light] .asset-card-delete,
[data-theme=light] .lib-card-delete,
[data-theme=light] .template-card-delete {
  background: rgba(220, 60, 60, 0.15);
}
[data-theme=light] .template-card-export {
  background: rgba(60, 120, 220, 0.15);
}
[data-theme=light] .asset-tag-remove:hover {
  color: var(--ed-danger);
}
[data-theme=light] .app-top-brand {
  color: var(--ed-accent);
}
[data-theme=light] .app-top-link:hover {
  background: rgba(0, 0, 0, 0.05);
}
[data-theme=light] .lib-btn.danger:hover {
  background: #f0d0d0;
}
[data-theme=light] .lib-back-btn {
  color: var(--ed-accent);
}
[data-theme=light] .lib-tag-filter.clear {
  color: var(--ed-danger);
  border-color: var(--ed-danger-border);
}
[data-theme=light] .lib-folder-row.active {
  color: var(--ed-accent);
}
[data-theme=light] .lib-breadcrumb-sep {
  color: var(--ed-text-dim);
}
[data-theme=light] .lib-breadcrumb-item.clickable {
  color: var(--ed-accent);
}
[data-theme=light] .lib-breadcrumb-item.clickable:hover {
  color: var(--ed-accent-hover);
}
[data-theme=light] .lib-detail-row.info span {
  color: var(--ed-text-muted);
}
[data-theme=light] .lib-audio-play-btn {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
}
[data-theme=light] .lib-audio-play-btn:hover {
  background: var(--ed-accent-subtle);
}
[data-theme=light] .lib-audio-play-btn.playing {
  background: #f8e0e0;
  border-color: #cc6666;
  color: #cc4444;
}
[data-theme=light] .lib-modal-card-add,
[data-theme=light] .lib-subfolder-add {
  background: var(--ed-accent-subtle);
  color: var(--ed-accent);
}
[data-theme=light] .lib-modal-card-add:hover,
[data-theme=light] .lib-subfolder-add:hover {
  background: #d0dff0;
}
[data-theme=light] .lib-modal-card-add.added {
  background: #d8f0d8;
  color: #2a8a2a;
}
[data-theme=light] .lib-modal-select-count {
  color: var(--ed-accent);
}
[data-theme=light] .lib-context-item.danger:hover {
  background: #fde8e8;
}
[data-theme=light] .timeline-keyframe {
  color: rgba(255, 255, 255, 0.9);
}
[data-theme=light] .credits-overlay,
[data-theme=light] .lib-modal-overlay,
[data-theme=light] .export-dialog-overlay {
  background: rgba(0, 0, 0, 0.35);
}
[data-theme=light] .export-dialog {
  background: var(--ed-bg-panel);
}
[data-theme=light] .export-dialog-content {
  color: var(--ed-text);
}
[data-theme=light] .export-section-title {
  color: var(--ed-text-muted);
}
[data-theme=light] .export-size-label {
  color: var(--ed-text);
}
[data-theme=light] .export-validation-row {
  color: var(--ed-text);
}
[data-theme=light] .export-check {
  color: var(--ed-success);
}
[data-theme=light] .export-fail {
  color: var(--ed-danger);
}
[data-theme=light] .export-warning {
  background: #fef0e0;
  border-color: #e0a050;
  color: #8a5020;
}
[data-theme=light] .export-notice {
  background: #f8f4e0;
  border-color: #c0b050;
  color: #706020;
}
[data-theme=light] .export-btn-primary {
  background: var(--ed-accent);
  color: #fff;
  border-color: var(--ed-accent-hover);
}
[data-theme=light] .export-btn-primary:hover {
  background: var(--ed-accent-hover);
}
[data-theme=light] .export-btn-secondary {
  color: var(--ed-text);
}
[data-theme=light] .export-btn-secondary:hover {
  background: var(--ed-bg-hover);
  border-color: var(--ed-border);
}
[data-theme=light] .export-btn-publish {
  background:
    linear-gradient(
      135deg,
      #e8f5e9,
      #c8e6c9);
  color: #2e7d32;
  border-color: #81c784;
}
[data-theme=light] .export-btn-publish:hover {
  background:
    linear-gradient(
      135deg,
      #c8e6c9,
      #a5d6a7);
  border-color: #66bb6a;
}
[data-theme=light] .em-crosslink {
  background: var(--ed-bg-hover);
  color: var(--ed-text-muted);
}
[data-theme=light] .em-crosslink:hover {
  border-color: var(--ed-accent);
  background: var(--ed-bg-panel);
}
[data-theme=light] .em-crosslink strong {
  color: var(--ed-text-heading);
}
[data-theme=light] .em-crosslink-footer {
  color: var(--ed-text-muted);
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--ed-bg-base);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
  background: var(--ed-scrollbar);
  border-radius: 4px;
  border: 1px solid var(--ed-bg-base);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--ed-scrollbar-hover);
}
*::-webkit-scrollbar-corner {
  background: var(--ed-bg-base);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--ed-scrollbar) var(--ed-bg-base);
}
.editor-layout {
  display: grid;
  grid-template-rows: 38px auto 1fr;
  grid-template-columns: 220px 5px 1fr 5px 350px;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--ed-bg-base);
  color: var(--ed-text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13px;
  overflow: hidden;
}
.editor-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--ed-bg-toolbar);
  border-bottom: 1px solid var(--ed-border-subtle);
}
.editor-toolbar .toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 2px 3px;
}
.editor-toolbar .toolbar-separator {
  width: 1px;
  height: 22px;
  background: var(--ed-border);
  margin: 0 4px;
  flex-shrink: 0;
}
.editor-toolbar button {
  padding: 4px 10px;
  background: var(--ed-bg-button);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.editor-toolbar button:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.editor-toolbar button.primary {
  background: var(--ed-accent);
  border-color: var(--ed-accent-hover);
  color: var(--ed-text-bright);
}
.editor-toolbar button.primary:hover {
  background: var(--ed-accent-hover);
}
.toolbar-map-btn {
  font-size: 14px;
  line-height: 1;
  padding: 3px 8px;
}
.toolbar-map-btn.active {
  background: var(--ed-accent);
  border-color: var(--ed-accent-hover);
  color: var(--ed-text-bright);
}
.map-reset-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  padding: 5px 11px;
  background: var(--ed-danger-bg);
  color: var(--ed-danger);
  border: 1px solid var(--ed-danger-border);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0.75;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: opacity 0.15s, background 0.15s;
}
.map-reset-btn:hover {
  opacity: 1;
  background: var(--ed-danger);
  border-color: var(--ed-danger);
  color: var(--ed-text-bright);
}
.editor-toolbar .toolbar-select {
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.editor-toolbar .toolbar-status {
  font-size: 12px;
  color: var(--ed-success);
  white-space: nowrap;
}
.editor-toolbar .spacer {
  flex: 1;
}
.toolbar-fullscreen-btn {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border-radius: 4px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  flex-shrink: 0;
}
.toolbar-fullscreen-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.toolbar-storage-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  margin-right: 4px;
  font-size: 11px;
  color: var(--ed-text-dim);
  flex-shrink: 0;
}
.toolbar-storage-label {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 10px;
}
.toolbar-storage-bar {
  width: 60px;
  height: 4px;
  background: var(--ed-bg-active);
  border-radius: 2px;
  overflow: hidden;
}
.toolbar-storage-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background-color 0.3s;
}
.toolbar-storage-text {
  font-variant-numeric: tabular-nums;
  color: var(--ed-text-secondary);
  white-space: nowrap;
}
.toolbar-info-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: var(--ed-bg-button);
  color: #8888bb;
  border: 1px solid var(--ed-border);
  font-size: 13px;
  font-style: italic;
  font-weight: bold;
  font-family: Georgia, serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
}
.toolbar-info-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-secondary);
}
.credits-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credits-modal {
  position: relative;
  background: var(--ed-bg-toolbar);
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  padding: 32px 40px;
  min-width: 280px;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.credits-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--ed-text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.credits-close:hover {
  color: var(--ed-text-secondary);
}
.credits-title {
  margin: 0 0 4px 0;
  font-size: 22px;
  color: var(--ed-text-heading);
  font-weight: bold;
}
.credits-version {
  font-size: 11px;
  color: #5566aa;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.credits-subtitle {
  font-size: 12px;
  color: var(--ed-text-muted);
  margin-bottom: 4px;
}
.credits-divider {
  border: none;
  border-top: 1px solid var(--ed-border-subtle);
  margin: 16px 0;
}
.credits-label {
  font-size: 11px;
  color: var(--ed-text-subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.credits-name {
  font-size: 18px;
  color: var(--ed-text-heading);
  font-weight: bold;
  margin-bottom: 2px;
}
.credits-studio {
  font-size: 13px;
  color: var(--ed-text-muted);
  margin-bottom: 14px;
}
.credits-link {
  display: inline-block;
  color: #5a9fd4;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid #3a5a7e;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.credits-link:hover {
  background: var(--ed-accent-subtle);
  color: #88ccff;
}
.credits-legal {
  font-size: 10px;
  color: var(--ed-text-dim);
  letter-spacing: 0.2px;
}
.editor-left-tabs {
  grid-row: 3;
  grid-column: 1;
  background: var(--ed-bg-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ed-text-muted);
  border-bottom: 1px solid var(--ed-border-subtle);
}
.panel-header button {
  padding: 2px 8px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.panel-header button:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.scene-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.room-header {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: bold;
  color: var(--ed-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--ed-border-subtle);
  margin-top: 2px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
  gap: 4px;
}
.room-header:first-child {
  border-top: none;
  margin-top: 0;
}
.room-header:hover {
  background: rgba(255, 255, 255, 0.03);
}
.room-chevron {
  font-size: 9px;
  width: 12px;
  flex-shrink: 0;
  color: var(--ed-text-dim);
  text-align: center;
}
.room-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-count {
  font-size: 10px;
  color: var(--ed-text-dim);
  font-weight: normal;
  flex-shrink: 0;
}
.scene-item {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.1s;
  font-size: 12px;
}
.scene-item:hover {
  background: var(--ed-bg-input);
}
.scene-item.active {
  background: var(--ed-bg-input);
  border-left-color: var(--ed-accent);
  color: var(--ed-text-bright);
}
.scene-item.multi-selected {
  background: color-mix(in srgb, var(--ed-accent) 22%, transparent);
  border-left-color: var(--ed-accent);
}
.scene-item.drag-over-before {
  box-shadow: inset 0 2px 0 0 var(--ed-accent);
}
.scene-item.drag-over-after {
  box-shadow: inset 0 -2px 0 0 var(--ed-accent);
}
.scene-item .scene-type {
  font-size: 10px;
  color: var(--ed-text-subtle);
  margin-left: auto;
}
.editor-canvas-area {
  grid-row: 3;
  grid-column: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a16;
  overflow: hidden;
}
.editor-canvas-area canvas {
  display: block;
}
.editor-scene-label {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 10;
  font-size: 11px;
  color: rgba(200, 200, 240, 0.7);
  background: rgba(10, 10, 30, 0.6);
  padding: 2px 10px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.editor-resize-handle {
  grid-row: 3;
  width: 5px;
  cursor: col-resize;
  background: transparent;
  position: relative;
  z-index: 10;
}
.editor-resize-handle::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ed-bg-button);
  transform: translateX(-50%);
}
.editor-resize-handle:hover,
.editor-resize-handle.dragging {
  background: rgba(58, 110, 165, 0.3);
}
.editor-resize-handle:hover::after,
.editor-resize-handle.dragging::after {
  background: var(--ed-accent);
  width: 2px;
}
.editor-properties {
  grid-row: 3;
  grid-column: 5;
  background: var(--ed-bg-panel);
  overflow-y: auto;
  min-height: 0;
}
.editor-tab-bar {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 2px;
  background: var(--ed-bg-base);
  border-bottom: 1px solid var(--ed-border);
  flex-shrink: 0;
}
.editor-tab-btn {
  flex: 1 1 60px;
  min-width: 56px;
  padding: 9px 4px;
  background: var(--ed-bg-toolbar);
  color: var(--ed-text-muted);
  border: none;
  border-right: 1px solid var(--ed-border-subtle);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 10px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.editor-tab-btn:hover {
  color: var(--ed-text);
  background: var(--ed-bg-hover);
}
.editor-tab-btn.active {
  color: var(--ed-accent);
  font-weight: 700;
  border-bottom-color: var(--ed-warm);
  background: var(--ed-bg-panel);
  box-shadow: inset 0 1px 0 var(--ed-border-subtle);
}
.editor-simple-toggle,
.editor-simple-toggle.active {
  flex: 1 1 100%;
  border-right: none;
  border-bottom: 1px solid var(--ed-border);
  color: var(--ed-accent);
  background: var(--ed-bg-base);
  font-weight: 600;
  box-shadow: none;
}
.editor-simple-toggle:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-accent);
}
.editor-tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.property-group {
  border-bottom: 1px solid var(--ed-border-subtle);
  padding: 10px 10px 8px;
}
.property-group h3 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ed-text-muted);
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(119, 119, 170, 0.15);
  transition: border-bottom-color 0.15s;
}
.property-group h3.collapsible {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.property-group h3.collapsible:hover {
  color: var(--ed-text-secondary);
}
.prop-chevron {
  font-size: 10px;
  width: 10px;
  flex-shrink: 0;
}
.property-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.property-row input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--ed-bg-button);
  border-radius: 2px;
  outline: none;
}
.property-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5a7a9a;
  cursor: pointer;
}
.property-row input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5a7a9a;
  border: none;
  cursor: pointer;
}
.property-row input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
}
.property-row label {
  width: 72px;
  font-size: 11px;
  color: var(--ed-text-muted);
  flex-shrink: 0;
  padding-right: 6px;
}
.property-row input[type=text],
.property-row input[type=number],
.property-row select {
  flex: 1;
  padding: 4px 6px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.property-row input:focus,
.property-row select:focus {
  border-color: var(--ed-accent);
}
.tf-subsection {
  font-size: 10px;
  color: var(--ed-text-subtle);
  margin: 10px 0 4px 0;
  letter-spacing: 0.3px;
}
.tf-subsection:first-child {
  margin-top: 0;
}
.tf-pair-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-end;
}
.tf-pair {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tf-pair label {
  font-size: 10px;
  color: var(--ed-text-muted);
  padding-left: 2px;
}
.tf-pair input[type=number] {
  width: 100%;
  padding: 5px 6px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.tf-pair input[type=number]:focus {
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 1px rgba(58, 110, 165, 0.25);
}
.tf-btn-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.tf-btn {
  width: 100%;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--ed-border-subtle);
  transition: background 0.12s, border-color 0.12s;
}
.tf-btn.secondary {
  flex: 1;
  font-size: 9px;
  letter-spacing: 0.3px;
  background: transparent;
  color: var(--ed-text-dim);
  border-color: #1e1e3a;
}
.tf-btn.secondary:hover {
  background: var(--ed-bg-toolbar);
  color: var(--ed-text-secondary);
  border-color: var(--ed-border);
}
.tf-btn.toggle {
  font-size: 11px;
  background: var(--ed-bg-toolbar);
  color: var(--ed-text-muted);
  border-color: var(--ed-border-subtle);
  margin-bottom: 6px;
  text-align: center;
}
.tf-btn.toggle:hover {
  background: #1e1e3e;
  color: var(--ed-text-secondary);
  border-color: var(--ed-border);
}
.tf-btn.toggle.active {
  background: #2a2818;
  border-color: #5a5830;
  color: #ddbb55;
}
.tf-btn.muted {
  font-size: 10px;
  background: transparent;
  color: var(--ed-text-dim);
  border-color: #1e1e3e;
  border-style: dashed;
}
.tf-btn.muted:hover {
  background: var(--ed-bg-input);
  color: #9999cc;
  border-style: solid;
}
.tf-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.property-row input[type=checkbox] {
  accent-color: var(--ed-accent);
  width: 14px;
  height: 14px;
  margin: 0 4px 0 0;
  cursor: pointer;
}
.prop-flip-btn {
  background: #1e1e36;
  border: 1px solid #3a3a5c;
  color: #888;
  width: 28px;
  height: 24px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: all 0.15s;
}
.prop-flip-btn:hover {
  border-color: #5a5a8c;
  color: #ccc;
}
.prop-flip-btn.active {
  background: #2a4a6a;
  border-color: var(--ed-accent);
  color: #8ac4ff;
}
.pivot-preset-btn {
  background: #1e1e36;
  border: 1px solid #3a3a5c;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pivot-preset-btn:hover {
  border-color: #5a5a8c;
}
.pivot-preset-btn.active {
  background: #2a4a6a;
  border-color: var(--ed-accent);
}
[data-theme=light] .pivot-preset-btn {
  background: var(--ed-bg-button);
  border-color: var(--ed-border);
}
[data-theme=light] .pivot-preset-btn:hover {
  border-color: var(--ed-accent);
}
[data-theme=light] .pivot-preset-btn.active {
  background: #d0e4f8;
  border-color: var(--ed-accent);
}
.settings-panel .property-group,
.properties-panel .property-group {
  padding: 0;
  border-bottom: 1px solid #1e1e36;
}
.settings-panel .property-group h3,
.properties-panel .property-group h3 {
  display: none;
}
.settings-panel .settings-section,
.properties-panel .settings-section {
  background: var(--ed-bg-panel);
  border: 1px solid var(--ed-border);
  border-left: 3px solid var(--ed-accent);
  border-radius: 6px;
  margin: 8px 8px 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.settings-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ed-text-heading);
  background: var(--ed-bg-toolbar);
  border-bottom: 1px solid transparent;
  user-select: none;
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}
.settings-section-header:hover {
  background: var(--ed-accent-subtle);
  color: var(--ed-accent);
}
.settings-section:not(.settings-section-collapsed) {
  border-left-color: var(--ed-warm);
}
.settings-section:not(.settings-section-collapsed) .settings-section-header {
  border-bottom-color: var(--ed-border-subtle);
  color: var(--ed-accent);
}
.settings-chevron {
  font-size: 10px;
  color: var(--ed-text-muted);
  width: 10px;
  flex-shrink: 0;
}
.settings-section-icon {
  font-size: 12px;
  color: var(--ed-text-muted);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.settings-section:not(.settings-section-collapsed) .settings-section-icon,
.settings-section:not(.settings-section-collapsed) .settings-chevron {
  color: var(--ed-warm);
}
.settings-section-body {
  padding: 10px 12px 12px;
}
.settings-subsection {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6a6a88;
  margin: 8px 0 4px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(100, 100, 140, 0.1);
}
.settings-subsection:first-child {
  margin-top: 2px;
}
.settings-panel .property-row {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 5px;
}
.settings-panel .property-row label {
  width: auto;
  padding-right: 0;
  margin-bottom: 2px;
  font-size: 10.5px;
  color: var(--ed-text-muted);
}
.settings-panel .property-row input[type=text],
.settings-panel .property-row input[type=number],
.settings-panel .property-row select {
  padding: 3px 6px;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.settings-panel .property-row.canvas-custom-row {
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.settings-panel .property-row.canvas-custom-row label {
  margin-bottom: 0;
  min-width: 16px;
  text-align: center;
}
.settings-panel .property-row.canvas-custom-row input[type=number] {
  width: 70px;
  flex: 0 0 auto;
}
.settings-panel .property-row.checkbox-row {
  flex-direction: row;
  align-items: center;
}
.settings-panel .property-row.checkbox-row label {
  width: auto;
  margin-bottom: 0;
  margin-right: 6px;
}
.settings-panel .property-row.hotkey-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.settings-panel .property-row.hotkey-row label {
  width: auto;
  margin-bottom: 0;
  flex: 1;
}
.hotkey-btn {
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border);
  color: #aabbdd;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family:
    "Consolas",
    "Monaco",
    monospace;
  min-width: 50px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.hotkey-btn:hover {
  border-color: #5a6a8e;
  background: #222250;
}
.hotkey-btn.recording {
  border-color: #6a9aee;
  background: #1a2a5e;
  color: #88bbff;
  animation: hotkey-pulse 1s ease-in-out infinite;
}
@keyframes hotkey-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.settings-panel .property-row.volume-row {
  flex-direction: row;
  align-items: center;
}
.settings-panel .property-row.volume-row label {
  width: 46px;
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 10px;
  color: #666680;
}
.settings-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px !important;
  background: #222240 !important;
  border-radius: 1.5px;
  outline: none;
  max-width: 120px;
}
.settings-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5a70;
  cursor: pointer;
}
.settings-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5a70;
  border: none;
  cursor: pointer;
}
.settings-volume-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 1.5px;
}
.object-list-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.object-list-item:hover {
  background: var(--ed-bg-input);
}
.object-list-item.selected {
  background: var(--ed-bg-input);
  border-left-color: #e5a53a;
  color: var(--ed-text-bright);
}
.no-selection {
  padding: 20px 10px;
  color: var(--ed-text-dim);
  text-align: center;
  font-style: italic;
}
.layer-list {
  display: flex;
  flex-direction: column;
}
.layer-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
  border-left: 3px solid transparent;
  gap: 8px;
  min-height: 32px;
  font-size: 12px;
  user-select: none;
  box-sizing: border-box;
}
.layer-row:hover {
  background: var(--ed-bg-input);
}
.layer-row.selected {
  background: var(--ed-bg-input);
  border-left-color: #e5a53a;
  color: var(--ed-text-bright);
}
.layer-row.dragging {
  opacity: 0.4;
}
.layer-row.drag-over {
  border-top: 2px solid var(--ed-accent);
}
.layer-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}
.layer-name {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c0c0d0;
}
.layer-icon-btn {
  background: #1e1e3a;
  border: 1px solid var(--ed-border);
  color: var(--ed-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-family: monospace;
  min-width: 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.layer-icon-btn:hover {
  background: var(--ed-bg-button);
  color: #fff;
}
.picker-root {
  width: 100vw;
  height: 100vh;
  background: var(--ed-bg-base);
  color: var(--ed-text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.picker-hero {
  position: relative;
  display: flex;
  gap: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  padding: 12px 32px 0;
  flex-shrink: 0;
}
.picker-hero-collapse {
  position: absolute;
  top: 18px;
  right: 38px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(180, 140, 80, 0.35);
  color: #f5e6c8;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s;
}
.picker-hero-collapse:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(245, 197, 106, 0.7);
}
.picker-hero.collapsed .picker-hero-art,
.picker-hero.collapsed .picker-hero-prompt,
.picker-hero.collapsed .picker-name-gen {
  display: none;
}
.picker-hero.collapsed .picker-hero-content {
  border-radius: 10px;
  border-left: 1px solid rgba(180, 140, 80, 0.2);
  padding: 10px 14px;
  gap: 0;
}
.picker-hero.collapsed .picker-hero-actions {
  margin: 0;
}
.picker-hero-minimal {
  padding: 20px 32px 0;
}
.picker-hero-minimal .picker-hero-actions {
  padding: 0;
  background: none;
  border: none;
}
.picker-templates-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.picker-templates-toggle.active {
  background: var(--ed-accent-subtle);
  border-color: var(--ed-accent);
  color: var(--ed-accent);
}
.picker-templates-toggle-chevron {
  font-size: 10px;
  opacity: 0.7;
}
.picker-hero-art {
  position: relative;
  flex: 0 0 26%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: #1a1410;
  border: 1px solid rgba(180, 140, 80, 0.2);
  border-right: none;
}
.picker-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}
.picker-hero-tagline {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family:
    "Georgia",
    "Times New Roman",
    serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #f5e6c8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  opacity: 0.85;
}
.picker-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px;
  background:
    linear-gradient(
      135deg,
      #1c1812 0%,
      #221a14 50%,
      #1a1410 100%);
  border: 1px solid rgba(180, 140, 80, 0.2);
  border-left: none;
  border-radius: 0 10px 10px 0;
  min-height: 0;
}
.picker-hero-prompt {
  font-family:
    "Georgia",
    "Times New Roman",
    serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: #f5e6c8;
  line-height: 1.3;
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s, color 0.2s;
}
.picker-hero-prompt:hover {
  color: #ffefcc;
  border-bottom-color: rgba(245, 230, 200, 0.3);
}
.picker-hero-prompt.flash {
  animation: picker-flash 0.45s ease-out;
}
@keyframes picker-flash {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.picker-name-gen {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.picker-name-gen-labelrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.picker-name-gen-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8a7a5c;
  font-weight: 600;
  flex: 1;
}
.picker-name-gen-toggle {
  display: inline-flex;
  border: 1px solid rgba(180, 140, 80, 0.3);
  border-radius: 4px;
  overflow: hidden;
}
.picker-name-gen-toggle-btn {
  background: transparent;
  border: none;
  padding: 2px 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #8a7a5c;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border-right: 1px solid rgba(180, 140, 80, 0.2);
}
.picker-name-gen-toggle-btn:last-child {
  border-right: none;
}
.picker-name-gen-toggle-btn:hover {
  background: rgba(180, 140, 80, 0.08);
  color: #c9a866;
}
.picker-name-gen-toggle-btn.active {
  background: rgba(201, 168, 102, 0.2);
  color: #e8d5a8;
}
.picker-name-gen-theme {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(180, 140, 80, 0.25);
  border-radius: 4px;
  padding: 4px 9px;
  color: #e8d5a8;
  font-family:
    "Courier New",
    "Courier",
    monospace;
  font-size: 11px;
  letter-spacing: 0.4px;
  outline: none;
  transition: border-color 0.15s;
}
.picker-name-gen-theme::placeholder {
  color: #5a4d38;
  font-style: italic;
}
.picker-name-gen-theme:focus {
  border-color: rgba(201, 168, 102, 0.6);
}
.picker-name-gen-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.picker-name-gen-display {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(180, 140, 80, 0.3);
  border-radius: 4px;
  padding: 5px 10px;
  font-family:
    "Courier New",
    "Courier",
    monospace;
  font-size: 12px;
  font-weight: 600;
  color: #e8d5a8;
  letter-spacing: 0.5px;
}
.picker-name-gen-display.flash {
  animation: picker-flash 0.3s ease-out;
}
.picker-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.picker-hero-stats {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-left: auto;
  color: #8a7a5c;
}
.picker-hero-stats-num {
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  color: #e8d5a8;
}
.picker-hero-stats-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #8a7a5c;
}
.picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.picker-resume {
  margin-bottom: 18px;
}
.picker-resume-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background:
    linear-gradient(
      135deg,
      rgba(245, 197, 106, 0.06),
      rgba(245, 197, 106, 0.02));
  border: 1px solid rgba(245, 197, 106, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.picker-resume-card:hover {
  border-color: rgba(245, 197, 106, 0.5);
  background:
    linear-gradient(
      135deg,
      rgba(245, 197, 106, 0.1),
      rgba(245, 197, 106, 0.04));
}
.picker-resume-thumb {
  flex: 0 0 110px;
  aspect-ratio: 16 / 10;
  background: #0d0a08;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.picker-resume-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.picker-resume-thumb.picker-thumb-placeholder span {
  font-size: 36px;
  color: #2a2218;
  font-weight: 700;
}
.picker-resume-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.picker-resume-eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #c9a866;
  font-weight: 700;
}
.picker-resume-name {
  font-size: 15px;
  font-weight: 700;
  color: #f5e6c8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-resume-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #8a7a5c;
}
.picker-resume-info .picker-btn {
  display: none;
}
.picker-resume-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-left: 1px solid rgba(245, 197, 106, 0.18);
  border-right: 1px solid rgba(245, 197, 106, 0.18);
  flex-shrink: 0;
}
.picker-resume-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 38px;
}
.picker-resume-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #f5e6c8;
  line-height: 1;
}
.picker-resume-stat-label {
  font-size: 8.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8a7a5c;
  font-weight: 600;
}
.picker-resume-jump {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.picker-resume-jump-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8a7a5c;
  font-weight: 600;
}
.picker-resume-jump-row {
  display: flex;
  gap: 6px;
}
.picker-resume-mini {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 0;
  width: 86px;
  background: transparent;
  border: 1px solid rgba(180, 140, 80, 0.18);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.picker-resume-mini:hover {
  border-color: rgba(245, 197, 106, 0.55);
  transform: translateY(-1px);
}
.picker-resume-mini-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0a08;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.picker-resume-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.picker-resume-mini-thumb .picker-thumb-placeholder span,
.picker-resume-mini-thumb span {
  font-size: 18px;
  font-weight: 700;
  color: #2a2218;
}
.picker-resume-mini-name {
  padding: 3px 5px 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #d9c89c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
@media (max-width: 1100px) {
  .picker-resume-jump {
    display: none;
  }
}
@media (max-width: 860px) {
  .picker-resume-stats {
    display: none;
  }
}
[data-theme=light] .picker-resume-card {
  background: var(--ed-bg-panel);
  border: 1px solid var(--ed-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
[data-theme=light] .picker-resume-card:hover {
  background: var(--ed-accent-subtle);
  border-color: var(--ed-accent);
}
[data-theme=light] .picker-resume-thumb {
  background: #1c2333;
}
[data-theme=light] .picker-resume-thumb.picker-thumb-placeholder span {
  color: rgba(255, 255, 255, 0.25);
}
[data-theme=light] .picker-resume-eyebrow {
  color: var(--ed-warm);
}
[data-theme=light] .picker-resume-name {
  color: var(--ed-text-heading);
}
[data-theme=light] .picker-resume-meta {
  color: var(--ed-text-muted);
}
.picker-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ed-border-subtle);
}
.picker-section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ed-text-muted);
}
.picker-recent-section,
.picker-templates-section,
.picker-archive-section {
  background: var(--ed-bg-panel);
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.picker-recent-section .picker-section-label,
.picker-templates-section .picker-section-label,
.picker-archive-section > .picker-archive-header .picker-section-label {
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ed-warm);
}
.picker-recent-section {
  margin-bottom: 18px;
}
.picker-recent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.picker-templates-section {
  margin-bottom: 18px;
}
.picker-templates-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.picker-section-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--ed-text-dim);
  font-style: italic;
}
.picker-templates-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: rgba(180, 140, 80, 0.05);
  border: 1px dashed rgba(180, 140, 80, 0.3);
  border-radius: 8px;
  color: var(--ed-text-muted);
  font-size: 13px;
}
.picker-templates-empty-icon {
  font-size: 22px;
  opacity: 0.7;
}
.picker-templates-empty strong {
  color: #c9a866;
  font-weight: 700;
}
.picker-tile-template {
  border-color: rgba(180, 140, 80, 0.45);
}
.picker-tile-template:hover {
  border-color: #c9a866;
  box-shadow: 0 6px 20px rgba(180, 140, 80, 0.25);
}
.picker-pill-template {
  background: rgba(201, 168, 102, 0.92);
  color: #1a1410;
}
.picker-archive-section {
  margin-bottom: 18px;
}
.picker-archive-header .picker-search {
  margin-left: auto;
  flex: 0 0 280px;
}
.picker-search {
  padding: 6px 12px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.picker-search:focus {
  border-color: var(--ed-accent);
}
.picker-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.picker-filter-btn {
  padding: 5px 14px;
  background: transparent;
  color: var(--ed-text-muted);
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.picker-filter-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text);
}
.picker-filter-btn.active {
  background: rgba(245, 197, 106, 0.15);
  color: #f5c56a;
  border-color: rgba(245, 197, 106, 0.5);
}
.picker-folder-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 14px;
}
.picker-folder-btn {
  padding: 4px 10px;
  background: transparent;
  color: var(--ed-text-muted);
  border: 1px dashed var(--ed-border);
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    border-style 0.15s;
}
.picker-folder-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text);
  border-style: solid;
}
.picker-folder-btn.active {
  background: rgba(245, 197, 106, 0.1);
  color: #f5c56a;
  border-color: rgba(245, 197, 106, 0.5);
  border-style: solid;
}
.picker-folder-btn.picker-folder-new {
  color: var(--ed-text-dim);
  font-style: italic;
}
.picker-folder-btn.drag-over {
  background: rgba(245, 197, 106, 0.25);
  color: #f5c56a;
  border-color: #f5c56a;
  border-style: solid;
  transform: scale(1.06);
}
.picker-tile.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.picker-tile[draggable=true] {
  cursor: grab;
}
.picker-tile[draggable=true]:active {
  cursor: grabbing;
}
.picker-tile-folder-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(0, 0, 0, 0.55);
  color: #f5c56a;
  border-radius: 3px;
  pointer-events: none;
  max-width: 70%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.picker-tile {
  display: flex;
  flex-direction: column;
  background: var(--ed-bg-toolbar);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.12s,
    box-shadow 0.15s;
}
.picker-tile:hover {
  border-color: var(--ed-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.picker-tile.picker-tile-pub {
  border-color: rgba(68, 204, 102, 0.3);
}
.picker-tile.picker-tile-pub:hover {
  border-color: rgba(68, 204, 102, 0.7);
}
.picker-tile-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0a08;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.picker-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.picker-thumb-placeholder-inner {
  font-size: 48px;
  font-weight: 700;
  color: #2a2218;
  font-family: "Georgia", serif;
}
.picker-tile-small .picker-thumb-placeholder-inner {
  font-size: 32px;
}
.picker-tile-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  pointer-events: none;
}
.picker-pill-pub {
  background: rgba(68, 204, 102, 0.9);
  color: #0a1410;
}
.picker-pill-draft {
  background: rgba(180, 140, 80, 0.85);
  color: #1a1410;
}
.picker-pill {
  display: inline-block;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
}
.picker-tile-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}
.picker-tile-overlay .picker-btn {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.picker-tile-overlay .picker-btn.primary {
  padding: 5px 11px;
  font-size: 11px;
}
.picker-tile:hover .picker-tile-overlay {
  opacity: 1;
}
.picker-tile-more {
  margin-left: auto;
}
.picker-tile-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.picker-tile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-tile-meta {
  font-size: 11px;
  color: var(--ed-text-subtle);
}
.picker-tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.picker-tile-tag {
  display: inline-block;
  padding: 1px 7px;
  background: #2a2a4a;
  color: #aaaacc;
  border-radius: 8px;
  font-size: 10px;
}
.picker-tile-small .picker-tile-info {
  padding: 8px 10px;
}
.picker-tile-small .picker-tile-name {
  font-size: 12px;
}
.picker-tile-small .picker-tile-meta {
  font-size: 10px;
}
.picker-btn {
  padding: 7px 18px;
  background: var(--ed-bg-button);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.picker-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.picker-btn.primary {
  background:
    linear-gradient(
      135deg,
      #d4a456,
      #b88a3a);
  border-color: #8a6520;
  color: #1a1410;
  font-weight: 700;
}
.picker-btn.primary:hover {
  background:
    linear-gradient(
      135deg,
      #e6b46a,
      #c89a4a);
  color: #000;
}
.picker-btn.large {
  padding: 7px 18px;
  font-size: 13px;
}
.picker-btn.small {
  padding: 4px 11px;
  font-size: 11px;
}
.picker-btn.danger {
  background: var(--ed-danger-bg);
  border-color: var(--ed-danger-border);
  color: #ff8888;
}
.picker-btn.danger:hover {
  background: var(--ed-danger-border);
  color: #ffaaaa;
}
.picker-btn-plus {
  font-size: 18px;
  font-weight: 400;
  vertical-align: -1px;
  margin-right: 2px;
}
.picker-icon-btn {
  background: transparent;
  border: 1px solid var(--ed-border);
  border-radius: 5px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--ed-text);
  transition: background 0.15s, transform 0.2s;
}
.picker-icon-btn:hover {
  background: var(--ed-bg-hover);
  transform: rotate(45deg);
}
.picker-context-menu {
  position: fixed;
  z-index: 200;
  min-width: 160px;
  background: var(--ed-bg-toolbar);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.picker-context-item {
  background: transparent;
  border: none;
  color: var(--ed-text);
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s;
}
.picker-context-item:hover {
  background: var(--ed-bg-hover);
}
.picker-context-item.danger {
  color: #ff8888;
}
.picker-context-item.danger:hover {
  background: var(--ed-danger-bg);
}
.picker-loading,
.picker-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ed-text-dim);
  font-size: 15px;
  grid-column: 1 / -1;
}
.picker-empty p {
  margin: 4px 0;
}
.editor-readonly-banner {
  padding: 6px 14px;
  background:
    linear-gradient(
      90deg,
      rgba(245, 158, 11, 0.15),
      rgba(245, 158, 11, 0.05));
  color: #f5c56a;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.editor-readonly-banner a {
  color: #f5c56a;
  text-decoration: underline;
  margin-left: auto;
}
.editor-readonly-banner a:hover {
  color: #ffd89e;
}
@media (max-width: 900px) {
  .picker-hero {
    flex-direction: column;
    padding: 16px 16px 0;
  }
  .picker-hero-art {
    flex: none;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-right: 1px solid rgba(180, 140, 80, 0.2);
    border-bottom: none;
  }
  .picker-hero-content {
    border-left: 1px solid rgba(180, 140, 80, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
  }
  .picker-body {
    padding: 20px 16px 40px;
  }
  .picker-archive-header {
    flex-wrap: wrap;
  }
  .picker-archive-header .picker-search {
    flex: 1 1 100%;
    margin-left: 0;
  }
  .picker-resume-card {
    flex-direction: column;
  }
  .picker-resume-thumb {
    flex: none;
    width: 100%;
  }
}
.asset-search-input {
  width: 100%;
  padding: 6px 8px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.asset-search-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ed-bg-panel);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--ed-border-subtle);
}
.asset-sticky-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--ed-bg-panel);
  border-bottom: 1px solid var(--ed-border-subtle);
}
.asset-search-row {
  padding: 4px 10px 8px;
}
.asset-search-input:focus {
  border-color: var(--ed-accent);
}
.asset-search-input::placeholder {
  color: var(--ed-text-dim);
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.asset-card {
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 3px;
  padding: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.asset-card:hover {
  border-color: var(--ed-accent);
}
.asset-card-thumb {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ed-bg-panel);
}
.asset-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.asset-card.sound {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 4px 4px;
}
.asset-sound-icon {
  font-size: 20px;
  color: #5a5a8e;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.asset-card-info {
  min-width: 0;
}
.asset-card-name {
  font-size: 9px;
  color: var(--ed-text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-card-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}
.asset-card-dim {
  font-size: 9px;
  color: var(--ed-text-dim);
}
.asset-category-badge {
  font-size: 9px;
  color: #7a7aaa;
  background: #22223e;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: capitalize;
}
.asset-card-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  background: rgba(74, 32, 32, 0.8);
  color: var(--ed-danger);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
}
.asset-card:hover .asset-card-delete {
  opacity: 1;
}
.asset-card-delete.inline {
  position: static;
  opacity: 1;
  flex-shrink: 0;
  margin-left: 4px;
}
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.asset-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background: var(--ed-bg-input);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.asset-list-row:hover {
  border-color: var(--ed-accent);
}
.asset-list-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.asset-list-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #5a5a8e;
  background: #22223e;
  border-radius: 2px;
  flex-shrink: 0;
}
.asset-tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}
.asset-tag-chip {
  padding: 2px 6px;
  background: #22223e;
  color: var(--ed-text-muted);
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.asset-tag-chip:hover {
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
}
.asset-tag-chip.active {
  background: var(--ed-accent);
  border-color: var(--ed-accent-hover);
  color: var(--ed-text-bright);
}
.asset-tag-chip.small {
  padding: 1px 4px;
  font-size: 9px;
}
.asset-tag-chip.removable {
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.asset-tag-remove {
  cursor: pointer;
  color: var(--ed-danger);
  font-size: 9px;
  font-weight: bold;
}
.asset-tag-remove:hover {
  color: #ff8888;
}
.asset-tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.asset-back-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--ed-bg-toolbar);
  color: var(--ed-text-muted);
  border: none;
  border-bottom: 1px solid var(--ed-border-subtle);
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  text-align: left;
}
.asset-back-btn:hover {
  color: var(--ed-text-secondary);
  background: var(--ed-bg-input);
}
.asset-detail-preview {
  padding: 10px;
  background: #0a0a16;
  border-bottom: 1px solid var(--ed-border-subtle);
  text-align: center;
}
.asset-empty {
  padding: 20px 10px;
  color: var(--ed-text-dim);
  text-align: center;
  font-style: italic;
  font-size: 12px;
}
.toolbar-game-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  text-shadow: 0 0 8px rgba(100, 140, 255, 0.6), 0 0 20px rgba(100, 140, 255, 0.3);
}
.toolbar-brand {
  font-size: 11px;
  font-weight: bold;
  color: #8888cc;
  letter-spacing: 1.5px;
  white-space: nowrap;
  user-select: none;
}
.toolbar-scene-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.toolbar-scene-arrow {
  background: transparent;
  border: none;
  color: #aaaadd;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.toolbar-scene-arrow:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.toolbar-scene-arrow:disabled {
  color: #444466;
  cursor: default;
}
.toolbar-scene-name {
  font-size: 13px;
  font-weight: 600;
  color: #ccccee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  text-align: center;
  user-select: none;
  padding: 0 4px;
}
.toolbar-menu-wrapper {
  position: relative;
}
.toolbar-menu-btn {
  padding: 4px 10px;
  background: transparent;
  color: var(--ed-text-secondary);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.toolbar-menu-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.toolbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  background: var(--ed-bg-panel);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 4px 0;
  z-index: 10000;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font: 12px system-ui, sans-serif;
}
.toolbar-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 14px;
  color: var(--ed-text);
  cursor: pointer;
  white-space: nowrap;
}
.toolbar-dropdown-item:hover {
  background: var(--ed-bg-button);
}
.toolbar-dropdown-shortcut {
  font-size: 10px;
  color: var(--ed-text-dim);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.toolbar-dropdown-item:hover .toolbar-dropdown-shortcut {
  color: var(--ed-text-secondary);
}
.toolbar-dropdown-header {
  padding: 6px 14px 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ed-text-subtle);
  cursor: default;
  user-select: none;
}
.toolbar-dropdown-separator {
  height: 1px;
  background: var(--ed-border);
  margin: 4px 8px;
}
.app-top-nav {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 46px;
  background: var(--ed-bg-panel);
  border-bottom: 1px solid var(--ed-border);
  gap: 10px;
}
.app-top-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #aaaadd;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-top-game-name {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--ed-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-top-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.app-top-link {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ed-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.app-top-link:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text);
}
.app-top-link.active {
  color: var(--ed-accent);
  background: var(--ed-accent-subtle);
}
.app-top-sep {
  width: 1px;
  height: 18px;
  background: var(--ed-border);
  margin: 0 4px;
}
.app-top-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--ed-text-dim);
}
.app-top-info-storage-bar {
  width: 60px;
  height: 4px;
  background: var(--ed-bg-active);
  border-radius: 2px;
  overflow: hidden;
}
.app-top-info-storage-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.app-top-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.app-top-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}
.app-top-username {
  color: var(--ed-text-muted);
  font-size: 12px;
}
.app-top-upgrade {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #44cc66;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s;
}
.app-top-upgrade:hover {
  background: #3ab858;
}
.app-top-review {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid rgba(229, 165, 58, 0.55);
  color: #e5a53a;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}
.app-top-review:hover {
  background: rgba(229, 165, 58, 0.14);
}
.app-top-logout {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: none;
  border: 1px solid var(--ed-border-subtle);
  color: var(--ed-text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.app-top-logout:hover {
  border-color: var(--ed-border);
  color: var(--ed-text-muted);
}
.lib-root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ed-bg-base);
}
.lib-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px 12px;
  border-bottom: 1px solid var(--ed-border-subtle);
}
.lib-header h1 {
  font-size: 22px;
  color: var(--ed-text);
}
.lib-header-btns {
  display: flex;
  gap: 8px;
}
.lib-content {
  flex: 1;
  overflow: hidden;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lib-btn {
  padding: 6px 14px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.lib-btn:hover {
  background: var(--ed-border);
  color: var(--ed-text-secondary);
}
.lib-btn.active {
  background: var(--ed-accent);
  color: var(--ed-text-bright);
  border-color: var(--ed-accent-hover);
}
.lib-btn.danger {
  background: var(--ed-danger-bg);
  color: var(--ed-danger);
  border-color: var(--ed-danger-border);
}
.lib-btn.danger:hover {
  background: #5a2525;
}
.lib-btn.small {
  padding: 4px 10px;
  font-size: 11px;
}
.lib-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.lib-back-btn {
  padding: 6px 14px;
  background: none;
  color: #6688aa;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  margin: 12px 0 4px;
}
.lib-back-btn:hover {
  color: var(--ed-text-secondary);
}
.lib-drop-zone {
  margin: 12px 30px;
  padding: 24px;
  border: 2px dashed var(--ed-border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lib-drop-zone:hover,
.lib-drop-zone.drag-over {
  border-color: var(--ed-accent);
  background: rgba(58, 110, 165, 0.08);
}
.lib-drop-label {
  color: var(--ed-text-dim);
  font-size: 14px;
}
.lib-drop-progress {
  color: var(--ed-text-secondary);
  font-size: 13px;
}
.lib-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 0;
  flex-wrap: wrap;
}
.lib-search {
  flex: 1;
  min-width: 180px;
  padding: 6px 10px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.lib-search:focus {
  border-color: var(--ed-accent);
  outline: none;
}
.lib-filter {
  padding: 6px 8px;
  background: var(--ed-bg-input);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
}
.lib-view-btns {
  display: flex;
  gap: 2px;
}
.lib-count {
  color: var(--ed-text-dim);
  font-size: 12px;
  margin-left: auto;
}
.lib-tag-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}
.lib-tag-filter {
  padding: 3px 10px;
  background: var(--ed-bg-input);
  color: var(--ed-text-muted);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.lib-tag-filter:hover {
  border-color: var(--ed-accent);
  color: var(--ed-text-secondary);
}
.lib-tag-filter.active {
  background: var(--ed-accent);
  color: var(--ed-text-bright);
  border-color: var(--ed-accent-hover);
}
.lib-tag-filter.clear {
  color: #aa6666;
  border-color: #4a3030;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.lib-card {
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}
.lib-card:hover {
  border-color: var(--ed-accent);
}
.lib-card.selected {
  border-color: var(--ed-accent);
  background: var(--ed-accent-subtle);
}
.lib-card-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}
.lib-card:hover .lib-card-checkbox,
.lib-card-checkbox.always-visible,
.lib-card-checkbox:checked {
  opacity: 1;
}
.lib-card-thumb {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-bg-panel);
  overflow: hidden;
}
.lib-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lib-card-sound-icon {
  font-size: 36px;
  color: var(--ed-accent);
}
.lib-card-info {
  padding: 8px;
}
.lib-card-name {
  font-size: 12px;
  color: var(--ed-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-card-meta {
  font-size: 10px;
  color: var(--ed-text-dim);
  margin-top: 2px;
}
.lib-card-badge {
  display: inline-block;
  padding: 1px 6px;
  background: #2a2a5e;
  color: #8888cc;
  border-radius: 8px;
  font-size: 9px;
  margin-top: 4px;
}
.lib-card-usage-badge {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(68, 204, 102, 0.18);
  color: #44cc66;
  border-radius: 8px;
  font-size: 9px;
  margin-top: 4px;
  margin-left: 4px;
}
.lib-list-usage {
  width: 70px;
  font-size: 11px;
  color: #44cc66;
  text-align: right;
}
.lib-list-usage:empty {
  color: var(--ed-text-dim);
}
.lib-card-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(80, 20, 20, 0.8);
  color: var(--ed-danger);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.lib-card:hover .lib-card-delete,
.lib-list-row:hover .lib-card-delete {
  opacity: 1;
}
.lib-card-push-public {
  position: absolute;
  top: 4px;
  right: 28px;
  background: rgba(78, 161, 255, 0.18);
  color: #4ea1ff;
  border: 1px solid rgba(78, 161, 255, 0.45);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 10px;
  font-family: inherit;
  line-height: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.lib-card-push-public:hover {
  background: rgba(78, 161, 255, 0.32);
}
.lib-card-push-public.pushed {
  opacity: 1;
  background: rgba(68, 204, 102, 0.22);
  color: #44cc66;
  border-color: rgba(68, 204, 102, 0.5);
}
.lib-card:hover .lib-card-push-public,
.lib-list-row:hover .lib-card-push-public {
  opacity: 1;
}
.lib-list-row .lib-card-push-public {
  position: static;
  margin-left: auto;
  flex-shrink: 0;
}
.lib-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lib-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.lib-list-row:hover {
  border-color: var(--ed-accent);
}
.lib-list-row.selected {
  border-color: var(--ed-accent);
  background: var(--ed-accent-subtle);
}
.lib-list-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 3px;
  background: var(--ed-bg-panel);
}
.lib-list-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ed-accent);
  background: var(--ed-bg-panel);
  border-radius: 3px;
}
.lib-list-name {
  flex: 2;
  font-size: 12px;
  color: var(--ed-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-list-cat {
  flex: 1;
  font-size: 11px;
  color: var(--ed-text-muted);
}
.lib-list-dims {
  width: 80px;
  font-size: 11px;
  color: var(--ed-text-dim);
  text-align: right;
}
.lib-list-size {
  width: 60px;
  font-size: 11px;
  color: var(--ed-text-dim);
  text-align: right;
}
.lib-list-tags {
  flex: 1;
  font-size: 10px;
  color: var(--ed-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-bulk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px;
  background: var(--ed-bg-input);
  border-top: 2px solid var(--ed-accent);
  z-index: 100;
}
.lib-bulk-count {
  color: var(--ed-text-secondary);
  font-size: 13px;
  font-weight: bold;
}
.lib-bulk-sep {
  color: var(--ed-border);
  margin: 0 4px;
}
.lib-bulk-input {
  padding: 4px 8px;
  background: var(--ed-bg-panel);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  width: 140px;
}
.lib-bulk-select {
  padding: 4px 8px;
  background: var(--ed-bg-panel);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}
.lib-detail-layout {
  display: flex;
  gap: 30px;
  padding: 16px 0;
}
.lib-detail-preview {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.lib-detail-img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #1a1a2e;
  background-image:
    linear-gradient(
      45deg,
      var(--ed-bg-active) 25%,
      transparent 25%,
      transparent 75%,
      var(--ed-bg-active) 75%),
    linear-gradient(
      45deg,
      var(--ed-bg-active) 25%,
      transparent 25%,
      transparent 75%,
      var(--ed-bg-active) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.lib-detail-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
}
.lib-detail-sound-icon {
  font-size: 64px;
  color: var(--ed-accent);
}
.lib-detail-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lib-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lib-detail-row label {
  width: 80px;
  font-size: 12px;
  color: var(--ed-text-muted);
  flex-shrink: 0;
}
.lib-detail-row input[type=text],
.lib-detail-row select {
  flex: 1;
  padding: 5px 8px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}
.lib-detail-row.info span {
  font-size: 12px;
  color: #888899;
  word-break: break-all;
}
.lib-detail-row.tags {
  align-items: flex-start;
}
.lib-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.lib-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #2a2a5e;
  color: var(--ed-text-secondary);
  border-radius: 10px;
  font-size: 11px;
}
.lib-tag-chip button {
  background: none;
  border: none;
  color: var(--ed-danger);
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
}
.lib-tag-input {
  padding: 3px 8px;
  background: var(--ed-bg-panel);
  color: var(--ed-text);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 10px;
  font-size: 11px;
  font-family: inherit;
  width: 90px;
}
.lib-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ed-border-subtle);
}
.lib-editor-toolbar {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.lib-editor-resize-controls,
.lib-editor-crop-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.lib-editor-resize-controls label {
  color: var(--ed-text-muted);
  font-size: 12px;
}
.lib-editor-resize-controls input[type=number] {
  width: 80px;
  padding: 4px 6px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}
.lib-editor-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0;
  min-height: 200px;
}
.lib-editor-canvas {
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  cursor: crosshair;
}
.lib-editor-status {
  font-size: 12px;
  color: var(--ed-text-dim);
  padding: 4px 0;
}
.lib-empty {
  padding: 40px;
  text-align: center;
  color: var(--ed-text-dim);
  font-size: 14px;
}
.lib-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-modal-content {
  width: 80%;
  max-width: 900px;
  height: 80%;
  background: var(--ed-bg-panel);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lib-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ed-border-subtle);
}
.lib-modal-header h3 {
  font-size: 15px;
  color: var(--ed-text-secondary);
}
.lib-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.lib-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.lib-modal-card {
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.lib-modal-card:hover {
  border-color: var(--ed-accent);
}
.lib-modal-card-thumb {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-bg-panel);
  overflow: hidden;
  position: relative;
}
.lib-audio-play-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #3a5a8e;
  background: var(--ed-accent-subtle);
  color: #6699cc;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
}
.lib-audio-play-btn:hover {
  opacity: 1;
  background: #2a3a6e;
}
.lib-audio-play-btn.playing {
  background: #3a2a2a;
  border-color: #8a4a4a;
  color: #cc6666;
  opacity: 1;
}
.lib-modal-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lib-modal-card-info {
  padding: 6px 8px;
}
.lib-modal-card-name {
  font-size: 11px;
  color: var(--ed-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-modal-card-add {
  width: 100%;
  padding: 4px;
  background: #2a3a4e;
  color: #88bbdd;
  border: none;
  border-top: 1px solid var(--ed-border-subtle);
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.lib-modal-card-add:hover {
  background: #3a4a5e;
}
.lib-modal-card-add.added {
  background: #2a4a2a;
  color: #66cc66;
}
.lib-modal-card {
  position: relative;
}
.lib-modal-card.selected {
  border-color: var(--ed-accent);
  background: var(--ed-accent-subtle);
}
.lib-modal-card-cb {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
  width: 14px;
  height: 14px;
  accent-color: var(--ed-accent);
}
.lib-modal-card:hover .lib-modal-card-cb,
.lib-modal-card-cb.always-visible,
.lib-modal-card-cb:checked {
  opacity: 1;
}
.lib-modal-select-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 8px;
}
.lib-modal-select-count {
  font-size: 11px;
  color: #6688aa;
  margin-left: auto;
}
.lib-modal-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-top: 1px solid var(--ed-border-subtle);
  background: var(--ed-bg-panel);
}
.lib-modal-bulk-count {
  font-size: 12px;
  color: var(--ed-text-secondary);
}
.lib-subfolder-add {
  font-size: 9px;
  padding: 2px 6px;
  margin-top: 4px;
  background: #2a3a4e;
  color: #88bbdd;
  border: 1px solid var(--ed-border-subtle);
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.lib-subfolder-add:hover {
  background: #3a4a5e;
}
.lib-body-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
}
.lib-folder-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--ed-bg-panel);
  border-right: 1px solid var(--ed-border-subtle);
  padding: 10px;
  overflow-y: auto;
  flex-shrink: 0;
}
.lib-main-col {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 0 16px 16px;
}
.lib-folder-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ed-text-muted);
  font-size: 12px;
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.lib-folder-row:hover {
  background: var(--ed-bg-input);
  color: var(--ed-text-secondary);
}
.lib-folder-row.active {
  background: var(--ed-accent-subtle);
  color: #88bbee;
}
.lib-folder-row.drag-over {
  background: rgba(58, 110, 165, 0.2);
  outline: 1px dashed var(--ed-accent);
}
.lib-folder-toggle {
  font-size: 10px;
  color: var(--ed-text-dim);
  width: 10px;
  flex-shrink: 0;
}
.lib-folder-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.lib-folder-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-folder-count {
  font-size: 10px;
  color: var(--ed-text-dim);
  background: var(--ed-bg-input);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.lib-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0 8px;
  font-size: 12px;
  color: var(--ed-text-muted);
}
.lib-breadcrumb-sep {
  color: #444466;
  margin: 0 2px;
}
.lib-breadcrumb-item.clickable {
  color: #6688aa;
  cursor: pointer;
}
.lib-breadcrumb-item.clickable:hover {
  color: #88bbee;
  text-decoration: underline;
}
.lib-breadcrumb-item.current {
  color: var(--ed-text-secondary);
}
.lib-subfolder-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.lib-subfolder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-height: 100px;
  padding: 6px 4px;
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  gap: 2px;
}
.lib-subfolder-card:hover {
  border-color: var(--ed-accent);
  background: var(--ed-accent-subtle);
}
.lib-subfolder-card.drag-over {
  border-color: var(--ed-accent);
  background: rgba(58, 110, 165, 0.15);
}
.lib-subfolder-icon {
  font-size: 24px;
}
.lib-subfolder-name {
  font-size: 11px;
  color: var(--ed-text-secondary);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}
.lib-subfolder-count {
  font-size: 10px;
  color: var(--ed-text-dim);
  margin-top: 2px;
}
.lib-context-menu {
  position: fixed;
  z-index: 10000;
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 4px 0;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.lib-context-item {
  padding: 6px 14px;
  cursor: pointer;
  color: var(--ed-text-secondary);
  font-size: 12px;
  transition: background 0.1s;
}
.lib-context-item:hover {
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
}
.lib-context-item.danger {
  color: var(--ed-danger);
}
.lib-context-item.danger:hover {
  background: #3a2020;
}
.tpl-browse-lib-btn {
  width: 100%;
  padding: 5px;
  margin-bottom: 6px;
  background: var(--ed-accent);
  color: #ffffff;
  border: 1px solid var(--ed-accent-hover);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.tpl-search-wrap {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  align-items: center;
}
.tpl-search-icon {
  font-size: 12px;
  color: var(--ed-text-dim);
  flex-shrink: 0;
}
.tpl-search-input {
  flex: 1;
  padding: 5px 8px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}
.tpl-search-input:focus {
  border-color: var(--ed-accent);
  outline: none;
}
.tpl-cat-select {
  padding: 5px 4px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 11px;
  font-family: inherit;
}
.tpl-bulk-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 6px;
  background: var(--ed-bg-button);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
}
.tpl-bulk-count {
  font-size: 11px;
  color: var(--ed-accent);
  margin-right: auto;
  font-weight: 600;
}
.tpl-bulk-btn {
  padding: 3px 8px;
  font-size: 10px;
  font-family: inherit;
  border-radius: 3px;
  border: 1px solid var(--ed-border);
  background: var(--ed-bg-input);
  color: var(--ed-text-secondary);
  cursor: pointer;
}
.tpl-bulk-export {
  color: var(--ed-accent);
  border-color: var(--ed-accent);
}
.tpl-bulk-delete {
  color: var(--ed-danger);
  border-color: var(--ed-danger-border);
}
.tpl-category-section {
  margin-bottom: 4px;
}
.tpl-category-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 3px;
  user-select: none;
}
.tpl-category-header:hover {
  background: var(--ed-bg-button);
}
.tpl-category-arrow {
  font-size: 8px;
  color: var(--ed-text-dim);
  width: 10px;
  text-align: center;
}
.tpl-category-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-secondary);
}
.tpl-category-count {
  font-size: 10px;
  color: var(--ed-text-dim);
  margin-left: auto;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 2px 0 4px;
}
.template-card {
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border-subtle);
  border-radius: 3px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  transition: border-color 0.15s, background 0.15s;
}
.template-card:hover {
  border-color: var(--ed-accent);
}
.template-card.tpl-selected {
  border-color: var(--ed-accent);
  background: rgba(90, 158, 213, 0.08);
}
.template-card-thumb {
  width: 100%;
  height: 48px;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  background: var(--ed-bg-panel);
}
.tpl-card-bottom {
  margin-top: 2px;
}
.template-card-name {
  font-size: 10px;
  color: var(--ed-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.template-card-category {
  font-size: 9px;
  color: #7a7aaa;
  background: #22223e;
  padding: 1px 4px;
  border-radius: 2px;
  display: inline-block;
  margin-top: 2px;
}
.tpl-source-badge {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 2px;
  display: inline-block;
  margin-top: 1px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tpl-source-library {
  color: #6ab0e8;
  background: rgba(90, 158, 213, 0.15);
}
.tpl-card-checkbox {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  accent-color: var(--ed-accent);
  transition: opacity 0.15s;
}
.template-card:hover .tpl-card-checkbox,
.template-card.tpl-selected .tpl-card-checkbox {
  opacity: 1;
}
.template-card-export {
  position: absolute;
  top: 2px;
  right: 22px;
  width: 18px;
  height: 18px;
  padding: 0;
  background: rgba(32, 50, 74, 0.8);
  color: var(--ed-accent);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
}
.template-card:hover .template-card-export {
  opacity: 1;
}
.template-card-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  background: rgba(74, 32, 32, 0.8);
  color: var(--ed-danger);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
}
.template-card:hover .template-card-delete {
  opacity: 1;
}
.template-no-thumb {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-bg-panel);
  border-radius: 2px;
  color: var(--ed-text-dim);
  font-size: 20px;
}
.timeline-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: var(--ed-bg-panel);
  border-top: 2px solid var(--ed-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.timeline-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ed-border-subtle);
  flex-shrink: 0;
}
.timeline-modal-header h3 {
  font-size: 14px;
  color: var(--ed-text);
  margin: 0;
}
.timeline-modal-controls {
  display: flex;
  gap: 6px;
}
.timeline-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.timeline-ruler {
  height: 24px;
  background: #0a0a16;
  border-bottom: 1px solid var(--ed-border-subtle);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  flex: 1;
}
.timeline-ruler-mark {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--ed-bg-button);
}
.timeline-ruler-label {
  position: absolute;
  top: 4px;
  font-size: 9px;
  color: var(--ed-text-dim);
  transform: translateX(-50%);
}
.timeline-tracks {
  flex: 1;
  overflow: auto;
}
.timeline-track {
  display: flex;
  border-bottom: 1px solid var(--ed-bg-input);
  min-height: 32px;
}
.timeline-track-label {
  width: 120px;
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--ed-text-muted);
  background: var(--ed-bg-base);
  border-right: 1px solid var(--ed-border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.timeline-track-label-name {
  color: var(--ed-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-track-label-prop {
  font-size: 9px;
  color: var(--ed-text-subtle);
}
.timeline-track-lane {
  flex: 1;
  position: relative;
  min-height: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 99px,
      var(--ed-bg-input) 99px,
      var(--ed-bg-input) 100px);
}
.timeline-keyframe {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  border-radius: 3px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  transition: opacity 0.1s;
  min-width: 4px;
  user-select: none;
}
.timeline-keyframe:hover {
  opacity: 0.9;
}
.timeline-keyframe.selected {
  outline: 2px solid var(--ed-text-bright);
  outline-offset: 1px;
}
.timeline-keyframe.prop-x,
.timeline-keyframe.prop-y {
  background: rgba(58, 110, 165, 0.7);
}
.timeline-keyframe.prop-move {
  background: rgba(58, 165, 140, 0.7);
}
.timeline-keyframe.prop-rotation {
  background: rgba(200, 130, 50, 0.7);
}
.timeline-keyframe.prop-scale {
  background: rgba(80, 165, 58, 0.7);
}
.timeline-keyframe.prop-opacity {
  background: rgba(140, 80, 180, 0.7);
}
.timeline-keyframe-edge {
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
}
.timeline-keyframe-edge.left {
  left: -3px;
}
.timeline-keyframe-edge.right {
  right: -3px;
}
.timeline-props {
  padding: 8px 16px;
  border-top: 1px solid var(--ed-border-subtle);
  background: var(--ed-bg-base);
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
}
.timeline-props label {
  color: var(--ed-text-muted);
  font-size: 10px;
}
.timeline-props input {
  width: 55px;
  padding: 3px 5px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 11px;
  font-family: inherit;
}
.timeline-btn {
  padding: 4px 12px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}
.timeline-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.timeline-btn.primary {
  background: var(--ed-accent);
  border-color: var(--ed-accent-hover);
  color: var(--ed-text-bright);
}
.timeline-btn.primary:hover {
  background: var(--ed-accent-hover);
}
.itl-container {
  grid-column: 1 / -1;
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
  background: var(--ed-bg-panel);
  border-bottom: 2px solid var(--ed-border);
}
.itl-container.open {
  height: 220px;
}
.itl-container.record {
  border-bottom-color: #ff4444;
}
.itl-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--ed-border-subtle);
  flex-shrink: 0;
  background: var(--ed-bg-base);
}
.itl-mode-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ed-text-muted);
  min-width: 80px;
}
.itl-rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  margin-right: 4px;
  animation: itl-blink 1s infinite;
}
@keyframes itl-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.itl-time-display {
  font-size: 11px;
  color: var(--ed-text-secondary);
  font-variant-numeric: tabular-nums;
}
.itl-controls {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.itl-btn {
  padding: 3px 8px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
}
.itl-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.itl-btn-active {
  background: var(--ed-accent);
  border-color: var(--ed-accent-hover);
  color: var(--ed-text-bright);
}
.itl-btn-rec-active {
  background: #ff4444;
  border-color: #ff2222;
  color: #fff;
}
.itl-btn-danger {
  background: var(--ed-danger-bg);
  color: var(--ed-danger);
  border-color: var(--ed-danger-border);
}
.itl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.itl-ruler-row {
  display: flex;
  flex-shrink: 0;
}
.itl-ruler {
  height: 24px;
  background: #0a0a16;
  border-bottom: 1px solid var(--ed-border-subtle);
  position: relative;
  overflow: hidden;
  flex: 1;
  cursor: pointer;
}
.itl-ruler-mark {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--ed-bg-button);
}
.itl-ruler-label {
  position: absolute;
  top: 4px;
  font-size: 9px;
  color: var(--ed-text-dim);
  transform: translateX(-50%);
}
.itl-playhead-handle {
  position: absolute;
  top: 0;
  width: 12px;
  height: 100%;
  transform: translateX(-6px);
  cursor: ew-resize;
  z-index: 5;
}
.itl-playhead-handle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #ff6b35;
}
.itl-playhead-handle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ff6b35;
}
.itl-playhead-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 107, 53, 0.5);
  z-index: 2;
  pointer-events: none;
}
.itl-tracks {
  flex: 1;
  overflow: auto;
}
.itl-track {
  display: flex;
  border-bottom: 1px solid var(--ed-bg-input);
  min-height: 32px;
}
.itl-track-label {
  width: 120px;
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--ed-text-muted);
  background: var(--ed-bg-base);
  border-right: 1px solid var(--ed-border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.itl-track-name {
  color: var(--ed-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.itl-track-prop {
  font-size: 9px;
  color: var(--ed-text-subtle);
}
.itl-track-toggle {
  display: inline-block;
  width: 12px;
  font-size: 8px;
  color: var(--ed-text-muted);
  user-select: none;
}
.itl-track-sub {
  min-height: 24px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.itl-track-sub .itl-track-label {
  padding-left: 24px;
}
.itl-track-sub .itl-track-name {
  font-size: 9px;
  color: var(--ed-text-muted);
}
.itl-track-sub .itl-track-lane {
  min-height: 22px;
}
.itl-track-sub .itl-tween-bar {
  height: 6px;
  top: 50%;
  margin-top: -3px;
  font-size: 0;
  opacity: 0.7;
}
.itl-track-sub .itl-snapshot-marker.sub {
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: #6bc4a0;
  border-color: #4aa080;
}
.itl-track-sub .itl-snapshot-marker.sub.selected {
  background: #ff9800;
  border-color: #e68a00;
}
.itl-track-lane {
  flex: 1;
  position: relative;
  min-height: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 99px,
      var(--ed-bg-input) 99px,
      var(--ed-bg-input) 100px);
}
.itl-empty {
  padding: 24px;
  color: var(--ed-text-dim);
  text-align: center;
  font-size: 12px;
}
.itl-props {
  padding: 6px 12px;
  border-top: 1px solid var(--ed-border-subtle);
  background: var(--ed-bg-base);
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
}
.itl-prop-label {
  color: var(--ed-text-muted);
  font-size: 10px;
}
.itl-prop-input {
  width: 55px;
  padding: 3px 5px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 11px;
  font-family: inherit;
}
.itl-prop-select {
  padding: 2px 4px;
  background: var(--ed-bg-panel);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 11px;
  font-family: inherit;
}
.itl-snapshot-marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-6px, -50%) rotate(45deg);
  background: #3bade0;
  border: 2px solid #2890c0;
  cursor: pointer;
  z-index: 3;
  transition: background 0.1s;
}
.itl-snapshot-marker:hover {
  background: #5cc4f0;
}
.itl-snapshot-marker.selected {
  background: #ff6b35;
  border-color: #dd5020;
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.6);
}
.itl-tween-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: rgba(58, 173, 224, 0.25);
  border-top: 1px solid rgba(58, 173, 224, 0.4);
  border-bottom: 1px solid rgba(58, 173, 224, 0.4);
  border-radius: 2px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.itl-add-dialog {
  position: absolute;
  top: 40px;
  right: 16px;
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  padding: 12px;
  z-index: 10;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.export-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.export-dialog {
  background: #1a1a2e;
  border: 1px solid var(--ed-border);
  border-radius: 10px;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.export-dialog-title {
  margin: 0 0 16px;
  color: var(--ed-text-heading);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
.export-dialog-content {
  color: #a0a0c0;
  font-size: 12px;
}
.export-section {
  margin-bottom: 14px;
}
.export-section-title {
  color: #8888bb;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ed-border-subtle);
}
.export-size-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.export-size-grid hr {
  border: none;
  border-top: 1px solid var(--ed-border-subtle);
  margin: 4px 0;
}
.export-size-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.export-size-label {
  flex: 1;
  color: #b0b0d0;
  font-size: 12px;
}
.export-size-count {
  color: var(--ed-text-muted);
  font-size: 11px;
  min-width: 30px;
  text-align: right;
}
.export-size-value {
  color: var(--ed-text-heading);
  font-size: 12px;
  font-weight: 500;
  min-width: 70px;
  text-align: right;
}
.export-warning {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(200, 80, 40, 0.15);
  border: 1px solid rgba(200, 80, 40, 0.4);
  border-radius: 5px;
  color: #e0a060;
  font-size: 11px;
}
.export-notice {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(200, 180, 40, 0.1);
  border: 1px solid rgba(200, 180, 40, 0.3);
  border-radius: 5px;
  color: #c0b060;
  font-size: 11px;
}
.export-validation-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.export-validation-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a0a0c0;
}
.export-check {
  color: #60c070;
  font-size: 13px;
}
.export-fail {
  color: #e06060;
  font-size: 13px;
}
.export-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.export-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid var(--ed-border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.export-btn strong {
  font-size: 13px;
}
.export-btn span {
  font-size: 10px;
  opacity: 0.6;
}
.em-crosslink {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--ed-border-subtle);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: #8888bb;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.em-crosslink:hover {
  border-color: var(--ed-accent);
  background: rgba(0, 0, 0, 0.28);
}
.em-crosslink strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ed-text-heading);
  font-weight: 600;
}
.em-crosslink-footer {
  color: #6a6a8e;
  text-decoration: none;
}
.em-crosslink-footer:hover {
  color: var(--ed-accent-hover);
  text-decoration: underline;
}
.export-btn-primary {
  background: #2a4a6e;
  color: #e0e0ff;
  border-color: #4a7aaa;
}
.export-btn-primary:hover {
  background: #3a5a7e;
  border-color: #6a9acc;
}
.export-btn-secondary {
  background: var(--ed-bg-active);
  color: #c0c0e0;
}
.export-btn-secondary:hover {
  background: #303050;
  border-color: #5a5a8e;
}
.export-btn-publish {
  width: 100%;
  background:
    linear-gradient(
      135deg,
      #1a3020,
      #2a4a35);
  color: #80e0a0;
  border-color: #3a7a50;
}
.export-btn-publish:hover {
  background:
    linear-gradient(
      135deg,
      #2a4030,
      #3a5a45);
  border-color: #5aaa70;
}
.export-cancel-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--ed-text-dim);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.export-cancel-btn:hover {
  color: var(--ed-text-muted);
}
.ed-btn-blue {
  padding: 6px;
  background: var(--ed-accent-subtle);
  color: var(--ed-accent);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.ed-btn-blue:hover {
  background: var(--ed-bg-hover);
}
.ed-btn-blue:disabled {
  opacity: 0.4;
  cursor: default;
}
.ed-btn-green {
  padding: 6px;
  background: #2a4a2a;
  color: #88cc88;
  border: 1px solid #3a6a3a;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
[data-theme=light] .ed-btn-green {
  background: #e0f0e0;
  color: #2a7a2a;
  border-color: #90c090;
}
.ed-btn-green:hover {
  opacity: 0.85;
}
.ed-btn-red {
  padding: 0 4px;
  background: #4a2a2a;
  color: #f88;
  border: 1px solid #5a3a3a;
  border-radius: 2px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
[data-theme=light] .ed-btn-red {
  background: var(--ed-danger-bg);
  color: var(--ed-danger);
  border-color: var(--ed-danger-border);
}
.ed-hint {
  font-size: 9px;
  color: var(--ed-text-dim);
  font-style: italic;
}
.ed-meta {
  color: var(--ed-text-muted);
}
.ed-badge-info {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--ed-bg-input);
}
.ed-badge-info.orange {
  color: #aa6633;
  background: #2a1a0a;
}
.ed-badge-info.red {
  color: #aa3333;
  background: #2a0a0a;
}
.ed-badge-info.green {
  color: #33aa66;
  background: #0a2a1a;
}
[data-theme=light] .ed-badge-info.orange {
  color: #8a5020;
  background: #f8ece0;
}
[data-theme=light] .ed-badge-info.red {
  color: #aa3333;
  background: #fde8e8;
}
[data-theme=light] .ed-badge-info.green {
  color: #2a7a4a;
  background: #e0f0e8;
}
.event-card {
  margin-bottom: 10px;
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  border-left: 3px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.15s,
    opacity 0.15s,
    background 0.15s;
}
.event-card:hover {
  border-color: var(--ed-border);
}
.event-card.expanded {
  border: 2px solid #00bfff;
  border-left: 3px solid #00bfff;
  outline: 2px solid #00bfff;
  outline-offset: 1px;
  background: rgba(0, 191, 255, 0.06);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.3);
}
.has-expanded-event .event-card:not(.expanded) {
  opacity: 0.45;
  background: rgba(0, 0, 0, 0.15);
}
.has-expanded-event .event-card:not(.expanded):hover {
  opacity: 0.8;
  background: var(--ed-bg-input);
}
.event-card-header {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  cursor: pointer;
  gap: 4px;
  user-select: none;
  background: var(--ed-bg-button);
  border-radius: 3px 3px 0 0;
  border-bottom: 1px solid var(--ed-border);
  box-shadow: inset 3px 0 0 var(--ed-accent);
}
.event-card-chevron {
  font-size: 9px;
  width: 12px;
  flex-shrink: 0;
  color: var(--ed-text-dim);
  text-align: center;
}
.event-card-name {
  font-size: 12px;
  color: var(--ed-text);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-card-badges {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}
.event-card-trigger {
  font-size: 9px;
  color: var(--ed-text-subtle);
  background: var(--ed-bg-panel);
  padding: 1px 5px;
  border-radius: 3px;
}
.event-card-actions {
  display: none;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
  margin-left: 4px;
}
.event-card-header:hover .event-card-actions,
.event-card.expanded .event-card-actions {
  display: flex;
}
.event-card-action-btn {
  padding: 1px 5px;
  font-size: 9px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.event-card-action-btn:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.event-card-summary {
  font-size: 10px;
  color: var(--ed-text-dim);
  padding: 0 8px 5px 24px;
}
.event-card-detail {
  padding: 0;
}
.event-card-detail .property-group {
  padding: 6px 8px;
}
.event-card-props {
  background: var(--ed-bg-panel);
  border-bottom: 1px solid var(--ed-border);
}
.ed-preview-bg {
  background: var(--ed-bg-active);
}
[data-theme=light] .ed-preview-bg {
  background: #e0e0e8;
}
.dev-notes {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ed-border);
  font-family: system-ui, sans-serif;
  transition: width 0.2s;
}
.dev-notes.collapsed {
  width: 100px;
}
.dev-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #1e1e36;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.dev-notes-title {
  font-size: 11px;
  font-weight: 700;
  color: #aaaacc;
  letter-spacing: 0.5px;
}
.dev-notes-toggle {
  background: none;
  border: none;
  color: #8888aa;
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.dev-notes-toggle:hover {
  color: #fff;
}
.dev-notes-body {
  display: flex;
  flex-direction: column;
  background: #14142a;
}
.dev-notes.collapsed .dev-notes-body {
  display: none;
}
.dev-notes-textarea {
  width: 100%;
  height: 180px;
  padding: 8px 10px;
  background: #14142a;
  color: #d0d0ee;
  border: none;
  font-size: 12px;
  font-family:
    "Consolas",
    "Monaco",
    monospace;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.dev-notes-textarea::placeholder {
  color: #555570;
}
.thumb-editor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.thumb-editor-container {
  user-select: none;
  -webkit-user-select: none;
}
.thumb-editor-container input,
.thumb-editor-container textarea {
  user-select: text;
  -webkit-user-select: text;
}
.thumb-editor-asset-item {
  cursor: grab;
}
.thumb-editor-container {
  background: var(--ed-bg-panel);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  width: 95vw;
  height: 90vh;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.thumb-editor-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--ed-bg-toolbar);
  border-bottom: 1px solid var(--ed-border);
}
.thumb-editor-topbar h3 {
  margin: 0;
  font-size: 14px;
  color: var(--ed-text-bright);
  margin-right: auto;
}
.thumb-editor-topbar button {
  padding: 4px 10px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.thumb-editor-topbar button:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.thumb-editor-topbar button.active {
  background: var(--ed-accent);
  color: #fff;
}
.thumb-editor-export-btn {
  background: #2a7a4a !important;
  color: #fff !important;
  font-weight: 600;
}
.thumb-editor-export-btn:hover {
  background: #35965a !important;
}
.thumb-editor-close-btn {
  background: transparent !important;
  border: none !important;
  color: var(--ed-text-muted) !important;
  font-size: 18px !important;
  padding: 2px 8px !important;
  cursor: pointer;
}
.thumb-editor-close-btn:hover {
  color: var(--ed-text-bright) !important;
}
.thumb-editor-assets {
  grid-row: 2;
  grid-column: 1;
  overflow-y: auto;
  border-right: 1px solid var(--ed-border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.thumb-editor-assets-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.thumb-editor-upload-btn {
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: var(--ed-accent, #3a7cff);
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.thumb-editor-upload-btn:hover {
  filter: brightness(1.15);
}
.thumb-editor-search {
  width: 100%;
  padding: 4px 8px;
  margin-bottom: 6px;
  background: var(--ed-bg-input);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  color: var(--ed-text);
  font-size: 12px;
  box-sizing: border-box;
}
.thumb-editor-asset-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.thumb-editor-asset-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ed-text-secondary);
}
.thumb-editor-asset-item:hover {
  background: var(--ed-bg-hover);
}
.thumb-editor-asset-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--ed-bg-base);
  border-radius: 2px;
  flex-shrink: 0;
}
.thumb-editor-asset-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb-editor-canvas-area {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-bg-base);
  overflow: hidden;
  position: relative;
}
.thumb-editor-canvas {
  border: 1px solid var(--ed-border);
  cursor: default;
}
.thumb-editor-layers {
  grid-row: 2;
  grid-column: 3;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ed-border);
  overflow: hidden;
}
.thumb-editor-layers-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 8px 4px;
}
.thumb-editor-layer-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.thumb-editor-layer-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ed-text-secondary);
  cursor: pointer;
  min-height: 32px;
}
.thumb-editor-layer-item:hover {
  background: var(--ed-bg-hover);
}
.thumb-editor-layer-item.selected {
  background: var(--ed-accent-subtle, rgba(58, 110, 165, 0.2));
  color: var(--ed-text-bright);
}
.thumb-editor-layer-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: var(--ed-bg-base);
  border-radius: 2px;
  flex-shrink: 0;
}
.thumb-editor-layer-item .layer-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb-editor-layer-btns {
  display: flex;
  gap: 2px;
}
.thumb-editor-layer-btns button {
  background: transparent;
  border: none;
  color: var(--ed-text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
  border-radius: 2px;
}
.thumb-editor-layer-btns button:hover {
  color: var(--ed-text-bright);
  background: var(--ed-bg-hover);
}
.thumb-editor-props {
  border-top: 1px solid var(--ed-border);
  padding: 8px;
  overflow-y: auto;
  max-height: 280px;
}
.thumb-editor-props-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--ed-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.thumb-editor-prop-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.thumb-editor-prop-row label {
  font-size: 11px;
  color: var(--ed-text-muted);
  width: 20px;
  flex-shrink: 0;
}
.thumb-editor-prop-row input[type=number] {
  width: 60px;
  padding: 2px 4px;
  background: var(--ed-bg-input);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  font-size: 11px;
}
.thumb-editor-prop-row input[type=range] {
  flex: 1;
  height: 14px;
}
.thumb-editor-prop-row .prop-value {
  font-size: 10px;
  color: var(--ed-text-muted);
  width: 32px;
  text-align: right;
}
.thumb-editor-flip-btns {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.thumb-editor-flip-btns button {
  padding: 3px 8px;
  background: var(--ed-bg-button);
  color: var(--ed-text-secondary);
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}
.thumb-editor-flip-btns button:hover {
  background: var(--ed-bg-hover);
  color: var(--ed-text-bright);
}
.thumb-editor-statusbar {
  grid-column: 1 / -1;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--ed-text-dim, var(--ed-text-muted));
  background: var(--ed-bg-toolbar);
  border-top: 1px solid var(--ed-border);
}
.thumb-editor-color-input {
  width: 28px;
  height: 24px;
  border: 1px solid var(--ed-border);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  background: none;
}
[data-theme=light] .thumb-editor-overlay {
  background: rgba(0, 0, 0, 0.5);
}
[data-theme=light] .thumb-editor-container {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
[data-theme=light] .thumb-editor-layer-item.selected {
  background: rgba(58, 110, 165, 0.12);
}
.portal-root {
  min-height: 100vh;
  background: var(--ed-bg-base, #0a0a1a);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ed-text, #e0e0ff);
}
.portal-header {
  text-align: center;
  padding: 32px 20px 16px;
}
.portal-header h1 {
  font-size: 28px;
  margin: 0 0 6px 0;
  color: var(--ed-text, #e0e0ff);
}
.portal-header p {
  font-size: 14px;
  color: var(--ed-text-dim, #888);
  margin: 0;
}
.portal-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}
.portal-search {
  width: 260px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ed-bg-input, #1a1a3e);
  border: 1px solid var(--ed-border, #3a3a5e);
  color: var(--ed-text, #e0e0ff);
  font-size: 13px;
  outline: none;
}
.portal-select {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ed-bg-input, #1a1a3e);
  border: 1px solid var(--ed-border, #3a3a5e);
  color: var(--ed-text, #e0e0ff);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.portal-loading,
.portal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ed-text-dim, #888);
  font-size: 15px;
}
.portal-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--ed-bg-panel, #14142a);
  border: 1px solid var(--ed-border, #2a2a5e);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.portal-card:hover {
  border-color: var(--ed-accent, #4a6aff);
  transform: translateY(-2px);
}
.portal-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ed-bg-base, #0a0a1a);
  background-size: cover;
  background-position: center;
  position: relative;
}
.portal-card-thumb .portal-maturity,
.portal-card-thumb .portal-classroom-badge {
  top: auto;
  bottom: 8px;
}
.portal-maturity {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.portal-maturity-E {
  background: #44cc66;
  color: #fff;
}
.portal-maturity-T {
  background: #ddaa22;
  color: #fff;
}
.portal-maturity-M {
  background: #dd4444;
  color: #fff;
}
.portal-classroom-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0f3a1a;
  background:
    linear-gradient(
      135deg,
      #7be2a3,
      #44cc66);
  box-shadow: 0 2px 8px rgba(68, 204, 102, 0.35);
  white-space: nowrap;
}
.portal-classroom-chip {
  background: rgba(68, 204, 102, 0.10);
  border: 1px solid rgba(68, 204, 102, 0.30);
  color: #7be2a3;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.portal-classroom-chip:hover {
  background: rgba(68, 204, 102, 0.18);
  border-color: rgba(68, 204, 102, 0.50);
  color: #ffffff;
}
.portal-classroom-chip.active {
  background:
    linear-gradient(
      135deg,
      #44cc66,
      #7be2a3);
  border-color: transparent;
  color: #0f3a1a;
  box-shadow: 0 2px 10px rgba(68, 204, 102, 0.35);
}
.portal-classroom-badge-inline {
  position: static;
  top: auto;
  left: auto;
}
.upgrade-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.18s ease;
  padding: 20px;
}
.upgrade-modal-backdrop.visible {
  opacity: 1;
}
.upgrade-modal-backdrop.closing {
  opacity: 0;
}
.upgrade-modal {
  background:
    linear-gradient(
      180deg,
      #1a1e2a,
      #14171f);
  border: 1px solid #2c3344;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.94);
  transition: transform 0.18s ease;
}
.upgrade-modal-backdrop.visible .upgrade-modal {
  transform: scale(1);
}
.upgrade-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.upgrade-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.upgrade-modal-tier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.upgrade-modal-tier-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
}
.upgrade-modal-tier-chip.active {
  color: #14171f;
  border: none;
}
.upgrade-modal-arrow {
  color: #6c7488;
  font-size: 18px;
  font-weight: 700;
}
.upgrade-modal-message {
  font-size: 14.5px;
  color: #aab2c2;
  line-height: 1.55;
  margin: 0 0 24px;
}
.upgrade-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.upgrade-modal-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.upgrade-modal-btn.dismiss {
  background: rgba(255, 255, 255, 0.04);
  color: #8a93a6;
}
.upgrade-modal-btn.dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #c0c7d5;
}
.upgrade-modal-btn.cta {
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.upgrade-modal-btn.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  filter: brightness(1.08);
}
@media (max-width: 480px) {
  .upgrade-modal {
    padding: 24px 20px 18px;
  }
  .upgrade-modal-title {
    font-size: 19px;
  }
  .upgrade-modal-actions {
    flex-direction: column-reverse;
  }
  .upgrade-modal-actions button {
    width: 100%;
  }
}
.portal-card-info {
  padding: 12px 14px;
}
.portal-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ed-text, #e0e0ff);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-card-author {
  font-size: 12px;
  color: var(--ed-text-dim, #888);
  margin-bottom: 8px;
}
.portal-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.portal-stars {
  color: #ffaa22;
}
.portal-plays {
  color: var(--ed-text-dim, #888);
}
.portal-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 40px;
}
.portal-pagination button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--ed-border, #3a3a5e);
  background: var(--ed-bg-panel, #14142a);
  color: var(--ed-text-dim, #ccc);
  cursor: pointer;
  font-size: 13px;
}
.portal-pagination button:hover {
  border-color: var(--ed-accent, #4a6aff);
}
.portal-pagination button.active {
  background: var(--ed-accent, #4a6aff);
  border-color: var(--ed-accent, #4a6aff);
  color: #fff;
}
.portal-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}
.portal-admin-section {
  margin: 0 20px 20px;
  border: 1px solid var(--ed-border, #3a3a5e);
  border-radius: 8px;
  background: var(--ed-bg-panel, #14142a);
  overflow: hidden;
  max-width: 1200px;
}
.portal-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ed-border, #3a3a5e);
}
.portal-admin-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-text, #e0e0ff);
  margin: 0;
}
.portal-admin-toggle {
  padding: 4px 14px;
  border-radius: 4px;
  border: 1px solid var(--ed-border, #3a3a5e);
  background: var(--ed-bg-input, #1a1a30);
  color: var(--ed-text-dim, #ccc);
  cursor: pointer;
  font-size: 12px;
}
.portal-admin-list {
  padding: 12px 16px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}
.portal-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}
.portal-admin-table th {
  text-align: left;
  padding: 6px 10px;
  color: var(--ed-text-muted, #888);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--ed-border, #3a3a5e);
}
.portal-admin-table td {
  padding: 8px 10px;
  color: var(--ed-text, #e0e0ff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.portal-admin-subhead {
  margin: 4px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-text-muted, #888);
}
.portal-admin-list .portal-admin-table + .portal-admin-subhead,
.portal-admin-list .portal-empty + .portal-admin-subhead {
  margin-top: 22px;
}
.portal-admin-reason {
  max-width: 320px;
  overflow-wrap: anywhere;
}
.portal-admin-muted {
  color: var(--ed-text-muted, #888);
  font-style: italic;
}
.portal-admin-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.portal-admin-btn {
  padding: 3px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.portal-admin-approve {
  background: #44cc66;
  color: #000;
}
.portal-admin-unlist {
  background: #cc8800;
  color: #000;
}
.portal-admin-reject {
  background: #cc4444;
  color: #fff;
}
.portal-admin-btn:hover {
  filter: brightness(1.15);
}
.portal-stats-content {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}
.portal-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.portal-stats-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--ed-border, #3a3a5e);
}
.portal-stats-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--ed-accent, #4a6aff);
}
.portal-stats-label {
  font-size: 10px;
  color: var(--ed-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-align: center;
}
.portal-stats-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ed-border, #3a3a5e);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.portal-stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--ed-text, #e0e0ff);
  font-size: 13px;
}
.portal-stats-card-header span {
  font-size: 11px;
  color: var(--ed-text-muted, #888);
}
.portal-stats-domains {
  margin-top: 6px;
}
.portal-stats-domain-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.portal-stats-domain-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  position: relative;
  font-size: 12px;
  color: var(--ed-text, #e0e0ff);
}
.portal-stats-domain-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(74, 106, 255, 0.12);
  border-radius: 3px;
  z-index: 0;
}
.portal-stats-domain-name {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-stats-domain-count {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--ed-text-muted, #aaa);
  font-size: 11px;
  padding-right: 6px;
  white-space: nowrap;
}
.portal-detail {
  max-width: 100%;
}
.portal-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.portal-detail-hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.25);
  z-index: 0;
}
.portal-detail-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.portal-detail-back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.portal-detail-back:hover {
  color: #fff;
}
.portal-detail-hero-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.portal-detail-thumb {
  width: 320px;
  max-width: 40%;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}
.portal-detail-hero-info {
  flex: 1;
  min-width: 0;
}
.portal-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.portal-detail-author {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.portal-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.portal-detail-meta .portal-maturity {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
}
.portal-detail-meta-stat {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.portal-maturity-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portal-detail-meta .portal-maturity-select {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}
.portal-detail-meta .portal-maturity-select:disabled {
  opacity: 0.5;
  cursor: default;
}
.portal-maturity-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  min-width: 48px;
}
.portal-admin-btn {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-family: inherit;
}
.portal-admin-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.portal-admin-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.portal-review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 20px;
  background: rgba(255, 183, 77, 0.12);
  border-bottom: 1px solid rgba(255, 183, 77, 0.45);
  color: #ffcf8a;
  font-size: 14px;
}
.portal-review-bar[data-status=approved] {
  background: rgba(68, 204, 102, 0.12);
  border-bottom-color: rgba(68, 204, 102, 0.45);
  color: #8fe3a4;
}
.portal-review-bar[data-status=rejected],
.portal-review-bar[data-status=taken_down] {
  background: rgba(255, 102, 102, 0.1);
  border-bottom-color: rgba(255, 102, 102, 0.4);
  color: #ff9d9d;
}
.portal-review-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-review-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}
.portal-review-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.portal-review-btn.portal-review-approve {
  background: #44cc66;
  border-color: #44cc66;
  color: #06140a;
}
.portal-review-btn.portal-review-approve:hover:not(:disabled) {
  filter: brightness(1.1);
  color: #06140a;
}
.portal-review-btn.portal-review-reject {
  border-color: rgba(255, 102, 102, 0.6);
  color: #ff9d9d;
}
.portal-review-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.portal-detail-play {
  display: inline-block;
  padding: 14px 40px;
  background: #44cc66;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}
.portal-detail-play:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.portal-detail-play:active {
  transform: translateY(0);
}
.portal-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.portal-detail-share {
  display: inline-block;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.1s;
}
.portal-detail-share:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.portal-detail-share:active {
  transform: translateY(0);
}
.portal-detail-share.is-copied {
  background: #44cc66;
  border-color: #44cc66;
}
.portal-detail-body {
  display: flex;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}
.portal-detail-main {
  flex: 1;
  min-width: 0;
}
.portal-detail-sidebar {
  width: 280px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .portal-detail-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .portal-detail-thumb {
    max-width: 80%;
    width: 260px;
  }
  .portal-detail-meta {
    justify-content: center;
  }
  .portal-detail-body {
    flex-direction: column;
    padding: 20px 16px;
  }
  .portal-detail-sidebar {
    width: 100%;
  }
}
.portal-detail-section {
  margin-bottom: 28px;
}
.portal-detail-section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ed-text-dim, #8888aa);
  border-bottom: 1px solid var(--ed-border, #2a2a5e);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.portal-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ed-text, #e0e0ff);
  white-space: pre-wrap;
  margin: 0;
}
.portal-detail-rating-widget {
  text-align: center;
  padding: 8px 0;
}
.portal-detail-stars {
  display: inline-flex;
  gap: 4px;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
}
.portal-detail-stars span {
  color: #333;
  transition: color 0.15s;
}
.portal-detail-stars span.filled {
  color: #ffaa22;
}
.portal-detail-stars span.hover {
  color: #ffcc44;
}
.portal-detail-stars.readonly {
  cursor: default;
}
.portal-detail-stars.readonly span {
  cursor: default;
}
.portal-detail-your-rating {
  font-size: 12px;
  color: #ffaa22;
  margin-top: 6px;
}
.portal-detail-rating-summary {
  font-size: 13px;
  color: var(--ed-text-dim, #8888aa);
  margin-top: 8px;
}
.portal-detail-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--ed-border, rgba(255,255,255,0.06));
  font-size: 13px;
}
.portal-detail-info-label {
  color: var(--ed-text-dim, #8888aa);
}
.portal-detail-info-value {
  color: var(--ed-text, #e0e0ff);
  font-weight: 500;
}
.portal-detail-comment-form {
  margin-bottom: 20px;
}
.portal-detail-comment-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--ed-bg-input, #1a1a3e);
  border: 1px solid var(--ed-border, #2a2a5e);
  border-radius: 6px;
  color: var(--ed-text, #e0e0ff);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  outline: none;
  box-sizing: border-box;
}
.portal-detail-comment-input:focus {
  border-color: var(--ed-accent, #4a6aff);
}
.portal-detail-comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.portal-detail-char-count {
  font-size: 12px;
  color: var(--ed-text-dim, #8888aa);
}
.portal-detail-comment-post {
  padding: 8px 20px;
  background: var(--ed-accent, #4a6aff);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s;
}
.portal-detail-comment-post:hover {
  filter: brightness(1.15);
}
.portal-detail-comment-post:disabled {
  opacity: 0.5;
  cursor: default;
}
.portal-detail-login-prompt {
  padding: 16px;
  text-align: center;
  color: var(--ed-text-dim, #8888aa);
  font-size: 14px;
  background: var(--ed-bg-panel, #14142a);
  border-radius: 8px;
  margin-bottom: 20px;
}
.portal-detail-login-prompt a {
  color: var(--ed-accent, #4a6aff);
  text-decoration: none;
}
.portal-detail-login-prompt a:hover {
  text-decoration: underline;
}
.portal-detail-comments {
}
.portal-detail-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-border, rgba(255,255,255,0.06));
}
.portal-detail-comment:last-child {
  border-bottom: none;
}
.portal-detail-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.portal-detail-comment-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ed-text, #e0e0ff);
}
.portal-detail-comment-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  vertical-align: middle;
}
.portal-detail-comment-time {
  font-size: 12px;
  color: var(--ed-text-dim, #666);
  margin-left: auto;
}
.portal-detail-comment-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ed-text, #d0d0ee);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.portal-detail-no-comments {
  text-align: center;
  color: var(--ed-text-dim, #8888aa);
  padding: 24px;
  font-size: 14px;
}
.portal-detail-load-more {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: var(--ed-bg-panel, #14142a);
  border: 1px solid var(--ed-border, #2a2a5e);
  border-radius: 6px;
  color: var(--ed-text, #e0e0ff);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.portal-detail-load-more:hover {
  background: var(--ed-bg-input, #1a1a3e);
}
.portal-detail-report-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid var(--ed-border, #2a2a5e);
  border-radius: 6px;
  color: var(--ed-text-dim, #8888aa);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.portal-detail-report-btn:hover {
  color: #dd4444;
  border-color: #dd4444;
}
.portal-detail-report-btn:disabled {
  opacity: 0.6;
  cursor: default;
  color: #44cc66;
  border-color: #44cc66;
}
.portal-detail-report-form {
  margin-top: 8px;
}
.portal-detail-report-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--ed-bg-input, #1a1a3e);
  border: 1px solid var(--ed-border, #2a2a5e);
  border-radius: 6px;
  color: var(--ed-text, #e0e0ff);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
  outline: none;
  box-sizing: border-box;
}
.portal-detail-report-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.portal-detail-report-submit {
  padding: 6px 16px;
  background: #dd4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.portal-detail-report-submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.portal-detail-report-cancel {
  padding: 6px 16px;
  background: none;
  border: 1px solid var(--ed-border, #2a2a5e);
  border-radius: 4px;
  color: var(--ed-text-dim, #8888aa);
  font-size: 12px;
  cursor: pointer;
}
.portal-player-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 48px);
  padding: 0 16px 32px;
}
.portal-player-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 840px;
  padding: 12px 0;
}
.portal-player-back {
  padding: 6px 14px;
  border: 1px solid var(--ed-border, #3a3a5e);
  background: var(--ed-bg-panel, #14142a);
  color: var(--ed-text, #e0e0ff);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.portal-player-back:hover {
  background: var(--ed-bg-hover, #3a3a6e);
}
.portal-player-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ed-text-bright, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-player-container {
  width: 800px;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-player-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.portal-player-error {
  padding: 40px;
  text-align: center;
  color: #ff6666;
  font-size: 15px;
}
.portal-player-retry {
  margin-top: 12px;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: #4a6aff;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.portal-player-retry:hover {
  background: #5a7aff;
}
@media (max-width: 840px) {
  .portal-player-container {
    width: 100%;
    border-radius: 0;
  }
}
.admin-root {
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(
      ellipse 800px 500px at 20% 0%,
      rgba(110, 168, 255, 0.08) 0%,
      transparent 60%),
    radial-gradient(
      ellipse 600px 400px at 100% 20%,
      rgba(189, 147, 249, 0.06) 0%,
      transparent 60%),
    #0a0a14;
  color: #e0e0e8;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.admin-hero {
  padding: 40px 48px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.admin-hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background:
    linear-gradient(
      135deg,
      #6ea8ff 0%,
      #bd93f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-hero-subtitle {
  font-size: 14px;
  color: #8a8aa0;
  margin-top: 4px;
}
.admin-toolbar {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 4px;
}
.admin-tab {
  padding: 8px 18px;
  background: transparent;
  color: #8a8aa0;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}
.admin-tab:hover {
  color: #e0e0e8;
}
.admin-tab.active {
  background:
    linear-gradient(
      135deg,
      rgba(110, 168, 255, 0.25),
      rgba(189, 147, 249, 0.2));
  color: #fff;
  box-shadow: 0 2px 8px rgba(110, 168, 255, 0.15);
}
.admin-window-sel {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 4px;
}
.admin-window-btn {
  padding: 7px 14px;
  background: transparent;
  color: #8a8aa0;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}
.admin-window-btn:hover {
  color: #e0e0e8;
}
.admin-window-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-loading,
.admin-empty,
.admin-error {
  text-align: center;
  padding: 80px 20px;
  color: #6a6a80;
  font-size: 14px;
}
.admin-error {
  color: #ff8888;
}
.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.admin-kpi-row-compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.admin-kpi {
  --kpi-accent: #6ea8ff;
  position: relative;
  padding: 20px 22px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.admin-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--kpi-accent);
  box-shadow: 0 0 20px var(--kpi-accent);
}
.admin-kpi::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background:
    radial-gradient(
      circle,
      var(--kpi-accent) 0%,
      transparent 60%);
  opacity: 0.08;
  pointer-events: none;
}
.admin-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}
.admin-kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.admin-kpi-label {
  font-size: 11px;
  color: #8a8aa0;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.chart-widget {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chart-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.chart-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #c0c0d0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.chart-widget-toolbar {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  padding: 2px;
}
.chart-widget-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  padding: 0;
  background: transparent;
  color: #6a6a80;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.chart-widget-type-btn:hover {
  color: #c0c0d0;
  background: rgba(255, 255, 255, 0.05);
}
.chart-widget-type-btn.active {
  color: #fff;
  background: rgba(110, 168, 255, 0.2);
}
.chart-widget-export {
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding-left: 2px;
}
.chart-widget-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  flex-shrink: 0;
}
.chart-widget-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.admin-chart-row {
  display: grid;
  gap: 16px;
}
.admin-chart-full {
  grid-template-columns: 1fr;
}
.admin-chart-split {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.cal-heatmap-wrap {
  padding: 8px 0 4px;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.cal-heatmap-weekdays {
  display: grid;
  grid-template-rows: repeat(7, 16px);
  gap: 3px;
  padding-top: 2px;
  font-size: 10px;
  color: #6a6a80;
  flex-shrink: 0;
}
.cal-heatmap-weekdays span {
  display: flex;
  align-items: center;
  height: 16px;
  line-height: 1;
}
.cal-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 16px);
  grid-auto-flow: column;
  grid-auto-columns: 16px;
  gap: 3px;
}
.cal-heatmap-cell {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.1s;
  cursor: default;
}
.cal-heatmap-cell:hover {
  transform: scale(1.4);
  z-index: 2;
  outline: 1px solid rgba(255, 255, 255, 0.4);
}
.cal-heatmap-cell[data-level="1"] {
  background: rgba(110, 168, 255, 0.25);
}
.cal-heatmap-cell[data-level="2"] {
  background: rgba(110, 168, 255, 0.5);
}
.cal-heatmap-cell[data-level="3"] {
  background: rgba(110, 168, 255, 0.75);
}
.cal-heatmap-cell[data-level="4"] {
  background: #6ea8ff;
  box-shadow: 0 0 6px rgba(110, 168, 255, 0.5);
}
.cal-heatmap-pad {
  background: transparent;
}
.cal-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6a6a80;
  margin-left: auto;
  padding-top: 2px;
  flex-shrink: 0;
}
.cal-heatmap-legend .cal-heatmap-cell {
  width: 12px;
  height: 12px;
}
.admin-today-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 4px 0 16px;
}
.admin-today-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
}
.admin-today-list h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a8aa0;
}
.admin-today-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.admin-today-row:last-child {
  border-bottom: none;
}
.admin-today-row span {
  color: #d0d0e0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.admin-today-row b {
  color: #6ea8ff;
  font-weight: 700;
}
.admin-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #c0c0d0;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 4px 4px;
  margin-top: 8px;
}
.admin-games-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 6px;
}
.admin-game-row {
  display: grid;
  grid-template-columns: 2fr 120px 3fr 24px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-game-row:hover {
  background: rgba(110, 168, 255, 0.08);
}
.admin-game-name {
  font-weight: 600;
  color: #e0e0e8;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-game-spark {
  height: 32px;
  position: relative;
}
.admin-game-spark canvas {
  width: 100% !important;
  height: 100% !important;
}
.admin-game-stats {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.admin-game-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  color: #6a6a80;
}
.admin-game-stat b {
  font-size: 16px;
  font-weight: 700;
  color: #e0e0e8;
  line-height: 1.1;
}
.admin-game-stat em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-game-arrow {
  color: #4a4a60;
  font-size: 22px;
  text-align: center;
}
.admin-game-row:hover .admin-game-arrow {
  color: #6ea8ff;
}
.admin-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  justify-content: flex-end;
  animation: admin-fade-in 0.2s;
}
@keyframes admin-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.admin-drawer {
  width: min(1100px, 92vw);
  height: 100vh;
  background: #0a0a14;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: admin-slide-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes admin-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.admin-drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-drawer-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.admin-drawer-close {
  background: transparent;
  border: none;
  color: #8a8aa0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.15s;
}
.admin-drawer-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.admin-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-input,
.admin-select {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e0e0e8;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.admin-input {
  width: 320px;
  max-width: 100%;
}
.admin-select {
  width: 150px;
}
.admin-input:focus,
.admin-select:focus {
  border-color: rgba(110, 168, 255, 0.5);
}
.admin-input::placeholder {
  color: #6a6a80;
}
.admin-select option {
  background: #161628;
  color: #e0e0e8;
}
.admin-table-wrap {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  color: #8a8aa0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #c0c0d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover td {
  background: rgba(110, 168, 255, 0.05);
}
.admin-row-banned td {
  opacity: 0.55;
}
.admin-user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-user-cell strong {
  color: #e0e0e8;
  font-weight: 600;
}
.admin-user-cell span {
  font-size: 11px;
  color: #6a6a80;
}
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}
.admin-badge-banned {
  background: #ff4444;
  margin-left: 4px;
}
.admin-badge-completed {
  background: #44cc66;
}
.admin-badge-pending {
  background: #ddaa33;
}
.admin-badge-failed,
.admin-badge-cancelled {
  background: #ff4444;
}
.admin-badge-active {
  background: #44cc66;
}
.admin-actions-cell {
  white-space: nowrap;
}
.admin-action-btn {
  padding: 4px 10px;
  margin: 0 2px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c0c0d0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}
.admin-action-btn:hover {
  background: rgba(110, 168, 255, 0.15);
  border-color: rgba(110, 168, 255, 0.4);
  color: #fff;
}
.admin-action-btn.admin-action-danger:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: rgba(255, 68, 68, 0.4);
  color: #ff8888;
}
.admin-action-btn.admin-action-approve {
  background: rgba(80, 250, 123, 0.12);
  border-color: rgba(80, 250, 123, 0.4);
  color: #7dffa0;
}
.admin-action-btn.admin-action-approve:hover {
  background: rgba(80, 250, 123, 0.22);
  color: #fff;
}
.admin-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.admin-btn {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c0c0d0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}
.admin-btn:hover {
  background: rgba(110, 168, 255, 0.15);
  border-color: rgba(110, 168, 255, 0.4);
  color: #fff;
}
.admin-pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 14px 0;
}
.admin-pager-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c0c0d0;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.admin-pager-btn:hover:not(:disabled) {
  background: rgba(110, 168, 255, 0.15);
}
.admin-pager-btn.active {
  background: rgba(110, 168, 255, 0.25);
  border-color: rgba(110, 168, 255, 0.5);
  color: #fff;
}
.admin-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.admin-info-card {
  padding: 16px 18px;
}
.admin-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 4px;
}
.admin-info-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.admin-info-grid span {
  font-size: 10px;
  color: #6a6a80;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.admin-info-grid b {
  font-size: 22px;
  font-weight: 700;
  color: #e0e0e8;
}
.admin-section-title-tight {
  margin-top: 20px;
  padding-bottom: 4px;
}
.admin-games-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.admin-games-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6a6a80;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.admin-games-table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.admin-games-row:last-child td {
  border-bottom: none;
}
.admin-games-row:hover td {
  background: rgba(110, 168, 255, 0.05);
}
.admin-games-check {
  width: 36px;
  text-align: center;
  padding-right: 0 !important;
}
.admin-games-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6ea8ff;
}
.admin-games-name {
  font-weight: 600;
  color: #e0e0e8;
}
.admin-games-link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.admin-games-link:hover {
  color: #6ea8ff;
}
.admin-games-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-games-plays {
  font-size: 18px;
  font-weight: 700;
  color: #e0e0e8;
}
.admin-games-pct {
  display: inline-block;
  font-size: 11px;
  color: #6a6a80;
  margin-left: 6px;
  font-weight: 500;
}
.admin-games-domain {
  color: #c0c0d0;
}
.admin-games-domain-name {
  display: inline-block;
  font-size: 13px;
  color: #c0c0d0;
}
.admin-games-domain-count {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(110, 168, 255, 0.12);
  color: #6ea8ff;
  border-radius: 999px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.admin-games-trend {
  width: 130px;
  text-align: right;
}
.admin-games-trend canvas {
  width: 110px !important;
  height: 28px !important;
  display: inline-block;
}
.admin-mover-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 16px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.admin-mover-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.admin-mover-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6a6a80;
}
.admin-mover-group.fresh .admin-mover-label::before {
  content: "\25b2  ";
  color: #50fa7b;
}
.admin-mover-group.stale .admin-mover-label::before {
  content: "\25bc  ";
  color: #ff6b88;
}
.admin-mover-item {
  font-size: 13px;
  color: #c0c0d0;
  cursor: pointer;
  text-decoration: none;
}
.admin-mover-item:hover {
  color: #e0e0e8;
}
.admin-mover-group.fresh .admin-mover-item b {
  color: #50fa7b;
  font-weight: 700;
}
.admin-mover-group.stale .admin-mover-item b {
  color: #ff6b88;
  font-weight: 700;
}
.admin-domains-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.admin-domains-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6a6a80;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-domains-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #c0c0d0;
}
.admin-domains-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-domain-bar {
  display: inline-block;
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
}
.admin-domain-bar > span {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #6ea8ff,
      #50fa7b);
  border-radius: 3px;
}
@media (max-width: 768px) {
  .admin-hero,
  .admin-toolbar,
  .admin-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-tabs {
    flex-wrap: wrap;
  }
  .admin-game-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admin-game-stats {
    justify-content: flex-start;
    gap: 14px;
  }
  .admin-table {
    font-size: 12px;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
  .admin-games-table {
    font-size: 12px;
  }
  .admin-games-table thead th,
  .admin-games-table tbody td {
    padding: 8px 10px;
  }
  .admin-games-trend {
    display: none;
  }
  .admin-games-domain {
    font-size: 11px;
  }
  .admin-mover-strip {
    gap: 10px;
  }
}
.admin-waitlist-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.admin-waitlist-summary .admin-stat-card {
  padding: 14px 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.admin-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #e0e0ff;
  line-height: 1;
  margin-bottom: 4px;
}
.admin-stat-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8a8aa0;
  font-weight: 600;
}
.admin-waitlist-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 12px;
  color: #cccccc;
}
.admin-source-pill strong {
  color: #e0e0ff;
}
.admin-source-pill span {
  color: #8a8aa0;
}
.admin-meta {
  color: #8a8aa0;
  font-size: 12px;
}
.admin-meta-strong {
  color: #c9a866;
  font-size: 12px;
}
.admin-meta-dim {
  color: #4a4a60;
  font-size: 12px;
}
.admin-meta-mono {
  color: #aaa;
  font-size: 11px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.admin-cell-clip {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-badge-invited {
  background: #555;
  color: #ccc;
}
.admin-badge-pending {
  background: #ddaa33;
  color: #000;
}
.admin-badge-bounced {
  background: #cc2b2b;
  color: #fff;
}
.admin-btn-small {
  padding: 4px 10px;
  font-size: 11px;
}
.admin-waitlist-trunc {
  text-align: center;
  color: #6a6a80;
  font-size: 12px;
  padding: 12px;
}
