
    :root {
      --bg-page: #f4f6fb;
      --bg-surface: #ffffff;
      --bg-subtle: #f8fafc;
      --bg-dark: #0f172a;
      --text-main: #0f172a;
      --text-secondary: #475569;
      --text-muted: #94a3b8;
      --border: #e2e8f0;
      --border-focus: #3b82f6;
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --primary-soft: #eff6ff;
      --upsell-grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
      --emerald: #10b981;
      --rose: #ef4444;
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
      --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
      --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.07);
      --font: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
      --mono: 'JetBrains Mono', Consolas, monospace;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--bg-page);
      color: var(--text-main);
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    button, input, textarea, select { font: inherit; color: inherit; }
    button { cursor: pointer; border: 0; background: none; }
    a { color: inherit; text-decoration: none; }
    h1, h2, h3, h4, p { margin: 0; }

    /* 顶部极简导航栏 */
    .topbar {
      height: 62px;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 50;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .brand-area {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .brand-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      background: var(--upsell-grad);
      color: #fff;
      font-weight: 900;
      font-size: 18px;
      display: grid;
      place-items: center;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }
    .brand-title {
      font-size: 17px;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .free-pill {
      font-size: 12px;
      font-weight: 700;
      color: #059669;
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      padding: 2px 8px;
      border-radius: 999px;
    }

    .category-pills {
      display: flex;
      gap: 6px;
      background: #f1f5f9;
      padding: 4px;
      border-radius: 10px;
    }
    .cat-btn {
      padding: 6px 14px;
      border-radius: 7px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      transition: all 0.18s;
    }
    .cat-btn.active {
      background: #fff;
      color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .quota-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #b45309;
      font-size: 13px;
      font-weight: 700;
    }
    .quota-badge.logged {
      background: #eff6ff;
      border-color: #bfdbfe;
      color: #1d4ed8;
    }
    .link-pro {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      padding: 6px 10px;
      border-radius: 6px;
      transition: color 0.2s, background 0.2s;
    }
    .link-pro:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }
    .btn-login {
      padding: 8px 16px;
      border-radius: 8px;
      background: var(--bg-dark);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      transition: transform 0.15s, background 0.2s;
    }
    .btn-login:hover {
      background: #1e293b;
      transform: translateY(-1px);
    }

    /* 主体双栏工作台布局 */
    .layout {
      max-width: 1380px;
      margin: 20px auto;
      padding: 0 24px 40px;
      display: grid;
      grid-template-columns: 265px 1fr;
      gap: 22px;
      align-items: start;
    }

    /* 左侧工具列表导航 */
    .sidebar {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 14px 10px;
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 82px;
    }
    .side-group-title {
      font-size: 11px;
      font-weight: 800;
      color: var(--text-muted);
      letter-spacing: 1px;
      padding: 10px 12px 6px;
      text-transform: uppercase;
    }
    .tool-nav-list {
      display: flex;
      flex-direction: column;
      gap: 3px;
      margin-bottom: 10px;
    }
    .tool-nav-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      border-radius: 10px;
      text-align: left;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-secondary);
      transition: all 0.15s;
    }
    .tool-nav-item:hover {
      background: var(--bg-subtle);
      color: var(--text-main);
    }
    .tool-nav-item.active {
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: 700;
    }
    .t-nav-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .t-nav-icon {
      font-size: 17px;
      width: 24px;
      text-align: center;
    }
    .mini-tag {
      font-size: 11px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      background: #f1f5f9;
      color: #64748b;
    }
    .tool-nav-item.active .mini-tag {
      background: #dbeafe;
      color: #1d4ed8;
    }
    .mini-tag.video-hook {
      background: #fef3c7;
      color: #d97706;
    }

    /* 左下角云端工作台入口卡 */
    .side-footer-card {
      margin: 12px 6px 4px;
      padding: 14px;
      border-radius: 12px;
      background: linear-gradient(145deg, #0f172a, #1e293b);
      color: #fff;
      font-size: 13px;
    }
    .side-footer-card strong {
      display: block;
      font-size: 14px;
      color: #38bdf8;
      margin-bottom: 4px;
    }
    .side-footer-card p {
      font-size: 12px;
      color: #cbd5e1;
      line-height: 1.5;
      margin-bottom: 10px;
    }
    .side-footer-card button {
      width: 100%;
      padding: 7px 10px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.18);
      border: 1px solid rgba(56, 189, 248, 0.4);
      color: #7dd3fc;
      font-size: 12px;
      font-weight: 700;
    }
    .side-footer-card button:hover {
      background: rgba(56, 189, 248, 0.3);
    }

    /* 右侧核心工具工作台 */
    .workbench {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .tool-panel {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 30px;
      box-shadow: var(--shadow-md);
    }

    .tool-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 22px;
      flex-wrap: wrap;
    }
    .tool-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 6px;
    }
    .tool-title-row h1 {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.5px;
    }
    .cost-pill {
      font-size: 12px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 999px;
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
    }
    .tool-desc {
      font-size: 15px;
      color: var(--text-secondary);
    }
    .share-link-btn {
      padding: 8px 14px;
      border-radius: 8px;
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s;
    }
    .share-link-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-soft);
    }

    /* 输入表单区 */
    .sample-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .sample-bar span {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-muted);
    }
    .sample-chip {
      font-size: 12px;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #334155;
      border: 1px solid transparent;
      transition: all 0.15s;
    }
    .sample-chip:hover {
      background: var(--primary-soft);
      color: var(--primary);
      border-color: #bfdbfe;
    }

    .field-block {
      margin-bottom: 16px;
    }
    .field-label {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 8px;
    }
    .field-label small {
      font-weight: 500;
      color: var(--text-muted);
    }
    .input-box, .textarea-box {
      width: 100%;
      background: var(--bg-subtle);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-main);
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .input-box:focus, .textarea-box:focus {
      outline: none;
      background: #fff;
      border-color: var(--border-focus);
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

    .action-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-top: 18px;
      flex-wrap: wrap;
    }
    .action-hint {
      font-size: 13px;
      color: var(--text-muted);
    }
    .btn-run {
      padding: 13px 28px;
      border-radius: 10px;
      background: var(--primary);
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.45);
      transition: all 0.2s;
    }
    .btn-run:hover {
      background: var(--primary-hover);
      transform: translateY(-1px);
      box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.55);
    }
    .btn-run:disabled {
      opacity: 0.65;
      cursor: wait;
    }

    /* 结果输出面板 */
    .result-panel {
      background: var(--bg-surface);
      border: 1.5px solid #cbd5e1;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      transition: all 0.25s;
    }
    .result-topbar {
      padding: 14px 24px;
      background: #f8fafc;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
    }
    .status-ok {
      color: #059669;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .result-body {
      padding: 26px 28px;
    }

    /* 结构化结果卡片样式 */
    .res-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-bottom: 18px;
    }
    .res-box {
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px;
    }
    .res-box-label {
      font-size: 12px;
      font-weight: 800;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
    }
    .res-quote {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.45;
      margin-bottom: 10px;
    }
    .tag-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .tag-chip {
      font-size: 12px;
      font-weight: 600;
      padding: 3px 9px;
      border-radius: 6px;
      background: #e0e7ff;
      color: #3730a3;
    }

    .shot-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }
    .shot-table th {
      background: #f1f5f9;
      text-align: left;
      padding: 10px 14px;
      font-size: 13px;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border);
    }
    .shot-table td {
      padding: 14px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }
    .shot-badge {
      display: inline-block;
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      background: #eff6ff;
      color: #1d4ed8;
    }

    /* 结果区底部操作栏 */
    .conversion-bar {
      padding: 18px 26px;
      background: linear-gradient(90deg, #f8fafc 0%, #eff6ff 100%);
      border-top: 1px solid #bfdbfe;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .btn-free-copy {
      padding: 11px 20px;
      border-radius: 9px;
      background: #fff;
      border: 1.5px solid #cbd5e1;
      color: var(--text-main);
      font-size: 14px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.15s;
    }
    .btn-free-copy:hover {
      border-color: var(--text-main);
      background: #f8fafc;
    }

    .upsell-right {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }
    .upsell-tip {
      font-size: 13px;
      font-weight: 600;
      color: #1e40af;
    }
    .btn-upsell-hook {
      padding: 12px 22px;
      border-radius: 10px;
      background: var(--upsell-grad);
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
      transition: all 0.2s;
    }
    .btn-upsell-hook:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 26px rgba(37, 99, 235, 0.5);
    }

    /* 弹窗样式 */
    dialog {
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 0;
      max-width: 680px;
      width: calc(100% - 32px);
      background: #fff;
      color: var(--text-main);
      box-shadow: 0 25px 70px rgba(15, 23, 42, 0.35);
    }
    dialog::backdrop {
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(6px);
    }
    .modal-head {
      padding: 20px 26px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .modal-body {
      padding: 26px;
    }
    .modal-foot {
      padding: 16px 26px;
      background: var(--bg-subtle);
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      flex-wrap: wrap;
    }

    .bridge-grid {
      display: grid;
      grid-template-columns: 185px 1fr;
      gap: 22px;
      align-items: center;
    }
    .phone-mock {
      aspect-ratio: 9 / 15;
      background: linear-gradient(160deg, #0f172a, #1e293b);
      border-radius: 14px;
      border: 3px solid #334155;
      padding: 12px;
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
    }
    .pro-feature-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: 14px 0;
    }
    .pro-feat-item {
      padding: 10px 12px;
      border-radius: 8px;
      background: #f8fafc;
      border: 1px solid var(--border);
      font-size: 13px;
      font-weight: 600;
    }

    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: #0f172a;
      color: #fff;
      padding: 12px 22px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      z-index: 200;
    }

    @media (max-width: 980px) {
      .layout { grid-template-columns: 1fr; }
      .sidebar { position: static; }
      .tool-nav-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
      .tool-nav-item { white-space: nowrap; }
      .category-pills { display: none; }
      .res-grid-2, .bridge-grid { grid-template-columns: 1fr; }
    }

