﻿    :root {
      --bg: #0f1115;
      --panel: #171a21;
      --panel-2: #1e232d;
      --border: #2c3340;
      --text: #e8ecf3;
      --muted: #98a2b3;
      --accent: #68a0ff;
      --good: #58c27d;
      --warn: #ffb454;
      --danger: #ff6b6b;
      --surface: rgba(23,26,33,0.88);
      --surface-strong: rgba(23,26,33,0.96);
      --surface-soft: rgba(255,255,255,0.04);
      --border-soft: rgba(255,255,255,0.1);
      --border-strong: rgba(255,255,255,0.18);
      --shadow-soft: 0 10px 26px rgba(0,0,0,0.22);
      --shadow-elevated: 0 24px 80px rgba(0,0,0,0.4);
      --radius-panel: 18px;
      --radius-control: 999px;
      --slot-bg: rgba(255,255,255,0.04);
      --overlay: rgba(0,0,0,0.16);
      background: #0f1115;
      color-scheme: dark;
    }

    * { box-sizing: border-box; }

    [hidden] {
      display: none !important;
    }

    button,
    [role="button"],
    a.top-action-auth,
    .view-tools,
    .top-actions,
    .home-actions,
    .lighting-menu,
    .profile-menu,
    .material-tabs {
      user-select: none;
      -webkit-user-select: none;
    }

    html, body {
      margin: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #0f1115;
      background: var(--bg);
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    body.dragging-model .drop-hint,
    body.dragging-texture .texture-panel {
      opacity: 1;
      pointer-events: auto;
    }

    #app {
      position: relative;
      width: 100%;
      height: 100%;
      background:
        radial-gradient(circle at 22% 0%, rgba(104,160,255,0.12), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(88,194,125,0.08), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent 24%),
        var(--bg);
    }

    body.page-exiting::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 2147483647;
      background:
        radial-gradient(circle at 22% 0%, rgba(104,160,255,0.12), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(88,194,125,0.08), transparent 28%),
        #0f1115;
      pointer-events: auto;
    }

    #pageExitCover {
      position: fixed;
      inset: 0;
      z-index: 2147483647;
      background:
        radial-gradient(circle at 22% 0%, rgba(104,160,255,0.12), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(88,194,125,0.08), transparent 28%),
        #0f1115;
      pointer-events: auto;
    }

    .home-actions,
    .top-actions,
    .asset-headers,
    #bottomBar,
    .status-bar,
    .single-import-prompt,
    .drop-hint {
      will-change: opacity, transform;
    }

    body.app-booting .home-actions,
    body.app-booting .top-actions,
    body.app-booting .asset-headers,
    body.app-booting #bottomBar,
    body.app-booting .status-bar,
    body.app-booting .single-import-prompt,
    body.app-booting .drop-hint {
      opacity: 0 !important;
      visibility: hidden;
      pointer-events: none !important;
    }

    body.model-loading-active .home-actions {
      opacity: 0 !important;
      visibility: hidden;
      pointer-events: none !important;
    }

    body.app-ready .top-actions,
    body.app-ready .asset-headers,
    body.app-ready #bottomBar {
      animation: app-control-enter 0.36s ease both;
    }

    body.app-ready .asset-headers {
      animation-delay: 0.04s;
    }

    body.app-ready #bottomBar {
      animation-delay: 0.08s;
    }

    @keyframes app-control-enter {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    #viewport {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .split-pane,
    .compare-pane {
      position: absolute;
      inset: 0;
    }

    .split-pane {
      display: flex;
    }

    .half {
      position: relative;
      width: 50%;
      height: 100%;
      border-right: 1px solid rgba(255,255,255,0.04);
    }
    .half:last-child { border-right: none; }

    .half::after,
    .compare-layer::after {
      content: "";
      position: absolute;
      top: 16px;
      right: 12px;
      bottom: 168px;
      left: 12px;
      border-radius: 20px;
      border: 2px dashed rgba(104,160,255,0.7);
      background: rgba(104,160,255,0.12);
      box-shadow: 0 0 0 1px rgba(104,160,255,0.18) inset;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
      transform: scale(0.985);
      z-index: 4;
    }

    .half.drag-target::after,
    .compare-layer.drag-target::after {
      opacity: 1;
      transform: scale(1);
    }

    .placeholder-side-overlay {
      --placeholder-overlay-transform: translateX(-50%);
      position: absolute;
      left: 50%;
      top: clamp(88px, 18vh, 180px);
      transform: var(--placeholder-overlay-transform);
      width: min(320px, calc(100% - 48px));
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(17,20,27,0.8);
      box-shadow: 0 16px 42px rgba(0,0,0,0.28);
      backdrop-filter: blur(10px);
      color: #e8eefb;
      text-align: center;
      line-height: 1.45;
      z-index: 5;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .placeholder-side-overlay.is-compare-centered {
      top: 50%;
      --placeholder-overlay-transform: translate(-50%, -50%);
    }

    .placeholder-side-overlay strong {
      display: block;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.02em;
    }

    .placeholder-side-overlay span {
      display: block;
      margin-top: 4px;
      font-size: 12px;
      color: #b8c4dc;
    }

    .placeholder-side-overlay.show {
      opacity: 1;
      transform: var(--placeholder-overlay-transform);
    }

    .single-import-prompt {
      position: absolute;
      left: 50%;
      top: 48%;
      transform: translate(-50%, calc(-50% + 8px)) scale(0.985);
      z-index: 22;
      width: min(360px, calc(100vw - 48px));
      min-height: 150px;
      padding: 28px 24px;
      border-radius: 18px;
      border: 2px dashed rgba(104,160,255,0.62);
      background: rgba(17,20,27,0.78);
      color: #eef4ff;
      box-shadow: 0 20px 58px rgba(0,0,0,0.34);
      backdrop-filter: blur(10px);
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      text-align: center;
      cursor: pointer;
      opacity: 0;
      transition:
        opacity 0.32s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.32s ease;
    }

    .single-import-prompt strong {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.02em;
    }

    .single-import-prompt span {
      color: #aebbd3;
      font-size: 13px;
      font-weight: 700;
    }

    .last-session-prompt {
      width: 100%;
      margin-top: 14px;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.12);
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    .last-session-prompt.show {
      display: flex;
    }

    .last-session-prompt span {
      max-width: 100%;
      color: #c7d4ea;
      font-size: 12px;
      line-height: 1.35;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .last-session-button {
      min-height: 36px;
      padding: 8px 14px;
      border: 1px solid rgba(104,160,255,0.38);
      border-radius: 8px;
      background: rgba(104,160,255,0.18);
      color: #f4f8ff;
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .last-session-button:hover,
    .last-session-button:focus-visible {
      outline: none;
      background: rgba(104,160,255,0.28);
      border-color: rgba(104,160,255,0.58);
    }

    .last-session-button:disabled {
      opacity: 0.65;
      cursor: wait;
    }

    .single-import-prompt:hover,
    .single-import-prompt:focus-visible {
      outline: none;
      border-color: rgba(104,160,255,0.92);
      background: rgba(23,28,39,0.88);
      transform: translate(-50%, -50%) translateY(-1px) scale(1);
    }

    body.mode-single.no-primary-model .single-import-prompt {
      display: flex;
    }

    body.app-ready.mode-single.no-primary-model .single-import-prompt {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
      animation: import-prompt-enter 0.46s ease both;
      animation-delay: 0.1s;
    }

    body.mode-single.no-primary-model.model-loading-active .single-import-prompt {
      display: none;
    }

    @keyframes import-prompt-enter {
      from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px)) scale(0.975);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .model-loading-overlay {
      position: absolute;
      inset: 0;
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      transition-delay: 0s;
      background:
        radial-gradient(circle at center, rgba(104,160,255,0.16), transparent 38%),
        linear-gradient(180deg, rgba(10,12,17,0.42), rgba(10,12,17,0.56));
    }

    .model-loading-overlay.show {
      opacity: 1;
      transition-delay: 0.4s;
    }

    .model-loading-card {
      min-width: 154px;
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(17,20,27,0.84);
      box-shadow: 0 18px 48px rgba(0,0,0,0.34);
      backdrop-filter: blur(10px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      text-align: center;
      color: #ecf2ff;
    }

    .model-loading-spinner {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 3px solid rgba(255,255,255,0.16);
      border-top-color: #9ad2ff;
      animation: model-loading-spin 0.78s linear infinite;
      box-sizing: border-box;
    }

    .model-loading-text {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: #dce6fb;
    }

    @keyframes model-loading-spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .canvas-host {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .canvas-host canvas {
      display: block;
      width: 100%;
      height: 100%;
    }

    .texture-preview-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 48px 138px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
      background:
        radial-gradient(circle at top, rgba(104,160,255,0.16), transparent 42%),
        linear-gradient(180deg, rgba(10,12,17,0.78), rgba(10,12,17,0.92));
    }

    .texture-preview-overlay.visible {
      opacity: 1;
      pointer-events: auto;
      cursor: grab;
    }

    .texture-preview-overlay.visible.is-panning {
      cursor: grabbing;
    }

    .texture-preview-frame {
      position: relative;
      width: min(100%, 760px);
      height: min(100%, 760px);
      border-radius: 28px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 24px 80px rgba(0,0,0,0.45);
      background:
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
        rgba(15,17,21,0.92);
      background-size: 28px 28px;
      background-position: 0 0, 14px 14px;
    }

    .texture-preview-frame img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      transform-origin: center center;
      will-change: transform;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: none;
    }

    .texture-preview-frame img:not([src]) {
      visibility: hidden;
    }

    .texture-preview-topbar {
      position: absolute;
      top: 18px;
      left: 18px;
      right: 18px;
      z-index: 4;
      display: flex;
      pointer-events: none;
    }

    .texture-preview-topbar.is-left {
      justify-content: flex-start;
    }

    .texture-preview-topbar.is-right {
      justify-content: flex-end;
    }

    .texture-preview-resolution {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(8,10,16,0.72);
      border: 1px solid rgba(255,255,255,0.12);
      color: rgba(232,236,243,0.92);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      box-shadow: 0 10px 28px rgba(0,0,0,0.24);
      backdrop-filter: blur(10px);
    }

    .texture-preview-meta {
      position: absolute;
      left: 22px;
      right: 22px;
      bottom: 148px;
      z-index: 4;
      display: flex;
      flex-direction: column;
      gap: 4px;
      pointer-events: none;
    }

    .texture-preview-kicker {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(232,236,243,0.72);
    }

    .texture-preview-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    .asset-headers {
      position: absolute;
      top: 14px;
      left: 0;
      right: 0;
      height: 42px;
      z-index: 34;
      pointer-events: none;
    }

    .asset-header {
      position: absolute;
      top: 0;
      width: min(340px, calc(50vw - 32px));
      transform: translateX(-50%);
      pointer-events: auto;
      transition: left 0.15s ease, width 0.15s ease, opacity 0.15s ease;
    }

    .asset-header-shell {
      --asset-action-width: 102px;
      position: relative;
      display: block;
      width: 100%;
      padding: 5px 6px 5px 12px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 999px;
      background: rgba(23,26,33,0.86);
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 26px rgba(0,0,0,0.22);
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .asset-header-shell:hover,
    .asset-header-shell:focus-within {
      border-color: rgba(255,255,255,0.18);
      background: rgba(31,35,45,0.94);
      transform: translateY(-1px);
    }

    .asset-name-input {
      width: 100%;
      display: block;
      min-width: 0;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      text-align: left;
      padding: 5px calc(var(--asset-action-width) + 10px) 5px 2px;
      box-sizing: border-box;
      outline: none;
    }

    .asset-name-input::placeholder {
      color: rgba(152,162,179,0.9);
    }

    .asset-header-actions {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      gap: 6px;
      width: var(--asset-action-width);
      justify-content: flex-end;
      max-width: calc(100% - 12px);
    }

    .asset-header-action {
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.05);
      color: rgba(236,240,247,0.92);
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      border-radius: 999px;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }

    .asset-header-action:hover,
    .asset-header-action:focus-visible {
      border-color: rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.1);
      outline: none;
    }

    .asset-header-action:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      transform: none;
    }

    .asset-header-menu-toggle,
    .asset-header-download-toggle {
      width: 30px;
      height: 30px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .asset-header-ai-toggle {
      width: 30px;
      height: 30px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #f8f5ff;
      background: rgba(104,160,255,0.18);
      border-color: rgba(148,197,255,0.34);
    }

    .asset-header-ai-toggle:hover,
    .asset-header-ai-toggle:focus-visible {
      color: #ffffff;
      background: rgba(104,160,255,0.27);
      border-color: rgba(164,210,255,0.48);
    }

    body.ai-generation-hidden .asset-header-shell {
      --asset-action-width: 66px;
    }

    body.ai-generation-hidden .asset-header-ai-toggle {
      display: none;
    }

    .asset-header-menu-toggle.has-details {
      background: rgba(104,160,255,0.18);
      border-color: rgba(104,160,255,0.32);
      color: #e5efff;
    }

    .asset-header-menu-toggle svg,
    .asset-header-download-toggle svg,
    .asset-header-ai-toggle svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0.95;
    }

    .asset-header-download-toggle svg {
      width: 15px;
      height: 15px;
    }

    .asset-header-ai-toggle svg {
      width: 17px;
      height: 17px;
      stroke-width: 1.9;
      transform: translate(-1px, 1px);
    }

    .asset-ai-progress {
      margin: 6px auto 0;
      width: calc(100% - 22px);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(17,20,27,0.88);
      box-shadow: 0 10px 26px rgba(0,0,0,0.22);
      backdrop-filter: blur(10px);
      opacity: 0;
      transform: translateY(-4px);
      pointer-events: none;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .asset-ai-progress.show {
      opacity: 1;
      transform: translateY(0);
    }

    .asset-ai-progress-track {
      position: relative;
      height: 7px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255,255,255,0.1);
    }

    .asset-ai-progress-fill {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(104,160,255,0.92), rgba(121,219,255,0.95));
      box-shadow: 0 0 14px rgba(104,160,255,0.35);
      transition: width 0.18s ease;
    }

    .asset-ai-progress-label {
      color: #dce8ff;
      font-size: 10px;
      font-weight: 800;
      line-height: 1;
      min-width: 32px;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .asset-action-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: min(196px, calc(100vw - 28px));
      padding: 8px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(17,20,27,0.95);
      box-shadow: 0 18px 48px rgba(0,0,0,0.34);
      backdrop-filter: blur(12px);
      display: flex;
      flex-direction: column;
      gap: 6px;
      opacity: 0;
      transform: translateY(-6px);
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      z-index: 9;
    }

    .asset-action-menu.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .asset-action-menu::before {
      content: "";
      position: absolute;
      top: -6px;
      right: 13px;
      width: 12px;
      height: 12px;
      background: rgba(17,20,27,0.95);
      border-top: 1px solid rgba(255,255,255,0.1);
      border-left: 1px solid rgba(255,255,255,0.1);
      transform: rotate(45deg);
    }

    .asset-action-menu button {
      width: 100%;
      min-height: 38px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .asset-action-menu button:hover,
    .asset-action-menu button:focus-visible {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.16);
      outline: none;
      transform: translateY(-1px);
    }

    .asset-action-menu button:disabled {
      opacity: 0.46;
      cursor: not-allowed;
      transform: none;
    }

    .asset-action-menu button.destructive {
      color: #ffd7d7;
      background: rgba(255,107,107,0.1);
      border-color: rgba(255,107,107,0.18);
    }

    .asset-action-menu button svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: 0 0 auto;
      opacity: 0.95;
    }

    .asset-action-row {
      display: flex;
      align-items: stretch;
      gap: 6px;
    }

    .asset-action-row > button:first-child {
      flex: 1 1 auto;
    }

    .asset-action-inline-icon {
      width: 40px;
      min-width: 40px;
      justify-content: center;
      padding: 10px 0;
    }

    .asset-edit-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7,9,13,0.66);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 56;
      backdrop-filter: blur(10px);
    }

    .asset-edit-backdrop.show {
      display: flex;
    }

    .asset-edit-dialog {
      position: relative;
      width: min(560px, calc(100vw - 32px));
      max-height: calc(100vh - 32px);
      overflow-y: auto;
      overflow-x: hidden;
      border-radius: 24px;
      padding: 24px;
      background: rgba(17,20,27,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    }

    .asset-edit-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: rgba(236,240,247,0.92);
      font-size: 18px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .asset-edit-close:hover,
    .asset-edit-close:focus-visible {
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.18);
      outline: none;
    }

    .asset-edit-kicker {
      color: #9ab6ff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 10px;
      max-width: calc(100% - 46px);
      overflow-wrap: anywhere;
    }

    .asset-edit-dialog h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 800;
      color: #f4f7ff;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .asset-edit-dialog p {
      margin: 10px 0 18px;
      color: #b8c1d6;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    .asset-edit-form {
      display: grid;
      gap: 14px;
    }

    .asset-edit-section {
      display: grid;
      gap: 14px;
      min-width: 0;
    }

    .asset-edit-section.disabled {
      opacity: 0.56;
    }

    .asset-edit-field {
      display: grid;
      gap: 6px;
    }

    .asset-edit-field label,
    .asset-edit-checkbox span {
      font-size: 12px;
      font-weight: 700;
      color: #d9e4fb;
      letter-spacing: 0.02em;
    }

    .asset-edit-field input,
    .asset-edit-field select {
      width: 100%;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(10,13,18,0.92);
      color: var(--text);
      font: inherit;
      padding: 10px 12px;
      box-sizing: border-box;
    }

    .asset-edit-field select,
    .asset-download-field select,
    .asset-ai-field select {
      appearance: none;
      -webkit-appearance: none;
      padding-right: 40px;
      background-image:
        linear-gradient(45deg, transparent 50%, rgba(232,236,243,0.86) 50%),
        linear-gradient(135deg, rgba(232,236,243,0.86) 50%, transparent 50%);
      background-position:
        calc(100% - 19px) 50%,
        calc(100% - 13px) 50%;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    .asset-edit-field input:focus,
    .asset-edit-field select:focus {
      outline: none;
      border-color: rgba(104,160,255,0.5);
      box-shadow: 0 0 0 3px rgba(104,160,255,0.14);
    }

    .asset-edit-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .asset-edit-card {
      padding: 14px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.03);
      display: grid;
      gap: 10px;
    }

    .asset-edit-card h4 {
      margin: 0;
      font-size: 13px;
      color: #eef4ff;
    }

    .asset-edit-card p {
      margin: 0;
      font-size: 12px;
      color: #96a3bd;
      line-height: 1.5;
    }

    .asset-edit-help {
      font-size: 11px;
      color: #8fa0bf;
      line-height: 1.45;
    }

    .asset-edit-checkbox {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #d7e1f7;
    }

    .asset-edit-checkbox input {
      margin-top: 2px;
    }

    .asset-edit-engine-options {
      display: none;
    }

    .asset-edit-engine-options.show {
      display: block;
    }

    .asset-edit-progress {
      display: grid;
      gap: 10px;
    }

    .asset-edit-progress[hidden] {
      display: none;
    }

    .asset-edit-progress-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .asset-edit-progress-value {
      font-size: 12px;
      font-weight: 700;
      color: #dce8ff;
    }

    .asset-edit-progress-track {
      width: 100%;
      height: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
      position: relative;
    }

    .asset-edit-progress-fill {
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(104,160,255,0.72), rgba(136,212,255,0.92));
      box-shadow: 0 0 18px rgba(104,160,255,0.32);
      transition: width 0.14s ease;
    }

    .asset-edit-footer,
    .asset-download-footer,
    .asset-ai-footer,
    .share-delete-actions,
    .share-limit-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }

    .asset-edit-footer button,
    .asset-download-footer button,
    .asset-ai-footer button,
    .share-delete-actions button,
    .share-limit-actions button {
      min-width: 104px;
      padding: 10px 16px;
      border-radius: var(--radius-control);
      border: 1px solid var(--border-soft);
      background: var(--surface-soft);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .asset-edit-footer button:hover,
    .asset-edit-footer button:focus-visible,
    .asset-download-footer button:hover,
    .asset-download-footer button:focus-visible,
    .asset-ai-footer button:hover,
    .asset-ai-footer button:focus-visible,
    .share-delete-actions button:hover,
    .share-delete-actions button:focus-visible,
    .share-limit-actions button:hover,
    .share-limit-actions button:focus-visible {
      background: rgba(255,255,255,0.09);
      border-color: var(--border-strong);
      outline: none;
      transform: translateY(-1px);
    }

    .asset-edit-footer button.primary,
    .asset-download-footer button.primary,
    .asset-ai-footer button.primary,
    .share-limit-actions button {
      background: rgba(104,160,255,0.2);
      border-color: rgba(104,160,255,0.3);
      color: #f3f7ff;
    }

    .asset-edit-footer button:disabled,
    .asset-download-footer button:disabled,
    .asset-ai-footer button:disabled,
    .share-delete-actions button:disabled,
    .share-limit-actions button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }

    .asset-download-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7,9,13,0.66);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 57;
      backdrop-filter: blur(10px);
    }

    .asset-download-backdrop.show {
      display: flex;
    }

    .asset-download-dialog {
      position: relative;
      width: min(420px, calc(100vw - 32px));
      max-height: calc(100vh - 32px);
      overflow: auto;
      border-radius: 24px;
      padding: 24px;
      background: rgba(17,20,27,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    }

    .asset-download-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: rgba(236,240,247,0.92);
      font-size: 18px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .asset-download-close:hover,
    .asset-download-close:focus-visible {
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.18);
      outline: none;
    }

    .asset-download-kicker {
      color: #9ab6ff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .asset-download-dialog h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 800;
      color: #f4f7ff;
    }

    .asset-download-dialog p {
      margin: 10px 0 18px;
      color: #b8c1d6;
      line-height: 1.55;
    }

    .asset-download-form {
      display: grid;
      gap: 14px;
    }

    .asset-download-field {
      display: grid;
      gap: 6px;
    }

    .asset-download-field label,
    .asset-download-checkbox span {
      font-size: 12px;
      font-weight: 700;
      color: #d9e4fb;
      letter-spacing: 0.02em;
    }

    .asset-download-field select {
      width: 100%;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(10,13,18,0.92);
      color: var(--text);
      font: inherit;
      padding: 10px 40px 10px 12px;
      box-sizing: border-box;
    }

    .asset-download-field select:focus {
      outline: none;
      border-color: rgba(104,160,255,0.5);
      box-shadow: 0 0 0 3px rgba(104,160,255,0.14);
    }

    .asset-download-card {
      padding: 14px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.03);
      display: grid;
      gap: 10px;
    }

    .asset-download-card h4 {
      margin: 0;
      font-size: 13px;
      color: #eef4ff;
    }

    .asset-download-card p {
      margin: 0;
      font-size: 12px;
      color: #96a3bd;
      line-height: 1.5;
    }

    .asset-download-checkbox {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #d7e1f7;
    }

    .asset-download-checkbox input {
      margin-top: 2px;
    }

    .asset-download-footer button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }

    .asset-ai-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7,9,13,0.66);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 56;
      backdrop-filter: blur(10px);
    }

    .asset-ai-backdrop.show {
      display: flex;
    }

    .asset-ai-dialog {
      position: relative;
      width: min(460px, calc(100vw - 32px));
      max-height: calc(100vh - 32px);
      overflow-y: auto;
      overflow-x: hidden;
      border-radius: 24px;
      padding: 24px;
      background: rgba(17,20,27,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    }

    .asset-ai-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: rgba(236,240,247,0.92);
      font-size: 18px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .asset-ai-close:hover,
    .asset-ai-close:focus-visible {
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.18);
      outline: none;
    }

    .asset-ai-kicker {
      color: #9ab6ff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 10px;
      max-width: calc(100% - 46px);
      overflow-wrap: anywhere;
    }

    .asset-ai-dialog h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 800;
      color: #f4f7ff;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .asset-ai-dialog p {
      margin: 10px 0 18px;
      color: #b8c1d6;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    .asset-ai-form {
      display: grid;
      gap: 14px;
    }

    .asset-ai-field {
      display: grid;
      gap: 6px;
    }

    .asset-ai-field label {
      font-size: 12px;
      font-weight: 700;
      color: #d9e4fb;
      letter-spacing: 0.02em;
    }

    .asset-ai-field input,
    .asset-ai-field textarea,
    .asset-ai-field select {
      width: 100%;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(10,13,18,0.92);
      color: var(--text);
      font: inherit;
      padding: 10px 36px 10px 12px;
      box-sizing: border-box;
    }

    .asset-ai-field input,
    .asset-ai-field textarea {
      padding-right: 12px;
    }

    .asset-ai-field input:focus,
    .asset-ai-field textarea:focus,
    .asset-ai-field select:focus {
      outline: none;
      border-color: rgba(104,160,255,0.5);
      box-shadow: 0 0 0 3px rgba(104,160,255,0.14);
    }

    .asset-edit-field select,
    .asset-download-field select,
    .asset-ai-field select {
      appearance: none;
      -webkit-appearance: none;
      padding-right: 40px;
      background-color: rgba(10,13,18,0.92);
      background-image:
        linear-gradient(45deg, transparent 50%, rgba(232,236,243,0.86) 50%),
        linear-gradient(135deg, rgba(232,236,243,0.86) 50%, transparent 50%);
      background-position:
        calc(100% - 19px) 50%,
        calc(100% - 13px) 50%;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    .asset-ai-field textarea {
      min-height: 64px;
      resize: vertical;
      line-height: 1.35;
    }

    .asset-ai-help {
      font-size: 11px;
      color: #8fa0bf;
      line-height: 1.45;
    }

    .asset-ai-checkbox {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.035);
      color: #d7e1f7;
      font-size: 12px;
      line-height: 1.45;
    }

    .asset-ai-checkbox input {
      margin-top: 2px;
    }

    .asset-ai-footer button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }

    .ai-history-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7,9,13,0.66);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 58;
      backdrop-filter: blur(10px);
    }

    .ai-history-backdrop.show {
      display: flex;
    }

    .ai-history-dialog {
      position: relative;
      width: min(520px, calc(100vw - 32px));
      max-height: calc(100vh - 32px);
      overflow: hidden;
      border-radius: 24px;
      padding: 22px;
      background: rgba(17,20,27,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 28px 80px rgba(0,0,0,0.45);
      display: grid;
      gap: 14px;
    }

    .ai-history-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: rgba(236,240,247,0.92);
      font-size: 18px;
      cursor: pointer;
    }

    .ai-history-kicker {
      color: #9ab6ff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .ai-history-dialog h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 800;
      color: #f4f7ff;
    }

    .ai-history-list {
      max-height: min(560px, calc(100vh - 170px));
      overflow: auto;
      display: grid;
      gap: 8px;
      padding-right: 2px;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: rgba(104,160,255,0.52) rgba(255,255,255,0.05);
    }

    .ai-history-list::-webkit-scrollbar {
      width: 10px;
    }

    .ai-history-list::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.05);
      border-radius: 999px;
    }

    .ai-history-list::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: rgba(104,160,255,0.58);
      background-clip: content-box;
    }

    .ai-history-list::-webkit-scrollbar-thumb:hover {
      background: rgba(137,181,255,0.76);
      background-clip: content-box;
    }

    .asset-edit-dialog,
    .asset-details-dialog,
    .asset-download-dialog,
    .asset-ai-dialog,
    .asset-library-list,
    .asset-details-popover-body,
    .share-dialog-backdrop,
    .share-library-list {
      scrollbar-width: thin;
      scrollbar-color: rgba(104,160,255,0.52) rgba(255,255,255,0.05);
    }

    .asset-edit-dialog::-webkit-scrollbar,
    .asset-details-dialog::-webkit-scrollbar,
    .asset-download-dialog::-webkit-scrollbar,
    .asset-ai-dialog::-webkit-scrollbar,
    .asset-library-list::-webkit-scrollbar,
    .asset-details-popover-body::-webkit-scrollbar,
    .share-dialog-backdrop::-webkit-scrollbar,
    .share-library-list::-webkit-scrollbar {
      width: 10px;
    }

    .asset-edit-dialog::-webkit-scrollbar-track,
    .asset-details-dialog::-webkit-scrollbar-track,
    .asset-download-dialog::-webkit-scrollbar-track,
    .asset-ai-dialog::-webkit-scrollbar-track,
    .asset-library-list::-webkit-scrollbar-track,
    .asset-details-popover-body::-webkit-scrollbar-track,
    .share-dialog-backdrop::-webkit-scrollbar-track,
    .share-library-list::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.05);
      border-radius: 999px;
    }

    .asset-edit-dialog::-webkit-scrollbar-thumb,
    .asset-details-dialog::-webkit-scrollbar-thumb,
    .asset-download-dialog::-webkit-scrollbar-thumb,
    .asset-ai-dialog::-webkit-scrollbar-thumb,
    .asset-library-list::-webkit-scrollbar-thumb,
    .asset-details-popover-body::-webkit-scrollbar-thumb,
    .share-dialog-backdrop::-webkit-scrollbar-thumb,
    .share-library-list::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: rgba(104,160,255,0.58);
      background-clip: content-box;
    }

    .asset-edit-dialog::-webkit-scrollbar-thumb:hover,
    .asset-details-dialog::-webkit-scrollbar-thumb:hover,
    .asset-download-dialog::-webkit-scrollbar-thumb:hover,
    .asset-ai-dialog::-webkit-scrollbar-thumb:hover,
    .asset-library-list::-webkit-scrollbar-thumb:hover,
    .asset-details-popover-body::-webkit-scrollbar-thumb:hover,
    .share-dialog-backdrop::-webkit-scrollbar-thumb:hover,
    .share-library-list::-webkit-scrollbar-thumb:hover {
      background: rgba(137,181,255,0.76);
      background-clip: content-box;
    }

    .ai-history-empty {
      padding: 16px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: #9aa7bf;
      font-size: 12px;
      line-height: 1.5;
    }

    .ai-history-item {
      width: 100%;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      text-align: left;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .ai-history-item:hover,
    .ai-history-item:focus-visible {
      background: rgba(255,255,255,0.08);
      border-color: rgba(104,160,255,0.26);
      outline: none;
      transform: translateY(-1px);
    }

    .ai-history-icon {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: rgba(0,0,0,0.34);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #9ab6ff;
      font-size: 13px;
      font-weight: 900;
      border: 1px solid rgba(255,255,255,0.06);
    }

    .ai-history-main {
      min-width: 0;
      display: grid;
      overflow: hidden;
    }

    .ai-history-title {
      display: block;
      min-width: 0;
      font-size: 12px;
      font-weight: 800;
      color: #eef4ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ai-history-subtitle {
      display: block;
      min-width: 0;
      margin-top: 3px;
      font-size: 10px;
      color: #9aa7bf;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ai-history-subtitle:empty {
      display: none;
    }

    .ai-history-meta {
      display: grid;
      justify-items: end;
      gap: 5px;
      min-width: 72px;
    }

    .ai-history-status {
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #c8d5ec;
    }

    .ai-history-status.completed {
      color: #8cf0b2;
    }

    .ai-history-status.failed {
      color: #ff9c9c;
    }

    .ai-history-status.processing {
      color: #b7c9ff;
    }

    .ai-history-time {
      font-size: 9px;
      color: #78869e;
      white-space: nowrap;
    }

    .ai-history-progress {
      grid-column: 2 / 4;
      height: 4px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
    }

    .ai-history-progress span {
      display: block;
      height: 100%;
      width: 0%;
      border-radius: inherit;
      background: rgba(104,160,255,0.86);
      transition: width 0.18s ease;
    }

    .asset-library-backdrop {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(7,9,13,0.66);
      backdrop-filter: blur(10px);
    }

    .asset-library-backdrop.show {
      display: flex;
    }

    .asset-library-dialog {
      position: relative;
      width: min(640px, calc(100vw - 32px));
      max-height: calc(100vh - 32px);
      overflow: hidden;
      border-radius: 8px;
      padding: 22px;
      background: rgba(17,20,27,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 28px 80px rgba(0,0,0,0.45);
      display: grid;
      gap: 12px;
      color: var(--text);
    }

    .asset-library-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: rgba(236,240,247,0.92);
      font-size: 18px;
      cursor: pointer;
    }

    .asset-library-close:hover,
    .asset-library-close:focus-visible {
      background: rgba(255,255,255,0.09);
      outline: none;
    }

    .asset-library-kicker {
      color: #9ab6ff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .asset-library-dialog h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 800;
      color: #f4f7ff;
    }

    .asset-library-usage {
      min-height: 34px;
      padding: 8px 10px;
      border-radius: 8px;
      background: rgba(104,160,255,0.1);
      border: 1px solid rgba(104,160,255,0.18);
      color: #dce8ff;
      font-size: 12px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      width: fit-content;
    }

    .share-library-usage {
      cursor: pointer;
    }

    .share-library-usage:hover,
    .share-library-usage:focus-visible {
      border-color: rgba(104,160,255,0.34);
      background: rgba(104,160,255,0.16);
      outline: none;
    }

    .asset-library-list {
      max-height: min(560px, calc(100vh - 190px));
      overflow: auto;
      display: grid;
      gap: 8px;
      padding-right: 2px;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: rgba(104,160,255,0.52) rgba(255,255,255,0.05);
    }

    .asset-library-empty {
      padding: 16px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: #9aa7bf;
      font-size: 12px;
      line-height: 1.5;
    }

    .asset-library-item {
      width: 100%;
      min-width: 0;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) 38px 38px;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .asset-library-item:hover,
    .asset-library-item:focus-visible {
      background: rgba(255,255,255,0.08);
      border-color: rgba(104,160,255,0.26);
      outline: none;
      transform: translateY(-1px);
    }

    .asset-library-preview {
      width: 58px;
      height: 58px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(0,0,0,0.34);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      color: #9ab6ff;
      font-size: 10px;
      font-weight: 900;
      text-align: center;
      padding: 4px;
    }

    .asset-library-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .asset-library-main {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

    .asset-library-main strong,
    .asset-library-main span {
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .asset-library-main strong {
      font-size: 13px;
      color: #eef4ff;
    }

    .asset-library-main span {
      font-size: 11px;
      color: #9aa7bf;
    }

    .asset-library-download,
    .asset-library-delete {
      width: 36px;
      min-height: 36px;
      padding: 0;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255,107,107,0.24);
      background: rgba(255,107,107,0.1);
      color: #ffd1d1;
      cursor: pointer;
    }

    .asset-library-download {
      border-color: rgba(104,160,255,0.24);
      background: rgba(104,160,255,0.1);
      color: #dce8ff;
    }

    .asset-library-download:hover,
    .asset-library-download:focus-visible,
    .asset-library-delete:hover,
    .asset-library-delete:focus-visible {
      filter: brightness(1.06);
      outline: none;
    }

    .asset-library-download:disabled,
    .asset-library-delete:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .asset-library-download svg,
    .asset-library-delete svg {
      width: 22px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.75;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .asset-delete-modal {
      position: absolute;
      inset: 0;
      z-index: 62;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(6,8,12,0.64);
      backdrop-filter: blur(8px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
    }

    .asset-delete-modal.show {
      opacity: 1;
      pointer-events: auto;
    }

    .asset-delete-card {
      width: min(360px, 100%);
      padding: 18px;
      border-radius: 8px;
      background: rgba(23,26,33,0.98);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 24px 80px rgba(0,0,0,0.38);
    }

    .asset-delete-card h4 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .asset-delete-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .asset-delete-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 16px;
    }

    .asset-delete-actions button {
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      padding: 10px 14px;
      border-radius: 8px;
      cursor: pointer;
    }

    .asset-delete-actions button.destructive {
      border-color: rgba(255,107,107,0.3);
      background: rgba(255,107,107,0.14);
      color: #ffd7d7;
    }

    @media (min-width: 1101px) {
      .ai-history-backdrop {
        align-items: flex-start;
        justify-content: flex-end;
        padding: 68px 14px 16px;
        background: transparent;
        backdrop-filter: none;
        pointer-events: none;
      }

      .ai-history-dialog {
        width: min(430px, calc(100vw - 28px));
        height: calc(100vh - 84px);
        max-height: calc(100vh - 84px);
        border-radius: 8px;
        padding: 18px;
        background: rgba(17,20,27,0.93);
        backdrop-filter: blur(14px);
        pointer-events: auto;
        grid-template-rows: auto auto minmax(0, 1fr);
      }

      .ai-history-list {
        min-height: 0;
        max-height: none;
        padding-right: 6px;
      }
    }

    .asset-details-popover {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: min(320px, calc(100vw - 28px));
      padding: 14px 15px 15px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(17,20,27,0.94);
      box-shadow: 0 18px 48px rgba(0,0,0,0.34);
      backdrop-filter: blur(12px);
      color: #eef3ff;
      opacity: 0;
      transform: translateY(-6px);
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      z-index: 8;
    }

    .asset-details-popover.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .asset-details-popover::before {
      content: "";
      position: absolute;
      top: -6px;
      right: 14px;
      width: 12px;
      height: 12px;
      background: rgba(17,20,27,0.94);
      border-top: 1px solid rgba(255,255,255,0.1);
      border-left: 1px solid rgba(255,255,255,0.1);
      transform: rotate(45deg);
    }

    .asset-details-popover-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .asset-details-popover-title {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #9ab6ff;
    }

    .asset-details-popover-state {
      font-size: 11px;
      font-weight: 700;
      color: #7f8aa2;
    }

    .asset-details-popover-body {
      margin: 0;
      font-size: 12px;
      line-height: 1.55;
      color: #dce4f7;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      max-height: min(280px, 42vh);
      overflow: auto;
    }

    .asset-details-popover-body.is-empty {
      color: #95a0b7;
      font-style: italic;
    }

    .asset-details-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7,9,13,0.66);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 55;
      backdrop-filter: blur(10px);
    }

    .asset-details-backdrop.show {
      display: flex;
    }

    .asset-details-dialog {
      position: relative;
      width: min(520px, calc(100vw - 32px));
      border-radius: 24px;
      padding: 24px;
      background: rgba(17,20,27,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    }

    .asset-details-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: rgba(236,240,247,0.92);
      font-size: 18px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .asset-details-close:hover,
    .asset-details-close:focus-visible {
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.18);
      outline: none;
    }

    .asset-details-kicker {
      color: #9ab6ff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .asset-details-dialog h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 800;
      color: #f4f7ff;
    }

    .asset-details-dialog p {
      margin: 10px 0 16px;
      color: #b8c1d6;
      line-height: 1.5;
    }

    .asset-details-input {
      width: 100%;
      min-height: 180px;
      resize: vertical;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(10,13,18,0.92);
      color: var(--text);
      font: inherit;
      line-height: 1.5;
      padding: 16px 18px;
      box-sizing: border-box;
    }

    .asset-details-input:focus {
      outline: none;
      border-color: rgba(104,160,255,0.5);
      box-shadow: 0 0 0 3px rgba(104,160,255,0.14);
    }

    .asset-details-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 16px;
    }

    .asset-details-meta {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .asset-details-triangles,
    .asset-details-count {
      color: #8e98ad;
      font-size: 12px;
      font-weight: 700;
    }

    .asset-details-actions {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .asset-details-actions button {
      min-width: 92px;
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.05);
      color: var(--text);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .asset-details-actions button:hover,
    .asset-details-actions button:focus-visible {
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.18);
      outline: none;
      transform: translateY(-1px);
    }

    .asset-details-actions button.primary {
      background: rgba(104,160,255,0.2);
      border-color: rgba(104,160,255,0.3);
      color: #f3f7ff;
    }

    .top-actions {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 36;
      display: inline-flex;
      gap: 8px;
      align-items: center;
    }

    .home-actions {
      position: absolute;
      top: 14px;
      left: 14px;
      z-index: 36;
      display: inline-flex;
      gap: 8px;
      align-items: center;
      transition:
        top 0.2s ease,
        left 0.2s ease,
        transform 0.2s ease;
    }

    .top-action-row {
      display: flex;
      justify-content: center;
      gap: 8px;
      align-items: center;
    }

    .top-actions button,
    .top-actions a.top-action-auth,
    .home-actions a.top-action-auth,
    .view-action-row button {
      border: 1px solid var(--border-soft);
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)), var(--surface);
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      padding: 10px 14px;
      border-radius: var(--radius-control);
      cursor: pointer;
      text-decoration: none;
      backdrop-filter: blur(10px);
      box-shadow: var(--shadow-soft);
      transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    }

    .top-actions .top-action-icon,
    .view-action-row .top-action-icon {
      width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .top-action-auth {
      width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    #communityBtn {
      transition:
        width 0.2s ease,
        min-width 0.2s ease,
        height 0.2s ease,
        padding 0.2s ease,
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease;
    }

    #communityBtn span {
      display: none;
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
    }

    body.mode-single.no-primary-model .home-actions {
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
    }

    body.mode-single.no-primary-model #communityBtn {
      width: auto;
      min-width: 152px;
      height: 54px;
      padding: 0 19px;
      gap: 10px;
      border-color: rgba(104,160,255,0.34);
      background: linear-gradient(180deg, rgba(104,160,255,0.2), rgba(104,160,255,0.1)), rgba(17,20,27,0.88);
      box-shadow: 0 18px 48px rgba(0,0,0,0.32);
    }

    body.mode-single.no-primary-model #communityBtn span {
      display: inline;
    }

    body.mode-single.no-primary-model #communityBtn svg {
      width: 25px;
      height: 25px;
    }

    body.mode-single.no-primary-model #communityBtn:hover,
    body.mode-single.no-primary-model #communityBtn:focus-visible {
      transform: translateY(-2px);
    }

    .lighting-menu-wrap {
      position: relative;
      display: inline-flex;
    }

    .lighting-menu {
      --lighting-panel-drag-x: 0px;
      --lighting-panel-drag-y: 0px;
      --lighting-panel-open-y: 6px;
      position: fixed;
      right: 14px;
      bottom: 86px;
      width: min(318px, calc(100vw - 24px));
      padding: 10px;
      border-radius: 8px;
      background: rgba(17,20,27,0.97);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 18px 46px rgba(0,0,0,0.38);
      backdrop-filter: blur(14px);
      transform: translate(var(--lighting-panel-drag-x), calc(var(--lighting-panel-drag-y) + var(--lighting-panel-open-y)));
      opacity: 0;
      pointer-events: none;
      display: grid;
      gap: 9px;
      z-index: 45;
      transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }

    .lighting-menu.show {
      --lighting-panel-open-y: 0px;
      opacity: 1;
      pointer-events: auto;
    }

    .lighting-menu.dragging {
      cursor: grabbing;
      user-select: none;
      transition: opacity 0.16s ease;
    }

    .lighting-menu.attention {
      animation: lighting-panel-attention 0.86s ease both;
    }

    .lighting-menu-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 28px;
      color: #e7eefc;
      font-size: 12px;
      font-weight: 900;
      cursor: grab;
      touch-action: none;
      user-select: none;
    }

    @keyframes lighting-panel-attention {
      0% {
        border-color: rgba(104,160,255,0.24);
        box-shadow: 0 18px 46px rgba(0,0,0,0.38), 0 0 0 rgba(104,160,255,0);
      }
      28% {
        border-color: rgba(136,185,255,0.78);
        box-shadow: 0 18px 46px rgba(0,0,0,0.38), 0 0 0 4px rgba(104,160,255,0.16), 0 0 30px rgba(104,160,255,0.28);
      }
      100% {
        border-color: rgba(255,255,255,0.12);
        box-shadow: 0 18px 46px rgba(0,0,0,0.38), 0 0 0 rgba(104,160,255,0);
      }
    }

    .view-action-row .lighting-menu .lighting-close-btn {
      width: 28px;
      height: 28px;
      min-height: 28px;
      padding: 0;
      border-radius: 999px;
      color: #c6d3e9;
      font-size: 18px;
      line-height: 1;
    }

    .lighting-menu-section {
      display: grid;
      grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
      gap: 7px;
    }

    .lighting-segment {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      gap: 3px;
      padding: 3px;
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .view-action-row .lighting-menu button,
    .view-action-row .lighting-menu input {
      box-shadow: none;
      backdrop-filter: none;
    }

    .view-action-row .lighting-menu button {
      min-height: 28px;
      padding: 6px 8px;
      border-radius: 6px;
      background: transparent;
      border-color: transparent;
      color: #b9c6dc;
      font-size: 11px;
      font-weight: 800;
      transform: none;
    }

    .view-action-row .lighting-menu button:hover,
    .view-action-row .lighting-menu button:focus-visible {
      background: rgba(255,255,255,0.075);
      border-color: rgba(255,255,255,0.1);
      outline: none;
      transform: none;
    }

    .view-action-row .lighting-menu button.active,
    .view-action-row .lighting-menu .lighting-light-item.selected .lighting-light-select {
      background: rgba(104,160,255,0.2);
      border-color: rgba(104,160,255,0.26);
      color: #eef5ff;
    }

    .view-action-row .lighting-menu .lighting-power-btn {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
      color: #e8eefb;
    }

    .view-action-row .lighting-menu .lighting-power-btn.active {
      background: rgba(88,194,125,0.18);
      border-color: rgba(88,194,125,0.3);
      color: #ecfff4;
    }

    .lighting-global-controls {
      display: grid;
      gap: 7px;
      padding: 7px 8px;
      border-radius: 8px;
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.075);
    }

    .lighting-global-control {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      color: #9fb1cf;
      font-size: 10px;
      font-weight: 800;
    }

    .lighting-global-control span {
      display: flex;
      justify-content: space-between;
      gap: 6px;
      white-space: nowrap;
    }

    .lighting-global-control output {
      color: #e9f1ff;
      font-variant-numeric: tabular-nums;
    }

    .view-action-row .lighting-menu .lighting-global-control input {
      width: 100%;
      height: 20px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .lighting-light-list {
      display: grid;
      gap: 5px;
      max-height: 176px;
      overflow: auto;
      padding-right: 1px;
    }

    .lighting-light-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 42px 34px 28px;
      gap: 5px 5px;
      align-items: center;
      padding-bottom: 4px;
    }

    .view-action-row .lighting-menu .lighting-light-select {
      justify-content: flex-start;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      text-align: left;
    }

    .lighting-light-select span:last-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .lighting-light-swatch {
      width: 13px;
      height: 13px;
      flex: 0 0 13px;
      border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.38), 0 0 12px currentColor;
    }

    .view-action-row .lighting-menu .lighting-light-toggle {
      padding-right: 0;
      padding-left: 0;
    }

    .view-action-row .lighting-menu .lighting-color-button {
      width: 34px;
      height: 28px;
      min-height: 28px;
      padding: 0;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06);
      cursor: pointer;
      display: grid;
      place-items: center;
    }

    .view-action-row .lighting-menu .lighting-color-button.active {
      background: rgba(104,160,255,0.2);
      border-color: rgba(104,160,255,0.32);
    }

    .lighting-color-dialog {
      display: none;
      position: absolute;
      top: var(--lighting-color-dialog-top, 0px);
      left: var(--lighting-color-dialog-left, 0px);
      width: 220px;
      gap: 9px;
      padding: 9px;
      border-radius: 8px;
      background: rgba(17,20,27,0.97);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 18px 46px rgba(0,0,0,0.32);
      backdrop-filter: blur(14px);
      z-index: 46;
    }

    .lighting-color-dialog.show {
      display: grid;
    }

    .lighting-color-dialog-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: #e7eefc;
      font-size: 11px;
      font-weight: 900;
    }

    .view-action-row .lighting-menu .lighting-color-dialog-header button {
      width: 26px;
      height: 26px;
      min-height: 26px;
      padding: 0;
      border-radius: 999px;
      font-size: 17px;
      line-height: 1;
    }

    .lighting-dialog-color-input {
      width: 100%;
      height: 34px;
      padding: 3px;
      border-radius: 7px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.065);
      cursor: pointer;
    }

    .lighting-dialog-color-input::-webkit-color-swatch-wrapper {
      padding: 0;
    }

    .lighting-dialog-color-input::-webkit-color-swatch {
      border: 0;
      border-radius: 4px;
    }

    .view-action-row .lighting-menu .lighting-light-delete {
      min-width: 28px;
      padding: 0;
      color: #ffbbc6;
    }

    .lighting-dialog-intensity-control,
    .lighting-dialog-range-control,
    .lighting-dialog-shadow-control {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      color: #9fb1cf;
      font-size: 10px;
      font-weight: 800;
    }

    .lighting-dialog-range-control,
    .lighting-dialog-shadow-control {
      display: none;
    }

    .lighting-dialog-range-control.show,
    .lighting-dialog-shadow-control.show {
      display: grid;
    }

    .lighting-dialog-intensity-control span,
    .lighting-dialog-range-control span,
    .lighting-dialog-shadow-control span {
      display: flex;
      justify-content: space-between;
      gap: 6px;
      white-space: nowrap;
    }

    .lighting-dialog-intensity-control output,
    .lighting-dialog-range-control output {
      color: #e9f1ff;
      font-variant-numeric: tabular-nums;
    }

    .view-action-row .lighting-menu .lighting-dialog-intensity-control input,
    .view-action-row .lighting-menu .lighting-dialog-range-control input {
      width: 100%;
      height: 20px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .view-action-row .lighting-menu .lighting-dialog-shadow-control input {
      justify-self: start;
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .lighting-menu-footer {
      display: grid;
      grid-template-columns: 0.72fr 1fr;
      gap: 6px;
    }

    .view-action-row .lighting-menu .lighting-add-btn,
    .view-action-row .lighting-menu .lighting-reset-btn {
      width: 100%;
      background: rgba(255,255,255,0.065);
      border-color: rgba(255,255,255,0.1);
      color: #edf4ff;
    }

    .view-action-row .lighting-menu .lighting-reset-btn {
      color: #cbd7eb;
    }

    .lighting-empty {
      min-height: 32px;
      display: grid;
      place-items: center;
      color: #8c9ab0;
      font-size: 11px;
      font-weight: 700;
    }

    .share-like-btn {
      width: auto;
      min-width: 54px;
      gap: 6px;
      padding: 0 11px;
      color: #f0f5ff;
    }

    .share-like-btn svg {
      width: 17px;
      height: 17px;
      stroke-width: 2;
    }

    .share-like-btn span {
      min-width: 1ch;
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
    }

    #shareBtn svg {
      width: 25px;
      height: 25px;
    }

    .share-like-btn.active {
      background: rgba(255,88,125,0.2);
      border-color: rgba(255,128,156,0.42);
      color: #ffd8e2;
    }

    .profile-menu-wrap {
      position: relative;
      display: inline-flex;
    }

    .profile-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 148px;
      padding: 6px;
      border-radius: 8px;
      background: rgba(18,21,28,0.96);
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 18px 44px rgba(0,0,0,0.34);
      backdrop-filter: blur(12px);
      display: none;
      z-index: 38;
    }

    .profile-menu.show {
      display: grid;
      gap: 4px;
    }

    .top-actions .profile-menu button {
      width: 100%;
      min-height: 34px;
      padding: 8px 10px;
      border-radius: 8px;
      background: transparent;
      border: 1px solid transparent;
      box-shadow: none;
      color: #e9f0fb;
      display: flex;
      justify-content: flex-start;
      text-align: left;
      font-size: 12px;
    }

    .top-actions .profile-menu button:hover,
    .top-actions .profile-menu button:focus-visible {
      transform: none;
      background: rgba(255,255,255,0.07);
      border-color: rgba(255,255,255,0.1);
      outline: none;
    }

    .view-action-meta {
      min-height: 24px;
      max-width: 176px;
      padding: 5px 9px;
      border-radius: 8px;
      background: rgba(0,0,0,0.48);
      border: 1px solid rgba(255,255,255,0.08);
      color: #9fb1cf;
      font-size: 10px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: 0.02em;
      text-align: center;
      text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 0 10px rgba(0,0,0,0.82);
      white-space: nowrap;
      opacity: 0;
      transform: translateY(-2px);
      transition: opacity 0.18s ease, transform 0.18s ease;
      pointer-events: none;
    }

    .view-action-meta.show {
      opacity: 1;
      transform: translateY(0);
    }

    .top-actions .top-action-icon svg,
    .view-action-row .top-action-icon svg,
    .top-action-auth svg {
      width: 28px;
      height: 28px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0.92;
    }

    .view-action-row .top-action-icon svg {
      width: 22px;
      height: 22px;
      stroke-width: 2;
    }

    .top-action-auth.share-like-btn svg {
      width: 17px;
      height: 17px;
      stroke-width: 2;
    }

    .share-like-btn.active svg {
      fill: currentColor;
      stroke: currentColor;
    }

    .top-actions .top-action-icon.active,
    .top-actions .top-action-auth.active,
    .view-action-row .top-action-icon.active {
      background: rgba(104,160,255,0.2);
      border-color: rgba(104,160,255,0.32);
      color: #e5efff;
    }

    .top-actions .share-like-btn.active {
      background: rgba(255,88,125,0.2);
      border-color: rgba(255,128,156,0.42);
      color: #ffd8e2;
    }

    .top-actions button:hover,
    .top-actions a.top-action-auth:hover,
    .top-actions a.top-action-auth:focus-visible,
    .home-actions a.top-action-auth:hover,
    .home-actions a.top-action-auth:focus-visible,
    .view-action-row button:hover {
      transform: translateY(-1px);
      background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)), rgba(32,37,47,0.96);
      border-color: var(--border-strong);
    }

    .top-actions button:disabled,
    .view-action-row button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }

    .drop-hint {
      position: absolute;
      top: 16px;
      bottom: 168px;
      width: 0;
      border: 2px dashed rgba(104,160,255,0.45);
      border-radius: 20px;
      background: rgba(104,160,255,0.08);
      display: flex;
      align-items: flex-start;
      justify-content: center;
      text-align: center;
      padding: clamp(34px, 8vh, 72px) 16px 16px;
      color: #d7e4ff;
      z-index: 40;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
      backdrop-filter: blur(6px);
    }
    .drop-hint.active {
      background: rgba(104,160,255,0.15);
      border-color: rgba(104,160,255,0.8);
      box-shadow: 0 0 0 1px rgba(104,160,255,0.2) inset;
    }

    #dropCenter {
      display: none;
    }

    #comparePane { display: none; }
    body.mode-single #splitPane { display: flex; }
    body.mode-single #splitPane .half[data-side="left"] {
      width: 100%;
      border-right: none;
    }
    body.mode-single #splitPane .half[data-side="right"],
    body.mode-single #comparePane,
    body.mode-single #assetHeaderRight,
    body.mode-single .texture-panel[data-side="right"],
    body.mode-single .mode-switch {
      display: none;
    }

    body.mode-single #dropCenter {
      display: flex;
    }

    body.mode-single:not(.can-add-comparison-drop) #dropLeft,
    body.mode-single:not(.can-add-comparison-drop) #dropRight {
      display: none;
    }
    body.mode-single #bottomBar {
      grid-template-columns: minmax(0, 1fr) auto;
    }
    body.materials-ui-hidden #bottomBar,
    body.mode-single.materials-ui-hidden #bottomBar {
      grid-template-columns: auto;
      justify-content: center;
      min-height: 54px;
    }
    body.materials-ui-hidden .material-tabs,
    body.materials-ui-hidden .texture-panel {
      display: none;
    }
    body.materials-ui-hidden .view-mode-group {
      grid-column: 1;
      justify-self: center;
    }
    body.mode-compare #comparePane { display: block; }
    body.mode-compare #splitPane { display: none; }
    body.mode-split #splitPane { display: flex; }
    body.mode-split #comparePane { display: none; }

    #compareStack {
      position: absolute;
      inset: 0;
      touch-action: none;
    }

    .compare-layer {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    #compareLeftLayer { z-index: 1; }
    #compareRightLayer {
      z-index: 2;
      clip-path: inset(0 0 0 50%);
    }

    #compareSlider {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 30px;
      left: calc(50% - 15px);
      z-index: 20;
      display: flex;
      justify-content: center;
      align-items: stretch;
      cursor: ew-resize;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
    }

    #compareSlider::before {
      content: "";
      width: 2px;
      background: rgba(255,255,255,0.75);
      box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
    }

    .swap-assets-btn {
      position: absolute;
      top: 14px;
      left: 50%;
      z-index: 35;
      width: 40px;
      height: 40px;
      padding: 0;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px;
      background: rgba(23,26,33,0.88);
      color: var(--text);
      display: none;
      align-items: center;
      justify-content: center;
      transform: translateX(-50%);
      cursor: pointer;
      touch-action: none;
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 28px rgba(0,0,0,0.26);
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
    }

    body.mode-compare .swap-assets-btn,
    body.mode-split .swap-assets-btn {
      display: inline-flex;
    }

    .swap-assets-btn:hover,
    .swap-assets-btn:focus-visible {
      outline: none;
      background: rgba(32,37,47,0.96);
      border-color: rgba(255,255,255,0.2);
      transform: translateX(-50%) translateY(-1px);
    }

    .swap-assets-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: translateX(-50%);
    }

    .swap-assets-btn svg {
      width: 19px;
      height: 19px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    #compareKnob {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 34px;
      height: 34px;
      border-radius: 999px;
      background: rgba(23,26,33,0.92);
      border: 1px solid rgba(255,255,255,0.15);
      box-shadow: 0 8px 20px rgba(0,0,0,0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--text);
      backdrop-filter: blur(8px);
      user-select: none;
      -webkit-user-select: none;
      pointer-events: none;
    }

    #bottomBar {
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 12px;
      min-height: 108px;
      z-index: 30;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 12px;
      align-items: end;
      pointer-events: none;
    }

    .texture-panel,
    .mode-switch,
    .view-mode-group,
    .status-bar {
      pointer-events: auto;
    }

    .texture-panel,
    .mode-switch,
    .view-mode-group {
      position: relative;
      z-index: 1;
    }

    .texture-panel {
      padding: 12px 40px;
      border-radius: 18px;
      background: rgba(23,26,33,0.9);
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.22);
      opacity: 0.95;
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .material-page-btn {
      position: absolute;
      top: 50%;
      z-index: 4;
      width: 28px;
      height: 52px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 999px;
      background: rgba(10,14,20,0.68);
      color: rgba(232,236,243,0.88);
      font: inherit;
      font-size: 25px;
      font-family: Georgia, "Times New Roman", serif;
      line-height: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 0 3px;
      cursor: pointer;
      transform: translateY(-50%);
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    }

    .material-page-btn:hover,
    .material-page-btn:focus-visible {
      outline: none;
      background: rgba(32,37,47,0.96);
      border-color: rgba(255,255,255,0.2);
      color: #ffffff;
      transform: translateY(-50%) scale(1.04);
    }

    .material-page-btn:disabled {
      opacity: 0.24;
      cursor: default;
      pointer-events: none;
    }

    .material-page-btn-prev {
      left: 7px;
    }

    .material-page-btn-next {
      right: 7px;
    }

    .texture-panel h3 {
      margin: 0 0 8px 0;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.02em;
      line-height: 1.3;
      white-space: normal;
      overflow-wrap: anywhere;
      min-width: 0;
    }

    .slot-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
      gap: 4px;
    }

    body[data-material-page="0"] .tex-slot[data-map="emissiveMap"],
    body[data-material-page="0"] .tex-slot[data-map="aoMap"],
    body[data-material-page="0"] .tex-slot[data-map="heightMap"],
    body[data-material-page="1"] .tex-slot[data-map="map"],
    body[data-material-page="1"] .tex-slot[data-map="metalnessRoughness"],
    body[data-material-page="1"] .tex-slot[data-map="normalMap"] {
      display: none;
    }

    .tex-slot {
      min-height: 76px;
      width: 100%;
      position: relative;
      border-radius: 12px;
      border: 1px dashed rgba(255,255,255,0.14);
      background: var(--slot-bg);
      color: var(--muted);
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      text-align: left;
      gap: 0;
      padding: 8px 1px 8px 78px;
      font-family: inherit;
      font-size: 11px;
      user-select: none;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      outline: none;
      box-shadow: inset 0 0 0 0 rgba(104,160,255,0);
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }

    .tex-slot-thumb {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 70px;
      height: 70px;
      flex: none;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08);
      background:
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
        rgba(255,255,255,0.03);
      background-size: 16px 16px;
      background-position: 0 0, 8px 8px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(232,236,243,0.5);
      font-size: 18px;
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .tex-slot-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
      transition: opacity 0.55s ease;
    }

    .tex-slot-thumb img:not([src]) {
      visibility: hidden;
    }

    .tex-slot.filled .tex-slot-thumb img {
      display: block;
    }

    .tex-slot.filled .tex-slot-thumb span {
      display: none;
    }

    .tex-slot-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      flex: 1 1 auto;
      max-width: calc(100% - 18px);
      padding-top: 0;
      padding-right: 0;
      padding-left: 0;
    }

    .tex-slot-enable-toggle {
      position: absolute;
      right: 8px;
      top: 7px;
      min-width: 34px;
      height: 22px;
      padding: 0 8px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 999px;
      background: rgba(23,26,33,0.88);
      color: rgba(232,236,243,0.9);
      font: inherit;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      z-index: 2;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }

    .tex-slot-enable-toggle:hover,
    .tex-slot-enable-toggle:focus-visible {
      background: rgba(32,37,47,0.96);
      border-color: rgba(255,255,255,0.18);
      outline: none;
      transform: translateY(-1px);
    }

    .tex-slot.disabled {
      border-color: rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.035);
    }

    .tex-slot.disabled .tex-slot-thumb img {
      opacity: 0.3;
      filter: grayscale(0.28);
    }

    .tex-slot.disabled .tex-slot-label,
    .tex-slot.disabled .tex-slot-hint {
      color: rgba(232,236,243,0.58);
    }

    .tex-slot.disabled .tex-slot-enable-toggle {
      background: rgba(255,107,107,0.12);
      border-color: rgba(255,107,107,0.24);
      color: #ffd7d7;
    }

    .tex-slot-label {
      font-weight: 700;
      color: var(--text);
      font-size: 11px;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tex-slot-hint {
      color: var(--muted);
      white-space: normal;
      overflow-wrap: anywhere;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.5em;
    }

    .material-tabs {
      display: none;
      width: min(94vw, 720px);
      padding: 6px;
      border-radius: 18px;
      background: rgba(23,26,33,0.92);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 10px 30px rgba(0,0,0,0.24);
      backdrop-filter: blur(10px);
      pointer-events: auto;
      gap: 6px;
    }

    .material-tabs button {
      border: none;
      background: transparent;
      color: var(--muted);
      padding: 10px 12px;
      border-radius: 12px;
      font: inherit;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.03em;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .material-tabs button.active {
      background: rgba(104,160,255,0.16);
      color: #dce8ff;
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.28);
    }

    .tex-slot:hover,
    .tex-slot:focus-visible {
      border-color: rgba(255,255,255,0.28);
      background: rgba(255,255,255,0.06);
      transform: translateY(-1px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    }

    .tex-slot:hover .tex-slot-thumb,
    .tex-slot:focus-visible .tex-slot-thumb {
      border-color: rgba(255,255,255,0.16);
      transform: scale(1.02);
    }

    body.dragging-texture .tex-slot {
      border-color: rgba(104,160,255,0.35);
      background: rgba(104,160,255,0.08);
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.12);
    }

    body.dragging-texture .tex-slot .tex-slot-thumb {
      border-color: rgba(104,160,255,0.26);
      background:
        linear-gradient(45deg, rgba(104,160,255,0.10) 25%, transparent 25%, transparent 75%, rgba(104,160,255,0.10) 75%),
        linear-gradient(45deg, rgba(104,160,255,0.10) 25%, transparent 25%, transparent 75%, rgba(104,160,255,0.10) 75%),
        rgba(104,160,255,0.05);
    }

    .tex-slot.active {
      border-color: rgba(104,160,255,0.9);
      background: rgba(104,160,255,0.12);
      transform: translateY(-1px);
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.24), 0 10px 22px rgba(0,0,0,0.16);
    }

    .tex-slot.active .tex-slot-thumb {
      border-color: rgba(104,160,255,0.55);
      transform: scale(1.03);
    }

    .tex-slot.filled {
      border-style: solid;
      border-color: rgba(88,194,125,0.35);
    }

    .tex-slot.selected {
      border-color: rgba(104,160,255,0.85);
      background: rgba(104,160,255,0.16);
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.24), 0 10px 24px rgba(0,0,0,0.18);
    }

    .tex-slot-same-badge {
      position: absolute;
      left: 10px;
      bottom: 10px;
      width: 68px;
      min-height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      border-radius: 0 0 11px 11px;
      background: rgba(8,10,16,0.74);
      border-top: 1px solid rgba(88,194,125,0.24);
      border-left: 1px solid rgba(88,194,125,0.24);
      border-right: 1px solid rgba(88,194,125,0.24);
      color: #dff8e8;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0;
      transform: translateY(2px);
      transition: opacity 0.45s ease, transform 0.45s ease;
      pointer-events: none;
      z-index: 2;
    }

    .tex-slot.same .tex-slot-thumb img {
      opacity: 1;
    }

    .tex-slot.same .tex-slot-same-badge {
      opacity: 1;
      transform: translateY(0);
    }

    .mode-switch {
      align-self: center;
      justify-self: center;
      display: inline-flex;
      padding: 6px;
      border-radius: 999px;
      background: rgba(23,26,33,0.92);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 10px 30px rgba(0,0,0,0.24);
      backdrop-filter: blur(10px);
      gap: 6px;
    }

    .mode-switch button {
      border: none;
      background: transparent;
      color: var(--muted);
      padding: 10px 16px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .mode-switch button.active {
      background: rgba(104,160,255,0.16);
      color: #dce8ff;
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.28);
    }

    .view-mode-group {
      justify-self: center;
      align-self: end;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      pointer-events: auto;
      position: relative;
      z-index: 1;
    }

    .view-tools {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .view-action-row {
      display: flex;
      justify-content: center;
      gap: 8px;
      align-items: center;
    }

    .status-bar {
      justify-self: center;
      position: absolute;
      left: 50%;
      bottom: 162px;
      transform: translateX(-50%);
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(23,26,33,0.86);
      border: 1px solid rgba(255,255,255,0.08);
      color: var(--muted);
      font-size: 12px;
      backdrop-filter: blur(8px);
      box-shadow: 0 10px 26px rgba(0,0,0,0.22);
      z-index: 42;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease;
      white-space: nowrap;
    }

    .status-bar.show { opacity: 1; }

    .parallax-debug-overlay {
      position: absolute;
      top: 62px;
      right: 14px;
      width: min(420px, calc(100vw - 24px));
      max-height: min(78vh, 720px);
      overflow: auto;
      padding: 12px;
      border-radius: 18px;
      background: rgba(15,18,24,0.94);
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 18px 42px rgba(0,0,0,0.32);
      backdrop-filter: blur(12px);
      z-index: 44;
      pointer-events: auto;
    }

    .parallax-debug-overlay-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      color: rgba(232,236,243,0.94);
      font-size: 12px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .parallax-debug-overlay-header span {
      color: rgba(170,181,199,0.82);
      font-size: 10px;
      text-transform: none;
      letter-spacing: 0.02em;
    }

    .parallax-debug-overlay-grid {
      display: grid;
      gap: 10px;
    }

    .parallax-debug-card {
      padding: 12px;
      border-radius: 14px;
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      display: grid;
      gap: 7px;
    }

    .parallax-debug-card[data-state="active"] {
      border-color: rgba(88,194,125,0.32);
      box-shadow: inset 0 0 0 1px rgba(88,194,125,0.08);
    }

    .parallax-debug-card[data-state="ready"] {
      border-color: rgba(104,160,255,0.32);
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.08);
    }

    .parallax-debug-card-title {
      color: #edf3ff;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .parallax-debug-card-status {
      color: #d7e6ff;
      font-size: 12px;
      font-weight: 700;
    }

    .parallax-debug-card-material,
    .parallax-debug-card-detail,
    .parallax-debug-card-note {
      color: rgba(214,221,233,0.84);
      font-size: 11px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .parallax-debug-card-note {
      color: rgba(170,181,199,0.82);
    }

    .parallax-debug-map-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .parallax-debug-map-tile {
      min-width: 0;
      padding: 8px;
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      gap: 8px;
      align-items: start;
    }

    .parallax-debug-map-tile.is-present {
      border-color: rgba(255,255,255,0.14);
    }

    .parallax-debug-map-tile.is-height-source {
      border-color: rgba(104,160,255,0.34);
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.08);
    }

    .parallax-debug-map-thumb {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
      background:
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
        rgba(255,255,255,0.03);
      background-size: 14px 14px;
      background-position: 0 0, 7px 7px;
      color: rgba(232,236,243,0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 800;
    }

    .parallax-debug-map-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .parallax-debug-map-tile strong,
    .parallax-debug-map-tile span {
      min-width: 0;
      grid-column: 2;
    }

    .parallax-debug-map-tile strong {
      color: #edf3ff;
      font-size: 11px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .parallax-debug-map-tile span {
      color: rgba(195,205,221,0.8);
      font-size: 10px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .share-notice {
      position: absolute;
      top: 62px;
      left: 50%;
      transform: translate(-50%, -8px);
      width: min(520px, calc(100vw - 28px));
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(23,26,33,0.94);
      border: 1px solid rgba(104,160,255,0.24);
      box-shadow: 0 18px 38px rgba(0,0,0,0.28);
      backdrop-filter: blur(10px);
      z-index: 37;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .share-notice.show {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, 0);
    }

    .share-notice strong {
      display: block;
      margin: 0 28px 6px 0;
      color: #e6efff;
      font-size: 13px;
    }

    .share-notice a {
      display: inline-block;
      max-width: calc(100% - 28px);
      color: #9fc0ff;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.45;
      text-decoration: none;
      word-break: break-all;
    }

    .share-notice-actions {
      display: flex;
      justify-content: flex-start;
      margin-top: 8px;
      padding-right: 28px;
    }

    .share-notice button {
      border: none;
      border-radius: 999px;
      color: var(--text);
      font: inherit;
      cursor: pointer;
    }

    .texture-slot-context-menu {
      position: fixed;
      z-index: 60;
      min-width: 156px;
      padding: 6px;
      border-radius: 14px;
      background: rgba(23,26,33,0.96);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 18px 42px rgba(0,0,0,0.3);
      backdrop-filter: blur(10px);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-4px);
      transition: opacity 0.14s ease, transform 0.14s ease;
    }

    .texture-slot-context-menu.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .texture-slot-context-menu button {
      width: 100%;
      border: none;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      text-align: left;
      padding: 10px 12px;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .texture-slot-context-menu button:hover,
    .texture-slot-context-menu button:focus-visible {
      background: rgba(255,255,255,0.06);
      outline: none;
    }

    .texture-slot-context-menu button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .share-notice-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 24px;
      height: 24px;
      background: rgba(255,255,255,0.08);
      font-size: 14px;
      line-height: 1;
    }

    .share-notice-copy {
      padding: 5px 10px;
      background: rgba(159,192,255,0.14);
      border: 1px solid rgba(159,192,255,0.24);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: 0.01em;
    }

    .share-notice button:hover {
      background: rgba(255,255,255,0.14);
    }

    .share-notice-copy:hover,
    .share-notice-copy:focus-visible {
      background: rgba(159,192,255,0.22);
      outline: none;
    }

    .share-notice a:hover,
    .share-notice a:focus-visible {
      text-decoration: underline;
      outline: none;
    }

    .mismatch-warning {
      position: absolute;
      top: 68px;
      left: 14px;
      max-width: min(340px, calc(50vw - 28px));
      padding: 12px 40px 12px 14px;
      border-radius: 16px;
      background: rgba(49, 23, 18, 0.92);
      border: 1px solid rgba(255,180,84,0.35);
      color: #ffe2b8;
      box-shadow: 0 14px 34px rgba(0,0,0,0.26);
      backdrop-filter: blur(10px);
      z-index: 35;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-6px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .mismatch-warning.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .mismatch-warning strong {
      display: block;
      margin-bottom: 4px;
      color: #fff0d8;
      font-size: 13px;
    }

    .mismatch-warning p {
      margin: 0;
      font-size: 12px;
      line-height: 1.45;
    }

    .mismatch-warning button {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 24px;
      height: 24px;
      border: none;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      color: #ffe2b8;
      font: inherit;
      font-size: 15px;
      line-height: 1;
      cursor: pointer;
    }

    .mismatch-warning button:hover {
      background: rgba(255,255,255,0.14);
    }

    .share-dialog-backdrop {
      position: absolute;
      inset: 0;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(6,8,12,0.64);
      backdrop-filter: blur(14px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
    }

    .share-dialog-backdrop.show {
      opacity: 1;
      pointer-events: auto;
    }

    .share-dialog {
      position: relative;
      width: min(980px, 100%);
      max-height: calc(100vh - 48px);
      min-height: 0;
      padding: 20px;
      border-radius: var(--radius-panel);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
        var(--surface-strong);
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-elevated);
      color: var(--text);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 292px;
      gap: 20px;
      align-items: stretch;
      overflow: hidden;
    }

    .share-dialog h3 {
      margin: 0 0 8px 0;
      font-size: 20px;
      letter-spacing: 0.01em;
    }

    .share-dialog p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .share-dialog-main {
      min-width: 0;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }

    .share-dialog-close {
      position: absolute;
      top: 22px;
      right: 22px;
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      color: var(--text);
      font: inherit;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      z-index: 2;
    }

    .share-dialog-close:hover,
    .share-dialog-close:focus-visible {
      background: rgba(255,255,255,0.14);
      outline: none;
    }

    .share-preview {
      position: relative;
      width: min(320px, 100%);
      aspect-ratio: 1;
      height: auto;
      margin: 16px auto;
      border-radius: var(--radius-panel);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.1);
      background:
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
        rgba(15,17,21,0.92);
      background-size: 18px 18px;
      background-position: 0 0, 9px 9px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 18px 42px rgba(0,0,0,0.28);
      cursor: grab;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
    }

    .share-preview.is-dragging {
      cursor: grabbing;
    }

    .share-preview-headings {
      position: absolute;
      bottom: 10px;
      left: 10px;
      right: 10px;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      pointer-events: none;
    }

    .share-preview-nameplate {
      min-width: 0;
      max-width: 112px;
      padding: 5px 7px;
      border-radius: 10px;
      background: rgba(8,10,16,0.66);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 8px 18px rgba(0,0,0,0.22);
      backdrop-filter: blur(10px);
    }

    .share-preview-nameplate:last-child {
      text-align: right;
    }

    .share-preview-nameplate span {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .share-preview-nameplate-label {
      margin-bottom: 1px;
      color: rgba(232,236,243,0.68);
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .share-preview-nameplate-value {
      color: #edf3ff;
      font-size: 10px;
      font-weight: 700;
    }

    .share-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
    }

    .share-note {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(255,180,84,0.08);
      border: 1px solid rgba(255,180,84,0.2);
      color: #ffdba9;
      font-size: 12px;
      line-height: 1.5;
    }

    .share-settings-card {
      margin-top: 14px;
      padding: 14px 16px;
      border-radius: 12px;
      background: rgba(104,160,255,0.075);
      border: 1px solid rgba(104,160,255,0.18);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .share-settings-card h4 {
      margin: 0;
      font-size: 13px;
      font-weight: 700;
      color: #e8f0ff;
    }

    .share-settings-card p {
      margin: 0;
      font-size: 12px;
      color: rgba(232,236,243,0.72);
      line-height: 1.5;
    }

    .share-settings-checkbox {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: #eef4ff;
      cursor: pointer;
    }

    .share-settings-checkbox input {
      margin: 2px 0 0;
      accent-color: #82b4ff;
    }

    .share-progress-card {
      margin-top: 14px;
      padding: 12px 14px;
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.1);
      display: none;
      gap: 9px;
    }

    .share-progress-card.show {
      display: grid;
    }

    .share-progress-label {
      color: #dce7fb;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
    }

    .share-progress-track {
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(5,8,14,0.72);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .share-progress-fill {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: #72d0ff;
      transition: width 0.18s ease;
    }

    .share-progress-value {
      color: #aebbd3;
      font-size: 11px;
      font-weight: 800;
      text-align: right;
    }

    .share-dialog-footer {
      margin-top: auto;
      padding-top: 16px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
    }

    .share-dialog-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 0;
      flex-shrink: 0;
    }

    .share-dialog-actions button {
      border: 1px solid var(--border-soft);
      background: var(--surface-soft);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      padding: 10px 14px;
      border-radius: var(--radius-control);
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .share-dialog-actions button.primary {
      background: rgba(104,160,255,0.18);
      border-color: rgba(104,160,255,0.28);
      color: #e5efff;
    }

    .share-dialog-actions button:hover,
    .share-dialog-actions button:focus-visible {
      background: rgba(255,255,255,0.08);
      border-color: var(--border-strong);
      outline: none;
      transform: translateY(-1px);
    }

    .share-dialog-actions button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    .share-legal-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
      gap: 10px 14px;
      font-size: 11px;
      color: var(--muted);
      min-width: 0;
    }

    .share-legal-links a {
      color: rgba(232,236,243,0.78);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: color 0.15s ease, border-color 0.15s ease;
    }

    .share-legal-links a:hover,
    .share-legal-links a:focus-visible {
      color: #dce8ff;
      border-color: rgba(220,232,255,0.6);
      outline: none;
    }

    .share-library {
      align-self: stretch;
      min-width: 0;
      height: 100%;
      min-height: 0;
      padding: 14px;
      border-radius: 14px;
      background: rgba(255,255,255,0.028);
      border: 1px solid rgba(255,255,255,0.08);
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow: hidden;
    }

    .share-library-header {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-right: 42px;
    }

    .share-library-header h4 {
      margin: 0;
      font-size: 14px;
    }

    .share-library-header p {
      margin: 0;
      font-size: 12px;
      color: var(--muted);
    }

    .share-library-usage {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      min-height: 28px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(104,160,255,0.1);
      border: 1px solid rgba(104,160,255,0.18);
      color: #dce8ff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .share-library-list {
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      gap: 10px;
      min-height: 0;
      max-height: calc(100vh - 210px);
      overflow-y: auto;
      padding-right: 2px;
    }

    .share-library-list > .share-library-empty:only-child,
    .share-library-list > .share-library-loading:only-child {
      flex: 1 1 auto;
      display: flex;
      align-items: center;
    }

    .share-library-list::-webkit-scrollbar {
      width: 8px;
    }

    .share-library-list::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(255,255,255,0.12);
    }

    .share-library-empty,
    .share-library-loading {
      padding: 14px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px dashed rgba(255,255,255,0.08);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .share-library-item {
      padding: 10px;
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      display: flex;
      flex-direction: column;
      gap: 9px;
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    }

    .share-library-item.active {
      border-color: rgba(104,160,255,0.32);
      box-shadow: inset 0 0 0 1px rgba(104,160,255,0.22);
    }

    .share-library-item:hover,
    .share-library-item:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(104,160,255,0.24);
      background: rgba(104,160,255,0.08);
      box-shadow: 0 12px 24px rgba(0,0,0,0.16);
      outline: none;
    }

    .share-library-item:hover .share-library-thumb,
    .share-library-item:focus-visible .share-library-thumb {
      border-color: rgba(104,160,255,0.2);
    }

    .share-library-thumb {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
      background:
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
        rgba(15,17,21,0.92);
      background-size: 14px 14px;
      background-position: 0 0, 7px 7px;
    }

    .share-library-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .share-library-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .share-library-meta strong,
    .share-library-meta span {
      display: block;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .share-library-meta strong {
      font-size: 12px;
      color: var(--text);
    }

    .share-library-meta span {
      font-size: 11px;
      color: var(--muted);
    }

    .share-library-row {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
    }

    .share-library-likes {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      min-height: 30px;
      padding: 5px 10px;
      border-radius: var(--radius-control);
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      color: rgba(232,236,243,0.78);
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
    }

    .share-library-likes svg {
      width: 13px;
      height: 13px;
      flex: 0 0 auto;
      fill: rgba(255,107,107,0.22);
      stroke: rgba(255,167,167,0.86);
      stroke-width: 1.8;
      stroke-linejoin: round;
    }

    .share-library-delete {
      margin-left: auto;
      width: 32px;
      min-height: 32px;
      padding: 0;
      border-radius: var(--radius-control);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font: inherit;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }

    .share-library-delete svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.75;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0.92;
    }

    .share-library-delete {
      border: 1px solid rgba(255,107,107,0.24);
      background: rgba(255,107,107,0.1);
      color: #ffd1d1;
    }

    .share-library-delete:hover,
    .share-library-delete:focus-visible {
      filter: brightness(1.06);
      outline: none;
    }

    .share-delete-modal {
      position: absolute;
      inset: 0;
      z-index: 52;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(6,8,12,0.64);
      backdrop-filter: blur(8px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
    }

    .share-delete-modal.show {
      opacity: 1;
      pointer-events: auto;
    }

    .share-delete-card {
      width: min(360px, 100%);
      padding: 18px;
      border-radius: 20px;
      background: rgba(23,26,33,0.98);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 24px 80px rgba(0,0,0,0.38);
    }

    .share-delete-card h4 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .share-delete-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .share-delete-actions button.destructive {
      border-color: rgba(255,107,107,0.3);
      background: rgba(255,107,107,0.14);
      color: #ffd7d7;
    }

    .share-limit-card {
      width: min(420px, 100%);
      padding: 20px;
      border-radius: 20px;
      background: rgba(23,26,33,0.98);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 24px 80px rgba(0,0,0,0.38);
    }

    .share-limit-card h4 {
      margin: 0 0 8px;
      font-size: 18px;
      color: #f4f7ff;
    }

    .share-limit-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    html.community-root,
    html.community-root body {
      height: auto;
      min-height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      background: #0f1115;
    }

    body.community-page {
      min-height: 100vh;
      background:
        radial-gradient(circle at 18% -8%, rgba(104,160,255,0.18), transparent 30%),
        radial-gradient(circle at 86% 4%, rgba(88,194,125,0.11), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent 220px),
        #0f1115;
      color: #e8ecf3;
    }

    .community-shell {
      width: min(1180px, calc(100% - 36px));
      margin: 0 auto;
      padding: 16px 0 58px;
    }

    .community-nav {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      min-height: 44px;
      margin-bottom: 14px;
      animation: community-enter 0.42s ease both;
    }

    .community-viewer-link {
      width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(23,26,33,0.78);
      color: #eaf1ff;
      text-decoration: none;
      box-shadow: 0 12px 30px rgba(0,0,0,0.22);
      backdrop-filter: blur(12px);
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    .community-viewer-link:hover,
    .community-viewer-link:focus-visible {
      transform: translateY(-2px);
      border-color: rgba(104,160,255,0.34);
      background: rgba(34,40,52,0.92);
      outline: none;
    }

    .community-viewer-link svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .community-viewer-forward {
      align-self: center;
      justify-self: end;
    }

    .community-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 460px) 44px;
      gap: 16px;
      align-items: center;
      position: relative;
      padding: 0 0 14px;
      border-bottom: 1px solid rgba(255,255,255,0.09);
      animation: community-enter 0.46s ease 0.04s both;
    }

    .community-eyebrow {
      margin: 0 0 8px;
      color: #8fb6ff;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    .community-hero h1 {
      max-width: 760px;
      margin: 0;
      color: #f5f8ff;
      font-size: clamp(34px, 6vw, 62px);
      line-height: 0.95;
      letter-spacing: 0;
    }

    .community-hero-copy {
      margin: 12px 0 0;
      max-width: 720px;
      color: #adbbd4;
      font-size: 15px;
      line-height: 1.55;
    }

    .community-info-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: stretch;
      position: relative;
      padding: 12px 14px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)), rgba(18,21,28,0.74);
      box-shadow: 0 16px 42px rgba(0,0,0,0.2);
      backdrop-filter: blur(10px);
      transform: translateY(0);
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .community-import-copy {
      display: grid;
      gap: 7px;
      min-width: 0;
    }

    .community-info-panel strong {
      color: #eef5ff;
      font-size: 13px;
    }

    .community-info-panel span {
      color: #9caac1;
      font-size: 13px;
      line-height: 1.55;
    }

    .community-import-actions {
      display: flex;
      align-items: center;
      align-self: stretch;
      gap: 9px;
      flex-wrap: wrap;
      padding-top: 0;
    }

    .community-import-btn {
      min-height: 64px;
      padding: 0 18px;
      border-radius: 8px;
      border: 1px solid rgba(118,168,255,0.32);
      background: linear-gradient(180deg, rgba(104,160,255,0.34), rgba(58,104,190,0.28)), rgba(31,39,54,0.88);
      color: #f4f8ff;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 10px 28px rgba(42,94,185,0.18);
      user-select: none;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    }

    .community-import-btn:hover,
    .community-import-btn:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(138,186,255,0.58);
      background: linear-gradient(180deg, rgba(112,172,255,0.46), rgba(64,112,200,0.36)), rgba(35,45,64,0.94);
      box-shadow: 0 14px 34px rgba(42,94,185,0.26);
      outline: none;
    }

    .community-import-btn:disabled {
      cursor: wait;
      opacity: 0.72;
      transform: none;
    }

    .community-import-hint {
      color: #8797af;
      font-size: 12px;
      line-height: 1.4;
    }

    .community-page.is-import-dragging .community-info-panel {
      transform: translateY(-2px);
      border-color: rgba(118,168,255,0.72);
      background: linear-gradient(180deg, rgba(104,160,255,0.12), rgba(255,255,255,0.025)), rgba(19,25,36,0.9);
      box-shadow: 0 18px 48px rgba(0,0,0,0.28), 0 0 0 4px rgba(104,160,255,0.15), 0 0 32px rgba(104,160,255,0.18);
    }

    .community-page.is-import-busy .community-info-panel {
      border-color: rgba(118,168,255,0.42);
    }

    .featured-section {
      padding-top: 22px;
      animation: community-enter 0.5s ease 0.1s both;
    }

    .featured-section-head {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-end;
      margin-bottom: 16px;
    }

    .featured-section-head h2 {
      margin: 0;
      color: #f2f6ff;
      font-size: 22px;
      letter-spacing: 0;
    }

    .featured-count {
      color: #91a0b8;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .featured-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 18px;
    }

    .featured-card {
      position: relative;
      aspect-ratio: 16 / 9;
      min-height: 0;
      overflow: hidden;
      display: block;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(11,13,18,0.86);
      color: inherit;
      text-decoration: none;
      box-shadow: 0 18px 48px rgba(0,0,0,0.26);
      transform: translateY(0);
      transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

    .featured-card:hover,
    .featured-card:focus-visible {
      transform: translateY(-5px);
      border-color: rgba(104,160,255,0.34);
      background: rgba(25,31,42,0.94);
      box-shadow: 0 24px 70px rgba(0,0,0,0.34);
      outline: none;
    }

    .featured-thumb {
      position: absolute;
      inset: 0;
      overflow: hidden;
      width: 100%;
      height: 100%;
      background:
        linear-gradient(135deg, rgba(104,160,255,0.16), rgba(88,194,125,0.11)),
        #171b24;
    }

    .featured-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      transform: scale(1);
      transition: transform 0.22s ease, filter 0.22s ease;
    }

    .featured-card:hover .featured-thumb img,
    .featured-card:focus-visible .featured-thumb img {
      transform: scale(1.035);
      filter: brightness(1.08);
    }

    .featured-placeholder {
      height: 100%;
      display: grid;
      place-items: center;
      color: rgba(238,245,255,0.9);
      font-size: 42px;
      font-weight: 900;
    }

    .featured-like-pill {
      position: absolute;
      top: 10px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 28px;
      padding: 0 9px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.13);
      background: rgba(7,9,13,0.64);
      color: #eef4ff;
      font-size: 11px;
      font-weight: 900;
      backdrop-filter: blur(10px);
    }

    .featured-like-pill {
      right: 10px;
    }

    .featured-like-pill svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    .featured-card-body {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      min-height: 0;
      padding: 10px 12px;
      background: rgba(0,0,0,0.52);
      border-top: 1px solid rgba(255,255,255,0.06);
      backdrop-filter: blur(3px);
    }

    .featured-title {
      margin: 0;
      color: #f5f8ff;
      font-size: 15px;
      line-height: 1.25;
      letter-spacing: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .featured-state {
      min-height: 260px;
      display: grid;
      place-items: center;
      padding: 34px 20px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.09);
      background: rgba(19,23,31,0.68);
      color: #a8b6cc;
      text-align: center;
      line-height: 1.6;
    }

    .featured-state strong {
      display: block;
      margin-bottom: 6px;
      color: #eef4ff;
      font-size: 17px;
    }

    @keyframes community-enter {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 1100px) {
      .mismatch-warning {
        max-width: min(360px, calc(100vw - 28px));
      }

      .share-dialog-backdrop {
        position: fixed;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding:
          max(12px, env(safe-area-inset-top))
          12px
          max(12px, env(safe-area-inset-bottom));
      }

      .drop-hint { bottom: 296px; }
      .half::after,
      .compare-layer::after { bottom: 296px; }

      .share-dialog {
        grid-template-columns: 1fr;
        width: min(860px, 100%);
        margin: 0 auto;
      }

      .share-dialog-footer {
        flex-direction: column;
        align-items: stretch;
      }

      .share-settings-card {
        padding: 13px 14px;
      }

      .share-dialog-actions {
        justify-content: stretch;
      }

      .share-dialog-actions button {
        flex: 1 1 0;
      }

      .share-library {
        order: 2;
        height: auto;
        min-height: 0;
        overflow: visible;
      }

      .share-library-list {
        flex: 0 1 auto;
        max-height: 430px;
      }
    }

    @media (max-width: 760px) {
      .top-actions {
        top: 16px;
        right: 16px;
        gap: 6px;
      }

      .home-actions {
        top: 16px;
        left: 16px;
      }

      body.mode-single.no-primary-model .home-actions {
        top: 78px;
      }

      .top-actions .top-action-icon,
      .top-action-auth {
        width: 42px;
        height: 42px;
      }

      .profile-menu {
        top: calc(100% + 6px);
        min-width: 136px;
      }

      .community-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 14px;
      }

      .community-nav {
        margin-bottom: 18px;
      }

      .community-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-right: 56px;
      }

      .community-viewer-forward {
        position: absolute;
        top: 0;
        right: 0;
      }

      .community-hero h1 {
        font-size: clamp(34px, 14vw, 56px);
      }

      .community-hero-copy {
        font-size: 15px;
      }

      .community-info-panel {
        grid-template-columns: 1fr;
        padding: 12px 14px;
      }

      .community-import-actions {
        align-self: auto;
      }

      .community-import-btn {
        width: 100%;
        min-height: 44px;
      }

      .featured-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
      }

      .featured-grid {
        grid-template-columns: 1fr;
      }

      .featured-card {
        min-height: 0;
      }

      .asset-library-backdrop {
        align-items: flex-start;
        padding:
          max(12px, env(safe-area-inset-top))
          12px
          max(12px, env(safe-area-inset-bottom));
      }

      .asset-library-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 18px;
      }

      .asset-library-item {
        grid-template-columns: 48px minmax(0, 1fr) 36px 36px;
      }

      .asset-library-preview {
        width: 48px;
        height: 48px;
      }

      .asset-headers {
        top: 68px;
      }

      .swap-assets-btn {
        top: 68px;
      }

      .asset-header {
        width: min(300px, calc(50vw - 20px));
      }

      .asset-header-shell {
        --asset-action-width: 96px;
        padding: 4px 5px 4px 10px;
      }

      body.ai-generation-hidden .asset-header-shell {
        --asset-action-width: 62px;
      }

      .asset-name-input {
        font-size: 12px;
        padding-right: calc(var(--asset-action-width) + 10px);
        padding-left: 1px;
      }

      .asset-header-menu-toggle,
      .asset-header-download-toggle,
      .asset-header-ai-toggle {
        width: 28px;
        height: 28px;
      }

      .asset-action-menu {
        right: -4px;
        width: min(184px, calc(100vw - 20px));
      }

      .asset-details-popover {
        right: -4px;
        width: min(292px, calc(100vw - 20px));
      }

      .asset-details-dialog {
        padding: 20px;
      }

      .asset-details-dialog h3 {
        font-size: 21px;
      }

      .asset-edit-dialog {
        padding: 20px;
      }

      .asset-download-dialog {
        padding: 20px;
      }

      .asset-ai-dialog {
        padding: 20px;
      }

      .asset-edit-dialog h3 {
        font-size: 21px;
      }

      .asset-download-dialog h3 {
        font-size: 21px;
      }

      .asset-ai-dialog h3 {
        font-size: 21px;
      }

      .asset-edit-grid {
        grid-template-columns: 1fr;
      }

      .asset-details-footer {
        flex-direction: column;
        align-items: stretch;
      }

      .asset-details-meta {
        align-items: stretch;
      }

      .asset-details-actions {
        justify-content: stretch;
      }

      .asset-details-actions button {
        flex: 1 1 0;
      }

      .asset-edit-footer {
        flex-direction: column;
      }

      .asset-edit-footer button {
        width: 100%;
      }

      .asset-download-footer {
        flex-direction: column;
      }

      .asset-download-footer button {
        width: 100%;
      }

      .asset-ai-footer {
        flex-direction: column;
      }

      .asset-ai-footer button {
        width: 100%;
      }

      .mismatch-warning {
        top: 64px;
        left: 10px;
        max-width: min(360px, calc(100vw - 20px));
      }

      #bottomBar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
        align-items: end;
        gap: 8px;
        left: 10px;
        right: 10px;
        bottom: 10px;
      }

      .material-tabs {
        display: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        order: 1;
        grid-column: 1 / -1;
        width: 100%;
      }

      .material-tabs button {
        padding: 9px 8px;
        font-size: 10px;
      }

      .view-mode-group {
        order: 0;
        grid-column: 1 / -1;
        justify-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 82px;
        padding-top: 42px;
        padding-right: 0;
        padding-left: 8px;
      }

      .view-tools {
        position: absolute;
        right: 50%;
        top: 0;
        transform: translateX(50%);
        align-items: center;
        gap: 0;
      }

      .view-action-row {
        gap: 4px;
      }

      .view-action-row .top-action-icon {
        width: 36px;
        height: 36px;
      }

      .lighting-menu {
        width: min(300px, calc(100vw - 18px));
        right: 9px;
        bottom: 74px;
      }

      .lighting-color-dialog {
        width: min(220px, calc(100vw - 18px));
      }

      .lighting-menu-section {
        grid-template-columns: 1fr;
      }

      .lighting-light-list {
        max-height: 152px;
      }

      .view-action-meta {
        position: absolute;
        top: calc(100% + 4px);
        right: 50%;
        transform: translateX(50%);
        min-height: 0;
        max-width: 116px;
        text-align: center;
      }

      body.materials-ui-hidden #bottomBar,
      body.mode-single.materials-ui-hidden #bottomBar {
        grid-template-columns: auto;
        justify-content: center;
      }

      body.materials-ui-hidden .view-mode-group {
        grid-column: 1;
        justify-self: center;
        padding-left: 8px;
        padding-right: 0;
      }

      .texture-panel {
        width: 100%;
        min-width: 0;
        padding: 10px 38px;
        border-radius: 16px;
      }

      .material-page-btn {
        width: 24px;
        height: 48px;
        font-size: 22px;
        padding-bottom: 3px;
      }

      .texture-panel[data-side="left"] {
        order: 2;
        grid-column: 1;
      }

      body.mode-single .texture-panel[data-side="left"] {
        grid-column: 1 / -1;
      }

      .texture-panel[data-side="right"] {
        order: 3;
        grid-column: 2;
      }

      .texture-panel h3 {
        margin-bottom: 6px;
        font-size: 12px;
      }

      .slot-grid {
        grid-template-columns: 1fr;
      }

      .tex-slot {
        display: flex;
        min-height: 56px;
        padding: 3px 8px 3px 62px;
        gap: 4px;
      }

      .tex-slot-thumb {
        top: 2px;
        bottom: 2px;
        left: 2px;
        width: 56px;
        height: auto;
        flex-basis: auto;
        border-radius: 10px;
      }

      .tex-slot-label {
        font-size: 9px;
      }

      .tex-slot-hint {
        font-size: 9px;
        min-height: 1.2em;
        -webkit-line-clamp: 1;
        line-clamp: 1;
      }

      .tex-slot-copy {
        justify-content: center;
        gap: 1px;
        max-width: calc(100% - 40px);
      }

      .tex-slot-same-badge {
        left: 2px;
        bottom: 2px;
        width: 56px;
        min-height: 14px;
        font-size: 7px;
      }

      .tex-slot:hover .tex-slot-thumb,
      .tex-slot:focus-visible .tex-slot-thumb {
        transform: scale(1.02);
      }

      .tex-slot.active .tex-slot-thumb {
        transform: scale(1.03);
      }

      body[data-material-page="0"] .tex-slot[data-map="emissiveMap"],
      body[data-material-page="0"] .tex-slot[data-map="aoMap"],
      body[data-material-page="0"] .tex-slot[data-map="heightMap"],
      body[data-material-page="1"] .tex-slot[data-map="map"],
      body[data-material-page="1"] .tex-slot[data-map="metalnessRoughness"],
      body[data-material-page="1"] .tex-slot[data-map="normalMap"] {
        display: none;
      }
    }
