    :root {
      --bg: #080b0a;
      --panel: #101513;
      --panel-2: #151c18;
      --panel-3: #0c100e;
      --ink: #edf5f0;
      --muted: #8ca198;
      --line: rgba(255,255,255,.08);
      --green: #2f8a70;
      --green-2: #46b88f;
      --gold: #c99435;
      --red: #e46c6c;
      --purple: #7c5cff;
      --shadow: 0 22px 55px rgba(0,0,0,.32);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    * {
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.08) transparent;
      transition: scrollbar-color .3s ease;
    }
    *:hover {
      scrollbar-color: rgba(255,255,255,0.25) transparent;
    }
    *::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    *::-webkit-scrollbar-track {
      background: transparent;
    }
    *::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background: rgba(255,255,255,0.08);
      transition: background .3s ease;
    }
    *:hover::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.25);
    }
    *::-webkit-scrollbar-thumb:hover {
      background: rgba(255,255,255,0.4);
    }
    textarea {
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.08) transparent;
    }
    textarea:hover {
      scrollbar-color: rgba(255,255,255,0.25) transparent;
    }
    textarea::-webkit-scrollbar { width: 6px; }
    textarea::-webkit-scrollbar-track { background: transparent; }
    textarea::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background: rgba(255,255,255,0.08);
      transition: background .3s ease;
    }
    textarea:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); }
    textarea::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
    html, body { width: 100%; height: 100%; overflow: hidden; }
    body {
      font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
      background: var(--bg);
      color: var(--ink);
    }
    button, input, select, textarea { font: inherit; }
    button { border: 0; cursor: pointer; }
    .hidden { display: none !important; }

    /* ===== 通用按钮 ===== */
    .btn {
      min-height: 32px;
      padding: 0 14px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 13px;
      transition: all .15s ease;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      min-width: 0;
      justify-content: center;
      gap: 6px;
    }
    .btn.primary {
      background: linear-gradient(135deg, #7c5cff, #6d47e8);
      border: 1px solid rgba(139,92,246,.4);
      color: #fff;
      box-shadow: 0 0 15px rgba(139,92,246,.2);
    }
    .btn.primary:hover:not(:disabled) {
      background: linear-gradient(135deg, #8b6bff, #7a55f0);
      border-color: rgba(139,92,246,.6);
      color: #fff;
      box-shadow: 0 0 20px rgba(139,92,246,.3);
      transform: none;
    }
    .btn:disabled { opacity: .5; cursor: not-allowed; }
    .btn.ghost {
      background: rgba(255,255,255,.04);
      color: var(--muted);
      border: 1px solid rgba(255,255,255,.08);
    }
    .btn.ghost:hover:not(:disabled) {
      background: rgba(255,255,255,.08);
      color: var(--ink);
      border-color: rgba(255,255,255,.15);
    }
    .btn.danger { background: var(--red); color: #fff; }
    .btn.danger:hover:not(:disabled) { background: #f07070; }

    /* ===== 登录页 ===== */
    .login-page {
      position: fixed;
      inset: 0;
      display: grid;
      place-items: center;
      background:
        radial-gradient(ellipse at 20% 30%, #1a1228 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, #0f1a24 0%, transparent 50%),
        linear-gradient(135deg, #060606 0%, #0a0a0a 100%);
      z-index: 100;
      overflow: hidden;
    }
    .login-bg-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }
    .login-page::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.6) 100%);
    }
    .login-card {
      width: min(400px, calc(100% - 40px));
      padding: 36px 32px;
      background: rgba(15,10,25,.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(139,92,246,.2);
      border-radius: 12px;
      box-shadow:
        0 0 0 1px rgba(139,92,246,.08),
        0 0 30px rgba(139,92,246,.12),
        0 20px 50px rgba(0,0,0,.6);
      position: relative;
      z-index: 2;
    }
    .login-card::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: 13px;
      padding: 1px;
      background: linear-gradient(135deg, rgba(139,92,246,.4), rgba(34,211,238,.3), rgba(236,72,153,.3));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      z-index: -1;
    }
    .login-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-bottom: 8px;
    }
    .login-mark {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(34,211,238,.1));
      border: 1px solid rgba(139,92,246,.3);
      color: #c4b5fd;
      font-size: 22px;
      font-weight: 800;
      box-shadow: 0 0 15px rgba(139,92,246,.2);
    }
    .login-brand h1 {
      font-size: 22px;
      margin: 0;
      color: #e2e8f0;
      font-weight: 800;
      letter-spacing: 1px;
    }
    .login-subtitle {
      text-align: center;
      color: rgba(148,163,184,.7);
      font-size: 13px;
      margin-bottom: 28px;
    }
    .login-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-bottom: 24px;
      background: rgba(10,8,20,.6);
      border-radius: 8px;
      padding: 3px;
      border: 1px solid rgba(255,255,255,.05);
    }
    .login-tab {
      height: 36px;
      border-radius: 6px;
      background: transparent;
      color: #64748b;
      font-weight: 600;
      cursor: pointer;
      font-size: 13px;
      transition: all .15s ease;
      border: none;
    }
    .login-tab.active {
      background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(139,92,246,.1));
      border: 1px solid rgba(139,92,246,.3);
      color: #c4b5fd;
    }
    .code-send-btn {
      white-space: nowrap;
      height: 42px;
      padding: 0 16px;
      background: rgba(139,92,246,.15);
      border: 1px solid rgba(139,92,246,.3);
      border-radius: 8px;
      color: #c4b5fd;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease;
    }
    .code-send-btn:hover:not(:disabled) {
      background: rgba(139,92,246,.25);
      border-color: rgba(139,92,246,.5);
    }
    .code-send-btn:disabled {
      cursor: not-allowed;
    }
    .form-group { display: grid; gap: 12px; }
    .form-group.hidden { display: none; }
    .form-group label {
      display: grid;
      gap: 7px;
      color: rgba(148,163,184,.8);
      font-size: 12px;
      font-weight: 700;
    }
    .field-hint {
      margin: -7px 0 0;
      color: rgba(148,163,184,.62);
      font-size: 12px;
      line-height: 1.35;
    }
    .form-group input {
      width: 100%;
      height: 42px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      background: rgba(10,8,20,.6);
      color: #e2e8f0;
      padding: 0 14px;
      outline: none;
      font-size: 14px;
      transition: all .15s ease;
    }
    .form-group input:focus {
      border-color: rgba(139,92,246,.5);
      box-shadow: 0 0 0 3px rgba(139,92,246,.1);
    }
    .form-status {
      min-height: 18px;
      font-size: 12px;
      text-align: center;
      color: rgba(148,163,184,.6);
    }
    .form-status.bad { color: #f87171; }
    .form-status.ok { color: #34d399; }

    /* ===== 用户信息弹窗 ===== */
    .modal-content.user-info-modal {
      width: min(380px, calc(100% - 40px));
      background: rgba(15,10,25,.95);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(139,92,246,.2);
      border-radius: 12px;
      box-shadow: 0 0 30px rgba(139,92,246,.15), 0 20px 50px rgba(0,0,0,.6);
      overflow: hidden;
    }
    .modal-content { display: block; }
    .user-info-modal .modal-header {
      border-bottom: 1px solid rgba(255,255,255,.08);
      padding: 16px 20px;
    }
    .user-info-modal .modal-header h3 {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      color: #e2e8f0;
    }
    .user-info-modal .modal-close {
      background: transparent;
      border: none;
      color: #64748b;
      font-size: 20px;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .15s ease;
    }
    .user-info-modal .modal-close:hover {
      background: rgba(255,255,255,.08);
      color: #e2e8f0;
    }
    .user-info-body {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .user-info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .user-info-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    .user-info-row .info-label {
      font-size: 13px;
      color: #64748b;
      font-weight: 500;
    }
    .user-info-row .info-value {
      font-size: 13px;
      color: #e2e8f0;
      font-weight: 600;
    }
    .user-info-row .info-balance {
      color: #34d399;
    }
    .info-bind-btn {
      background: linear-gradient(135deg, #7c5cff, #a855f7);
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 5px 14px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity .15s ease, transform .1s ease;
    }
    .info-bind-btn:hover {
      opacity: .88;
      transform: scale(1.03);
    }
    /* 绑定弹窗样式 */
    .bind-modal {
      width: min(420px, calc(100% - 40px));
    }
    .bind-info-body {
      padding: 24px 20px;
    }
    .bind-desc {
      margin: 0 0 20px;
      font-size: 13px;
      color: #64748b;
      line-height: 1.5;
    }
    .bind-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .bind-input {
      width: 100%;
      height: 42px;
      padding: 0 14px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      color: #e2e8f0;
      font-size: 14px;
      outline: none;
      transition: border-color .15s ease, background .15s ease;
      box-sizing: border-box;
    }
    .bind-input::placeholder {
      color: #475569;
    }
    .bind-input:focus {
      border-color: #7c5cff;
      background: rgba(124,92,255,.08);
    }
    .bind-code-row {
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .bind-code-row .bind-input {
      flex: 1;
    }
    .bind-code-btn {
      white-space: nowrap;
      height: 42px;
      padding: 0 16px;
      background: rgba(124,92,255,.12);
      border: 1px solid rgba(124,92,255,.3);
      border-radius: 8px;
      color: #a78bfa;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease;
    }
    .bind-code-btn:hover:not(:disabled) {
      background: rgba(124,92,255,.2);
      border-color: rgba(124,92,255,.5);
    }
    .bind-code-btn:disabled {
      cursor: not-allowed;
    }
    .bind-confirm-btn {
      width: 100%;
      height: 44px;
      margin-top: 8px;
      background: linear-gradient(135deg, #7c5cff, #a855f7);
      border: none;
      border-radius: 8px;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity .15s ease, transform .1s ease;
    }
    .bind-confirm-btn:hover {
      opacity: .9;
      transform: scale(1.01);
    }
    .captcha-row {
      display: flex;
      gap: 10px;
      align-items: stretch;
    }
    .captcha-row input {
      flex: 1;
    }
    .captcha-row canvas {
      cursor: pointer;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      background: rgba(10,8,20,.6);
      transition: border-color .15s ease;
    }
    .captcha-row canvas:hover {
      border-color: rgba(139,92,246,.4);
    }

    /* ===== Toast ===== */
    .toast {
      position: fixed;
      top: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(-20px);
      padding: 10px 20px;
      background: rgba(0,0,0,.85);
      color: #fff;
      border-radius: 8px;
      font-size: 13px;
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: all .25s ease;
    }
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ===== 首页 Dashboard ===== */
    .dashboard {
      height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      background:
        radial-gradient(circle at 18% -12%, rgba(124,92,255,.22), transparent 34%),
        radial-gradient(circle at 72% 0%, rgba(47,138,112,.18), transparent 30%),
        linear-gradient(180deg, #080a10 0%, #070908 100%);
    }
    .dashboard-topbar {
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      background: rgba(9,11,17,.78);
      border-bottom: 1px solid rgba(255,255,255,.10);
      backdrop-filter: blur(18px);
    }
    .dashboard-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .dashboard-mark {
      width: 30px;
      height: 30px;
      border-radius: 7px;
      background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(34,211,238,.1));
      border: 1px solid rgba(139,92,246,.3);
      color: #c4b5fd;
      font-size: 15px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 15px rgba(139,92,246,.2);
    }
    .dashboard-brand-text {
      font-size: 16px;
      font-weight: 700;
      color: #e2e8f0;
      letter-spacing: 1px;
    }
    .dashboard-top-actions { display: flex; gap: 6px; }
    .top-icon-btn {
      width: 34px;
      height: 34px;
      border: none;
      background: transparent;
      color: var(--muted);
      border-radius: 7px;
      cursor: pointer;
      font-size: 15px;
    }
    .top-icon-btn:hover { background: rgba(255,255,255,.08); color: var(--ink); }

    .dashboard-body {
      display: grid;
      grid-template-columns: 220px 1fr 280px;
      min-height: 0;
      overflow: hidden;
    }

    /* 左侧导航 */
    .dashboard-sidebar {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 16px 12px;
      background: rgba(7,8,12,.76);
      border-right: 1px solid rgba(255,255,255,.09);
      backdrop-filter: blur(16px);
    }
    .dashboard-nav-btn {
      width: 100%;
      padding: 10px 14px;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      text-align: left;
    }
    .dashboard-nav-btn:hover { background: rgba(255,255,255,.06); color: var(--ink); }
    .dashboard-nav-btn.active {
      background: linear-gradient(135deg, rgba(124,92,255,.20), rgba(70,184,143,.12));
      color: var(--ink);
      border: 1px solid rgba(124,92,255,.24);
    }
    .dashboard-nav-btn .nav-icon { font-size: 15px; }

    .sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
    .user-card {
      padding: 14px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 10px;
      box-shadow: 0 14px 34px rgba(0,0,0,.22);
    }
    .user-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 10px;
    }
    .user-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,211,238,.15));
      border: 1px solid rgba(139,92,246,.4);
      color: #c4b5fd;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .user-info { flex: 1; min-width: 0; }
    .user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .user-level { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .user-row {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .user-balance-card {
      margin: 10px 0 8px;
      padding: 10px;
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border: 1px solid rgba(92, 225, 180, .24);
      border-radius: 8px;
      background:
        radial-gradient(circle at 12% 18%, rgba(92, 225, 180, .18), transparent 30%),
        linear-gradient(135deg, rgba(33, 43, 56, .88), rgba(18, 23, 34, .92));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.18);
    }
    .user-balance-card.loading { border-color: rgba(124, 92, 255, .35); }
    .user-balance-card.error { border-color: rgba(248, 113, 113, .35); }
    .user-balance-copy {
      min-width: 0;
      display: grid;
      gap: 3px;
    }
    .user-balance-label {
      font-size: 11px;
      color: var(--muted);
    }
    .user-balance-copy strong {
      font-size: 18px;
      line-height: 1.1;
      color: #f7fffb;
      letter-spacing: 0;
    }
    .user-balance-copy small {
      max-width: 132px;
      font-size: 10px;
      line-height: 1.35;
      color: rgba(214, 222, 235, .66);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .user-balance-refresh {
      flex: 0 0 auto;
      width: 30px;
      height: 30px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      background: rgba(255,255,255,.08);
      color: #dffcf4;
      font-size: 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .user-balance-refresh:hover { background: rgba(92, 225, 180, .16); }
    .user-balance-refresh:disabled {
      cursor: wait;
      opacity: .72;
    }
    .user-balance-card.loading .user-balance-refresh { animation: balanceSpin .9s linear infinite; }
    @keyframes balanceSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .logout-btn {
      width: 100%;
      height: 34px;
      margin-top: 6px;
      border: none;
      border-radius: 6px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      font-size: 12px;
      cursor: pointer;
    }
    .logout-btn:hover { background: rgba(255,255,255,.12); color: var(--red); }

    /* 主内容区 */
    .dashboard-main {
      min-height: 0;
      overflow-y: auto;
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .dashboard-hero {
      position: relative;
      min-height: 228px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.10);
      overflow: hidden;
      background: #10131c;
      text-align: center;
      box-shadow: 0 24px 70px rgba(0,0,0,.34);
    }
    .dashboard-carousel-track {
      position: absolute;
      inset: 0;
    }
    .dashboard-carousel-slide {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 8px;
      padding: 34px 82px 44px;
      opacity: 0;
      pointer-events: none;
      transform: scale(1.015);
      transition: opacity .55s ease, transform .55s ease;
      background-image:
        linear-gradient(90deg, rgba(14,16,28,.90), rgba(28,24,67,.66), rgba(6,26,36,.78)),
        var(--banner-image),
        radial-gradient(circle at 18% 20%, rgba(124,92,255,.38), transparent 36%),
        radial-gradient(circle at 86% 28%, rgba(70,184,143,.28), transparent 34%),
        linear-gradient(135deg, #201f48 0%, #102834 100%);
      background-size: cover;
      background-position: center;
    }
    .dashboard-carousel-slide.active {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1);
    }
    .dashboard-carousel-slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
      background-size: 38px 38px;
      mask-image: radial-gradient(circle at center, rgba(0,0,0,.75), transparent 72%);
      pointer-events: none;
    }
    .dashboard-carousel-slide > * {
      position: relative;
      z-index: 1;
    }
    .hero-kicker {
      font-size: 13px;
      color: #7df9ff;
      letter-spacing: 3px;
      font-weight: 700;
      text-transform: uppercase;
      text-shadow: 0 0 20px rgba(125,249,255,.35);
    }
    .hero-subtitle {
      font-size: 44px;
      font-weight: 900;
      line-height: 1.1;
      color: #fff;
      letter-spacing: -0.5px;
      text-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 80px rgba(124,92,255,.3);
    }
    .hero-ai {
      font-size: 38px;
      font-weight: 900;
      background: linear-gradient(135deg, #7df9ff 0%, #a98cff 50%, #ff6ec7 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.3px;
      filter: drop-shadow(0 0 24px rgba(124,92,255,.5));
    }
    .hero-desc {
      font-size: 14px;
      color: #e2e8f0;
      line-height: 1.8;
      max-width: 480px;
      text-shadow: 0 2px 10px rgba(0,0,0,.4);
    }
    .dashboard-carousel-btn {
      position: absolute;
      top: 50%;
      z-index: 2;
      width: 34px;
      height: 34px;
      transform: translateY(-50%);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 999px;
      background: rgba(8,10,16,.52);
      color: rgba(255,255,255,.82);
      font-size: 24px;
      line-height: 1;
      display: grid;
      place-items: center;
      backdrop-filter: blur(12px);
      transition: background .16s ease, border-color .16s ease, transform .16s ease;
    }
    .dashboard-carousel-btn:hover {
      background: rgba(124,92,255,.28);
      border-color: rgba(167,139,250,.44);
      transform: translateY(-50%) scale(1.04);
    }
    .dashboard-carousel-btn.prev { left: 18px; }
    .dashboard-carousel-btn.next { right: 18px; }
    .dashboard-carousel-dots {
      position: absolute;
      left: 50%;
      bottom: 18px;
      z-index: 2;
      display: flex;
      gap: 7px;
      transform: translateX(-50%);
    }
    .dashboard-carousel-dots button {
      width: 22px;
      height: 4px;
      border-radius: 999px;
      background: rgba(255,255,255,.28);
      transition: width .16s ease, background .16s ease;
    }
    .dashboard-carousel-dots button.active {
      width: 42px;
      background: linear-gradient(90deg, #8b7cff, #4bd7aa);
      box-shadow: 0 0 18px rgba(124,92,255,.36);
    }

    .dashboard-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .dashboard-section-header h3 {
      font-size: 17px;
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: 0;
    }
    .project-count {
      font-size: 12px;
      color: var(--muted);
      background: rgba(255,255,255,.08);
      padding: 3px 10px;
      border-radius: 12px;
      font-weight: 500;
    }
    .dashboard-tools { display: flex; gap: 8px; }
    .dashboard-search {
      width: 180px;
      height: 34px;
      padding: 0 12px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      background: rgba(12,14,20,.72);
      color: var(--ink);
      font-size: 12px;
      outline: none;
    }
    .dashboard-search:focus {
      border-color: rgba(124,92,255,.56);
      box-shadow: 0 0 0 3px rgba(124,92,255,.14);
    }
    .tool-btn {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 7px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      cursor: pointer;
      font-size: 13px;
    }
    .tool-btn:hover { background: rgba(255,255,255,.1); color: var(--ink); }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 14px;
    }
    .project-card {
      aspect-ratio: 16 / 10;
      border-radius: 12px;
      overflow: hidden;
      background:
        radial-gradient(circle at 20% 0%, rgba(124,92,255,.18), transparent 38%),
        linear-gradient(145deg, #111722, #0b0d12);
      border: 1px solid rgba(255,255,255,.10);
      cursor: pointer;
      position: relative;
      transition: all .18s ease;
    }
    .project-card:hover {
      border-color: rgba(124,92,255,.48);
      transform: translateY(-3px);
      box-shadow: 0 20px 46px rgba(0,0,0,.34), 0 0 0 1px rgba(124,92,255,.08);
    }
    .project-card:not(.new-card)::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(120deg, rgba(255,255,255,.10), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(70,184,143,.20), transparent 30%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
      background-size: auto, auto, 28px 28px, 28px 28px;
      opacity: .88;
      pointer-events: none;
    }
    .project-card:not(.new-card)::after {
      content: "";
      position: absolute;
      left: 12px;
      right: 12px;
      top: 44px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(143,185,255,.58), transparent);
      opacity: .42;
      pointer-events: none;
    }
    .project-card .card-thumb {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 36%;
      opacity: .92;
      transform: scale(1.01);
      transition: transform .22s ease, opacity .22s ease, filter .22s ease;
      filter: saturate(1.05) contrast(1.02);
    }
    .project-card.has-cover:hover .card-thumb {
      transform: scale(1.045);
      opacity: 1;
    }
    .project-card .card-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 34%),
        linear-gradient(transparent 24%, rgba(0,0,0,.92));
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 12px;
    }
    .project-card.has-cover .card-overlay {
      background:
        linear-gradient(180deg, rgba(4,8,18,.44), rgba(4,8,18,.10) 34%, rgba(0,0,0,.92)),
        radial-gradient(circle at 18% 0%, rgba(124,92,255,.22), transparent 38%);
    }
    .project-card .card-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .project-card .card-meta {
      display: flex;
      gap: 10px;
      font-size: 10px;
      color: var(--muted);
    }
    .project-card .card-tag {
      position: absolute;
      top: 8px;
      left: 8px;
      padding: 3px 8px;
      border-radius: 5px;
      background: rgba(8,10,16,.72);
      font-size: 10px;
      color: #c9d8ff;
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(8px);
      font-weight: 500;
    }
    .project-card .card-tag.right { left: auto; right: 8px; }

    .project-card.new-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-style: dashed;
      border-color: rgba(124,92,255,.28);
      background:
        linear-gradient(135deg, rgba(124,92,255,.10), rgba(70,184,143,.055)),
        rgba(255,255,255,.025);
    }
    .project-card.new-card:hover {
      border-color: rgba(124,92,255,.58);
      background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(70,184,143,.09));
    }
    .new-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(124,92,255,.24), rgba(70,184,143,.18));
      color: #e8f1ff;
      font-size: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255,255,255,.12);
    }
    .project-card.new-card span {
      font-size: 13px;
      color: var(--muted);
    }
    .project-card.new-card:hover span { color: var(--ink); }
    .project-card.new-card:hover .new-icon {
      background: rgba(255,255,255,.12);
      color: var(--ink);
    }

    /* 右侧信息栏 */
    .dashboard-info {
      padding: 16px;
      background: rgba(7,8,12,.76);
      border-left: 1px solid rgba(255,255,255,.09);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      backdrop-filter: blur(16px);
    }
    .info-card {
      padding: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 12px;
      box-shadow: 0 14px 34px rgba(0,0,0,.18);
    }
    .info-card h4 {
      font-size: 13px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .info-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .info-card li {
      font-size: 12px;
      color: var(--muted);
      padding: 5px 0;
      cursor: pointer;
    }
    .info-card li:hover { color: var(--ink); }
    .info-card p {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.6;
    }
    .info-card .empty {
      color: #555;
      font-style: italic;
      text-align: center;
      padding: 10px 0;
    }

    /* ===== Studio 工作台 ===== */
    .studio {
      height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      background: var(--bg);
    }
    .studio-topbar {
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      background: #0d0d0d;
      border-bottom: 1px solid var(--line);
    }
    .studio-left-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .studio-back-btn {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .studio-back-btn:hover { background: rgba(255,255,255,.08); color: var(--ink); }
    .studio-project-name {
      font-size: 14px;
      font-weight: 600;
    }
    .studio-auto-save {
      font-size: 11px;
      color: var(--muted);
    }

    .studio-tabs {
      display: flex;
      align-items: center;
      gap: 4px;
      flex: 1;
      padding: 0 20px;
    }
    .studio-tab {
      padding: 6px 14px;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 12px;
      cursor: pointer;
      font-weight: 500;
    }
    .studio-tab:hover { color: var(--ink); }
    .studio-tab.active {
      background: rgba(124,92,255,.15);
      color: var(--purple);
    }

    .studio-top-actions { display: flex; gap: 6px; }
    .studio-top-btn {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .studio-top-btn:hover { background: rgba(255,255,255,.08); color: var(--ink); }

    .studio-body {
      display: grid;
      grid-template-columns: 240px 1fr 260px;
      min-height: 0;
      overflow: hidden;
    }

    /* Studio 左侧面板 */
    .studio-left-panel {
      background: #0a0a0a;
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .studio-icon-bar {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 6px 8px;
      gap: 4px;
      background: #0d0d0d;
      border-bottom: 1px solid var(--line);
    }
    .studio-icon-btn {
      width: 36px;
      height: 36px;
      border: none;
      background: transparent;
      color: var(--muted);
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
    }
    .studio-icon-btn:hover { background: rgba(255,255,255,.08); color: var(--ink); }
    .studio-icon-btn.active {
      background: rgba(255,255,255,.1);
      color: var(--ink);
    }
    .studio-icon-btn .icon { font-size: 14px; }

    .studio-panel-section {
      padding: 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .studio-panel-section[data-left-section="chapter"] {
      flex: 1;
      min-height: 0;
    }
    .studio-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .studio-panel-header h4 {
      font-size: 12px;
      font-weight: 700;
    }
    .studio-add-btn {
      width: 24px;
      height: 24px;
      border: none;
      border-radius: 4px;
      background: rgba(255,255,255,.06);
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .studio-add-btn:hover { background: rgba(255,255,255,.12); color: var(--ink); }

    .studio-project-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
    }
    .studio-project-item {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 8px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 12px;
      color: var(--muted);
    }
    .studio-project-item:hover { background: rgba(255,255,255,.05); color: var(--ink); }
    .studio-project-item.active {
      background: rgba(124,92,255,.15);
      color: var(--ink);
    }
    .studio-project-item .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--muted);
      flex-shrink: 0;
    }
    .studio-project-item.active .dot { background: var(--purple); }
    .studio-project-item .name {
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .studio-project-item .delete-btn {
      width: 18px;
      height: 18px;
      border: none;
      background: transparent;
      color: transparent;
      border-radius: 3px;
      cursor: pointer;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .studio-project-item:hover .delete-btn { color: var(--muted); }
    .studio-project-item .delete-btn:hover { color: var(--red); background: rgba(228,108,108,.1); }

    /* 章节编辑区 */
    .chapter-edit-wrap {
      max-width: 920px;
      margin: 0 auto;
      padding: 28px 32px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .chapter-edit-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px 22px;
      background: linear-gradient(135deg, rgba(124,92,255,.10), rgba(78,168,255,.06));
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 4px 16px rgba(0,0,0,.18);
    }
    .chapter-edit-title {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    .chapter-edit-num {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, #7c5cff, #4ea8ff);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 800;
      letter-spacing: .5px;
      box-shadow: 0 4px 12px rgba(124,92,255,.35);
      flex-shrink: 0;
    }
    .chapter-edit-title h2 {
      font-size: 17px;
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 4px 0;
      line-height: 1.3;
      word-break: break-word;
    }
    .chapter-edit-meta {
      font-size: 12px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chapter-edit-meta .dot-sep {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: var(--muted);
      opacity: .5;
    }
    .chapter-edit-actions {
      display: flex;
      gap: 10px;
      flex-shrink: 0;
    }
    .chapter-edit-actions .btn {
      height: 38px;
      padding: 0 16px;
      font-size: 13px;
      font-weight: 600;
    }
    .chapter-content-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 4px 18px rgba(0,0,0,.22);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .chapter-content-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.02);
    }
    .chapter-content-card-header h3 {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      margin: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chapter-content-card-header h3::before {
      content: "";
      width: 3px;
      height: 14px;
      border-radius: 2px;
      background: linear-gradient(180deg, #7c5cff, #4ea8ff);
    }
    .chapter-content-card-header .word-count {
      font-size: 11px;
      color: var(--muted);
      font-weight: 500;
    }
    .chapter-content-textarea {
      width: 100%;
      min-height: 460px;
      max-height: 60vh;
      background: transparent;
      border: none;
      color: var(--ink);
      padding: 20px 24px;
      font-size: 14px;
      line-height: 1.85;
      resize: none;
      outline: none;
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    .chapter-content-textarea::placeholder {
      color: var(--muted);
      opacity: .55;
    }
    .chapter-content-empty {
      padding: 60px 24px;
      text-align: center;
      color: var(--muted);
    }
    .chapter-content-empty .empty-icon {
      font-size: 36px;
      margin-bottom: 12px;
      opacity: .4;
    }
    .chapter-content-empty .empty-text {
      font-size: 13px;
      margin-bottom: 18px;
    }

    /* Studio 中间画布 */
    .studio-canvas {
      background: var(--bg);
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }
    .studio-tab-content {
      flex: 1;
      min-height: 0;
      overflow: hidden;
      display: none;
      padding: 0;
    }
    .studio-tab-content.active { display: flex; flex-direction: column; }

    /* 分镜页面 */
    .board-page-wrap {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 0;
      margin: -24px;
    }
    .board-page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 28px;
      border-bottom: 1px solid var(--line);
      background: rgba(0,0,0,.25);
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(12px);
      flex-shrink: 0;
    }
    .board-page-header-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .board-page-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .board-page-title::before {
      content: "";
      width: 4px;
      height: 18px;
      border-radius: 2px;
      background: linear-gradient(180deg, #7c5cff, #4ea8ff);
    }
    .board-page-stats {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      color: var(--muted);
    }
    .board-page-stats .stat-divider {
      width: 1px;
      height: 14px;
      background: var(--line);
    }
    .board-page-stats strong {
      color: var(--ink);
      font-weight: 700;
      margin: 0 4px 0 0;
    }
    .board-page-header-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .board-page-header-right .btn {
      height: 34px;
      padding: 0 14px;
      font-size: 12.5px;
      font-weight: 600;
    }

    .board-list-container {
      flex: 1;
      overflow-y: auto;
      padding: 22px 28px 40px 28px;
      display: flex;
      justify-content: center;
    }
    .board-list-inner {
      width: 100%;
      max-width: 820px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .board-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 4px 16px rgba(0,0,0,.2);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .board-card:hover {
      border-color: var(--purple);
      box-shadow: 0 6px 20px rgba(124,92,255,.15);
    }
    .board-card-top {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 18px 18px 14px 18px;
    }
    .board-num {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      background: linear-gradient(135deg, #7c5cff, #4ea8ff);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12.5px;
      font-weight: 800;
      flex-shrink: 0;
      box-shadow: 0 3px 10px rgba(124,92,255,.3);
    }
    .board-thumb {
      width: 140px;
      height: 80px;
      border-radius: 8px;
      background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
      border: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 11px;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }
    .board-thumb .thumb-icon {
      font-size: 22px;
      opacity: .4;
    }
    .board-body {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .board-section-label {
      font-size: 10.5px;
      font-weight: 700;
      color: var(--purple);
      text-transform: uppercase;
      letter-spacing: .5px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .board-section-label::before {
      content: "";
      width: 3px;
      height: 10px;
      border-radius: 2px;
      background: linear-gradient(180deg, #7c5cff, #4ea8ff);
    }
    .board-description {
      font-size: 12.5px;
      line-height: 1.7;
      color: var(--ink);
      word-break: break-word;
    }
    .board-dialog {
      background: rgba(124,92,255,.06);
      border: 1px solid rgba(124,92,255,.12);
      border-radius: 10px;
      padding: 12px 14px;
      margin: 0 18px 14px 64px;
    }
    .board-dialog-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .board-dialog-text {
      font-size: 12.5px;
      line-height: 1.7;
      color: var(--ink);
      font-style: italic;
    }
    .board-dialog-text:empty::before {
      content: "输入角色对白...";
      color: var(--muted);
      opacity: .5;
      font-style: normal;
    }
    .board-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px 16px 64px;
      gap: 12px;
    }
    .board-duration {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--muted);
    }
    .board-duration strong {
      color: var(--ink);
      font-weight: 700;
    }
    .board-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .board-action-btn {
      height: 28px;
      padding: 0 10px;
      font-size: 11px;
      border-radius: 7px;
      background: transparent;
      border: 1px solid var(--line);
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all .2s ease;
      font-weight: 500;
    }
    .board-action-btn:hover {
      border-color: var(--purple);
      color: var(--purple);
      background: rgba(124,92,255,.06);
    }

    /* 生成中状态 */
    .board-generating-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex: 1;
      padding: 100px 20px;
      gap: 18px;
    }
    .board-spinner {
      width: 46px;
      height: 46px;
      border: 3px solid var(--line);
      border-top-color: var(--purple);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .board-generating-text {
      font-size: 14px;
      color: var(--ink);
      font-weight: 600;
    }
    .board-generating-progress {
      font-size: 22px;
      font-weight: 800;
      background: linear-gradient(135deg, #7c5cff, #4ea8ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .board-cancel-btn {
      margin-top: 8px;
      height: 34px;
      padding: 0 22px;
      font-size: 12.5px;
      border-radius: 8px;
      background: #e25b5b;
      border: none;
      color: #fff;
      cursor: pointer;
      font-weight: 600;
      transition: background .2s ease;
    }
    .board-cancel-btn:hover {
      background: #d14a4a;
    }

    /* 分镜空状态 */
    .board-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 80px 20px;
    }
    .board-empty-icon {
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(78,168,255,.08));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
    }
    .board-empty-text h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 6px 0;
      text-align: center;
    }
    .board-empty-text p {
      font-size: 13px;
      color: var(--muted);
      margin: 0;
      text-align: center;
    }

    .story-entry {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 24px;
    }
    .story-entry-title {
      text-align: center;
    }
    .story-entry-title h2 {
      font-size: 24px;
      margin-bottom: 8px;
    }
    .story-entry-title p {
      font-size: 13px;
      color: var(--muted);
    }
    .entry-cards {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .entry-card {
      width: 200px;
      padding: 28px 20px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 12px;
      cursor: pointer;
      transition: all .18s ease;
      text-align: center;
    }
    .entry-card:hover {
      border-color: rgba(124,92,255,.4);
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(0,0,0,.3);
    }
    .entry-card.entry-card-disabled {
      cursor: default;
      opacity: .72;
      pointer-events: none;
      background: rgba(19,21,30,.72);
      border-color: rgba(255,255,255,.08);
      filter: grayscale(.18);
    }
    .entry-card.entry-card-disabled:hover {
      transform: none;
      box-shadow: none;
      border-color: rgba(255,255,255,.08);
    }
    .entry-icon {
      width: 54px;
      height: 54px;
      margin: 0 auto 14px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
    }
    .entry-card:nth-child(1) .entry-icon { background: rgba(124,92,255,.15); color: var(--purple); }
    .entry-card:nth-child(2) .entry-icon { background: rgba(201,148,53,.15); color: var(--gold); }
    .entry-card:nth-child(3) .entry-icon { background: rgba(70,184,143,.15); color: var(--green-2); }
    .entry-card h3 {
      font-size: 15px;
      margin-bottom: 8px;
    }
    .entry-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      padding: 0 10px;
      margin-bottom: 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      color: rgba(255,255,255,.78);
      font-size: 12px;
      font-weight: 700;
    }
    .entry-card p {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Studio 右侧面板 */
    .studio-right-panel {
      background: #0a0a0a;
      border-left: 1px solid var(--line);
      padding: 16px;
      overflow-y: auto;
    }
    .right-panel-title {
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 10px;
    }
    .right-panel-empty {
      font-size: 12px;
      color: var(--muted);
      text-align: center;
      padding: 30px 10px;
    }

      /* project hover delete */
    .project-card .project-card-delete {
      position: absolute;
      z-index: 3;
      top: 9px;
      right: 9px;
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 7px;
      background: #b4232a;
      color: #fff;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-5px) scale(.92);
      transition: opacity .16s ease, transform .16s ease, background .16s ease;
    }
    .project-card:hover .project-card-delete,
    .project-card:focus-within .project-card-delete {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }
    .project-card .project-card-delete:hover { background: #dc3039; }
    .project-card .project-card-delete:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
    .project-card .project-card-delete svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ===== 新建项目对话框 ===== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 300;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(4px);
    }
    .modal-card {
      width: min(1060px, calc(100% - 40px));
      max-height: min(760px, calc(100vh - 40px));
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #0b0b0b;
      box-shadow: 0 24px 72px rgba(0, 0, 0, 0.56);
    }
    .modal-card-style { height: min(760px, calc(100vh - 40px)); }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 46px;
      padding: 0 18px;
      border-bottom: 1px solid var(--line);
      flex-shrink: 0;
    }
    .modal-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
    }
    .modal-close {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 5px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 19px;
      line-height: 1;
    }
    .modal-close:hover { background: rgba(255,255,255,0.07); color: var(--ink); }
    .modal-body {
      display: flex;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }
    .modal-left {
      width: 282px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 18px;
      overflow-y: auto;
      border-right: 1px solid var(--line);
      background: rgba(0,0,0,0.13);
      flex-shrink: 0;
    }
    .modal-field { display: flex; flex-direction: column; gap: 7px; }
    .modal-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }
    .modal-input,
    .modal-select,
    .modal-textarea {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid var(--line);
      border-radius: 6px;
      outline: none;
      background: rgba(255,255,255,0.025);
      color: var(--ink);
      font: inherit;
      font-size: 12px;
    }
    .modal-input,
    .modal-select {
      height: 36px;
      padding: 0 11px;
    }
    .modal-select {
      cursor: pointer;
      appearance: none;
      padding-right: 32px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 11px center;
    }
    .modal-select option { background: #181818; color: var(--ink); }
    .modal-textarea {
      min-height: 88px;
      padding: 10px 11px;
      line-height: 1.55;
      resize: vertical;
    }
    .modal-input:focus,
    .modal-select:focus,
    .modal-textarea:focus { border-color: var(--purple); }
    .style-preview {
      display: grid;
      gap: 7px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: rgba(255,255,255,0.025);
    }
    .style-preview-kicker {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .style-preview-name {
      color: #b69aff;
      font-size: 14px;
      font-weight: 800;
    }
    .style-preview-desc {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.55;
    }
    .modal-right {
      display: flex;
      flex: 1;
      min-width: 0;
      flex-direction: column;
      gap: 14px;
      padding: 18px;
      overflow: hidden;
    }
    .style-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-shrink: 0;
    }
    .style-toolbar-title {
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
    }
    .style-tabs {
      display: flex;
      align-items: center;
      gap: 2px;
      padding: 3px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: rgba(255,255,255,0.035);
    }
    .style-tab {
      min-width: 42px;
      height: 28px;
      padding: 0 9px;
      border: 0;
      border-radius: 5px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 11px;
      font-weight: 700;
    }
    .style-tab:hover { color: var(--ink); background: rgba(255,255,255,0.055); }
    .style-tab.active {
      color: #fff;
      background: rgba(139,92,246,0.28);
      box-shadow: inset 0 0 0 1px rgba(166,128,255,0.12);
    }
    .style-tip { color: var(--muted); font-size: 11px; white-space: nowrap; }
    .style-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      min-height: 0;
      flex: 1;
      align-content: start;
      overflow-y: auto;
      padding: 1px 5px 4px 1px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.2) transparent;
    }
    .style-grid::-webkit-scrollbar { width: 6px; }
    .style-grid::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(255,255,255,0.2); }
    .style-card {
      position: relative;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 8px;
      background: #1a1a1a;
      cursor: pointer;
      overflow: hidden;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    }
    .style-card:hover {
      transform: translateY(-2px);
      border-color: rgba(255,255,255,0.38);
      box-shadow: 0 9px 20px rgba(0,0,0,0.36);
    }
    .style-card.active {
      border-color: #8b5cf6;
      box-shadow: 0 0 0 2px rgba(139,92,246,.5), 0 9px 20px rgba(0,0,0,.42);
    }
    .style-card-img-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 3 / 4;
      background: #161616;
      overflow: hidden;
    }
    .style-card-img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center top;
      transition: transform .32s ease;
    }
    .style-card:hover .style-card-img { transform: scale(1.04); }
    .style-card-check {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 2;
      width: 24px;
      height: 24px;
      display: none;
      border-radius: 50%;
      background: #8b5cf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
      box-shadow: 0 2px 8px rgba(139,92,246,.54);
    }
    .style-card.active .style-card-check { display: block; }
    .style-card-name {
      padding: 8px 10px;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      text-align: center;
      background: rgba(0,0,0,0.7);
    }
    .modal-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
      padding: 14px 18px;
      border-top: 1px solid var(--line);
      flex-shrink: 0;
    }
    .modal-footer .btn {
      height: 36px;
      min-width: 74px;
      padding: 0 18px;
      border-radius: 7px;
      font-size: 12px;
    }
    @media (max-width: 760px) {
      .modal-overlay { padding: 10px; }
      .modal-card-style { width: 100%; height: calc(100vh - 20px); }
      .modal-body { overflow-y: auto; flex-direction: column; }
      .modal-left { width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
      .modal-right { min-height: 450px; overflow: visible; }
      .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
      .style-toolbar { align-items: flex-start; flex-direction: column; }
    }

    /* ===== 系统设置面板 ===== */
    .settings-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      backdrop-filter: blur(4px);
    }
    .settings-overlay.hidden { display: none; }
    .settings-panel {
      width: min(900px, calc(100vw - 40px));
      height: min(650px, calc(100vh - 40px));
      background: var(--card);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .settings-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 24px;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.02);
    }
    .settings-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 600;
      color: var(--ink);
    }
    .settings-icon { font-size: 20px; }
    .settings-close {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--ink);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .settings-close:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--purple); }
    .settings-body {
      display: flex;
      flex: 1;
      overflow: hidden;
    }
    .settings-sidebar {
      width: 180px;
      padding: 12px;
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: rgba(255, 255, 255, 0.02);
    }
    .settings-nav-btn {
      padding: 12px 14px;
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 13px;
      border-radius: 8px;
      cursor: pointer;
      text-align: left;
      transition: all 0.2s ease;
    }
    .settings-nav-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
    .settings-nav-btn.active {
      background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
      color: #fff;
    }
    .settings-content {
      flex: 1;
      padding: 24px;
      overflow-y: auto;
    }
    .settings-tab-content {
      display: none;
    }
    .settings-tab-content.active {
      display: block;
    }
    .settings-section-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 20px;
    }
    .settings-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 16px;
    }
    .settings-card-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 6px;
    }
    .settings-card-desc {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 16px;
    }
    .settings-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .settings-label {
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
    }
    .settings-input {
      height: 40px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.3);
      color: var(--ink);
      font-size: 13px;
      transition: all 0.2s ease;
    }
    .settings-input:focus {
      outline: none;
      border-color: var(--purple);
      box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    }
    .settings-input-group {
      display: flex;
      gap: 8px;
    }
    .settings-input-group .settings-input {
      flex: 1;
    }
    .settings-btn-secondary {
      height: 40px;
      padding: 0 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      color: var(--ink);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .settings-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--purple); }
    .settings-hint {
      font-size: 11px;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.5;
    }
    .settings-select {
      height: 40px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.3);
      color: var(--ink);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .settings-select:focus {
      outline: none;
      border-color: var(--purple);
      box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    }
    .settings-select option {
      background: #1a1a1f;
      color: var(--ink);
    }

    /* ===== AI 创作向导 ===== */
    .wizard-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.68);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1100;
      padding: 18px;
    }
    .wizard-panel {
      width: min(828px, calc(100vw - 36px));
      max-height: calc(100vh - 36px);
      background: #0b0b0b;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
    }
    .wizard-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 24px 26px 10px;
    }
    .wizard-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 800;
      color: #f4f4f4;
    }
    .wizard-icon {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #f4f4f4;
    }
    .wizard-icon svg,
    .wizard-step-icon svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .wizard-close {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: none;
      background: transparent;
      color: #909090;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .wizard-close:hover { background: rgba(255,255,255,.06); color: #fff; }
    .wizard-subtitle {
      padding: 0 26px 16px;
      font-size: 12px;
      color: #8d8d8d;
      margin: 0;
    }
    .wizard-steps {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 26px 14px;
      border-top: 1px solid rgba(255,255,255,.05);
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.02);
    }
    .wizard-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 54px;
      color: #666;
    }
    .wizard-step.active { color: #f2f2f2; }
    .wizard-step-icon {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.02);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #717171;
    }
    .wizard-step.active .wizard-step-icon {
      background: #f2f2f2;
      border-color: #f2f2f2;
      color: #111;
    }
    .wizard-step-label {
      font-size: 12px;
      color: inherit;
      font-weight: 700;
    }
    .wizard-step-line {
      flex: 1;
      height: 1px;
      margin-top: 15px;
      background: rgba(255,255,255,.12);
    }
    .wizard-step-line.active { background: rgba(255,255,255,.18); }
    .wizard-body {
      padding: 22px 26px 24px;
      overflow-y: auto;
      flex: 1;
    }
    .wizard-step-content { display: none; }
    .wizard-step-content.active { display: block; }
    .wizard-form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-bottom: 14px;
    }
    .wizard-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 16px;
      transition: padding-bottom .16s ease;
    }
    .wizard-field.combo-open {
      position: relative;
      z-index: 80;
    }
    .wizard-label {
      font-size: 12px;
      color: #e7e7e7;
      font-weight: 700;
    }
    .wizard-input,
    .wizard-select,
    .wizard-textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 6px;
      background: #0e0e0e;
      color: #f0f0f0;
      font-size: 13px;
      font-family: inherit;
      padding: 0 14px;
      height: 32px;
      box-sizing: border-box;
      transition: border-color .15s ease, background-color .15s ease;
    }
    .wizard-input::placeholder,
    .wizard-textarea::placeholder { color: #767676; }
    .wizard-textarea {
      height: auto;
      min-height: 200px;
      padding: 10px 14px;
      resize: vertical;
      line-height: 1.6;
    }
    .wizard-input:focus,
    .wizard-select:focus,
    .wizard-textarea:focus {
      outline: none;
      border-color: rgba(255,255,255,.42);
      background: #101010;
      box-shadow: none;
    }
    .wizard-final-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
      color: #fff;
    }
    .wizard-final-desc {
      font-size: 13px;
      color: #a1a1aa;
      margin-bottom: 24px;
      line-height: 1.6;
    }
    .wizard-final-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, #8b5cf6, #ec4899);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
    }
    .wizard-check-icon {
      width: 32px;
      height: 32px;
    }
    .wizard-final-summary {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 12px;
      padding: 20px;
    }
    .wizard-summary-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .wizard-summary-item:last-child {
      border-bottom: none;
    }
    .wizard-summary-label {
      font-size: 13px;
      color: #a1a1aa;
      font-weight: 500;
    }
    .wizard-summary-value {
      font-size: 13px;
      color: #fff;
      font-weight: 500;
      text-align: right;
      max-width: 60%;
      word-break: break-word;
    }
    .wizard-select {
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23858585' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 12px;
      padding-right: 34px;
    }
    .wizard-combo {
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;
    }
    .wizard-combo.open {
      z-index: 90;
    }
    .wizard-combo-input {
      padding-right: 44px;
    }
    .wizard-combo-toggle {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      width: 26px;
      height: 24px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 6px;
      background: rgba(255,255,255,.04);
      color: #a8a8a8;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    }
    .wizard-combo-toggle svg {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: none;
      transition: transform .15s ease;
    }
    .wizard-combo-toggle:hover {
      background: rgba(255,255,255,.09);
      border-color: rgba(255,255,255,.18);
      color: #fff;
    }
    .wizard-combo.open .wizard-combo-toggle svg {
      transform: rotate(180deg);
    }
    .wizard-combo-list {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 8px);
      z-index: 100;
      max-height: var(--wizard-combo-max-height, min(240px, 34vh));
      overflow-y: auto;
      padding: 8px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: #121316;
      box-shadow: 0 18px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
      display: none;
    }
    .wizard-combo.open-up .wizard-combo-list {
      top: auto;
      bottom: calc(100% + 8px);
    }
    .wizard-combo.open .wizard-combo-list {
      display: grid;
      gap: 5px;
    }
    .wizard-combo-option {
      width: 100%;
      min-height: 42px;
      padding: 8px 10px;
      border: 1px solid transparent;
      border-radius: 7px;
      background: transparent;
      color: #f2f2f2;
      font-size: 13px;
      line-height: 1.35;
      text-align: left;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 2px;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    .wizard-combo-option strong {
      font-size: 13px;
      color: #fff;
    }
    .wizard-combo-option span {
      font-size: 12px;
      color: #8e96a3;
      font-weight: 500;
    }
    .wizard-combo-option:hover,
    .wizard-combo-option:focus-visible {
      outline: none;
      background: rgba(79, 70, 229, .18);
      border-color: rgba(129, 140, 248, .32);
    }
    .wizard-combo-empty {
      padding: 12px 10px;
      color: #8e96a3;
      font-size: 12px;
      line-height: 1.5;
    }
    .wizard-select option {
      background: #151515;
      color: #f0f0f0;
    }
    .wizard-footer {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      padding: 16px 22px 18px;
      border-top: 1px solid rgba(255,255,255,.08);
      background: #0a0a0a;
    }
    .wizard-btn {
      height: 44px;
      min-width: 88px;
      padding: 0 24px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.12);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    }
    .wizard-btn.ghost {
      background: #0c0c0c;
      color: #d0d0d0;
    }
    .wizard-btn.ghost:hover { background: #141414; color: #fff; }
    .wizard-btn.primary {
      background: #f3f3f3;
      color: #121212;
      border-color: #f3f3f3;
    }
    .wizard-btn.primary:hover {
      background: #ffffff;
      color: #111;
    }
    .wizard-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .wizard-generate-view {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 48px 24px;
      min-height: 320px;
    }
    .wizard-generate-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(255,255,255,.06);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      color: #a0a0a0;
    }
    .wizard-generate-icon svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .wizard-generate-title {
      font-size: 16px;
      font-weight: 800;
      color: #f4f4f4;
      margin-bottom: 10px;
    }
    .wizard-generate-desc {
      font-size: 13px;
      color: #999;
      line-height: 1.6;
      max-width: 360px;
      margin-bottom: 8px;
    }
    .wizard-generate-tip {
      font-size: 12px;
      color: #666;
      line-height: 1.5;
      max-width: 360px;
      margin-bottom: 24px;
    }
    .wizard-outline-result {
      display: flex;
      flex-direction: column;
      gap: 12px;
      height: 100%;
    }
    .wizard-outline-result.hidden { display: none; }
    .wizard-outline-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* ===== Storyboard workbench, matched to the reference video flow ===== */
    .board-workbench {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      background: #070707;
      overflow: hidden;
    }
    .board-workbench-body {
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: 168px minmax(440px, 1fr) 310px;
      overflow: hidden;
    }
    .board-rail {
      min-height: 0;
      overflow-y: auto;
      padding: 12px 10px;
      border-right: 1px solid var(--line);
      background: #090909;
    }
    .board-rail-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      color: #efefef;
      font-size: 12px;
      font-weight: 800;
    }
    .board-rail-count { color: var(--muted); font-size: 11px; font-weight: 700; }
    .board-rail-card {
      width: 100%;
      display: grid;
      gap: 7px;
      margin-bottom: 10px;
      padding: 8px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 8px;
      background: #101010;
      color: var(--muted);
      text-align: left;
      cursor: pointer;
    }
    .board-rail-card.active {
      border-color: rgba(255,255,255,.85);
      color: #fff;
      box-shadow: 0 0 0 1px rgba(255,255,255,.16);
    }
    .board-rail-thumb {
      aspect-ratio: 9 / 16;
      border-radius: 7px;
      overflow: hidden;
      background: linear-gradient(145deg, #132117, #121212 58%, #211114);
      border: 1px solid rgba(255,255,255,.08);
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.4);
      font-size: 11px;
      font-weight: 800;
    }
    .board-rail-thumb img,
    .board-detail-preview img,
    .board-shot-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      cursor: zoom-in;
    }
    .image-preview-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
    }
    .image-preview-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
    }
    .image-preview-content img {
      max-width: 90vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .image-preview-close {
      position: absolute;
      top: -16px;
      right: -16px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--accent);
      color: white;
      border: none;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 1;
    }
    .image-preview-close:hover {
      background: var(--accent-hover);
    }
    .board-rail-title {
      font-size: 11px;
      line-height: 1.35;
      font-weight: 800;
      color: inherit;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .board-rail-meta {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      color: var(--muted);
      font-size: 10px;
    }
    .board-main {
      min-width: 0;
      min-height: 0;
      overflow-y: auto;
      padding: 14px 16px 24px;
      background: #080808;
    }
    .board-main-toolbar {
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      color: var(--muted);
      font-size: 12px;
    }
    .board-main-title { color: #fff; font-size: 15px; font-weight: 900; }
    .board-main-actions { display: flex; gap: 8px; }
    .board-segment-card {
      display: grid;
      grid-template-columns: 34px 86px minmax(0, 1fr) 78px;
      gap: 12px;
      margin-bottom: 12px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 8px;
      background: #101010;
      cursor: pointer;
    }
    .board-segment-card.active {
      border-color: rgba(255,255,255,.85);
      box-shadow: 0 0 0 1px rgba(255,255,255,.16);
    }
    .board-shot-index {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 7px;
      background: #202020;
      color: #fff;
      font-size: 12px;
      font-weight: 900;
    }
    .board-shot-thumb {
      aspect-ratio: 9 / 16;
      min-height: 96px;
      border-radius: 7px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.08);
      background: #151515;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .board-shot-content { min-width: 0; display: grid; gap: 9px; }
    .board-shot-title { color: #fff; font-size: 13px; font-weight: 900; }
    .board-shot-row {
      display: grid;
      grid-template-columns: 62px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
    }
    .board-shot-label {
      padding-top: 2px;
      color: #d9d9d9;
      font-size: 11px;
      font-weight: 800;
    }
    .board-shot-text {
      min-height: 34px;
      padding: 8px 10px;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,.08);
      background: #151515;
      color: #ececec;
      font-size: 12px;
      line-height: 1.55;
      white-space: pre-wrap;
    }
    .board-shot-assets {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }
    .board-shot-asset {
      min-height: 26px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px;
      border: 1px solid rgba(112, 163, 255, .22);
      border-radius: 6px;
      background: rgba(68, 107, 189, .10);
      color: #c8d8ff;
      font-size: 11px;
      line-height: 1.35;
    }
    .board-shot-asset b {
      color: #77a5ff;
      font-weight: 800;
    }
    .board-shot-pills { display: flex; flex-wrap: wrap; gap: 6px; }
    .board-shot-pill {
      min-height: 23px;
      padding: 4px 8px;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.08);
      color: var(--muted);
      font-size: 11px;
      line-height: 1.2;
    }
    .board-shot-side {
      display: grid;
      gap: 8px;
      align-content: start;
    }
    .board-duration-chip {
      min-height: 30px;
      display: grid;
      place-items: center;
      border-radius: 6px;
      background: #181818;
      border: 1px solid rgba(255,255,255,.08);
      color: #fff;
      font-size: 12px;
      font-weight: 800;
    }
    .board-mini-btn {
      min-height: 28px;
      border-radius: 6px;
      background: #171717;
      border: 1px solid rgba(255,255,255,.10);
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .board-mini-btn:hover { color: #fff; background: #222; }
    .board-delete-image-btn {
      border-color: rgba(228,108,108,.38);
      color: #f5a3a3;
    }
    .board-delete-image-btn:hover {
      color: #fff;
      background: rgba(185,62,62,.18);
      border-color: rgba(245,163,163,.62);
    }
    .board-cancel-image-btn {
      border-color: rgba(228,108,108,.42) !important;
      color: #f3b0b0 !important;
      background: rgba(228,108,108,.08) !important;
    }
    .board-cancel-image-btn:hover {
      color: #fff !important;
      background: rgba(228,108,108,.18) !important;
      border-color: rgba(245,163,163,.72) !important;
    }
    .board-delete-card-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
      padding: 6px 10px;
      border-radius: 6px;
      background: rgba(228,108,108,.08);
      border: 1px solid rgba(228,108,108,.35);
      color: #f5a3a3;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: all .15s ease;
    }
    .board-delete-card-btn:hover {
      background: rgba(228,108,108,.2);
      color: #fff;
      border-color: #e46c6c;
    }
    .board-delete-card-btn svg {
      width: 12px;
      height: 12px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }
    .board-detail {
      min-width: 0;
      min-height: 0;
      overflow-y: auto;
      border-left: 1px solid var(--line);
      padding: 14px;
      background: #0a0a0a;
    }
    .board-detail-preview {
      aspect-ratio: 9 / 16;
      border-radius: 9px;
      overflow: hidden;
      background: linear-gradient(145deg, #142018, #0b0b0b 55%, #211211);
      border: 1px solid rgba(255,255,255,.10);
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.44);
      font-size: 13px;
      font-weight: 900;
      margin-bottom: 14px;
    }
    .board-detail-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .board-detail-title { color: #fff; font-size: 14px; font-weight: 900; }
    .board-detail-section { margin-bottom: 14px; }
    .board-detail-section h4 {
      margin: 0 0 7px;
      color: #f2f2f2;
      font-size: 12px;
    }
    .board-detail-field {
      width: 100%;
      min-height: 36px;
      border-radius: 7px;
      border: 1px solid rgba(255,255,255,.10);
      background: #141414;
      color: #efefef;
      padding: 9px 10px;
      outline: none;
      font-size: 12px;
      line-height: 1.55;
      resize: vertical;
    }
    .board-detail-field:focus {
      border-color: rgba(255,255,255,.45);
      box-shadow: 0 0 0 3px rgba(255,255,255,.08);
    }
    .board-detail-hint {
      margin-top: 6px;
      color: #8fb9ff;
      font-size: 11px;
      line-height: 1.45;
    }
    .board-detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .board-detail-label {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .board-video-settings {
      gap: 10px;
      align-items: end;
    }
    .board-video-settings .board-detail-label {
      gap: 6px;
      color: rgba(171, 190, 210, .88);
    }
    .board-video-settings .board-detail-field,
    .board-video-settings .board-custom-select-trigger,
    .board-video-settings .board-resolution-control {
      min-height: 38px;
      height: 38px;
      border-radius: 8px;
      border-color: rgba(255,255,255,.13);
      background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        #111318;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
    }
    .board-video-settings .board-detail-field {
      padding: 0 11px;
      line-height: 38px;
      color: #f5f8ff;
      font-size: 12px;
      font-weight: 900;
    }
    .board-video-settings .board-detail-field:focus {
      border-color: rgba(92,225,180,.42);
      box-shadow: 0 0 0 3px rgba(92,225,180,.10), inset 0 1px 0 rgba(255,255,255,.08);
    }
    .board-video-input::-webkit-outer-spin-button,
    .board-video-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .board-video-input {
      -moz-appearance: textfield;
      appearance: textfield;
    }
    .board-resolution-label {
      grid-column: 1 / -1;
    }
    .board-custom-select {
      position: relative;
      min-width: 0;
    }
    .board-custom-select-trigger {
      width: 100%;
      padding: 0 9px 0 11px;
      border: 1px solid rgba(255,255,255,.13);
      color: #f5f8ff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      cursor: pointer;
    }
    .board-custom-select-trigger span {
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 12px;
      font-weight: 900;
    }
    .board-custom-select-trigger em {
      flex: 0 0 auto;
      color: rgba(214,222,235,.86);
      font-style: normal;
      font-size: 13px;
      transform: translateY(-1px);
    }
    .board-custom-select.open .board-custom-select-trigger {
      border-color: rgba(92,225,180,.46);
      box-shadow: 0 0 0 3px rgba(92,225,180,.10), inset 0 1px 0 rgba(255,255,255,.08);
    }
    .board-custom-select-menu {
      position: absolute;
      z-index: 40;
      top: calc(100% + 5px);
      left: 0;
      min-width: max(100%, 220px);
      display: none;
      max-height: 168px;
      overflow-y: auto;
      padding: 5px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 9px;
      background: rgba(12, 14, 18, .98);
      box-shadow: 0 16px 34px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.05);
    }
    .board-custom-select.open .board-custom-select-menu { display: grid; gap: 3px; }
    .board-custom-select-option {
      min-height: 28px;
      padding: 0 8px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: rgba(235,240,248,.82);
      text-align: left;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .board-custom-select-option:hover {
      background: rgba(255,255,255,.08);
      color: #fff;
    }
    .board-custom-select-option.active {
      background: rgba(92,225,180,.18);
      color: #bfffee;
    }
    .board-resolution-control {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 4px;
      padding: 4px;
      border: 1px solid rgba(255,255,255,.12);
    }
    .board-resolution-option {
      min-width: 0;
      height: 30px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: rgba(230, 236, 246, .76);
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      letter-spacing: 0;
    }
    .board-resolution-option:hover {
      background: rgba(255,255,255,.07);
      color: #fff;
    }
    .board-resolution-option.active {
      background: rgba(92,225,180,.18);
      color: #dffcf4;
      box-shadow: inset 0 0 0 1px rgba(92,225,180,.36);
    }
    .board-detail-actions { display: grid; gap: 8px; }
    .board-detail-actions .btn { width: 100%; min-height: 34px; font-size: 12px; }
    .board-detail-actions [data-edit-shot-image] {
      width: 100%;
      min-height: 36px;
      border: 0;
      border-radius: 10px;
      background: linear-gradient(135deg, #f8fbff, #dce7ff);
      color: #111827;
      font-weight: 900;
      font-size: 12px;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(78,168,255,.16);
      transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    }
    .board-detail-actions [data-edit-shot-image]:hover {
      transform: translateY(-1px);
      filter: brightness(1.03);
      box-shadow: 0 12px 24px rgba(78,168,255,.22);
    }
    .board-detail-actions [data-edit-shot-image]:disabled {
      opacity: .6;
      cursor: not-allowed;
      transform: none;
    }
    .board-edit-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 4px 0 10px;
    }
    .board-edit-suggestion {
      padding: 5px 11px;
      border: 1px solid rgba(124,92,255,.28);
      border-radius: 999px;
      background: rgba(124,92,255,.1);
      color: #c8bfff;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    }
    .board-edit-suggestion:hover {
      background: rgba(124,92,255,.22);
      border-color: rgba(124,92,255,.55);
      color: #ece5ff;
      transform: translateY(-1px);
    }
    .board-edit-suggestion:active {
      transform: translateY(0);
    }
    .board-edit-reference-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin: 6px 0 10px;
      color: #8fa1b8;
      font-size: 11px;
      line-height: 1.35;
    }
    .board-edit-import-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border: 1px solid rgba(78,168,255,.36);
      border-radius: 6px;
      background: rgba(78,168,255,.10);
      color: #bfe3ff;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
    }
    .board-edit-import-btn input { display: none; }
    .board-edit-reference-grid {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 52px;
      justify-content: flex-start;
      gap: 6px;
      margin: 0 0 10px;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 3px;
      scrollbar-width: thin;
    }
    .board-edit-reference-thumb {
      position: relative;
      width: 52px;
      height: 52px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 6px;
      background: #0b0b0b;
    }
    .board-edit-reference-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .board-edit-reference-preview {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: zoom-in;
    }
    .board-edit-reference-preview:focus-visible {
      outline: 2px solid #78c8ff;
      outline-offset: -2px;
    }
    .board-edit-reference-thumb > [data-remove-edit-reference] {
      position: absolute;
      top: 3px;
      right: 3px;
      width: 18px;
      height: 18px;
      min-height: 18px;
      padding: 0;
      border: 1px solid rgba(255,120,120,.45);
      border-radius: 50%;
      background: rgba(24,7,7,.82);
      color: #ffcaca;
      font-size: 15px;
      font-weight: 800;
      line-height: 15px;
      cursor: pointer;
    }
    .board-edit-reference-thumb > [data-remove-edit-reference] { z-index: 1; }
    .board-detail-tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      padding: 4px;
      margin-bottom: 12px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 7px;
      background: #151515;
    }
    .board-detail-tab {
      min-height: 30px;
      border: 0;
      border-radius: 5px;
      background: transparent;
      color: #888;
      font-size: 12px;
      font-weight: 800;
    }
    .board-detail-tab.active { color: #fff; background: #080808; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
    .board-model-callout {
      padding: 10px;
      margin-bottom: 12px;
      border: 1px solid rgba(76,190,255,.42);
      border-radius: 7px;
      background: #10354b;
      color: #d7f0ff;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.45;
    }
    .board-reference-button {
      width: 100%;
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 7px;
      background: #141414;
      color: #e8e8e8;
      font-size: 12px;
      text-align: left;
    }
    .board-reference-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .board-reference-button em { color: #8ecfff; font-style: normal; font-size: 11px; }
    .board-reference-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 7px;
    }
    .board-reference-chip {
      max-width: 100%;
      padding: 4px 7px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      border-radius: 5px;
      background: #1c1c1c;
      border: 1px solid rgba(255,255,255,.10);
      color: #bfcad2;
      font-size: 11px;
    }
    .board-ai-recommend {
      display: grid;
      gap: 7px;
      padding: 9px;
      margin-bottom: 12px;
      border: 1px solid rgba(137,112,255,.30);
      border-radius: 7px;
      background: #15131d;
    }
    .board-ai-recommend-head { color: #d9ccff; font-size: 11px; font-weight: 900; }
    .board-ai-recommend-actions { display: flex; gap: 6px; }
    .board-ai-recommend-actions button {
      flex: 1;
      min-height: 28px;
      border: 1px solid rgba(137,112,255,.38);
      border-radius: 5px;
      background: #1d1930;
      color: #ded5ff;
      font-size: 11px;
      font-weight: 800;
    }
    .board-frame-preview {
      aspect-ratio: 9 / 16;
      overflow: hidden;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 8px;
      background: #1c1c1c;
      color: #777;
      font-size: 12px;
    }
    .board-frame-preview img,
    .board-video-preview video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      cursor: zoom-in;
    }
    .board-video-preview {
      aspect-ratio: 9 / 16;
      overflow: hidden;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 8px;
      background: #1c1c1c;
      color: #777;
      font-size: 12px;
    }
    .board-video-preview.ratio-16-9 { aspect-ratio: 16 / 9; }
    .board-video-preview.ratio-1-1 { aspect-ratio: 1 / 1; }
    .board-video-preview.ratio-9-16 { aspect-ratio: 9 / 16; }
    .board-video-preview video {
      background: #000;
    }
    .board-video-preview.is-generating {
      color: #a8d5ef;
      background: #101821;
    }
    .board-frame-pair {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 7px;
      margin-bottom: 12px;
    }
    .board-frame-thumb {
      min-height: 74px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 6px;
      background: #1a1a1a;
      color: #767676;
      display: grid;
      place-items: center;
      font-size: 11px;
    }
    .board-frame-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .board-picker-overlay {
      position: fixed;
      inset: 0;
      z-index: 1600;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(0,0,0,.68);
    }
    .board-picker-dialog {
      width: min(760px, 94vw);
      max-height: min(680px, 88vh);
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr) auto;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: #0d0d0d;
      box-shadow: 0 24px 80px rgba(0,0,0,.55);
    }
    .board-picker-head,
    .board-picker-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 15px;
      border-bottom: 1px solid rgba(255,255,255,.09);
    }
    .board-picker-foot { border-top: 1px solid rgba(255,255,255,.09); border-bottom: 0; }
    .board-picker-title { color: #fff; font-size: 14px; font-weight: 900; }
    .board-picker-close {
      width: 28px;
      height: 28px;
      border: 0;
      background: transparent;
      color: #999;
      font-size: 20px;
    }
    .board-picker-search {
      width: calc(100% - 30px);
      margin: 12px 15px;
      min-height: 36px;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 6px;
      background: #151515;
      color: #eee;
      padding: 8px 10px;
      outline: none;
    }
    .board-picker-grid {
      min-height: 0;
      overflow-y: auto;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
      align-content: start;
      gap: 11px;
      padding: 0 15px 15px;
    }
    .board-picker-item {
      overflow: hidden;
      padding: 0;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 7px;
      background: #151515;
      color: #ddd;
      text-align: left;
    }
    .board-picker-item.selected { border-color: #7c68ff; box-shadow: 0 0 0 2px rgba(124,104,255,.20); }
    .board-picker-thumb { aspect-ratio: 3 / 4; background: #242424; }
    .board-picker-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .board-picker-name { display: block; padding: 8px 9px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }
    .board-picker-type { display: block; padding: 0 9px 8px; color: #888; font-size: 11px; }
    .board-picker-empty { grid-column: 1 / -1; padding: 36px 12px; color: #777; text-align: center; font-size: 12px; }
    .board-asset-link {
      display: block;
      color: #9fc8ff;
      font-size: 11px;
      line-height: 1.4;
      word-break: break-all;
      margin-top: 6px;
    }
    .board-timeline {
      min-height: 92px;
      display: grid;
      grid-template-columns: 168px 1fr 310px;
      border-top: 1px solid var(--line);
      background: #070707;
    }
    .board-timeline-left {
      display: grid;
      align-content: center;
      gap: 5px;
      padding: 12px;
      border-right: 1px solid var(--line);
      color: #fff;
      font-size: 12px;
      font-weight: 900;
    }
    .board-timeline-left span { color: var(--muted); font-size: 11px; font-weight: 700; }
    .board-timeline-track {
      padding: 13px 16px;
      overflow-x: auto;
    }
    .board-timeline-ruler {
      height: 16px;
      display: flex;
      gap: 22px;
      color: #555;
      font-size: 10px;
      margin-bottom: 11px;
    }
    .board-timeline-clips { display: flex; gap: 4px; align-items: stretch; min-width: max-content; }
    .board-timeline-empty {
      min-height: 34px;
      display: grid;
      align-items: center;
      color: #686868;
      font-size: 11px;
    }
    .board-clip {
      min-width: 58px;
      height: 34px;
      border-radius: 5px;
      background: linear-gradient(90deg, rgba(124,92,255,.24), rgba(78,168,255,.18));
      border: 1px solid rgba(124,92,255,.35);
      color: #ddd;
      display: grid;
      place-items: center;
      font-size: 10px;
      font-weight: 900;
      cursor: pointer;
    }
    .board-timeline-video-clip {
      position: relative;
      overflow: hidden;
      padding: 0;
      text-align: left;
      background: #1a2730;
      cursor: grab;
      user-select: none;
    }
    .board-timeline-video-clip:active { cursor: grabbing; }
    .board-timeline-video-clip.is-dragging { opacity: .34; }
    .board-timeline-video-clip.is-drop-target {
      border-color: #fff;
      box-shadow: 0 0 0 2px rgba(255,255,255,.24);
    }
    .board-timeline-video-clip:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
    .board-timeline-video-clip img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .55;
    }
    .board-timeline-video-clip span {
      position: relative;
      z-index: 1;
      display: block;
      padding: 0 7px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-shadow: 0 1px 2px rgba(0,0,0,.8);
    }
    .board-timeline-clip-delete {
      position: absolute;
      z-index: 3;
      top: 4px;
      right: 4px;
      width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid rgba(255,255,255,.4);
      border-radius: 4px;
      background: rgba(58,12,16,.88);
      color: #fff;
      opacity: 0;
      transform: translateY(-3px);
      transition: opacity .16s ease, transform .16s ease, background .16s ease;
      cursor: pointer;
    }
    .board-timeline-clip-delete svg {
      width: 13px;
      height: 13px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .board-timeline-video-clip:hover .board-timeline-clip-delete,
    .board-timeline-video-clip:focus-within .board-timeline-clip-delete {
      opacity: 1;
      transform: translateY(0);
    }
    .board-timeline-clip-delete:hover { background: #b4232c; }
    .board-clip.active {
      border-color: #fff;
      color: #fff;
      box-shadow: 0 0 0 1px rgba(255,255,255,.14);
    }
    .board-timeline-right {
      border-left: 1px solid var(--line);
      display: grid;
      align-content: center;
      padding: 12px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.5;
    }
    @media (max-width: 1180px) {
      .board-workbench-body { grid-template-columns: 132px minmax(360px, 1fr) 280px; }
      .board-timeline { grid-template-columns: 132px 1fr 280px; }
    }

    /* ===== Shot list layout ===== */
    .board-workbench-body {
      grid-template-columns: 168px minmax(440px, 1fr) 310px;
    }
    .board-workbench-body.has-detail {
      grid-template-columns: 168px minmax(440px, 1fr) 310px;
    }
    .board-rail {
      display: block;
    }
    .board-workbench-body .board-detail {
      display: block;
    }
    .board-workbench-body.has-detail .board-detail {
      display: block;
    }
    .board-main {
      padding: 14px 20px 24px;
    }
    .board-main-toolbar {
      margin-left: -20px;
      margin-right: -20px;
      padding-left: 20px;
      padding-right: 20px;
    }
    .board-segment-card {
      grid-template-columns: 34px 116px minmax(0, 1fr) 132px;
      gap: 14px;
      min-height: 164px;
      padding: 13px 14px;
      border-radius: 8px;
    }
    .board-shot-order {
      display: grid;
      align-content: start;
      justify-items: center;
      gap: 12px;
    }
    .board-shot-order .board-shot-index {
      width: 30px;
      height: 30px;
    }
    .board-shot-grip {
      color: #6e6e6e;
      font-size: 17px;
      line-height: .5;
      letter-spacing: 1px;
      writing-mode: vertical-rl;
      user-select: none;
    }
    .board-shot-media {
      min-width: 0;
      min-height: 134px;
      display: grid;
      grid-template-rows: 1fr 1fr;
      gap: 6px;
    }
    .board-shot-frame {
      position: relative;
      min-height: 0;
      overflow: hidden;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 5px;
      background: #151515;
      color: #747474;
      font-size: 10px;
      font-weight: 800;
    }
    .board-shot-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      cursor: zoom-in;
    }
    .board-shot-frame em {
      position: absolute;
      top: 5px;
      left: 5px;
      padding: 2px 5px;
      border-radius: 3px;
      background: rgba(0,0,0,.68);
      color: #fff;
      font-size: 9px;
      font-style: normal;
      line-height: 1.2;
    }
    .board-shot-content {
      gap: 8px;
      align-content: start;
    }
    .board-shot-kicker {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      color: #8f8f8f;
      font-size: 11px;
      font-weight: 800;
    }
    .board-shot-kicker strong {
      min-width: 0;
      overflow: hidden;
      color: #f3f3f3;
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .board-shot-row {
      grid-template-columns: 62px minmax(0, 1fr);
      gap: 10px;
    }
    .board-shot-text {
      min-height: 42px;
      padding: 8px 10px;
      border-radius: 5px;
    }
    .board-shot-side {
      gap: 7px;
    }
    .board-duration-control {
      min-height: 30px;
      display: grid;
      grid-template-columns: 1fr 28px 12px;
      align-items: center;
      gap: 5px;
      padding: 0 8px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 5px;
      background: #151515;
      color: #a6a6a6;
      font-size: 10px;
    }
    .board-duration-control strong {
      color: #fff;
      font-size: 13px;
      text-align: center;
    }
    .board-duration-control em {
      color: #7f7f7f;
      font-size: 10px;
      font-style: normal;
    }
    .board-video-state {
      min-height: 31px;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 0 8px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 5px;
      color: #8d8d8d;
      font-size: 10px;
    }
    .board-video-state i {
      width: 7px;
      height: 7px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: #606060;
    }
    .board-video-state.ready i {
      background: #54c58b;
    }
    .board-video-state.generating {
      color: #a8d5ef;
      border-color: rgba(113, 180, 224, .32);
    }
    .board-video-state.generating i {
      background: #79c6ef;
      animation: board-video-task-pulse 1.35s ease-in-out infinite;
    }
    @keyframes board-video-task-pulse {
      50% { opacity: .35; }
    }
    .board-timeline {
      grid-template-columns: 168px 1fr 310px;
    }
    .board-timeline-left,
    .board-timeline-right {
      display: grid;
    }
    .board-timeline-track {
    }
    .board-detail-close {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 5px;
      background: #151515;
      color: #a8a8a8;
      font-size: 19px;
      line-height: 1;
    }
    .board-detail-close:hover {
      color: #fff;
      background: #242424;
    }
    @media (max-width: 980px) {
      .board-workbench-body.has-detail {
        grid-template-columns: minmax(0, 1fr);
      }
      .board-workbench-body.has-detail .board-detail {
        grid-column: 1;
        max-height: 520px;
        border-top: 1px solid var(--line);
        border-left: 0;
      }
    }
    @media (max-width: 700px) {
      .board-main {
        padding-left: 12px;
        padding-right: 12px;
      }
      .board-main-toolbar {
        height: auto;
        min-height: 52px;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
      }
      .board-segment-card {
        grid-template-columns: 30px 92px minmax(0, 1fr);
        gap: 10px;
      }
      .board-shot-side {
        grid-column: 2 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .board-shot-side .board-delete-card-btn {
        grid-column: 1 / -1;
      }
    }


    /* ===== AI writing flow, closer to the reference video ===== */
    .ai-write-stage {
      height: 100%;
      min-height: 0;
      display: grid;
      grid-template-rows: auto 1fr auto;
      margin: -24px;
      background: #070707;
      overflow: hidden;
    }
    .ai-write-toolbar {
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 16px;
      padding: 8px 16px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      background: linear-gradient(180deg, #0e0e0e 0%, #070707 100%);
      flex-wrap: wrap;
      row-gap: 8px;
    }
    .ai-write-toolbar-left,
    .ai-write-toolbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex-wrap: wrap;
    }
    .ai-write-toolbar-right {
      margin-left: auto;
      gap: 12px;
    }
    .ai-write-chip {
      min-height: 28px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 10px;
      border-radius: 6px;
      background: rgba(124,92,255,.08);
      border: 1px solid rgba(124,92,255,.25);
      color: #a78bff;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    .ai-write-chip.muted {
      background: rgba(255,255,255,.03);
      border-color: rgba(255,255,255,.08);
      color: var(--muted);
      font-weight: 600;
    }
    .ai-write-body {
      min-height: 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      overflow: hidden;
    }
    .ai-editor-panel {
      min-width: 0;
      min-height: 0;
      padding: 18px 18px 88px;
      overflow-y: auto;
      background: #070707;
    }
    .ai-editor-card {
      max-width: 920px;
      min-height: min(600px, calc(100vh - 280px));
      margin: 0 auto;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      background: #0d0d0d;
      box-shadow: 0 18px 42px rgba(0,0,0,.35);
      overflow: hidden;
    }
    .ai-editor-header {
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 14px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: #101010;
    }
    .ai-editor-title {
      min-width: 0;
      color: #fff;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ai-editor-stats {
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
    }
    .ai-editor-textarea {
      width: 100%;
      min-height: min(540px, calc(100vh - 330px));
      border: none;
      outline: none;
      resize: vertical;
      background: #080808;
      color: #f2f2f2;
      padding: 22px 24px 34px;
      font-size: 14px;
      line-height: 1.9;
      font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    }
    .ai-editor-textarea::selection {
      background: #2f6dff;
      color: #fff;
    }
    .ai-side-panel {
      min-width: 0;
      min-height: 0;
      overflow-y: auto;
      border-left: 1px solid rgba(255,255,255,.08);
      background: #0a0a0a;
      padding: 14px;
    }
    .ai-side-card {
      margin-bottom: 12px;
      padding: 13px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      background: #101010;
    }
    .ai-side-card h4 {
      margin: 0 0 8px;
      color: #fff;
      font-size: 12px;
    }
    .ai-side-card p,
    .ai-side-card pre {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.65;
      white-space: pre-wrap;
      word-break: break-word;
      font-family: inherit;
      max-height: 220px;
      overflow-y: auto;
    }
    .ai-write-progress {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1400;
      min-width: 260px;
      max-width: min(520px, calc(100vw - 40px));
      padding: 12px 16px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.12);
      background: #111;
      color: #fff;
      box-shadow: 0 18px 46px rgba(0,0,0,.42);
    }
    .ai-write-progress strong {
      display: block;
      font-size: 13px;
      margin-bottom: 4px;
    }
    .ai-write-progress span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }
    .ai-write-progress-bar {
      height: 3px;
      margin-top: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      overflow: hidden;
    }
    .ai-write-progress-bar i {
      display: block;
      height: 100%;
      width: 42%;
      border-radius: inherit;
      background: #fff;
      animation: aiWriteProgress 1.2s ease-in-out infinite alternate;
    }
    @keyframes aiWriteProgress {
      from { transform: translateX(-40%); }
      to { transform: translateX(160%); }
    }
    .wizard-auto-note {
      margin-top: 14px;
      padding: 12px 14px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.10);
      background: #101010;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
      text-align: left;
    }


    /* ===== Final AI writing workbench polish ===== */
    .studio-project-list.chapter-track {
      gap: 6px;
      max-height: none;
      padding: 2px;
    }
    .studio-chapter-item {
      width: 100%;
      min-height: 46px;
      display: grid;
      grid-template-columns: 26px minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 8px 9px;
      border-radius: 7px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      text-align: left;
    }
    .studio-chapter-item:hover {
      background: rgba(255,255,255,.05);
      color: var(--ink);
    }
    .studio-chapter-item.active {
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.16);
      color: #fff;
    }
    .studio-chapter-icon {
      width: 24px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 5px;
      background: #151515;
      border: 1px solid rgba(255,255,255,.08);
      color: #9ca3af;
      font-size: 12px;
      font-weight: 900;
    }
    .studio-chapter-item.active .studio-chapter-icon {
      background: rgba(124,92,255,.18);
      border-color: rgba(124,92,255,.36);
      color: #fff;
    }
    .studio-chapter-main {
      min-width: 0;
      display: grid;
      gap: 3px;
    }
    .studio-chapter-title {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 12px;
      font-weight: 800;
      color: inherit;
    }
    .studio-chapter-meta {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: var(--muted);
      font-size: 10px;
    }
    .studio-chapter-state {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #444;
    }
    .studio-chapter-state.ready { background: #46b88f; }
    .studio-chapter-empty {
      padding: 18px 8px;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
      line-height: 1.6;
    }
    .ai-write-stage {
      grid-template-rows: auto minmax(0, 1fr) 96px;
      margin: -24px;
    }
    .ai-write-toolbar {
      min-height: 64px;
      padding: 10px 14px;
    }
    .ai-write-toolbar-right .btn {
      min-height: 42px;
      padding: 0 18px;
      font-size: 13px;
      font-weight: 900;
    }
    .ai-write-body {
      grid-template-columns: minmax(0, 1fr) 292px;
    }
    .ai-editor-panel {
      padding: 18px 18px 18px;
    }
    .ai-editor-card {
      max-width: none;
      min-height: 100%;
    }
    .ai-editor-textarea {
      min-height: calc(100vh - 300px);
      font-size: 15px;
      line-height: 1.95;
    }
    .ai-write-timeline {
      border-top: 1px solid rgba(255,255,255,.08);
      background: #070707;
    }
    .ai-write-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-bottom: 1px solid rgba(255,255,255,.05);
      background: #0a0a0a;
    }
    .ai-tb-btn {
      width: 28px;
      height: 28px;
      border: none;
      border-radius: 4px;
      background: transparent;
      color: #b8c0bb;
      cursor: pointer;
      display: grid;
      place-items: center;
      font-size: 13px;
      transition: background-color .15s ease, color .15s ease;
    }
    .ai-tb-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
    .ai-tb-time {
      font-size: 11px;
      color: #cfd6d2;
      font-family: monospace;
      padding: 4px 12px;
      background: #1a1a1a;
      border-radius: 4px;
      border: 1px solid rgba(255,255,255,.08);
      min-width: 130px;
      text-align: center;
    }
    .ai-tb-zoom {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .ai-tb-zoom span { font-size: 13px; color: #cfd6d2; }
    .ai-tb-zoom input[type="range"] {
      width: 130px;
      accent-color: #7c5cff;
    }
    .ai-tb-export { margin-left: 12px; }
    .ai-write-ruler {
      display: flex;
      align-items: center;
      padding: 6px 14px;
      border-bottom: 1px solid rgba(255,255,255,.05);
      color: #6b7a73;
      font-size: 11px;
      font-family: monospace;
      gap: 0;
      overflow: hidden;
      background: #070707;
    }
    .ai-write-ruler span {
      flex: 1;
      text-align: left;
    }
    .ai-write-track {
      padding: 10px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .ai-track-row {
      display: grid;
      grid-template-columns: 96px 1fr;
      align-items: center;
      gap: 8px;
      color: #8ca198;
      font-size: 11px;
    }
    .ai-track-name {
      color: #cfd6d2;
      font-size: 11px;
      font-weight: 600;
    }
    .ai-track-sub {
      display: none;
    }
    .ai-track-line {
      height: 24px;
      border-radius: 5px;
      background: #101010;
      border-left: 3px solid #7c5cff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
      position: relative;
    }
    .ai-track-line.audio {
      border-left-color: #46b88f;
    }
    .ai-write-add-track {
      display: flex;
      gap: 10px;
      padding: 8px 14px;
      border-top: 1px solid rgba(255,255,255,.05);
    }
    .ai-write-add-track button {
      padding: 4px 10px;
      border: none;
      border-radius: 4px;
      background: rgba(255,255,255,.04);
      color: var(--muted);
      font-size: 10px;
      cursor: pointer;
    }
    .ai-write-add-track button:hover {
      background: rgba(255,255,255,.08);
      color: var(--ink);
    }

    /* ===== Imported script workflow ===== */
    .import-script-stage {
      height: 100%;
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      background:
        radial-gradient(circle at 12% 0%, rgba(41, 121, 255, .16), transparent 32%),
        linear-gradient(135deg, #071018 0%, #090b10 46%, #11100d 100%);
    }
    .import-script-toolbar {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 16px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: rgba(6, 10, 16, .88);
      backdrop-filter: blur(14px);
    }
    .import-script-toolbar-left,
    .import-script-toolbar-right {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }
    .import-script-toolbar-right { margin-left: auto; }
    .import-script-chip {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 10px;
      border: 1px solid rgba(56,189,248,.28);
      border-radius: 6px;
      color: #a5f3fc;
      background: rgba(8,145,178,.12);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }
    .import-script-chip.muted {
      color: var(--muted);
      background: rgba(255,255,255,.03);
      border-color: rgba(255,255,255,.08);
    }
    .import-production-workbench {
      min-height: 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 252px;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 14px;
      padding: 16px;
      overflow: hidden;
    }
    .import-production-header {
      grid-column: 1 / -1;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(16,24,39,.82), rgba(15,23,42,.58));
      box-shadow: 0 18px 50px rgba(0,0,0,.22);
    }
    .import-production-title {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .import-production-title span {
      color: #67e8f9;
      font-size: 12px;
      font-weight: 900;
    }
    .import-production-title strong {
      color: #fff;
      font-size: 17px;
      font-weight: 900;
    }
    .import-production-title small {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }
    .import-production-actions,
    .import-production-output-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .import-production-select {
      width: 210px;
      min-width: 0;
      height: 38px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 8px;
      background: rgba(2,6,23,.88);
      color: var(--ink);
      padding: 0 12px;
      font: inherit;
      font-size: 13px;
      outline: none;
    }
    .import-production-grid {
      min-width: 0;
      min-height: 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 14px;
    }
    .import-production-pane {
      min-width: 0;
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 12px;
      background: rgba(8, 13, 20, .78);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }
    .import-production-pane-output {
      grid-template-rows: auto minmax(0, 1fr) auto;
      border-color: rgba(45,212,191,.18);
      background: rgba(7, 17, 19, .78);
    }
    .import-production-pane-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .import-production-pane-head span {
      display: block;
      color: #93c5fd;
      font-size: 11px;
      font-weight: 900;
      margin-bottom: 3px;
    }
    .import-production-pane-head strong {
      color: #fff;
      font-size: 14px;
      font-weight: 900;
    }
    .import-production-pane-head small {
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
    }
    .import-production-textarea {
      width: 100%;
      min-height: 0;
      box-sizing: border-box;
      resize: none;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 10px;
      background: rgba(2,6,23,.72);
      color: #f3f4f6;
      padding: 14px 16px;
      font: inherit;
      font-size: 13px;
      line-height: 1.8;
      outline: none;
    }
    .import-production-textarea:focus {
      border-color: rgba(45,212,191,.72);
    }
    .import-script-textarea {
      width: 100%;
      min-height: 0;
      box-sizing: border-box;
      resize: none;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 10px;
      outline: none;
      background: rgba(2,6,23,.72);
      color: #f3f4f6;
      padding: 18px 20px;
      font: inherit;
      font-size: 14px;
      line-height: 1.86;
    }
    .import-script-textarea:focus { border-color: rgba(59,130,246,.72); }
    .import-script-side {
      min-height: 0;
      padding: 0;
      overflow-y: auto;
      display: grid;
      align-content: start;
      gap: 10px;
    }
    .import-script-side-card {
      display: grid;
      gap: 8px;
      padding: 13px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px;
      background: rgba(255,255,255,.045);
    }
    .import-script-side-card span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .import-script-side-card strong {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.55;
    }
    @media (max-width: 980px) {
      .import-production-workbench { grid-template-columns: minmax(0, 1fr); }
      .import-production-grid { grid-template-columns: minmax(0, 1fr); }
      .import-production-header { align-items: stretch; flex-direction: column; }
      .import-production-actions { justify-content: flex-start; }
      .import-production-select { width: min(100%, 360px); }
      .import-script-side { display: none; }
    }

    /* ===== Story layout squeeze fix ===== */
    .studio-body {
      grid-template-columns: 240px minmax(0, 1fr);
    }
    .studio-right-panel {
      display: none;
    }
    .studio-canvas,
    .studio-tab-content,
    .ai-write-stage,
    .ai-write-body,
    .ai-editor-panel {
      min-width: 0;
    }
    .ai-write-stage {
      margin: 0;
      grid-template-rows: auto minmax(0, 1fr) 92px;
    }
    .ai-write-stage > .ai-write-toolbar {
      min-width: 0;
      min-height: 56px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 8px 12px;
      overflow: hidden;
    }
    .ai-write-stage > .ai-write-toolbar .ai-write-toolbar-left {
      min-width: 0;
      overflow: hidden;
      flex-wrap: nowrap;
    }
    .ai-write-stage > .ai-write-toolbar .ai-write-toolbar-right {
      margin-left: 0;
      min-width: max-content;
      flex-wrap: nowrap;
      gap: 8px;
    }
    .ai-write-stage > .ai-write-toolbar .ai-write-toolbar-right .btn {
      min-height: 34px;
      padding: 0 14px;
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .ai-write-chip.muted {
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ai-write-body {
      grid-template-columns: minmax(520px, 1fr) minmax(240px, 292px);
    }
    .ai-editor-panel {
      padding: 12px;
    }
    .ai-editor-card {
      min-height: 100%;
    }
    .ai-editor-textarea {
      min-height: calc(100vh - 250px);
      resize: none;
    }
    .ai-write-timeline {
      min-width: 0;
      overflow: hidden;
    }
    .ai-write-timeline .ai-write-toolbar {
      min-width: 0;
      display: grid;
      grid-template-columns: auto auto minmax(160px, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      overflow: hidden;
    }
    .ai-write-timeline .ai-tb-btn {
      flex: 0 0 auto;
    }
    .ai-write-timeline .ai-tb-time {
      width: max-content;
      min-width: 132px;
    }
    .ai-write-timeline .ai-tb-zoom {
      min-width: 0;
      margin-left: 0;
      justify-self: end;
    }
    .ai-write-timeline .ai-tb-zoom input[type="range"] {
      width: clamp(90px, 12vw, 140px);
    }
    .ai-write-timeline .ai-tb-export {
      margin-left: 0;
      white-space: nowrap;
      justify-self: end;
    }
    @media (max-width: 1280px) {
      .studio-body { grid-template-columns: 220px minmax(0, 1fr); }
      .ai-write-body { grid-template-columns: minmax(420px, 1fr) 250px; }
      .ai-write-stage > .ai-write-toolbar {
        grid-template-columns: 1fr;
        align-items: start;
        overflow-x: auto;
      }
      .ai-write-stage > .ai-write-toolbar .ai-write-toolbar-right {
        min-width: 0;
        width: max-content;
      }
      .ai-write-stage > .ai-write-toolbar .ai-write-toolbar-right .btn {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
      }
      .ai-write-timeline .ai-write-toolbar {
        grid-template-columns: auto auto 1fr;
        overflow-x: auto;
      }
      .ai-write-timeline .ai-tb-export {
        grid-column: 3;
      }
    }

    /* ===== AI timeline single row fix ===== */
    .ai-write-timeline {
      min-width: 0;
      height: 92px;
      overflow: hidden;
    }
    .ai-write-timeline .ai-write-toolbar {
      min-width: 0;
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 8px;
      padding: 8px 12px;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      scrollbar-width: thin;
    }
    .ai-write-timeline .ai-tb-btn,
    .ai-write-timeline .ai-tb-time,
    .ai-write-timeline .ai-tb-zoom,
    .ai-write-timeline .ai-tb-export {
      flex: 0 0 auto;
    }
    .ai-write-timeline .ai-tb-zoom {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .ai-write-timeline .ai-tb-zoom input[type="range"] {
      width: 130px;
    }
    .ai-write-timeline .ai-tb-export {
      margin-left: 12px;
      white-space: nowrap;
    }

    .jianying-workspace { min-height: 100%; padding: 26px 28px; background: #0a0a0a; overflow: auto; }
    .jianying-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
    .jianying-workspace-head h2 { margin: 0; font-size: 18px; color: #f5f5f5; }
    .jianying-workspace-head p, .jianying-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
    .jianying-summary { display: flex; align-items: baseline; gap: 8px; padding: 20px 0; color: var(--muted); font-size: 12px; }
    .jianying-summary strong { color: #fff; font-size: 20px; margin-left: 14px; }
    .jianying-summary strong:first-child { margin-left: 0; }
    .jianying-track-wrap { display: grid; grid-template-columns: 90px minmax(0, 1fr); min-height: 162px; border: 1px solid var(--line); background: #050505; }
    .jianying-track-label { display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; }
    .jianying-track { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 20px; }
    .jianying-clip { position: relative; flex: 0 0 auto; height: 112px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: #19252b; }
    .jianying-clip img { width: 100%; height: 100%; object-fit: cover; opacity: .48; }
    .jianying-clip span, .jianying-clip em { position: absolute; right: 9px; left: 9px; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
    .jianying-clip span { top: 10px; color: #fff; font-size: 12px; font-weight: 700; }
    .jianying-clip em { bottom: 9px; color: #d8d8d8; font-size: 11px; }
    .jianying-empty { color: var(--muted); font-size: 12px; }
    @media (max-width: 720px) {
      .jianying-workspace { padding: 18px; }
      .jianying-workspace-head { align-items: flex-start; flex-direction: column; }
      .jianying-track-wrap { grid-template-columns: 64px minmax(0, 1fr); }
    }
    .ai-write-ruler {
      height: 25px;
      min-width: 900px;
    }
    .ai-write-track,
    .ai-write-add-track {
      display: none;
    }

    /* ===== Sticky storyboard toolbar ===== */
    .board-main-toolbar {
      position: sticky;
      top: -14px;
      z-index: 20;
      min-height: 52px;
      margin: -14px -16px 12px;
      padding: 10px 16px;
      background: rgba(8, 8, 8, .96);
      border-bottom: 1px solid rgba(255,255,255,.08);
      backdrop-filter: blur(10px);
    }
    .board-main-actions {
      flex: 0 0 auto;
    }

    /* ===== Potential assets modal ===== */
    .asset-detect-overlay {
      position: fixed;
      inset: 0;
      z-index: 1500;
      display: grid;
      place-items: center;
      background: rgba(0,0,0,.72);
      backdrop-filter: blur(4px);
    }
    .asset-detect-modal {
      width: min(560px, calc(100vw - 40px));
      max-height: min(640px, calc(100vh - 48px));
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,.14);
      background: #101010;
      box-shadow: 0 28px 80px rgba(0,0,0,.52);
      overflow: hidden;
    }
    .asset-detect-head,
    .asset-detect-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
    }
    .asset-detect-title {
      color: #fff;
      font-size: 15px;
      font-weight: 900;
    }
    .asset-detect-close {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 18px;
      cursor: pointer;
    }
    .asset-detect-close:hover { background: rgba(255,255,255,.08); color: #fff; }
    .asset-detect-body {
      min-height: 0;
      overflow-y: auto;
      padding: 0 18px 8px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .asset-detect-card {
      min-height: 98px;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.10);
      background: #151515;
    }
    .asset-detect-card-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      color: #fff;
      font-size: 13px;
      font-weight: 900;
    }
    .asset-detect-type {
      color: var(--accent);
      font-size: 12px;
    }
    .asset-detect-desc {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .asset-detect-empty {
      grid-column: 1 / -1;
      padding: 28px;
      border: 1px dashed rgba(255,255,255,.14);
      border-radius: 8px;
      color: var(--muted);
      text-align: center;
      font-size: 13px;
    }

    /* ===== Potential assets modal polish like video ===== */
    .asset-detect-modal {
      width: min(580px, calc(100vw - 40px));
      background: #111;
    }
    .asset-detect-head {
      padding: 18px 20px 14px;
    }
    .asset-detect-title {
      font-size: 16px;
    }
    .asset-detect-subtitle {
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      font-weight: 500;
    }
    .asset-detect-body {
      padding: 0 20px 10px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .asset-detect-loading {
      grid-column: 1 / -1;
      padding: 42px 16px;
      border: 1px dashed rgba(255,255,255,.12);
      border-radius: 10px;
      color: var(--muted);
      text-align: center;
      background: rgba(255,255,255,.035);
      font-size: 13px;
    }
    .asset-detect-card {
      min-height: 116px;
      padding: 12px;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
      border-color: rgba(255,255,255,.12);
      cursor: pointer;
      transition: border-color .16s ease, background .16s ease, transform .16s ease;
    }
    .asset-detect-card:hover {
      border-color: rgba(143,185,255,.32);
      background: linear-gradient(180deg, rgba(143,185,255,.08), rgba(255,255,255,.026));
      transform: translateY(-1px);
    }
    .asset-detect-card:focus-visible {
      outline: none;
      border-color: rgba(143,185,255,.58);
      box-shadow: 0 0 0 3px rgba(143,185,255,.14);
    }
    .asset-detect-card-title {
      justify-content: space-between;
      gap: 10px;
    }
    .asset-detect-name {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .asset-detect-type {
      color: #8fb9ff;
      font-weight: 900;
    }
    .asset-detect-brief {
      min-height: 36px;
      color: #aab6c8;
      font-size: 12px;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      word-break: break-word;
    }
    .asset-add-one {
      border: 0;
      background: transparent;
      color: #d7eadf;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
    }
    .asset-add-one:hover { color: #fff; }
    .asset-add-one.added {
      color: var(--muted);
      cursor: default;
    }
    .asset-detect-foot {
      padding: 14px 20px 18px;
    }

    .asset-detail-dialog-overlay {
      position: fixed;
      inset: 0;
      z-index: 1600;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(0,0,0,.68);
      backdrop-filter: blur(5px);
      outline: none;
    }
    .asset-detail-dialog {
      width: min(520px, calc(100vw - 48px));
      max-height: min(680px, calc(100vh - 56px));
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 12px;
      background: #101114;
      box-shadow: 0 28px 90px rgba(0,0,0,.58);
      overflow: hidden;
    }
    .asset-detail-dialog-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 20px 14px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    }
    .asset-detail-dialog-kicker {
      margin-bottom: 5px;
      color: #8fb9ff;
      font-size: 12px;
      font-weight: 900;
    }
    .asset-detail-dialog-title {
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      line-height: 1.35;
    }
    .asset-detail-dialog-close {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-size: 18px;
      cursor: pointer;
    }
    .asset-detail-dialog-close:hover {
      background: rgba(255,255,255,.08);
      color: #fff;
    }
    .asset-detail-dialog-body {
      min-height: 0;
      overflow-y: auto;
      padding: 16px 20px 20px;
      display: grid;
      gap: 12px;
    }
    .asset-detail-dialog-row {
      padding: 12px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 10px;
      background: rgba(255,255,255,.035);
    }
    .asset-detail-dialog-label {
      margin-bottom: 7px;
      color: #dbe8ff;
      font-size: 12px;
      font-weight: 900;
    }
    .asset-detail-dialog-text {
      color: #c7d0dc;
      font-size: 13px;
      line-height: 1.72;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .asset-detail-dialog-empty {
      padding: 26px;
      border: 1px dashed rgba(255,255,255,.14);
      border-radius: 10px;
      color: var(--muted);
      text-align: center;
      font-size: 13px;
    }

    .asset-import-overlay {
      position: fixed;
      inset: 0;
      z-index: 1550;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(0,0,0,.72);
      backdrop-filter: blur(6px);
    }
    .asset-import-modal {
      width: min(620px, calc(100vw - 48px));
      max-height: min(760px, calc(100vh - 56px));
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 14px;
      background:
        radial-gradient(circle at 18% 0%, rgba(124,92,255,.16), transparent 34%),
        linear-gradient(180deg, #111217 0%, #090a0d 100%);
      box-shadow: 0 28px 90px rgba(0,0,0,.58);
      overflow: hidden;
    }
    .asset-import-head,
    .asset-import-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .asset-import-foot {
      justify-content: flex-end;
      border-top: 1px solid rgba(255,255,255,.08);
      border-bottom: 0;
      background: rgba(0,0,0,.18);
    }
    .asset-import-title {
      color: #fff;
      font-size: 17px;
      font-weight: 900;
    }
    .asset-import-subtitle {
      margin-top: 6px;
      color: #9aa7b7;
      font-size: 12px;
      line-height: 1.5;
    }
    .asset-import-close {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-size: 18px;
      cursor: pointer;
    }
    .asset-import-close:hover {
      background: rgba(255,255,255,.08);
      color: #fff;
    }
    .asset-import-body {
      min-height: 0;
      overflow-y: auto;
      padding: 18px 20px 20px;
      display: grid;
      gap: 16px;
    }
    .asset-import-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 5px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      background: rgba(255,255,255,.035);
    }
    .asset-import-tab {
      height: 36px;
      border: 1px solid transparent;
      border-radius: 9px;
      background: transparent;
      color: #9aa7b7;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }
    .asset-import-tab:hover {
      color: #fff;
      background: rgba(255,255,255,.06);
    }
    .asset-import-tab.active {
      border-color: rgba(143,185,255,.34);
      background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(79,172,254,.12));
      color: #fff;
      box-shadow: 0 10px 24px rgba(74,112,255,.16);
    }
    .asset-import-drop {
      min-height: 190px;
      border: 1px dashed rgba(143,185,255,.34);
      border-radius: 14px;
      background:
        linear-gradient(135deg, rgba(143,185,255,.08), rgba(255,255,255,.025));
      display: grid;
      place-items: center;
      gap: 6px;
      color: #dbe8ff;
      text-align: center;
      cursor: pointer;
      overflow: hidden;
    }
    .asset-import-drop input {
      display: none;
    }
    .asset-import-drop span {
      font-size: 15px;
      font-weight: 900;
    }
    .asset-import-drop small {
      color: #8f9cad;
      font-size: 12px;
    }
    .asset-import-drop.has-preview {
      border-style: solid;
      padding: 0;
      background: #08090b;
    }
    .asset-import-drop img {
      width: 100%;
      height: 240px;
      object-fit: contain;
      background: #07080a;
    }
    .asset-import-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .asset-import-field {
      display: grid;
      gap: 7px;
      color: #e7edf7;
      font-size: 12px;
      font-weight: 900;
    }
    .asset-import-field.wide {
      grid-column: 1 / -1;
    }
    .asset-import-field input,
    .asset-import-field textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 10px;
      background: rgba(4,5,9,.62);
      color: var(--ink);
      padding: 10px 11px;
      font-size: 13px;
      outline: none;
      resize: vertical;
    }
    .asset-import-field input:focus,
    .asset-import-field textarea:focus {
      border-color: rgba(143,185,255,.58);
      box-shadow: 0 0 0 3px rgba(143,185,255,.14);
      background: rgba(8,10,16,.86);
    }


    /* ===== Studio asset library panel ===== */
    .studio-panel-section.hidden { display: none; }
    .studio-asset-library-panel {
      flex: 1;
      min-height: 0;
      border-bottom: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow: hidden;
    }
    .studio-asset-library-panel.hidden { display: none; }
    .asset-library-search {
      flex: 0 0 auto;
    }
    .asset-library-search input {
      width: 100%;
      height: 34px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 6px;
      background: #111;
      color: var(--ink);
      padding: 0 10px;
      font-size: 12px;
      outline: none;
    }
    .asset-library-search input:focus {
      border-color: rgba(143,185,255,.45);
      box-shadow: 0 0 0 2px rgba(143,185,255,.10);
    }
    .asset-library-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      flex: 0 0 auto;
    }
    .asset-library-tab {
      height: 30px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 6px;
      background: #111;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .asset-library-tab.active {
      background: rgba(143,185,255,.14);
      border-color: rgba(143,185,255,.34);
      color: #dbe8ff;
    }
    .asset-library-bulkbar {
      flex: 0 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      padding: 8px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(143,185,255,.08), rgba(255,255,255,.025));
    }
    .asset-library-bulk-count {
      flex: 1 0 100%;
      min-width: 0;
      color: #b8c7df;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
    }
    .asset-library-bulk-btn {
      flex: 1 1 calc(33.333% - 4px);
      height: 26px;
      min-width: 0;
      padding: 0 6px;
      border: 1px solid rgba(143,185,255,.22);
      border-radius: 6px;
      background: rgba(143,185,255,.10);
      color: #dbe8ff;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: border-color .16s ease, background .16s ease, color .16s ease;
    }
    .asset-library-bulk-btn:hover:not(:disabled) {
      border-color: rgba(143,185,255,.45);
      background: rgba(143,185,255,.18);
    }
    .asset-library-bulk-btn.danger {
      border-color: rgba(255,92,108,.30);
      background: rgba(255,92,108,.12);
      color: #ffd9df;
    }
    .asset-library-bulk-btn.danger:hover:not(:disabled) {
      border-color: rgba(255,92,108,.55);
      background: rgba(255,92,108,.20);
    }
    .asset-library-bulk-btn:disabled {
      opacity: .42;
      cursor: not-allowed;
    }
    .asset-library-list {
      min-height: 0;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-right: 2px;
    }
    .asset-library-card {
      display: grid;
      grid-template-columns: 24px 34px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-height: 58px;
      padding: 10px 42px 10px 10px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 8px;
      background: #121212;
      cursor: pointer;
    }
    .asset-library-card:hover {
      border-color: rgba(255,255,255,.16);
      background: #151515;
    }
    .asset-library-card.bulk-selected {
      border-color: rgba(143,185,255,.34);
      background: rgba(143,185,255,.10);
    }
    .asset-library-card.generating {
      border-color: rgba(129, 140, 248, .48);
      background: linear-gradient(135deg, rgba(129, 140, 248, .16), rgba(18,18,18,.96));
    }
    .asset-library-card.generating::after {
      content: "生成中";
      position: absolute;
      right: 8px;
      bottom: 8px;
      height: 20px;
      padding: 0 8px;
      border-radius: 999px;
      background: rgba(129, 140, 248, .22);
      color: #dfe4ff;
      border: 1px solid rgba(129, 140, 248, .36);
      font-size: 11px;
      font-weight: 800;
      line-height: 20px;
      pointer-events: none;
    }
    .asset-library-check {
      width: 22px;
      height: 22px;
      border: 1px solid rgba(255,255,255,.20);
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.045);
      color: #fff;
      cursor: pointer;
      padding: 0;
      transition: border-color .16s ease, background .16s ease, transform .16s ease;
    }
    .asset-library-check:hover {
      border-color: rgba(143,185,255,.55);
      background: rgba(143,185,255,.16);
      transform: scale(1.04);
    }
    .asset-library-card.bulk-selected .asset-library-check {
      border-color: rgba(143,185,255,.72);
      background: #5b8def;
    }
    .asset-library-check span {
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
    }
    .asset-library-thumb {
      width: 34px;
      height: 34px;
      border-radius: 7px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.06);
      color: #dbe8ff;
      font-size: 13px;
      font-weight: 900;
    }
    .asset-library-title {
      color: #fff;
      font-size: 13px;
      font-weight: 900;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .asset-library-subtitle {
      margin-top: 4px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .asset-library-card {
      position: relative;
    }
    .asset-library-card .asset-library-delete {
      position: absolute;
      z-index: 2;
      top: 8px;
      right: 8px;
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 7px;
      background: #b4232a;
      color: #fff;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-4px) scale(.94);
      transition: opacity .16s ease, transform .16s ease, background .16s ease;
    }
    .asset-library-card:hover .asset-library-delete,
    .asset-library-card:focus-within .asset-library-delete,
    .asset-library-card.active .asset-library-delete {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }
    .asset-library-card .asset-library-delete:hover {
      background: #dc3039;
    }
    .asset-library-card .asset-library-delete svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .asset-library-empty {
      padding: 22px 10px;
      border: 1px dashed rgba(255,255,255,.12);
      border-radius: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      text-align: center;
    }


    /* ===== Asset detail right panel ===== */
    .studio-body.asset-detail-open {
      grid-template-columns: 240px minmax(0, 1fr) 340px;
    }
    .studio-body.asset-detail-open .studio-right-panel {
      display: block;
      padding: 0;
      overflow: hidden;
    }
    .asset-library-card {
      cursor: pointer;
    }
    .asset-library-card.active {
      border-color: rgba(255,255,255,.75);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
    }
    .asset-detail-panel {
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      background:
        radial-gradient(circle at 18% 0%, rgba(124,92,255,.16), transparent 34%),
        linear-gradient(180deg, #101115 0%, #08090b 100%);
      color: var(--ink);
    }
    .asset-detail-titlebar {
      flex: 0 0 auto;
      height: 48px;
      display: flex;
      align-items: center;
      padding: 0 16px;
      border-bottom: 1px solid rgba(255,255,255,.10);
      color: #fff;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 0;
      background: rgba(8,9,12,.72);
      backdrop-filter: blur(12px);
    }
    .asset-detail-titlebar::before {
      content: "";
      width: 4px;
      height: 16px;
      border-radius: 999px;
      margin-right: 8px;
      background: linear-gradient(180deg, #8b7cff, #4ea8ff);
      box-shadow: 0 0 18px rgba(124,92,255,.45);
    }
    .asset-detail-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 14px 14px 18px;
    }
    .asset-detail-preview {
      position: relative;
      height: 230px;
      border-radius: 12px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
        #17181c;
      border: 1px solid rgba(255,255,255,.10);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 13px;
      overflow: hidden;
      margin-bottom: 14px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 16px 38px rgba(0,0,0,.28);
    }
    .asset-detail-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      cursor: zoom-in;
    }
    .asset-detail-more {
      position: absolute;
      top: 10px;
      right: 10px;
      min-width: 48px;
      height: 30px;
      padding: 0 12px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 999px;
      background: rgba(10,12,16,.72);
      color: rgba(255,255,255,.88);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      backdrop-filter: blur(10px);
    }
    .asset-detail-delete-image {
      position: absolute;
      right: 8px;
      bottom: 8px;
      height: 30px;
      padding: 0 12px;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 6px;
      background: rgba(226,91,91,.92);
      color: #fff;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(0,0,0,.28);
    }
    .asset-detail-delete-image:hover {
      background: #ef4444;
    }
    .asset-detail-audio {
      margin-bottom: 12px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      background: rgba(255,255,255,.035);
      padding: 12px;
    }
    .asset-detail-voice-card {
      border-color: rgba(80, 190, 255, .28);
      background: linear-gradient(135deg, rgba(31, 52, 92, .58), rgba(12, 18, 32, .76));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 28px rgba(0,0,0,.22);
    }
    .asset-detail-audio-title {
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .asset-detail-audio-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      min-width: 0;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 10px;
      padding: 9px 10px;
      background: rgba(0,0,0,.22);
    }
    .asset-detail-voice-button {
      width: 100%;
      text-align: left;
      cursor: pointer;
    }
    .asset-detail-voice-button:hover {
      border-color: rgba(80, 190, 255, .5);
      background: rgba(10, 26, 46, .7);
    }
    .asset-detail-audio-box span {
      min-width: 0;
      overflow: hidden;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }
    .asset-detail-audio-box strong,
    .asset-detail-audio-box small,
    .asset-detail-audio-box em {
      display: block;
      font-style: normal;
    }
    .asset-detail-audio-box strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #fff;
      font-size: 13px;
      margin-bottom: 3px;
    }
    .asset-detail-audio-box em {
      min-width: 72px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: linear-gradient(135deg, #38bdf8, #6366f1);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
    }
    .asset-detail-audio-box small {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .asset-detail-voice-preview {
      width: 100%;
      max-width: 100%;
      display: block;
      margin-top: 10px;
      height: 34px;
    }
    .asset-detail-upload {
      height: 30px;
      border: 1px solid rgba(124,92,255,.42);
      border-radius: 8px;
      background: rgba(124,92,255,.14);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      padding: 0 10px;
      cursor: pointer;
    }
    .voice-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 9000;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(2, 6, 18, .74);
      backdrop-filter: blur(14px);
    }
    .voice-modal {
      width: min(980px, calc(100vw - 32px));
      max-height: min(820px, calc(100vh - 32px));
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, .24);
      border-radius: 16px;
      background: linear-gradient(145deg, rgba(9, 14, 28, .98), rgba(15, 23, 42, .98));
      box-shadow: 0 24px 80px rgba(0,0,0,.48);
      color: #e5eefc;
    }
    .voice-modal-head,
    .voice-modal-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(148, 163, 184, .16);
      background: rgba(15, 23, 42, .72);
    }
    .voice-modal-foot {
      justify-content: flex-end;
      border-top: 1px solid rgba(148, 163, 184, .16);
      border-bottom: 0;
    }
    .voice-modal-title {
      font-size: 18px;
      font-weight: 900;
      color: #fff;
    }
    .voice-modal-subtitle {
      margin-top: 6px;
      color: rgba(226, 232, 240, .68);
      font-size: 12px;
      line-height: 1.5;
    }
    .voice-modal-close {
      width: 34px;
      height: 34px;
      border: 1px solid rgba(148, 163, 184, .22);
      border-radius: 10px;
      background: rgba(15, 23, 42, .9);
      color: #e5eefc;
      cursor: pointer;
      font-size: 20px;
      line-height: 1;
    }
    .voice-modal-body {
      overflow: auto;
      padding: 18px 20px 20px;
      display: grid;
      gap: 16px;
    }
    .voice-modal-current,
    .voice-upload-box {
      border: 1px solid rgba(56, 189, 248, .22);
      border-radius: 14px;
      padding: 14px;
      background: linear-gradient(135deg, rgba(14, 116, 144, .16), rgba(30, 41, 59, .68));
    }
    .voice-modal-current span,
    .voice-upload-box span {
      display: block;
      color: rgba(226, 232, 240, .66);
      font-size: 12px;
      line-height: 1.5;
    }
    .voice-modal-current strong,
    .voice-upload-box strong {
      display: block;
      margin: 4px 0;
      color: #fff;
      font-size: 15px;
    }
    .voice-modal-current audio {
      width: 100%;
      margin-top: 10px;
    }
    .voice-preset-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 12px;
    }
    .voice-preset-card {
      min-height: 128px;
      display: grid;
      gap: 7px;
      text-align: left;
      border: 1px solid rgba(148, 163, 184, .18);
      border-radius: 14px;
      padding: 13px;
      background: rgba(15, 23, 42, .72);
      color: #e5eefc;
      cursor: pointer;
      transition: border-color .16s ease, transform .16s ease, background .16s ease;
    }
    .voice-preset-card:hover,
    .voice-preset-card.active {
      border-color: rgba(56, 189, 248, .72);
      background: rgba(8, 47, 73, .78);
      transform: translateY(-1px);
    }
    .voice-preset-card span {
      width: fit-content;
      padding: 3px 8px;
      border-radius: 999px;
      background: rgba(56, 189, 248, .16);
      color: #93c5fd;
      font-size: 11px;
      font-weight: 900;
    }
    .voice-preset-card strong {
      color: #fff;
      font-size: 14px;
    }
    .voice-preset-card em,
    .voice-preset-card small {
      color: rgba(226, 232, 240, .68);
      font-style: normal;
      font-size: 12px;
      line-height: 1.45;
    }
    .voice-upload-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
    }
    .voice-upload-btn {
      min-width: 128px;
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(56, 189, 248, .38);
      border-radius: 10px;
      background: rgba(56, 189, 248, .12);
      color: #fff;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }
    .voice-upload-btn input {
      display: none;
    }
    .asset-detail-field {
      display: grid;
      gap: 6px;
      margin-bottom: 10px;
      color: rgba(255,255,255,.82);
      font-size: 12px;
      font-weight: 800;
    }
    .asset-detail-input,
    .asset-detail-select,
    .asset-detail-textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 10px;
      background: rgba(3,4,8,.56);
      color: var(--ink);
      padding: 10px 11px;
      font-size: 12px;
      outline: none;
      transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }
    .asset-detail-input:focus,
    .asset-detail-select:focus,
    .asset-detail-textarea:focus {
      border-color: rgba(124,92,255,.62);
      box-shadow: 0 0 0 3px rgba(124,92,255,.16);
      background: rgba(6,7,12,.82);
    }
    .asset-detail-textarea {
      min-height: 130px;
      resize: vertical;
      line-height: 1.68;
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    .asset-detail-textarea::selection {
      background: rgba(124,92,255,.42);
      color: #fff;
    }
    .board-edit-paste-hint {
      display: block;
      margin-top: -1px;
      color: #8fa1b8;
      font-size: 11px;
      font-weight: 500;
      line-height: 1.45;
    }
    .asset-detail-hint {
      margin: 7px 0 10px;
      color: #9fd4ff;
      font-size: 11px;
      line-height: 1.5;
    }
    .asset-detail-prompt-title,
    .asset-detail-config-title {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #fff;
      font-size: 12px;
      font-weight: 900;
      margin: 14px 0 8px;
    }
    .asset-detail-config {
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      background: rgba(255,255,255,.035);
      padding: 12px;
      margin: 12px 0 12px;
    }
    .asset-detail-config-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .asset-detail-config-grid .asset-detail-field:first-child {
      grid-column: 1 / -1;
    }
    .asset-detail-generate {
      width: 100%;
      height: 38px;
      border: 0;
      border-radius: 10px;
      background: linear-gradient(135deg, #f8fbff, #dce7ff);
      color: #111827;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 10px 22px rgba(78,168,255,.16);
      transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    }
    .asset-detail-generate:hover {
      transform: translateY(-1px);
      filter: brightness(1.03);
      box-shadow: 0 14px 28px rgba(78,168,255,.22);
    }
    .asset-detail-generate.secondary {
      background: rgba(124,92,255,.16);
      color: #dcd5ff;
      border: 1px solid rgba(124,92,255,.42);
      box-shadow: none;
    }
    .asset-detail-generate:disabled {
      cursor: wait;
      opacity: .72;
    }
    .asset-detail-action-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 12px;
    }
    .asset-detail-action-row .asset-detail-generate {
      margin-top: 0;
      flex: 1 1 180px;
    }
    .asset-detail-cancel,
    .asset-detect-cancel {
      height: 38px;
      padding: 0 14px;
      border: 1px solid rgba(244,63,94,.45);
      border-radius: 10px;
      background: rgba(244,63,94,.12);
      color: #fecdd3;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
      cursor: pointer;
      transition: background .16s ease, border-color .16s ease, transform .16s ease;
    }
    .asset-detail-cancel:hover,
    .asset-detect-cancel:hover {
      background: rgba(244,63,94,.2);
      border-color: rgba(244,63,94,.72);
      transform: translateY(-1px);
    }
    .asset-detail-no-image {
      font-size: 28px;
      font-weight: 900;
      color: rgba(255,255,255,.18);
    }
    .asset-detail-name-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      background: rgba(255,255,255,.035);
      padding: 12px;
    }
    .asset-detail-name-row .asset-detail-field {
      margin-bottom: 0;
    }
    .asset-detail-attributes {
      margin-bottom: 12px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      background: rgba(255,255,255,.035);
      padding: 12px;
    }
    .asset-detail-attr-title {
      color: #fff;
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .asset-detail-attr-title::before {
      content: "";
      width: 3px;
      height: 12px;
      border-radius: 2px;
      background: linear-gradient(180deg, #7c5cff, #4ea8ff);
    }
    .asset-detail-attr-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .asset-detail-attr-item {
      background: rgba(0,0,0,.20);
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 10px;
      padding: 9px;
    }
    .asset-detail-attr-label {
      font-size: 10px;
      font-weight: 800;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-bottom: 4px;
    }
    .asset-detail-attr-value {
      font-size: 12px;
      color: var(--ink);
      line-height: 1.45;
      word-break: break-word;
    }
    .asset-detail-description,
    .asset-detail-scene-desc {
      margin-top: 12px;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      padding: 12px;
    }
    .asset-detail-desc-title {
      font-size: 11px;
      font-weight: 800;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .asset-detail-desc-content {
      font-size: 12px;
      color: var(--ink);
      line-height: 1.6;
      word-break: break-word;
    }
