:root {
  --ink: #12233f;
  --ink-soft: #5f7390;
  --line: #cfe0ef;
  --line-strong: #b7d2e8;
  --surface: rgba(255, 255, 255, 0.94);
  --ice: #f3f9ff;
  --ice-2: #eaf5ff;
  --cyan: #08baff;
  --blue: #2489ff;
  --violet: #6558ff;
  --teal: #23c9b9;
  --green: #20b67a;
  --warm: #fff9ef;
  --shadow: 0 18px 55px rgba(61, 116, 165, 0.12);
  --shadow-soft: 0 8px 24px rgba(61, 116, 165, 0.09);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ice);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--ice); }
body { margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.55; background: radial-gradient(circle at 12% 4%, rgba(0, 184, 255, 0.12), transparent 26rem), radial-gradient(circle at 90% 12%, rgba(101, 88, 255, 0.1), transparent 25rem), linear-gradient(180deg, #f6fbff 0%, #eef7ff 50%, #f7fbff 100%); }
button, input { font: inherit; }
button { color: inherit; }
svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 28px; display: grid; grid-template-columns: 290px minmax(340px, 1fr) auto; align-items: center; gap: 24px; border-bottom: 1px solid rgba(174, 205, 230, 0.72); background: rgba(249, 252, 255, 0.88); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 40; box-shadow: 0 5px 24px rgba(67, 119, 162, 0.07); }
.brand-wrap, .project-switcher, .top-actions { display: flex; align-items: center; }
.brand-wrap { gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 8px 20px rgba(50, 111, 255, 0.28), inset 0 1px 0 rgba(255,255,255,.55); }
.brand-mark svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-meta { margin-top: 1px; font-size: 12px; color: #8192aa; }
.project-switcher { gap: 10px; }
.project-label { color: var(--ink-soft); font-size: 14px; }
.project-select { min-width: 205px; height: 42px; padding: 0 14px 0 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.78); display: flex; align-items: center; justify-content: space-between; font-weight: 650; cursor: pointer; }
.project-select svg { width: 16px; height: 16px; }
.save-state { margin-left: 6px; color: #6e829d; font-size: 13px; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 5px rgba(32,182,122,.11); }
.top-actions { justify-content: flex-end; gap: 10px; }
.ghost-icon { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.75); cursor: pointer; position: relative; }
.ghost-icon.small { width: 36px; height: 36px; }
.alert-dot { width: 8px; height: 8px; position: absolute; right: 8px; top: 7px; border-radius: 50%; background: #ff697d; border: 2px solid white; }
.primary-btn { min-height: 46px; padding: 0 20px; border: 0; border-radius: 13px; color: white; background: linear-gradient(108deg, var(--cyan), var(--blue) 48%, var(--violet)); box-shadow: 0 10px 24px rgba(46, 119, 255, 0.24); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(46, 119, 255, 0.3); }
.primary-btn:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(24, 157, 255, .28); outline-offset: 2px; }
.primary-btn.compact { min-height: 42px; padding: 0 16px; font-size: 14px; }
.primary-btn.compact svg { width: 17px; }
.primary-btn.large { min-width: 210px; min-height: 52px; }
.avatar { width: 42px; height: 42px; border: 0; border-radius: 13px; color: #35547c; font-weight: 800; background: linear-gradient(145deg, #dff4ff, #e9e5ff); cursor: pointer; }

.workspace { display: grid; grid-template-columns: 278px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { padding: 26px 18px 22px; border-right: 1px solid rgba(184, 210, 232, .78); background: rgba(247, 251, 255, .72); position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; }
.sidebar-create-btn { width: 100%; min-height: 44px; margin-bottom: 21px; border-radius: 14px; font-size: 14px; }
.sidebar-create-btn svg { width: 18px; height: 18px; }
.sidebar-title { padding: 0 10px 9px; font-size: 13px; font-weight: 750; letter-spacing: .08em; color: #8293a9; text-transform: uppercase; }
.step-nav { display: grid; gap: 7px; }
.step-item { width: 100%; min-height: 68px; padding: 10px 10px; border: 1px solid transparent; border-radius: 16px; display: grid; grid-template-columns: 40px 1fr 24px; gap: 10px; align-items: center; text-align: left; background: transparent; cursor: pointer; transition: .18s ease; }
.step-item:hover { background: rgba(255,255,255,.7); border-color: #dceaf6; }
.step-item.active { background: linear-gradient(105deg, rgba(224, 246, 255, .95), rgba(239, 238, 255, .92)); border-color: #a9d9f3; box-shadow: 0 10px 25px rgba(56, 130, 189, .09), inset 0 0 18px rgba(255,255,255,.8); }
.step-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 13px; color: #64809e; background: #eaf3fb; border: 1px solid #d4e3f0; }
.step-item.active .step-index { color: white; background: linear-gradient(135deg, var(--cyan), var(--violet)); border-color: white; box-shadow: 0 0 0 5px rgba(32, 164, 255, .11), 0 8px 18px rgba(69,111,255,.23); }
.step-copy { min-width: 0; display: grid; }
.step-copy strong { font-size: 14px; line-height: 1.35; }
.step-copy small { margin-top: 3px; font-size: 12px; color: #8999ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: #dcf8ec; font-size: 12px; font-weight: 900; }
.step-arrow { color: #9bb0c5; font-size: 25px; }
.sidebar-divider { height: 1px; background: #dbe8f3; margin: 24px 10px 20px; }
.row-title { display: flex; align-items: center; justify-content: space-between; }
.row-title button { border: 0; padding: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; }
.recent-list { display: grid; gap: 5px; }
.recent-project { min-width: 0; border: 1px solid transparent; border-radius: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; transition: .18s ease; }
.recent-project:hover { border-color: #dceaf6; background: rgba(255,255,255,.72); }
.recent-project.current { border-color: #b8d9ef; background: #f4fbff; }
.recent-item { min-width: 0; min-height: 60px; padding: 8px 5px 8px 9px; border: 0; border-radius: 13px; display: flex; gap: 10px; align-items: center; text-align: left; background: transparent; cursor: pointer; }
.recent-actions { padding-right: 5px; display: flex; gap: 3px; }
.project-action { width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 8px; display: grid; place-items: center; color: #71869d; background: transparent; cursor: pointer; }
.project-action svg { width: 14px; height: 14px; }
.project-action:hover, .project-action:focus-visible { border-color: #c5dded; color: #197fe1; background: white; }
.project-action.delete:hover, .project-action.delete:focus-visible { border-color: #ffc6c6; color: #d84949; background: #fff5f5; }
.recent-thumb { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: white; flex: 0 0 auto; }
.recent-thumb.blue { background: linear-gradient(145deg, #20c4ff, #3d78ff); }
.recent-thumb.violet { background: linear-gradient(145deg, #8e7cff, #5250d9); }
.recent-thumb svg { width: 20px; fill: currentColor; stroke: none; }
.recent-item > span:last-child { min-width: 0; display: grid; }
.recent-item strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item small { margin-top: 3px; color: #8b9aaf; font-size: 11px; }
.mini-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.mini-dot.processing { background: var(--blue); box-shadow: 0 0 0 3px rgba(36,137,255,.12); }
.mini-dot.done { background: var(--green); box-shadow: 0 0 0 3px rgba(32,182,122,.12); }
.sidebar-tip { margin: 25px 6px 0; padding: 14px; border: 1px solid #cfe0ef; border-radius: 16px; display: flex; gap: 10px; background: linear-gradient(145deg, #fefcf7, #f0f8ff); }
.sidebar-tip > svg { flex: 0 0 20px; color: #edac3a; }
.sidebar-tip p { margin: 0; display: grid; gap: 3px; }
.sidebar-tip strong { font-size: 12px; }
.sidebar-tip span { color: #76879d; font-size: 11px; line-height: 1.55; }

.content-area { width: 100%; max-width: 1580px; margin: 0 auto; padding: 28px 34px 48px; min-width: 0; }
.content-head { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.eyebrow { margin-bottom: 4px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.25; letter-spacing: -.04em; }
.content-head p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.head-progress { width: 180px; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 12px; color: #7e8fa5; }
.head-progress strong { color: var(--ink); font-size: 13px; }
.mini-progress { grid-column: 1 / -1; height: 6px; border-radius: 999px; overflow: hidden; background: #dfebf4; }
.mini-progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .35s ease; }
.step-view { display: none; }
.step-view.active { display: block; animation: fadeUp .24s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
.main-panel { padding: 22px; }
.insight-panel, .summary-panel, .usage-panel, .preview-panel { padding: 20px; position: sticky; top: 98px; }
.panel-heading { min-height: 46px; margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading.simple { align-items: flex-start; }
.panel-kicker { display: block; margin-bottom: 2px; color: #7790a9; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.panel-heading h2, .section-intro h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.text-btn { min-height: 38px; padding: 0 12px; border: 1px solid #a9d6f4; border-radius: 11px; color: #078ee7; background: #eef9ff; font-weight: 700; font-size: 13px; cursor: pointer; }
.text-btn span { font-size: 17px; }
.sparkle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--violet); background: linear-gradient(135deg, #def6ff, #ece8ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.sparkle.big { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; font-size: 20px; }

.dropzone { width: 100%; min-height: 104px; padding: 17px 18px; border: 1px dashed #83caf2; border-radius: 16px; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; text-align: left; background: linear-gradient(105deg, rgba(234,248,255,.85), rgba(246,244,255,.85)); cursor: pointer; transition: .18s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: linear-gradient(105deg, #e2f6ff, #efedff); transform: translateY(-1px); }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 8px 20px rgba(40,130,255,.22); }
.dropzone > span:nth-child(2) { display: grid; gap: 3px; }
.dropzone strong { font-size: 15px; }
.dropzone small { color: #75879e; font-size: 12px; }
.dropzone em { padding: 9px 13px; border-radius: 10px; color: var(--blue); background: white; border: 1px solid #c7e1f4; font-style: normal; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(66,125,170,.08); }
.asset-toolbar { margin: 20px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.asset-count { color: #6e8199; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; margin-right: 7px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.status-pill.success { color: #16825b; background: #ddf7ec; border: 1px solid #c3eddc; }
.view-options { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #eef4f9; }
.view-options button { width: 30px; height: 28px; border: 0; border-radius: 7px; color: #8ca0b6; background: transparent; display: grid; place-items: center; cursor: pointer; }
.view-options button.selected { color: var(--blue); background: white; box-shadow: 0 2px 8px rgba(57,109,152,.1); }
.view-options svg { width: 15px; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.asset-card { min-width: 0; border: 1px solid #d6e4ef; border-radius: 14px; background: white; overflow: hidden; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.asset-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(42,105,156,.11); }
.asset-visual { aspect-ratio: 16 / 9; padding: 8px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #b8e8ff, #7fb2ff); }
.asset-visual::after { content: ""; position: absolute; width: 80px; height: 80px; border: 18px solid rgba(255,255,255,.18); border-radius: 50%; right: -30px; bottom: -38px; }
.asset-visual.scene-2 { background: linear-gradient(135deg, #ffd9a9, #ff9b8c); }
.asset-visual.scene-3 { background: linear-gradient(135deg, #b7f1db, #55c7b6); }
.asset-visual.scene-4 { background: linear-gradient(135deg, #ded0ff, #8e83ff); }
.asset-visual.scene-5 { background: linear-gradient(135deg, #ffe5a9, #dfb65d); }
.asset-visual.scene-6 { background: linear-gradient(135deg, #aadfff, #3e95d8); }
.asset-visual.scene-7 { background: linear-gradient(135deg, #ffc7df, #d977a5); }
.asset-visual.scene-8 { background: linear-gradient(135deg, #bdd7ff, #6d72db); }
.asset-visual > span { position: absolute; left: 8px; top: 7px; z-index: 2; color: rgba(255,255,255,.95); font-size: 11px; font-weight: 900; }
.asset-visual button { width: 30px; height: 30px; padding-left: 8px; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; color: white; background: rgba(20,39,68,.22); backdrop-filter: blur(6px); position: relative; z-index: 2; cursor: pointer; }
.asset-info { padding: 9px 10px 10px; display: grid; }
.asset-info strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-info span { margin-top: 2px; color: #8a9aaf; font-size: 10px; }
.file-ok { width: 18px; height: 18px; right: 7px; bottom: 9px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); position: absolute; font-style: normal; font-size: 10px; }
.coverage-card { padding: 16px; border: 1px solid #cce6f6; border-radius: 17px; display: flex; align-items: center; gap: 14px; background: linear-gradient(125deg, #ebfaff, #f4f1ff); }
.coverage-ring { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) 0 55%, var(--violet) 55% 100%); position: relative; box-shadow: 0 8px 22px rgba(54,127,226,.18); }
.coverage-ring::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: white; }
.coverage-ring span { position: relative; z-index: 1; font-size: 22px; font-weight: 850; }
.coverage-ring small { color: #8091a7; font-size: 11px; }
.coverage-card > div:last-child { min-width: 0; }
.coverage-card strong { font-size: 14px; }
.coverage-card p { margin: 3px 0 0; color: #73869e; font-size: 12px; line-height: 1.55; }
.metric-list { margin: 17px 0 0; }
.metric-list > div { padding: 12px 2px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1ebf3; }
.metric-list dt { color: #778a9f; font-size: 13px; }
.metric-list dd { margin: 0; font-weight: 800; font-size: 14px; }
.notice-card { margin-top: 15px; padding: 13px; border: 1px solid #f0dfbb; border-radius: 14px; display: flex; gap: 10px; background: #fffcf6; }
.notice-card svg { flex: 0 0 18px; color: #de9d29; }
.notice-card p { margin: 0; display: grid; gap: 3px; }
.notice-card strong { font-size: 12px; }
.notice-card span { color: #7d7e80; font-size: 11px; line-height: 1.55; }
.bottom-action { margin-top: 16px; min-height: 70px; padding: 12px 14px 12px 20px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-soft); }
.bottom-action > span { color: #6f8299; font-size: 13px; }
.bottom-action b { font-size: 17px; }
.secondary-btn { min-height: 44px; padding: 0 17px; border: 1px solid #bfd7e9; border-radius: 12px; color: #49647f; background: white; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; }
.secondary-btn.full { width: 100%; }
.secondary-btn:disabled { opacity: .5; cursor: not-allowed; }

.section-intro { display: flex; align-items: center; gap: 12px; }
.section-intro.spaced { margin-top: 26px; padding-top: 22px; border-top: 1px solid #dce9f3; }
.section-intro p { margin: 3px 0 0; color: #7b8ca2; font-size: 12px; }
.number-badge { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 0 5px rgba(31,160,255,.09); font-size: 12px; font-weight: 850; }
.number-badge.teal { background: linear-gradient(135deg, #17d9d0, #2d8bff); }
.mode-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.mode-card { min-height: 164px; padding: 16px; border: 1px solid #d4e2ee; border-radius: 17px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: white; position: relative; cursor: pointer; transition: .18s ease; }
.mode-card:hover { transform: translateY(-1px); border-color: #9ccff1; }
.mode-card.selected { border-color: #58baff; background: linear-gradient(145deg, #effaff, #f4f2ff); box-shadow: 0 8px 22px rgba(58,126,211,.11); }
.radio { width: 18px; height: 18px; border: 2px solid #bfd0df; border-radius: 50%; position: absolute; right: 13px; top: 13px; }
.mode-card.selected .radio { border: 5px solid var(--blue); }
.mode-icon { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: #e3f5ff; }
.mode-icon.cyan { color: #009fc4; background: #e0fbff; }
.mode-icon.violet { color: var(--violet); background: #eeebff; }
.mode-card strong { font-size: 14px; }
.mode-card small { color: #8293a7; font-size: 11px; }
.mode-card em { margin-top: auto; color: #5e738d; font-size: 13px; font-style: normal; font-weight: 750; }
.duration-input { margin-top: auto; width: 100%; height: 36px; padding: 0 10px; border: 1px solid #b9d8ed; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; background: white; }
.duration-input input { width: 70%; border: 0; outline: 0; font-weight: 800; color: var(--ink); background: transparent; }
.duration-input span { color: #76899f; font-size: 12px; }
.audio-stack { margin-top: 16px; display: grid; gap: 10px; }
.audio-card { padding: 14px; border: 1px solid #d7e3ed; border-radius: 16px; display: grid; grid-template-columns: 45px 1fr 38px auto; gap: 12px; align-items: center; }
.audio-card.warm { background: linear-gradient(105deg, #fffdf8, #fff8ee); }
.audio-card.cool { background: linear-gradient(105deg, #f8fcff, #f4f1ff); }
.audio-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #f0a936; background: #fff0ce; }
.cool .audio-icon { color: var(--violet); background: #e9e6ff; }
.audio-main { min-width: 0; display: grid; }
.audio-label { color: #8795a7; font-size: 10px; }
.audio-main strong { font-size: 13px; }
.audio-main small { color: #8a99ac; font-size: 10px; }
.audio-wave { height: 18px; margin: 4px 0; display: flex; align-items: center; gap: 3px; }
.audio-wave i { width: 3px; height: 45%; border-radius: 999px; background: linear-gradient(180deg, #ffbd55, #ec9a2c); }
.audio-wave i:nth-child(3n) { height: 90%; }.audio-wave i:nth-child(2n) { height: 65%; }.audio-wave i:nth-child(5n) { height: 35%; }
.violet-wave i { background: linear-gradient(180deg, #aa9cff, #6657f4); }
.play-btn { width: 36px; height: 36px; padding-left: 5px; border: 0; border-radius: 50%; color: white; background: #eda63a; cursor: pointer; }
.play-btn.violet-btn { background: var(--violet); }
.mini-action { min-height: 34px; padding: 0 10px; border: 1px solid #cadeec; border-radius: 9px; color: #5d7690; background: rgba(255,255,255,.82); display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; cursor: pointer; }
.mini-action svg { width: 15px; }
.target-time { padding: 18px; border: 1px solid #cce5f5; border-radius: 17px; text-align: center; background: linear-gradient(145deg, #eafbff, #f3f0ff); }
.target-time small, .target-time span { display: block; color: #71879e; font-size: 11px; }
.target-time strong { display: block; margin: 3px 0 1px; font-size: 35px; letter-spacing: -.04em; }
.timeline-summary { margin-top: 19px; }
.timeline-labels { display: flex; justify-content: space-between; color: #94a2b2; font-size: 10px; }
.timeline-track { height: 30px; margin-top: 8px; border-radius: 8px; position: relative; overflow: hidden; background: #edf3f7; }
.timeline-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #56b9f5, #7ed1ff); opacity: .75; }
.timeline-track.music i { background: linear-gradient(90deg, #ffd067, #f2a647); }
.timeline-track.voice i { background: linear-gradient(90deg, #9e8eff, #6757ee); }
.timeline-track span { position: absolute; left: 10px; top: 6px; color: white; font-size: 11px; font-weight: 800; }
.check-list { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.check-list li { color: #5d728b; font-size: 12px; }
.check-list span { width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--green); background: #dcf8ec; font-size: 10px; font-weight: 900; }
.inline-note { margin-top: 15px; padding: 12px 13px; border: 1px solid #e3dfef; border-radius: 12px; display: grid; background: #fbfaff; }
.inline-note strong { font-size: 11px; }
.inline-note span { color: #78899d; font-size: 11px; }

.intensity-switch { padding: 5px; border: 1px solid #d5e3ef; border-radius: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; background: #f0f5f9; }
.intensity-switch button { min-height: 70px; padding: 10px; border: 1px solid transparent; border-radius: 12px; display: grid; gap: 2px; background: transparent; position: relative; cursor: pointer; }
.intensity-switch button.selected { border-color: #9ed2f2; background: linear-gradient(115deg, #e7f9ff, #efedff); box-shadow: 0 4px 14px rgba(57,111,161,.09); }
.intensity-switch strong { font-size: 13px; }.intensity-switch small { color: #8293a6; font-size: 10px; }
.intensity-switch em { padding: 2px 6px; border-radius: 999px; position: absolute; right: 7px; top: 6px; color: white; background: linear-gradient(90deg, var(--cyan), var(--violet)); font-size: 9px; font-style: normal; }
.timeline-board { margin-top: 18px; padding: 17px; border: 1px solid #d4e3ee; border-radius: 17px; background: linear-gradient(180deg, #fbfdff, #f3f8fc); }
.board-head { display: flex; align-items: center; justify-content: space-between; }
.board-head h3 { margin: 0; font-size: 16px; }
.ruler { margin: 17px 0 6px 36px; display: flex; justify-content: space-between; color: #93a3b5; font-size: 9px; }
.clip-track { min-height: 58px; padding: 6px; border-radius: 11px; display: flex; gap: 4px; overflow: hidden; background: #e7eff5; }
.clip { min-width: 38px; flex: var(--w); height: 46px; padding: 5px 6px; border-radius: 8px; display: grid; align-content: center; color: white; background: linear-gradient(145deg, #46bdf9, #3789ec); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.clip b { font-size: 11px; }.clip small { font-size: 8px; opacity: .85; }
.clip.c2 { background: linear-gradient(145deg, #ffbd6e, #e79838); }.clip.c3 { background: linear-gradient(145deg, #4fd7bd, #24a994); }.clip.c4 { background: linear-gradient(145deg, #aa90ff, #6e5ae5); }.clip.c5 { background: linear-gradient(145deg, #ef91bd, #d45e98); }.clip.c6 { background: linear-gradient(145deg, #68baf8, #4375ce); }.clip.c7 { background: linear-gradient(145deg, #50cedf, #2fa2ba); }.clip.c8 { background: linear-gradient(145deg, #8f96ff, #6265d1); }
.audio-track-row { margin-top: 8px; display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; color: #8495a8; font-size: 9px; }
.audio-line { height: 13px; border-radius: 5px; background: repeating-linear-gradient(90deg, #4ec5ef 0 3px, #8adff8 3px 6px); opacity: .72; }
.audio-line.violet-line { background: repeating-linear-gradient(90deg, #8877f2 0 3px, #b8abff 3px 6px); }
.audio-line.short { width: 77%; }
.rule-grid { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rule-card { min-height: 66px; padding: 12px; border: 1px solid #d5e3ed; border-radius: 13px; display: flex; align-items: center; gap: 10px; background: white; cursor: pointer; }
.rule-card input { position: absolute; opacity: 0; }
.custom-check { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--cyan), var(--violet)); font-size: 11px; font-weight: 900; }
.rule-card i { display: grid; font-style: normal; }.rule-card strong { font-size: 12px; }.rule-card small { color: #8595a8; font-size: 10px; }
.usage-total { min-width: 53px; height: 31px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #e7f6ff; font-size: 12px; font-weight: 850; }
.usage-list { display: grid; }
.usage-list > div { min-height: 54px; padding: 7px 2px; display: grid; grid-template-columns: 34px 1fr 20px; gap: 9px; align-items: center; border-bottom: 1px solid #e3edf4; }
.source-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: white; background: #3caaf1; font-size: 10px; font-weight: 850; }
.source-dot.s2 { background: #e9a44c; }.source-dot.s3 { background: #35bda6; }.source-dot.s4 { background: #806bea; }.source-dot.s5 { background: #d96e9f; }.source-dot.s6 { background: #4e83d7; }.source-dot.s7 { background: #35aabc; }.source-dot.s8 { background: #6e72d2; }
.usage-list p { margin: 0; display: grid; }.usage-list strong { font-size: 11px; }.usage-list small { color: #8697a9; font-size: 9px; }
.usage-list b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: #dcf8ec; font-size: 9px; }
.usage-list > div.unused { opacity: .58; background: #f7f9fb; }.usage-list > div.unused b { color: #8191a4; background: #e8eef3; }
.success-strip { margin-top: 14px; padding: 12px; border-radius: 13px; display: flex; align-items: center; gap: 9px; color: #147c58; background: #e7f9f1; }
.success-strip > span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 11px; font-weight: 900; }
.success-strip p { margin: 0; display: grid; }.success-strip strong { font-size: 11px; }.success-strip small { font-size: 9px; opacity: .75; }

.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.review-panel { padding: 22px; }
.result-layout > .preview-panel { grid-column: 2; grid-row: 1 / span 2; }
.batch-panel { grid-column: 1; padding: 20px 22px; }
.batch-heading { margin-bottom: 8px; }
.batch-intro { margin: 0 0 14px; color: #71879a; font-size: 12px; line-height: 1.6; }
.batch-capacity { margin-bottom: 13px; padding: 12px; border: 1px solid #cbe3f2; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; color: #456c87; background: linear-gradient(105deg,#effaff,#f5f2ff); }
.batch-capacity > span { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,#22b8ec,#7067f3); font-size: 15px; font-weight: 900; }
.batch-capacity p { margin: 0; display: grid; gap: 3px; }.batch-capacity strong { color: #2f526b; font-size: 12px; }.batch-capacity small { color: #6f879a; font-size: 10px; line-height: 1.55; }
.batch-capacity.blocked { border-color: #f3d39b; background: #fff9ed; }.batch-capacity.blocked > span { background: #eaa33a; }
.batch-controls { display: grid; grid-template-columns: minmax(170px, .42fr) 1fr; gap: 12px; align-items: end; }
.batch-controls > label { display: grid; gap: 6px; color: #60768a; font-size: 11px; font-weight: 750; }
.batch-controls .field-error { min-height: 14px; color: #ce5661; font-size: 9px; font-weight: 600; }
.number-input { height: 46px; border: 1px solid #cfdfeb; border-radius: 12px; display: grid; grid-template-columns: 1fr 34px; align-items: center; overflow: hidden; background: white; }
.number-input input { width: 100%; height: 100%; min-width: 0; padding: 0 12px; border: 0; outline: 0; color: #203d57; background: transparent; font: inherit; font-size: 16px; font-weight: 800; }
.number-input:focus-within { border-color: #4b8dfa; box-shadow: 0 0 0 3px rgba(50,126,243,.12); }
.number-input b { height: 24px; border-left: 1px solid #e1e9ef; display: grid; place-items: center; color: #8091a2; font-size: 11px; }
.batch-controls .primary-btn { min-height: 46px; }
.batch-rule { margin-top: 13px; padding: 11px 12px; border: 1px solid #d8e6f1; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; color: #53738b; background: #f7fbfe; }
.batch-rule > span { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#26b9e8,#7365f3); font-size: 15px; font-weight: 900; }
.batch-rule p { margin: 0; display: grid; gap: 2px; }.batch-rule strong { color: #3a5870; font-size: 11px; }.batch-rule small { color: #768c9f; font-size: 10px; line-height: 1.55; }
.batch-progress { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e0eaf1; }
.batch-progress .large-progress { margin-bottom: 12px; }
.batch-results { display: grid; gap: 8px; }
.batch-result { min-height: 58px; padding: 9px 10px; border: 1px solid #dbe7ef; border-radius: 12px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; align-items: center; background: #fbfdff; }
.batch-result.failed { border-color: #ffd0d0; background: #fff9f9; }
.batch-index { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#31bdea,#6d67f4); font-size: 10px; font-weight: 850; }
.batch-result.failed .batch-index { background: #e86a6a; }
.batch-result-copy { min-width: 0; display: grid; gap: 2px; }.batch-result-copy strong { font-size: 11px; }.batch-result-copy small { overflow: hidden; color: #7b8fa2; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.batch-result-actions { display: flex; gap: 6px; }.batch-result-actions a, .batch-result-actions button { min-height: 30px; padding: 0 9px; border: 1px solid #bedbf0; border-radius: 9px; color: #147fc5; background: #f1faff; text-decoration: none; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.batch-result-actions a:hover, .batch-result-actions button:hover { border-color: #77bcea; background: #e7f6ff; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.review-grid > div { min-height: 97px; padding: 14px; border: 1px solid #d6e4ef; border-radius: 14px; display: grid; background: linear-gradient(145deg, #fbfdff, #f4f8fc); }
.review-grid span { color: #8092a7; font-size: 11px; }.review-grid strong { margin: 3px 0; font-size: 20px; }.review-grid small { color: #4b9c7f; font-size: 10px; }
.output-save-card { margin-top: 15px; padding: 15px; border: 1px solid #d4e4ef; border-radius: 15px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(180px, .75fr); gap: 12px; background: #f8fbfe; }
.output-save-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.output-save-heading > span { display: grid; gap: 2px; }.output-save-heading strong { font-size: 13px; }.output-save-heading small { color: #7f91a4; font-size: 10px; }
.output-save-card label { min-width: 0; display: grid; gap: 6px; color: #60768a; font-size: 11px; font-weight: 750; }
.output-save-card label > small { color: #8a9bad; font-size: 9px; font-weight: 500; }
.output-save-card input { width: 100%; height: 42px; min-width: 0; padding: 0 11px; border: 1px solid #cbdde9; border-radius: 11px; color: #234059; background: white; font: inherit; }
.output-save-card input:focus { border-color: #4b8dfa; outline: 0; box-shadow: 0 0 0 3px rgba(50,126,243,.12); }
.local-download-field { min-width: 0; display: grid; gap: 6px; color: #60768a; font-size: 11px; font-weight: 750; }
.download-destination { min-height: 58px; padding: 8px 9px 8px 12px; border: 1px solid #cbdde9; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: white; }
.download-destination > span { min-width: 0; display: grid; gap: 3px; }.download-destination strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #234059; font-size: 11px; }.download-destination small { color: #8a9bad; font-size: 9px; font-weight: 500; }
.download-destination .secondary-btn { min-height: 38px; padding: 0 12px; flex: 0 0 auto; }
.auto-download-row { grid-column: 1 / -1; min-height: 48px; padding: 9px 11px; border: 1px solid #cfe4f0; border-radius: 11px; display: flex !important; grid-template-columns: none; align-items: center; gap: 9px !important; color: #48667e !important; background: #f1f9fd; cursor: pointer; }
.auto-download-row input { width: 18px !important; height: 18px !important; flex: 0 0 auto; padding: 0 !important; accent-color: #337ff3; box-shadow: none !important; }
.auto-download-row > span { display: grid; gap: 2px; }.auto-download-row strong { font-size: 11px; }.auto-download-row small { color: #7f91a4; font-size: 9px; font-weight: 500; }
.output-name-input { height: 42px; border: 1px solid #cbdde9; border-radius: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; overflow: hidden; background: white; }
.output-name-input:focus-within { border-color: #4b8dfa; box-shadow: 0 0 0 3px rgba(50,126,243,.12); }
.output-name-input input { height: 40px; border: 0; border-radius: 0; box-shadow: none !important; }.output-name-input b { padding: 0 11px; color: #8091a2; font-size: 11px; }
.output-file-examples { grid-column: 1 / -1; padding: 9px 11px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #70869a; background: #edf6fc; font-size: 10px; }
.output-file-examples b { color: #286087; }
.preflight-list { margin-top: 15px; border: 1px solid #d8e5ef; border-radius: 15px; overflow: hidden; }
.preflight-list > div { min-height: 64px; padding: 12px 14px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid #e4edf4; }
.preflight-list > div:last-child { border-bottom: 0; }
.preflight-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--green); background: #ddf7ec; font-size: 11px; font-weight: 900; }
.preflight-list p { margin: 0; display: grid; }.preflight-list strong { font-size: 12px; }.preflight-list small { color: #8192a5; font-size: 10px; }.preflight-list b { color: var(--green); font-size: 10px; }
.generate-box { margin-top: 15px; padding: 17px; border: 1px solid #c8dff1; border-radius: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(110deg, #edfaff, #f2efff); }
.generate-copy { display: flex; align-items: center; gap: 12px; }
.generate-copy strong { font-size: 14px; }.generate-copy p { margin: 2px 0 0; color: #75889f; font-size: 11px; }
.generation-progress { margin-top: 15px; padding: 17px; border: 1px solid #cde2f1; border-radius: 17px; background: #f8fcff; }
.progress-top { display: flex; align-items: center; justify-content: space-between; }
.progress-top > div { display: flex; align-items: center; gap: 8px; }.progress-top strong { font-size: 13px; }.progress-top b { color: var(--blue); font-size: 13px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(36,137,255,.12); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(36,137,255,0); } }
.large-progress { height: 8px; margin: 12px 0 10px; border-radius: 999px; background: #e2edf5; overflow: hidden; }.large-progress i { display: block; width: 12%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .5s ease; }
.stage-row { display: flex; justify-content: space-between; color: #9aa8b8; font-size: 9px; }.stage-row .done { color: var(--green); }
.video-preview { aspect-ratio: 9 / 12; max-height: 440px; border-radius: 17px; display: grid; place-items: center; overflow: hidden; position: relative; color: white; background: linear-gradient(155deg, #152c50 0%, #1e67a3 45%, #574eb2 100%); box-shadow: inset 0 0 70px rgba(0,0,0,.25); }
.video-preview::before { content: ""; width: 230px; height: 230px; border: 46px solid rgba(83,220,255,.13); border-radius: 50%; position: absolute; top: 18%; left: 50%; transform: translateX(-50%); }
.video-preview::after { content: ""; width: 76%; height: 36%; position: absolute; left: 12%; bottom: 8%; border-radius: 24px 24px 10px 10px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)); backdrop-filter: blur(8px); }
.preview-glow { width: 140px; height: 140px; border-radius: 50%; position: absolute; top: 25%; background: radial-gradient(circle, rgba(101,225,255,.52), rgba(77,111,255,.08) 68%, transparent 70%); }
.video-preview button { width: 58px; height: 58px; padding-left: 6px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: white; background: rgba(12,31,56,.25); backdrop-filter: blur(8px); position: relative; z-index: 3; cursor: pointer; font-size: 18px; }
.preview-number { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 12px; font-weight: 850; opacity: .86; }
.video-preview p { margin: 0; position: absolute; left: 22px; bottom: 20px; z-index: 3; font-size: 14px; font-weight: 800; }.video-preview p small { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; opacity: .75; }
.result-actions { margin-top: 12px; }.result-actions svg { width: 17px; }
.result-output-path { margin: 9px 2px 0; padding: 9px 10px; border-radius: 10px; overflow-wrap: anywhere; color: #58748b; background: #eff7fb; font-size: 9px; line-height: 1.5; }
.result-note { margin-top: 12px; padding: 12px; border: 1px solid #d9e5ee; border-radius: 13px; display: flex; align-items: center; gap: 10px; background: #f9fcfe; }
.result-note > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: white; background: #77a8d1; font-size: 11px; font-weight: 850; }
.result-note p { margin: 0; display: grid; }.result-note strong { font-size: 11px; }.result-note small { color: #8494a7; font-size: 9px; }
.action-note { margin-left: auto; }
.toast { min-width: 270px; max-width: min(420px, calc(100vw - 30px)); min-height: 58px; padding: 12px 16px; border: 1px solid #bfe4d5; border-radius: 15px; display: flex; align-items: center; gap: 10px; color: #166749; background: rgba(241,255,249,.97); box-shadow: 0 16px 45px rgba(43,91,72,.2); position: fixed; right: 24px; bottom: 24px; z-index: 80; opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }.toast > span { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 12px; font-weight: 900; }.toast p { margin: 0; font-size: 13px; font-weight: 700; }

@media (max-width: 1220px) {
  .topbar { grid-template-columns: 245px 1fr auto; padding: 0 20px; }
  .brand-meta, .save-state, .ghost-icon { display: none; }
  .workspace { grid-template-columns: 240px minmax(0, 1fr); }
  .content-area { padding: 26px 24px 42px; }
  .asset-grid { grid-template-columns: repeat(3, 1fr); }
  .two-column, .result-layout { grid-template-columns: minmax(0, 1fr) 285px; }
  .review-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .topbar { height: 68px; grid-template-columns: 1fr auto; }
  .project-switcher { display: none; }
  .workspace { display: block; }
  .sidebar { height: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 35; overflow: visible; }
  .sidebar > .sidebar-title, .sidebar-create-btn, .sidebar-divider, .recent-list, .sidebar-tip { display: none; }
  .step-nav { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .step-item { min-height: 50px; padding: 6px; grid-template-columns: 34px 1fr; border-radius: 12px; }
  .step-index { width: 32px; height: 32px; }
  .step-copy small, .step-check, .step-arrow { display: none; }
  .step-copy strong { font-size: 12px; }
  .content-area { padding-top: 22px; }
  .two-column, .result-layout { grid-template-columns: 1fr; }
  .result-layout > .preview-panel, .batch-panel { grid-column: auto; grid-row: auto; }
  .insight-panel, .summary-panel, .usage-panel, .preview-panel { position: static; }
  .asset-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .topbar { padding: 0 14px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }.brand-name { font-size: 16px; }
  .primary-btn.compact { width: 42px; padding: 0; font-size: 0; }.primary-btn.compact svg { width: 20px; }
  .avatar { display: none; }
  .sidebar { padding: 8px; }
  .step-nav { overflow-x: auto; grid-template-columns: repeat(4, minmax(124px, 1fr)); scrollbar-width: none; }
  .step-nav::-webkit-scrollbar { display: none; }
  .content-area { padding: 18px 12px 34px; }
  .content-head { align-items: flex-start; }.head-progress { display: none; }
  h1 { font-size: 25px; }.content-head p { font-size: 13px; }
  .main-panel, .insight-panel, .summary-panel, .usage-panel, .preview-panel, .review-panel { padding: 16px; border-radius: 17px; }
  .dropzone { grid-template-columns: 42px 1fr; }.dropzone em { display: none; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .bottom-action { position: sticky; bottom: 8px; z-index: 30; padding: 10px; }.bottom-action > span { display: none; }.bottom-action .primary-btn { width: 100%; }.bottom-action .secondary-btn + .primary-btn { width: auto; flex: 1; }
  .mode-grid, .review-grid { grid-template-columns: 1fr; }.mode-card { min-height: 126px; }
  .audio-card { grid-template-columns: 42px 1fr 36px; }.audio-card .mini-action { display: none; }
  .intensity-switch { grid-template-columns: 1fr; }.intensity-switch button { min-height: 58px; }
  .clip-track { overflow-x: auto; }.clip { min-width: 58px; flex: none; }
  .rule-grid { grid-template-columns: 1fr; }
  .generate-box { align-items: stretch; flex-direction: column; }.primary-btn.large { width: 100%; }
  .batch-panel { padding: 16px; border-radius: 17px; }.batch-controls { grid-template-columns: 1fr; }.batch-result { grid-template-columns: 32px minmax(0,1fr); }.batch-result-actions { grid-column: 2; }.batch-result-copy small { white-space: normal; }
  .stage-row { gap: 5px; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Real application states */
.real-select { appearance: auto; font: inherit; color: var(--ink); }
.local-badge { height: 34px; padding: 0 12px; border: 1px solid #cfe2eb; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: #607b8f; background: #f8fdff; font-size: 12px; font-weight: 700; }
.local-badge i { width: 7px; height: 7px; border-radius: 50%; background: #20bf8a; box-shadow: 0 0 0 4px rgba(32,191,138,.12); }
.status-dot.saving { background: #ffad31; animation: pulse 1s infinite; }
.global-error { margin: -4px 0 16px; padding: 12px 14px; border: 1px solid #ffc7c7; border-radius: 14px; display: grid; grid-template-columns: 24px 1fr 28px; gap: 10px; align-items: center; color: #9b3434; background: #fff8f8; box-shadow: 0 8px 22px rgba(164,52,52,.06); }
.global-error > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: white; background: #ef6464; font-weight: 900; }
.global-error p { margin: 0; line-height: 1.55; font-size: 13px; }
.global-error button { border: 0; background: transparent; color: #b07171; font-size: 22px; cursor: pointer; }
.mini-dot.failed { background: #ef6464; }
.upload-progress-wrap { margin: 14px 0 4px; padding: 12px; border: 1px solid #cbe5f5; border-radius: 13px; background: #f7fcff; }
.upload-progress-wrap > div:first-child { margin-bottom: 7px; display: flex; justify-content: space-between; color: #688094; font-size: 12px; }
.real-assets { margin-top: 14px; }
.real-asset { display: grid; grid-template-columns: 112px 1fr 30px; align-items: center; min-height: 82px; }
.real-asset.invalid { border-color: #ffc4c4; background: #fff9f9; }
.asset-preview { height: 80px; padding: 0; border: 0; position: relative; overflow: hidden; background: linear-gradient(135deg,#bfeaff,#6678ef); cursor: pointer; }
.asset-preview:disabled { filter: grayscale(.8); cursor: default; }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-preview > span { position: absolute; left: 7px; top: 6px; padding: 2px 5px; border-radius: 5px; color: white; background: rgba(19,38,66,.55); font-size: 10px; font-weight: 900; }
.asset-preview > i { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; display: grid; place-items: center; position: absolute; left: 50%; top: 50%; color: white; background: rgba(18,41,70,.35); transform: translate(-50%,-50%); font-style: normal; font-size: 10px; backdrop-filter: blur(5px); }
.real-asset .asset-info { min-width: 0; }
.real-asset .asset-info small { margin-top: 6px; color: #7b8da1; font-size: 10px; line-height: 1.4; }
.icon-delete { width: 28px; height: 28px; border: 1px solid #d9e5ed; border-radius: 9px; color: #8191a4; background: white; font-size: 18px; cursor: pointer; }
.icon-delete:hover { border-color: #ffb6b6; color: #d64f4f; background: #fff7f7; }
.empty-state { min-height: 170px; padding: 24px; display: grid; place-items: center; align-content: center; text-align: center; color: #7e90a4; }
.empty-state > span { font-size: 34px; color: #8dcff2; }
.empty-state strong { margin-top: 8px; color: #334960; }
.empty-state p { max-width: 380px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.coverage-ring { width: 138px; height: 138px; margin: 14px auto 20px; position: relative; }
.coverage-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.coverage-ring circle { fill: none; stroke: #e4edf3; stroke-width: 10; }
.coverage-ring .ring-fill { stroke: #25b9ed; stroke-linecap: round; stroke-dasharray: 0 308; transition: stroke-dasharray .3s ease; }
.coverage-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.coverage-ring strong { color: #1d3851; font-size: 20px; }
.coverage-ring span { color: #8797a8; font-size: 11px; }
.metric-list { display: grid; gap: 0; border-top: 1px solid #e2ebf1; }
.metric-list div { min-height: 47px; border-bottom: 1px solid #e8eef3; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; }
.metric-list span { color: #8191a4; }.metric-list strong { color: #29445e; }
.validation-box { margin-top: 15px; padding: 12px; border-radius: 12px; display: flex; gap: 9px; align-items: flex-start; color: #617d91; background: #eef8fd; font-size: 11px; line-height: 1.5; }
.validation-box > span { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: white; background: #43b9e7; font-weight: 800; }
.audio-upload-card { padding: 14px; border: 1px solid #d7e3ed; border-radius: 16px; display: grid; grid-template-columns: 45px 1fr auto; gap: 12px; align-items: center; background: linear-gradient(105deg,#fffdf8,#fff8ee); }
.audio-upload-card:nth-child(2) { background: linear-gradient(105deg,#f8fcff,#f4f1ff); }
.audio-type-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #f0a936; background: #fff0ce; }
.audio-type-icon.violet-bg { color: #796cf1; background: #ebe8ff; }
.audio-type-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.audio-upload-card audio { width: min(100%, 360px); height: 30px; margin-top: 7px; }
.audio-actions { display: flex; align-items: center; gap: 7px; }
.audio-pool-card { padding: 14px; border: 1px solid #d7e3ed; border-radius: 16px; background: linear-gradient(105deg,#fffdf8,#fff8ee); }
.audio-pool-card.voice-pool { background: linear-gradient(105deg,#f8fcff,#f4f1ff); }
.audio-pool-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.audio-pool-head > div { min-width: 0; display: grid; gap: 3px; }.audio-pool-head strong { color: #29445e; font-size: 13px; }.audio-pool-head small { color: #7c8fa2; font-size: 10px; }
.audio-candidate-list { margin-top: 10px; display: grid; gap: 7px; }
.audio-candidate { padding: 8px 9px; border: 1px solid #e0e8ef; border-radius: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; background: rgba(255,255,255,.82); }
.audio-candidate p { min-width: 0; margin: 0; display: grid; gap: 2px; }.audio-candidate strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #304b63; font-size: 11px; }.audio-candidate small { color: #8395a6; font-size: 9px; }
.audio-candidate audio { grid-column: 1 / -1; width: 100%; height: 28px; }.audio-candidate .icon-delete { width: 25px; height: 25px; }
.audio-empty { padding: 10px; border: 1px dashed #d7e3ed; border-radius: 10px; color: #8a9bac; text-align: center; font-size: 10px; }
.audio-library { margin-top: 9px; border-top: 1px solid rgba(209,222,232,.85); }.audio-library summary { padding-top: 9px; color: #55738a; font-size: 10px; font-weight: 800; cursor: pointer; }.audio-library summary span { color: #879bad; font-weight: 500; }
.audio-library > div { margin-top: 7px; display: grid; gap: 6px; }.audio-library-item { padding: 7px 8px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #5d7487; background: rgba(238,247,252,.9); font-size: 10px; }.audio-library-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.audio-library-item button { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #bfdaeb; border-radius: 8px; color: #2874a4; background: white; font: inherit; cursor: pointer; }
.volume-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.volume-grid label { padding: 12px; border: 1px solid #dce7ee; border-radius: 13px; display: grid; grid-template-columns: 1fr auto; color: #60768a; font-size: 11px; background: #fbfdff; }
.volume-grid input { grid-column: 1 / -1; width: 100%; margin-top: 9px; accent-color: #477cf4; }
.confirm-row { margin-top: 13px; padding: 12px; border: 1px solid #ffd28c; border-radius: 12px; display: flex; gap: 9px; align-items: center; color: #9b6512; background: #fffaf0; font-size: 12px; }
.confirm-row input { accent-color: #f0a334; }.check-list li.warning { color: #a86c16; }.check-list li.warning span { color: white; background: #f4a72f; }
.output-options { margin: 15px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.output-options label { color: #6b7d90; font-size: 11px; font-weight: 700; }
.output-options select { width: 100%; height: 40px; margin-top: 6px; padding: 0 11px; border: 1px solid #d4e2ed; border-radius: 11px; color: #253f58; background: white; font: inherit; }
.real-track { min-height: 68px; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; align-items: stretch; }
.real-track::-webkit-scrollbar { height: 6px; }.real-track::-webkit-scrollbar-thumb { border-radius: 6px; background: #b8ccda; }
.real-track .clip { min-width: 46px; height: 46px; position: relative; overflow: visible; transition: flex-grow .08s linear, filter .16s ease; }
.real-track .clip em { position: absolute; right: 4px; top: 3px; color: rgba(255,255,255,.6); font-size: 7px; font-style: normal; }
.real-track .clip.resizing { filter: saturate(1.16) brightness(1.04); z-index: 4; }
.clip-resizer { width: 28px; height: 100%; padding: 0; border: 0; position: absolute; right: -16px; top: 0; z-index: 8; color: white; background: transparent; cursor: col-resize; touch-action: none; }
.clip-resizer i { width: 4px; height: 25px; border: 1px solid rgba(255,255,255,.88); border-radius: 99px; display: block; position: absolute; left: 12px; top: 10px; background: rgba(45,106,210,.78); box-shadow: 0 0 0 3px rgba(255,255,255,.34), 0 2px 8px rgba(26,67,132,.3); transition: .16s ease; pointer-events: none; }
.clip-resizer:hover i, .clip-resizer:focus-visible i, .clip.resizing .clip-resizer i { height: 31px; top: 7px; background: #245cff; box-shadow: 0 0 0 4px rgba(255,255,255,.74), 0 0 0 7px rgba(36,92,255,.2); }
.clip-resizer:focus-visible { outline: 2px solid #1b75ff; outline-offset: 3px; border-radius: 8px; }
.clip-resizer:disabled { cursor: wait; opacity: .5; }
.timeline-resize-hint { margin: 9px 2px 3px; display: flex; align-items: center; gap: 9px; color: #56758e; }
.timeline-resize-hint[hidden] { display: none; }
.timeline-resize-hint > span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #276af1; background: #e6f2ff; font-size: 14px; font-weight: 900; }
.timeline-resize-hint p { margin: 0; display: grid; gap: 1px; }.timeline-resize-hint strong { color: #38566f; font-size: 10px; }.timeline-resize-hint small { color: #7c91a4; font-size: 9px; }
.track-empty, .usage-empty { width: 100%; min-height: 55px; display: grid; place-items: center; color: #8b9aaa; font-size: 11px; }
.failed-check { background: #fff9f9 !important; }.failed-check .preflight-icon { color: white !important; background: #ed7474 !important; }.failed-check > b { color: #cf5656 !important; }
.status-pill.warning { color: #a96a0d; background: #fff3d8; }
.stage-help { margin: 10px 0 0; color: #788b9f; font-size: 11px; line-height: 1.5; }.retry-btn { margin-top: 12px; }
.result-size { color: #7b8da1; font-size: 10px; }
.result-video { width: 100%; max-height: 480px; border-radius: 16px; background: #101929; aspect-ratio: 9 / 16; }
.disabled-link { pointer-events: auto; opacity: .48; cursor: not-allowed; }.centered { margin: 10px auto 0; }
.report-panel { margin-top: 16px; }
.report-table { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report-table > div { min-height: 58px; padding: 10px 12px; border: 1px solid #deebf2; border-radius: 12px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: #fbfdff; }
.report-table p { min-width: 0; margin: 0; display: grid; }.report-table p strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.report-table p small { color: #8292a4; font-size: 9px; line-height: 1.45; }.report-table > div > b { color: #278f76; font-size: 10px; }
.title-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.title-preview-panel, .title-controls-panel { padding: 22px; }
.title-controls-panel { position: sticky; top: 98px; }
.title-preview-stage { width: min(100%, 430px); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(145deg, #17253b, #0a1322); box-shadow: 0 18px 44px rgba(14,37,62,.2); user-select: none; touch-action: none; }
.title-preview-stage.landscape { width: 100%; max-width: 900px; aspect-ratio: 16 / 9; }
.title-preview-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.title-preview-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #b8c9da; background: radial-gradient(circle at 50% 35%, rgba(75,128,181,.24), transparent 42%); }
.title-preview-empty > span { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; display: grid; place-items: center; padding-left: 3px; color: white; background: rgba(255,255,255,.1); }
.title-preview-empty p { margin: 0; font-size: 12px; }
.title-overlay { width: 72%; height: 18%; position: absolute; left: 50%; top: 24%; z-index: 4; transform: translate(-50%, -50%); color: white; touch-action: none; }
.title-overlay-move { width: 100%; height: 100%; padding: 0; border: 1px dashed rgba(255,255,255,.72); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: inherit; background: transparent; cursor: grab; touch-action: none; overflow: visible; }
.title-overlay-move:active { cursor: grabbing; }
.title-overlay-move > span { display: block; width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.18; text-align: center; font-weight: 800; letter-spacing: .02em; }
.title-overlay-move:focus-visible { outline: 3px solid rgba(255,255,255,.92); outline-offset: 5px; }
.title-overlay.disabled { opacity: .38; }.title-overlay.disabled .title-resize-handle { display: none; }
.title-resize-handle { width: 26px; height: 26px; padding: 0; border: 0; position: absolute; z-index: 2; background: transparent; touch-action: none; }
.title-resize-handle::after { content: ""; width: 11px; height: 11px; border: 2px solid #2b77f4; border-radius: 50%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: white; box-shadow: 0 2px 8px rgba(18,47,80,.28); }
.title-resize-handle.north, .title-resize-handle.south { left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.title-resize-handle.north { top: -13px; }.title-resize-handle.south { bottom: -13px; }
.title-resize-handle.east, .title-resize-handle.west { top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.title-resize-handle.east { right: -13px; }.title-resize-handle.west { left: -13px; }
.title-resize-handle:focus-visible { outline: 3px solid rgba(255,255,255,.92); border-radius: 50%; }
.title-safe-area { position: absolute; inset: 5%; z-index: 3; border: 1px dashed rgba(255,255,255,.28); border-radius: 9px; pointer-events: none; }
.title-preview-help { margin: 15px auto 0; max-width: 650px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #5d748a; }
.title-preview-help > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #246ff0; background: #e7f2ff; font-weight: 900; }
.title-preview-help p { margin: 0; display: grid; }.title-preview-help strong { font-size: 11px; }.title-preview-help small { color: #8193a6; font-size: 10px; }
.title-time-strip { margin: 15px auto 0; max-width: 650px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; color: #75889c; font-size: 10px; }
.title-time-strip > i { height: 7px; overflow: hidden; border-radius: 99px; background: #e0eaf2; }
.title-time-strip b { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.title-enable-row { min-height: 58px; padding-bottom: 15px; border-bottom: 1px solid #dfebf3; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.title-enable-row > span { display: grid; }.title-enable-row strong { font-size: 14px; }.title-enable-row small { color: #7c8da1; font-size: 10px; }
.switch { width: 50px; height: 28px; flex: 0 0 auto; position: relative; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { display: block; width: 100%; height: 100%; border-radius: 99px; background: #c9d7e2; cursor: pointer; transition: .18s ease; }
.switch i::after { content: ""; width: 22px; height: 22px; border-radius: 50%; position: absolute; left: 3px; top: 3px; background: white; box-shadow: 0 2px 8px rgba(29,55,78,.24); transition: .18s ease; }
.switch input:checked + i { background: linear-gradient(90deg, var(--cyan), var(--violet)); }.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid rgba(24,157,255,.28); outline-offset: 2px; }
.title-form { padding-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 12px; transition: opacity .18s ease; }
.title-form.disabled { opacity: .5; }
.title-form label { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; align-items: center; color: #60768b; font-size: 11px; font-weight: 700; }
.title-form .field-full { grid-column: 1 / -1; }.title-form label > small { color: #8a9aac; font-weight: 500; }
.title-form textarea, .title-form select { grid-column: 1 / -1; width: 100%; border: 1px solid #cddfea; border-radius: 11px; color: #243e57; background: white; font: inherit; }
.title-form textarea { min-height: 62px; padding: 9px 11px; resize: vertical; }.title-form select { height: 38px; padding: 0 9px; }
.title-form input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #397bf3; }
.title-form output { color: #284b68; font-size: 10px; font-weight: 800; }
.title-form .color-field { grid-template-columns: 1fr 44px; }.title-form input[type="color"] { width: 44px; height: 34px; padding: 3px; border: 1px solid #cddfea; border-radius: 9px; background: white; cursor: pointer; }
.title-form .check-control { min-height: 38px; padding: 0 10px; border: 1px solid #d7e5ee; border-radius: 11px; display: flex; gap: 8px; background: #f8fbfd; }
.title-form .check-control input { accent-color: #397bf3; }
.title-form .check-control span { display: grid; gap: 2px; padding: 8px 0; color: #284b68; }
.title-form .check-control span small { color: #8a9aac; font-weight: 500; }
.template-library { margin-top: 17px; padding-top: 16px; border-top: 1px solid #dfebf3; display: grid; gap: 10px; }
.template-library > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }.template-library > div:first-child strong { color: #60758a; font-size: 10px; }
.template-library select, .template-save-row input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #cddfea; border-radius: 11px; color: #29435d; background: white; font: inherit; }
.template-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.template-actions .secondary-btn { min-height: 40px; }
.danger-text { color: #c54b5b; border-color: #f0c6cc; }.danger-text:hover { background: #fff6f7; }
.template-save-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }.template-save-row .primary-btn { min-height: 40px; }
.app-dialog, .preview-dialog { width: min(92vw, 470px); padding: 0; border: 1px solid #cfe1ed; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(24,62,95,.25); }
.app-dialog::backdrop, .preview-dialog::backdrop { background: rgba(17,39,63,.46); backdrop-filter: blur(5px); }
.app-dialog form { padding: 28px; position: relative; text-align: center; }
.dialog-close { width: 32px; height: 32px; border: 0; border-radius: 50%; position: absolute; right: 15px; top: 15px; color: #71849a; background: #f0f5f8; font-size: 20px; cursor: pointer; }
.dialog-icon { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,#10baf7,#6857f5); font-size: 26px; }
.app-dialog h2 { margin: 0; font-size: 20px; }.app-dialog p { margin: 7px 0 18px; color: #7a8b9d; font-size: 12px; }
.app-dialog label { display: grid; gap: 7px; text-align: left; color: #566d82; font-size: 12px; font-weight: 700; }.app-dialog input { height: 44px; padding: 0 13px; border: 1px solid #ccdde9; border-radius: 12px; font: inherit; }
.dialog-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-icon.danger { background: linear-gradient(135deg, #ff9a61, #ed4f67); box-shadow: 0 8px 20px rgba(221,70,88,.22); }
.danger-dialog p { line-height: 1.65; }.danger-dialog p strong { color: #253f58; }
.danger-btn { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; color: white; background: linear-gradient(108deg, #ff765f, #e8415e); box-shadow: 0 9px 22px rgba(221,65,86,.2); font-weight: 750; cursor: pointer; }
.danger-btn:hover { background: linear-gradient(108deg, #f66651, #d93553); }.danger-btn:disabled { opacity: .55; cursor: wait; }
.preview-dialog { width: min(92vw, 920px); padding: 48px 18px 18px; }.preview-dialog video { width: 100%; max-height: 72vh; border-radius: 14px; background: #0f1724; }.preview-dialog p { margin: 10px 4px 0; color: #687d91; font-size: 12px; }
.toast.error span { background: #e96767; }

/* Account and administration */
.auth-screen { min-height: 100vh; padding: 42px 20px; display: grid; place-content: center; justify-items: center; gap: 22px; background: radial-gradient(circle at 18% 8%, rgba(10,186,255,.17), transparent 26rem), radial-gradient(circle at 85% 22%, rgba(101,88,255,.14), transparent 28rem); }
.auth-brand { display: flex; align-items: center; gap: 12px; }.auth-brand > div:last-child { display: grid; }.auth-brand strong { font-size: 20px; }.auth-brand span { color: #7b8da3; font-size: 12px; }
.auth-card { width: min(92vw, 470px); padding: 34px; border: 1px solid rgba(190,216,235,.9); border-radius: 26px; background: rgba(255,255,255,.95); box-shadow: 0 28px 80px rgba(51,98,141,.17); }
.auth-copy h1 { margin: 4px 0 6px; font-size: 28px; letter-spacing: -.04em; }.auth-copy p { margin: 0 0 22px; color: #73869c; font-size: 13px; }
.auth-form, .stack-form { display: grid; gap: 14px; }.auth-form label, .stack-form label { display: grid; gap: 6px; color: #526a81; font-size: 12px; font-weight: 750; }.auth-form input, .stack-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #cbdde9; border-radius: 12px; color: #1f3b55; background: white; }.full { width: 100%; }.auth-error { margin-bottom: 15px; padding: 11px 13px; border: 1px solid #ffc7cb; border-radius: 11px; color: #bc3f50; background: #fff4f5; font-size: 12px; }.auth-footnote { margin: 0; color: #788ba0; font-size: 11px; }
.setup-note { padding: 12px; display: flex; gap: 10px; align-items: center; border: 1px solid #d5e5f1; border-radius: 13px; background: #f4f9fd; }.setup-note > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: white; background: linear-gradient(135deg,var(--cyan),var(--violet)); font-weight: 800; }.setup-note p { margin: 0; display: grid; }.setup-note strong { font-size: 12px; }.setup-note small { color: #7d8fa2; font-size: 10px; }
.account-chip { min-height: 44px; padding: 4px 10px 4px 5px; border: 1px solid #cee0ed; border-radius: 14px; display: flex; align-items: center; gap: 8px; text-align: left; background: rgba(255,255,255,.82); cursor: pointer; }.account-chip > span, .identity-card > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: white; background: linear-gradient(135deg,#12baff,#6859ff); font-weight: 800; }.account-chip i { min-width: 0; display: grid; font-style: normal; }.account-chip strong { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.account-chip small { color: #8293a7; font-size: 9px; }.admin-entry { min-height: 42px; }
.account-dialog .dialog-panel { padding: 28px; position: relative; }.account-dialog form { padding: 0; text-align: left; }.identity-card { margin: 10px 0 20px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #dbe8f1; border-radius: 14px; background: #f6faff; }.identity-card > span { width: 42px; height: 42px; }.identity-card p { margin: 0; display: grid; }.identity-card strong { color: #213d57; font-size: 13px; }.identity-card small { color: #7b8da1; }.stack-form h3 { margin: 0 0 2px; font-size: 14px; }.dialog-divider { height: 1px; margin: 22px 0; background: #e0ebf3; }.permission-summary { display: grid; gap: 9px; }.permission-summary > strong { font-size: 12px; }.permission-summary > div { display: flex; flex-wrap: wrap; gap: 6px; }.permission-summary span { padding: 4px 8px; border-radius: 8px; color: #316a75; background: #e9f9f5; font-size: 9px; }.logout-btn { width: 100%; margin-top: 22px; justify-content: center; color: #c24b59; }
.admin-dialog { width: min(95vw, 1180px); max-height: 92vh; padding: 0; border: 1px solid #c8dcea; border-radius: 24px; color: var(--ink); background: #f4f9fd; box-shadow: 0 32px 90px rgba(18,51,82,.3); }.admin-dialog::backdrop { background: rgba(13,32,51,.55); backdrop-filter: blur(6px); }.admin-console { max-height: 92vh; padding: 28px; overflow: auto; }.admin-console > header { position: relative; padding-right: 48px; }.admin-console h2 { margin: 3px 0; font-size: 26px; }.admin-console header p, .admin-section-head p { margin: 0; color: #74879a; font-size: 11px; }.admin-overview { margin: 22px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.admin-overview > div { padding: 15px; border: 1px solid #d4e4ef; border-radius: 15px; display: grid; background: white; }.admin-overview span { color: #74889c; font-size: 10px; }.admin-overview strong { margin-top: 4px; font-size: 22px; }.admin-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 16px; align-items: start; }.admin-section { padding: 20px; border: 1px solid #d2e3ee; border-radius: 18px; background: white; }.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.admin-section-head h3 { margin: 0; font-size: 16px; }.admin-user-list { margin-top: 14px; display: grid; gap: 9px; }.admin-user-card { padding: 13px; border: 1px solid #dce8f0; border-radius: 14px; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(0,1.7fr) auto; gap: 12px; align-items: center; background: #fbfdff; }.admin-user-card.disabled { opacity: .65; }.admin-user-identity { min-width: 0; display: grid; }.admin-user-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.admin-user-identity small { color: #7e90a3; font-size: 9px; }.admin-permissions { display: flex; flex-wrap: wrap; gap: 5px 10px; }.admin-permissions label, .create-user-permissions label { display: flex; align-items: center; gap: 5px; color: #566d82; font-size: 9px; }.admin-permissions input, .create-user-permissions input, .inline-checkbox input { accent-color: #337ff3; }.admin-user-actions { display: flex; gap: 6px; }.admin-user-actions button { min-height: 34px; padding: 0 9px; font-size: 10px; }.role-tag { width: max-content; margin-top: 5px; padding: 2px 6px; border-radius: 6px; color: #6654dd; background: #efedff; font-size: 8px; }.create-user-form { margin-top: 15px; padding: 15px; border: 1px solid #cfe0ed; border-radius: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; background: #f7fbfe; }.create-user-form label { display: grid; gap: 5px; color: #596f84; font-size: 10px; font-weight: 700; }.create-user-form input { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #cadce8; border-radius: 10px; }.create-user-permissions, .create-user-form .dialog-actions { grid-column: 1 / -1; }.create-user-permissions { display: grid; gap: 7px; }.create-user-permissions > div { display: flex; flex-wrap: wrap; gap: 7px 12px; }.create-user-form .dialog-actions { margin-top: 0; justify-self: end; width: 260px; }.system-section { position: sticky; top: 0; }.system-section .stack-form { margin-top: 18px; }.stack-form label small { color: #798ca0; font-weight: 500; }.inline-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }.inline-checkbox input { width: auto; height: auto; }

@media (max-width: 940px) {
  .local-badge { display: none; }.real-asset { grid-template-columns: 100px 1fr 30px; }.report-table { grid-template-columns: 1fr; }
  .topbar { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .project-switcher { display: flex; grid-column: 1 / -1; width: 100%; }
  .project-switcher .project-label, .project-switcher .save-state { display: none; }
  .project-switcher .project-select { width: 100%; min-width: 0; }
  .sidebar { top: 120px; }
  .title-editor-layout { grid-template-columns: 1fr; }.title-controls-panel { position: static; }.title-preview-stage { max-height: 68vh; }
  .admin-grid { grid-template-columns: 1fr; }.system-section { position: static; }.admin-overview { grid-template-columns: repeat(2,1fr); }.admin-user-card { grid-template-columns: 1fr; }.admin-user-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .project-switcher { order: 3; grid-column: 1 / -1; width: 100%; }.project-switcher .project-label, .save-state { display: none; }.project-select { width: 100%; min-width: 0; }
  .topbar { height: auto; min-height: 72px; padding-bottom: 10px; }.top-actions .primary-btn { width: 42px; padding: 0; overflow: hidden; color: transparent; gap: 0; }.top-actions .primary-btn svg { flex: 0 0 auto; margin: auto; color: white; }
  .real-assets { grid-template-columns: 1fr; }.real-asset { grid-template-columns: 104px 1fr 30px; }
  .volume-grid, .output-options { grid-template-columns: 1fr; }.audio-upload-card { grid-template-columns: 40px 1fr; }.audio-actions { grid-column: 1 / -1; justify-content: flex-end; }.audio-upload-card audio { width: 100%; }
  .report-table > div { grid-template-columns: 32px 1fr; }.report-table > div > b { grid-column: 2; }.result-video { max-height: 70vh; }.bottom-action { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .title-preview-panel, .title-controls-panel { padding: 15px; }.title-form { grid-template-columns: 1fr; }.title-form .field-full { grid-column: 1; }.template-save-row { grid-template-columns: 1fr; }.title-preview-help { align-items: flex-start; }
  .output-save-card { grid-template-columns: 1fr; }.output-save-heading, .output-file-examples, .auto-download-row { grid-column: 1; }.output-save-heading { align-items: flex-start; flex-direction: column; }.download-destination { align-items: stretch; flex-direction: column; }.download-destination .secondary-btn { width: 100%; }
  .account-chip i, .admin-entry { display: none; }.account-chip { padding-right: 5px; }.auth-card { padding: 24px 20px; }.admin-console { padding: 20px 14px; }.admin-overview { grid-template-columns: 1fr 1fr; }.create-user-form { grid-template-columns: 1fr; }.create-user-permissions, .create-user-form .dialog-actions { grid-column: 1; }.create-user-form .dialog-actions { width: 100%; }
}