.studio-tracks{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.studio-track{border:1px solid #cbd5e1;border-radius:999px;padding:6px 12px;background:#fff;color:#475569;cursor:pointer}.studio-track.selected{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.studio-board-panel{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:12px}.studio-board-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.studio-storyboard{display:flex;gap:10px;overflow-x:auto;padding-bottom:8px}.studio-shot{flex:0 0 156px;display:flex;flex-direction:column;gap:7px;border:1px solid #dbe3ed;border-radius:10px;background:white;padding:8px;text-align:left;cursor:pointer;color:#334155}.studio-shot video{width:100%;height:88px;object-fit:cover;background:#0f172a;border-radius:6px}.studio-shot strong{font-size:12px}.studio-shot span{font-size:12px;max-height:52px;overflow:hidden}.studio-shot small{font-size:11px;color:#2563eb}

/* Studio window sizing and hidden rendering state. */
#bridge-modal{max-width:1120px;max-height:calc(100dvh - 32px);overflow-x:hidden;box-sizing:border-box}#bridge-modal .modal-head{position:sticky;top:0;background:#fff;z-index:10;gap:12px}#bridge-modal .modal-head>div:first-child{flex-wrap:wrap;min-width:0}.studio-window-actions{display:flex;gap:14px;align-items:center;flex-shrink:0}#studio-fullscreen-btn{font-size:13px;color:#2563eb;white-space:nowrap}.studio-editor-grid{display:grid;grid-template-columns:245px minmax(0,1fr);gap:24px;align-items:start}.studio-editor-grid>*{min-width:0}#bridge-modal textarea,#bridge-modal select{box-sizing:border-box;max-width:100%;min-width:0}#bridge-modal.studio-fullscreen{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border-radius:0}#bridge-modal.studio-fullscreen .studio-editor-grid{grid-template-columns:minmax(245px,320px) minmax(0,1fr)}#studio-rendering-mask[hidden]{display:none!important}@media(max-width:760px){.studio-editor-grid,#bridge-modal.studio-fullscreen .studio-editor-grid{grid-template-columns:minmax(0,1fr)}#studio-player-box{max-width:245px;margin:auto}#bridge-modal .modal-head{padding:14px;align-items:flex-start}#bridge-modal .modal-body{padding:14px!important}.studio-window-actions{gap:8px}}

/* Match the 1080x1920 sandbox subtitle framing. */
#studio-player-box { container-type: inline-size; }
#studio-sub-preview {
  position:absolute; top:59.375%; left:4%; width:92%;
  background:transparent !important; border:0 !important; padding:0 !important;
  font-size:8.33cqw !important; line-height:1.15; font-weight:800;
  text-align:center; white-space:normal; overflow-wrap:anywhere; box-shadow:none !important;
  -webkit-text-stroke:0.56cqw #000; paint-order:stroke fill;
  text-shadow:0 1px 2px #000;
}
.formal-detail{margin:12px 0;padding-left:12px;border-left:2px solid #e2e8f0}.formal-copy{font-size:16px;line-height:1.85;overflow-wrap:anywhere}.formal-section{margin-bottom:20px}.formal-detail .res-box-label{margin-bottom:6px}

/* Customer-facing tool reports: curated sections, no raw field tree. */
.report-grid,.report-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.report-platforms{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-card{min-width:0;margin-bottom:22px;padding:26px;border:1px solid #e2e8f0;border-radius:20px;background:#fff}
.report-heading{margin:0 0 18px;font-size:19px;line-height:1.5;color:#0f172a}
.report-version{background:#f8fafc;border-top:4px solid #6366f1}
.report-version:nth-child(2){border-top-color:#f59e0b}
.report-copy{font-size:17px;line-height:1.95;color:#334155;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px}
.report-intro{font-size:14px;line-height:1.7;color:#64748b;margin:0 0 22px}
.report-formula{background:#111827;border-color:#111827;color:#fff}
.report-formula .report-heading{color:#e2e8f0}.report-formula .report-copy{color:#6ee7b7;font-size:20px;font-weight:650}
.report-fact{display:flex;gap:16px;margin:12px 0;line-height:1.8;color:#334155}.report-fact p{margin:0;flex:1;overflow-wrap:anywhere}.report-label{font-size:13px;color:#64748b;min-width:84px;flex-shrink:0}
.report-scene{padding:20px 0;border-top:1px solid #e2e8f0}.report-scene-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;color:#334155}.report-time{font-size:12px;color:#64748b;white-space:nowrap}
.report-camera{font-size:13px;line-height:1.8;color:#64748b;margin:12px 0}.report-camera summary{cursor:pointer;color:#6366f1}.report-camera p{white-space:pre-wrap}
.report-copy-btn{font-size:14px;width:100%;justify-content:center;margin-top:12px}
.report-chip{display:inline-block;padding:5px 12px;margin-bottom:16px;border-radius:99px;background:#eef2ff;color:#4f46e5;font-size:13px}
.report-steps{padding-left:24px;line-height:2;color:#e2e8f0}.report-emotions{display:flex;gap:15px;margin:20px 0;flex-wrap:wrap}.report-emotion{flex:1;min-width:100px}.report-emotion p{font-size:13px;line-height:1.5}.report-meter{height:6px;background:#e2e8f0;border-radius:9px;overflow:hidden}.report-meter span{display:block;height:100%;background:#6366f1}
.report-title-item{padding:16px 0;border-top:1px solid #e2e8f0}.report-title-item .report-copy{font-size:16px;margin:0}.report-comment{background:#f8fafc;padding:16px;border-radius:12px;line-height:1.85;color:#334155;white-space:pre-wrap}
@media(max-width:1100px){.report-platforms{grid-template-columns:1fr}}
@media(max-width:760px){.report-grid{grid-template-columns:1fr}.report-card{padding:20px}.report-fact{display:block}.report-label{display:block;margin-bottom:4px}.report-copy{font-size:16px}}

/* Hidden overlays must not override progress or the finished player. */
#studio-video-feedback[hidden],#studio-rendering-mask[hidden]{display:none!important}

.download-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}
.download-media-card{min-width:0;padding:20px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}
.download-media-card h3{margin:0 0 14px;font-size:17px}.download-media-card img,.download-media-card video{display:block;width:100%;height:340px;object-fit:contain;background:#0f172a;border-radius:12px;margin-bottom:16px}
.media-hint{font-size:13px;color:#64748b}.voice-mode-tabs{display:flex;gap:12px;margin-bottom:24px}.voice-mode-tabs button{flex:1;padding:18px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc;color:#475569;font:inherit;cursor:pointer}.voice-mode-tabs button.active{border-color:#4f63ee;background:#eef2ff;color:#4059da;font-weight:700}
@media(max-width:700px){.download-media-grid{grid-template-columns:1fr}.voice-mode-tabs{flex-direction:column}}

/* Scene-specific upgrade dialog, separate from the quick video studio. */
#upsell-modal{width:calc(100% - 32px);max-height:90vh;overflow:auto;padding:0}
#upsell-modal .modal-head{gap:16px}#upsell-modal .modal-head>div{flex-wrap:wrap}
#up-tabs-bar .cat-btn{flex-shrink:0;white-space:nowrap;font-size:13px}
#up-tabs-bar .cat-btn.active{background:#2563eb;color:white}
.up-workflow-step{padding:16px 12px;border:1px solid #475569;border-radius:10px;background:rgba(15,23,42,.55);font-size:14px;line-height:1.7}
.up-capability-card{padding:12px 14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;font-size:14px;line-height:1.7;color:#334155}
#upsell-modal .up-scene-grid>div{min-width:0}#upsell-modal .modal-foot{gap:12px;flex-wrap:wrap}
#up-quick-studio-btn[hidden]{display:none!important}
@media(max-width:700px){#upsell-modal .up-scene-grid{grid-template-columns:1fr!important}#upsell-modal .modal-body{padding:16px!important}#upsell-modal .modal-foot>div{width:100%;margin-left:0!important}#upsell-modal .modal-foot button{width:100%;white-space:normal}#up-modal-top-title{font-size:15px}#up-tabs-bar{padding:12px!important}}

.login-benefits { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; align-items: center; background: #f8fafc; padding: 20px; border-radius: 14px; border: 1px solid var(--border); }
.login-qr { box-sizing: border-box; width: 160px; height: 160px; padding: 4px; display: grid; place-items: center; background: white; border: 1px solid #cbd5e1; border-radius: 12px; text-align: center; font-size: 14px; color: #475569; }
.login-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 520px) {
  .login-benefits { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .login-qr { justify-self: center; }
}
