/* EQUAI application workspace refresh: quiet surfaces, clear actions, no form hunting. */
#consoleView {
  --work-bg: #09090b;
  --work-surface: #151517;
  --work-raised: #1b1b1e;
  --work-input: #0d0d0f;
  --work-line: rgba(255,255,255,.095);
  --work-line-strong: rgba(255,255,255,.17);
  --work-text: #f4f3f0;
  --work-muted: #939399;
  --work-faint: #69696f;
  --work-soft: #d6d6da;          /* secondary body text: table cells, statuses, select values */
  --work-accent-text: #b6c5ff;   /* blue emphasis text: prices, counters, active chips */
  --work-blue: #8eafff;
  --work-radius: 17px;
  color: var(--work-text);
  background: var(--work-bg);
}
#consoleView .sidebar {
  border-color: var(--work-line);
  background: rgba(12,12,14,.96);
  backdrop-filter: blur(24px);
}
#consoleView .sidebar-brand { border-color: var(--work-line); }
#consoleView .nav-group-label { color: var(--work-faint); letter-spacing: .12em; }
#consoleView .nav button { color: #aaaab0; border-radius: 11px; }
#consoleView .nav button:hover { color: #fff; border-color: var(--work-line); background: rgba(255,255,255,.045); }
#consoleView .nav button.active { color: #fff; border-color: var(--work-line); background: rgba(255,255,255,.09); box-shadow: inset 2px 0 #fff; }
#consoleView .nav button.active .nav-symbol { background: #fff; }
#consoleView .identity { border-color: var(--work-line); border-radius: 14px; background: var(--work-surface); }
#consoleView .content { max-width: none; padding: 78px clamp(22px,3.1vw,48px) 38px; }
#consoleView .page-head { margin-bottom: 20px; }
#consoleView .page-head h1 { margin-top: 5px; color: var(--work-text); font-size: clamp(27px,2.1vw,34px); font-weight: 650; letter-spacing: -.045em; }
#consoleView .page-head .eyebrow { color: var(--work-faint); font: 600 10px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
#consoleView .page-head p { color: var(--work-muted); font-size: 13px; line-height: 1.55; }
#consoleView .page-back { margin-bottom: 12px; border-color: transparent; color: var(--work-muted); background: transparent; }
#consoleView .page-back:hover { color: #fff; background: rgba(255,255,255,.06); }
#consoleView .panel,
#consoleView .metric,
#consoleView .studio-compose,
#consoleView .studio-result,
#consoleView .creative-form,
#consoleView .creative-results {
  border-color: var(--work-line);
  border-radius: var(--work-radius);
  background: var(--work-surface);
  box-shadow: 0 16px 50px rgba(0,0,0,.16);
}
#consoleView .metric { min-height: 126px; padding: 20px; }
#consoleView .metric::before { display: none; }
#consoleView .metric .label { color: var(--work-muted); font-family: var(--sans); letter-spacing: 0; text-transform: none; }
#consoleView .metric .number { color: var(--work-text); font-family: var(--sans); font-size: 34px; font-weight: 600; }
#consoleView .metric.primary-metric { border-color: var(--work-line-strong); background: linear-gradient(145deg,#202023,#151517 74%); }
#consoleView .metric.primary-metric .number { color: var(--work-text); }
#consoleView .credit-rail { background: rgba(255,255,255,.1); }
#consoleView .credit-rail span { background: linear-gradient(90deg,#819fff,#c3d2ff); box-shadow: none; }
#consoleView .panel-head { border-color: var(--work-line); }
#consoleView .panel-head h2 { color: var(--work-text); font-size: 15px; font-weight: 620; }
#consoleView .app-launch-card { border-color: var(--work-line); border-radius: 18px; background: linear-gradient(145deg,#18181b,#111113); transition: border-color .2s,transform .2s,background .2s; }
#consoleView .app-launch-card:hover { border-color: var(--work-line-strong); background: #1d1d20; transform: translateY(-2px); }
#consoleView .app-launch-copy small { color: var(--work-faint); letter-spacing: .11em; }
#consoleView .app-launch-copy strong { color: var(--work-text); font-weight: 620; }
#consoleView .app-launch-copy > span { color: var(--work-muted); line-height: 1.55; }
#consoleView .app-launch-arrow { color: var(--work-muted); }
#consoleView .btn.primary { border-color: #f4f3f0; background: #f4f3f0; color: #111113; animation: none; font-weight: 650; }
#consoleView .btn.primary:hover { border-color: #fff; background: #fff; transform: translateY(-1px); }
#consoleView .btn:not(.primary) { border-color: var(--work-line-strong); border-radius: 10px; background: rgba(255,255,255,.035); color: #dddde0; }
#consoleView .btn:not(.primary):hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.075); color: #fff; }
#consoleView .creative-page .creative-shell { grid-template-columns: minmax(350px,.88fr) minmax(0,1.12fr); gap: 20px; align-items: start; }
#consoleView .creative-page .creative-form { border-radius: var(--work-radius); background: var(--work-surface); box-shadow: 0 16px 50px rgba(0,0,0,.12); }
#consoleView .creative-page .creative-source { padding: 18px 19px; border-color: var(--work-line); }
#consoleView .creative-page .creative-source > label { margin-bottom: 9px; color: var(--work-text); font-size: 13px; font-weight: 620; }
#consoleView .creative-page .creative-source > label .muted { color: var(--work-faint); font-size: 10px; font-weight: 450; }
#consoleView .creative-page .creative-source small { margin: 8px 0 0; color: var(--work-muted); font-size: 10px; line-height: 1.5; }
#consoleView .creative-page .creative-source-preview { min-height: 150px; margin: 12px 0 8px; border: 1px solid var(--work-line); border-radius: 11px; background: linear-gradient(145deg,#171719,#101012); }
#consoleView .creative-page .creative-source-preview p { color: var(--work-muted); font-size: 11px; }
#consoleView .creative-page .creative-source-preview video { max-height: 230px; }
#consoleView .creative-page .creative-controls { padding: 18px 19px; }
#consoleView .creative-page .creative-controls > h2 { margin: 0 0 7px; color: var(--work-text); font-size: 13px; font-weight: 620; }
#consoleView .creative-page .creative-controls > p,
#consoleView .creative-page .creative-controls > small { color: var(--work-muted); font-size: 11px; line-height: 1.55; }
#consoleView .creative-page .creative-controls .field { margin-bottom: 13px; }
#consoleView .creative-page .creative-controls .field > small { color: var(--work-muted); font-size: 10px; line-height: 1.5; }
#consoleView .creative-page .creative-controls input:not([type=file]),
#consoleView .creative-page .creative-controls select,
#consoleView .creative-page .creative-controls textarea { width: 100%; min-height: 40px; padding: 10px 11px; border-color: var(--work-line-strong); border-radius: 10px; background: var(--work-input); color: var(--work-text); font-size: 12px; }
#consoleView .creative-page .creative-controls textarea { min-height: 94px; resize: vertical; }
#consoleView .creative-page .creative-price { color: var(--work-muted); font-size: 10px; }
#consoleView .creative-page .creative-controls > button[type=submit] { min-height: 44px; padding: 0 20px; border-radius: 11px; }
#consoleView .creative-page .creative-results { border-radius: var(--work-radius); background: var(--work-surface); box-shadow: 0 16px 50px rgba(0,0,0,.12); }
#consoleView .creative-page .creative-results .panel-head { min-height: 52px; padding: 0 16px; }
#consoleView .creative-page .creative-results .panel-head h2 { font-size: 13px; font-weight: 620; }
#consoleView .creative-page .creative-results > div[id$=Tasks] > .empty,
#consoleView .creative-page .creative-results > div[id$=tasks] > .empty { margin: 12px; padding: 36px 18px; border: 1px dashed var(--work-line); border-radius: 11px; color: var(--work-muted); font-size: 11px; text-align: center; }
#consoleView .creative-page .creative-role { padding: 12px; border: 1px solid var(--work-line); border-radius: 12px; background: rgba(255,255,255,.02); }
#consoleView .creative-page .creative-role-head { margin-bottom: 8px; }
#consoleView .creative-page .creative-role-head label { color: var(--work-text); font-size: 12px; font-weight: 600; }
#consoleView .creative-page .creative-role-head span { color: var(--work-muted); font-size: 10px; }
#consoleView .creative-page .creative-thumb { border-radius: 9px; background: #101012; }
#consoleView .creative-page .creative-clear { min-height: 30px; margin-top: 7px; font-size: 10px; }
#consoleView input:not([type=file]):not([type=radio]),
#consoleView select,
#consoleView textarea {
  border-color: var(--work-line-strong);
  border-radius: 11px;
  background-color: var(--work-input);
  color: var(--work-text);
  font-family: var(--sans);
}
#consoleView input:focus-visible,
#consoleView select:focus-visible,
#consoleView textarea:focus-visible,
#consoleView button:focus-visible,
#consoleView a:focus-visible { outline-color: var(--work-blue); }
#consoleView .creative-page textarea { min-height: 100px; color: var(--work-text); line-height: 1.55; resize: vertical; }
#consoleView .creative-page input[type=file] { color: var(--work-muted); }
#consoleView .creative-page input::file-selector-button { border-color: var(--work-line-strong); border-radius: 9px; background: #242427; color: var(--work-text); }
#consoleView .creative-page .creative-source { border-color: var(--work-line); }
#consoleView .creative-page .creative-source > label { color: var(--work-text); font-size: 13px; font-weight: 620; }
#consoleView .creative-page .muted,
#consoleView .creative-page small.muted { color: var(--work-muted); }
#consoleView .creative-page .creative-controls .field { margin: 0; }
#consoleView .creative-page .creative-controls .field > label { display: block; margin-bottom: 7px; color: #d8d8dc; font-size: 12px; font-weight: 580; }
#consoleView .creative-page .creative-controls .field > label .muted { margin-left: 4px; color: var(--work-faint); font-size: 11px; font-weight: 450; }
#consoleView .creative-page .creative-controls select { min-height: 42px; padding: 9px 12px; }
#consoleView .creative-results { margin-top: 0; }
#consoleView .creative-results .panel-head { min-height: 58px; }

/* Video studio: a larger canvas with the live task state kept beside it. */
#consoleView #page-studio .studio-page-head { margin-bottom: 14px; }
#consoleView #page-studio .studio-balance { border-color: var(--work-line-strong); border-radius: 14px; background: var(--work-surface); box-shadow: none; }
#consoleView #page-studio .studio-balance span,
#consoleView #page-studio .studio-balance strong,
#consoleView #page-studio .studio-balance small { color: var(--work-text); }
#consoleView #page-studio .studio-shell { grid-template-columns: minmax(380px,.78fr) minmax(0,1.22fr); gap: 18px; align-items: stretch; }
#consoleView #page-studio .studio-compose,
#consoleView #page-studio .studio-result { border-radius: var(--work-radius); background: var(--work-surface); box-shadow: 0 16px 50px rgba(0,0,0,.16); }
#consoleView #page-studio .studio-compose { overflow-y: auto; max-height: calc(100dvh - 176px); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
#consoleView #page-studio .studio-section { padding: 16px 18px; border-color: var(--work-line); }
#consoleView #page-studio .studio-section-head { margin-bottom: 9px; }
#consoleView #page-studio .studio-section-head > span,
#consoleView #page-studio .studio-section-head > label { color: var(--work-text); }
#consoleView #page-studio .studio-section-head small { color: var(--work-muted); }
#consoleView #page-studio .studio-mode-tabs { border-color: var(--work-line); background: var(--work-input); }
#consoleView #page-studio .studio-mode-tabs button.active { color: #101012; border-color: #f4f3f0; background: #f4f3f0; }
#consoleView #page-studio .quality-choice label > span { min-height: 72px; padding: 12px; border-color: var(--work-line-strong); border-radius: 11px; background: var(--work-input); }
#consoleView #page-studio .quality-choice input:checked + span { border-color: rgba(142,175,255,.75); background: rgba(142,175,255,.1); box-shadow: inset 2px 0 var(--work-blue); }
#consoleView #page-studio .quality-choice em { color: var(--work-muted); }
#consoleView #page-studio .quality-choice small { color: var(--work-faint); }
#consoleView #page-studio .prompt-section textarea { min-height: 116px; padding: 12px 13px; border-color: var(--work-line-strong); background: var(--work-input); }
#consoleView #page-studio .studio-settings { padding: 14px 18px 6px; }
#consoleView #page-studio .studio-settings select,
#consoleView #page-studio .studio-settings input { min-height: 38px; border-color: var(--work-line-strong); background: var(--work-input); }
#consoleView #page-studio .studio-submit { min-height: 48px; margin: 8px 18px 16px; border-radius: 12px; }
#consoleView #page-studio .studio-result { position: sticky; top: 84px; max-height: calc(100dvh - 176px); }
#consoleView #page-studio .result-stage { min-height: 0; aspect-ratio: 16/9; border-color: var(--work-line); }
#consoleView #page-studio .result-stage::before { display: none; }
#consoleView #page-studio .result-stage.is-generating::before { display: block; }
#consoleView #page-studio .result-progress { padding: 15px 18px; background: #19191b; }
#consoleView #page-studio .result-progress-rail,
#consoleView #page-studio .task-mini-progress { background: rgba(255,255,255,.1); }
#consoleView #page-studio .result-progress-rail i,
#consoleView #page-studio .task-mini-progress i { background: linear-gradient(90deg,#7c9cff,#b6c9ff); }
#consoleView #page-studio .studio-task-center { border-color: var(--work-line); background: #121214; }
#consoleView #page-studio .task-center-head { border-color: var(--work-line); }
#consoleView #page-studio .studio-task-card { border-color: var(--work-line); border-radius: 12px; background: rgba(255,255,255,.035); }
#consoleView #page-studio .studio-task-card.selected { border-color: rgba(142,175,255,.58); background: rgba(142,175,255,.08); box-shadow: inset 2px 0 var(--work-blue); }

/* Music editor: upload, choose, describe, create; all controls fit in the left pane. */
#consoleView #page-music .page-head { margin-bottom: 14px; }
#consoleView #page-music .page-head p { margin-top: 7px; }
#consoleView #page-music .creative-shell { height: calc(100dvh - 205px); min-height: 510px; grid-template-columns: minmax(520px,.9fr) minmax(420px,1.1fr); gap: 18px; align-items: stretch; }
#consoleView #page-music #musicForm { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); overflow: hidden; align-self: start; }
#consoleView #page-music .creative-source { padding: 16px 20px 13px; border-bottom: 1px solid var(--work-line); }
#consoleView #page-music .creative-source > label { margin-bottom: 8px; }
#consoleView #page-music .creative-page input[type=file] { padding: 0; }
#consoleView #page-music .creative-source small { margin: 7px 0 0; font-size: 11px; line-height: 1.4; }
#consoleView #page-music .creative-controls { min-height: 0; padding: 14px 20px 16px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: auto auto 92px 92px auto auto; align-content: space-between; gap: 9px 14px; overflow: hidden; }
#consoleView #page-music .creative-controls .field:nth-child(1) { grid-column: 1; grid-row: 1; }
#consoleView #page-music .creative-controls .field:nth-child(2) { grid-column: 2; grid-row: 1; }
#consoleView #page-music .creative-controls .field:nth-child(3) { grid-column: 1 / -1; grid-row: 3; min-height: 0; display: flex; flex-direction: column; }
#consoleView #page-music .creative-controls .field:nth-child(4) { grid-column: 1 / -1; grid-row: 4; min-height: 0; display: flex; flex-direction: column; }
#consoleView #page-music .creative-controls textarea { width: 100%; min-height: 0; height: 100%; max-height: 120px; padding: 10px 12px; resize: none; font-size: 12px; }
#consoleView #page-music #musicPrice { grid-column: 1; grid-row: 5; align-self: center; margin: 0; color: var(--work-muted); font-size: 11px; }
#consoleView #page-music #musicError { grid-column: 1 / -1; grid-row: 6; min-height: 0; margin: 0; font-size: 11px; }
#consoleView #page-music #musicError:empty { display: none; }
#consoleView #page-music .creative-controls > button[type=submit] { grid-column: 2; grid-row: 5 / span 2; justify-self: end; align-self: center; min-width: 138px; min-height: 46px; padding-inline: 20px; border-radius: 12px; }
#consoleView #page-music .creative-results { height: 100%; max-height: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
#consoleView #page-music .creative-results .empty { min-height: 230px; display: grid; place-content: center; text-align: center; color: var(--work-muted); }
#consoleView #page-music #musicTasks:has(> .empty) { min-height: calc(100% - 58px); display: grid; place-items: center; padding: 24px; }
#consoleView #page-music #musicTasks > .empty::before { content: "♪"; width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border: 1px solid var(--work-line-strong); border-radius: 50%; background: radial-gradient(circle at 35% 30%,rgba(142,175,255,.12),transparent 64%); color: #c0c0c5; font-size: 19px; }

/* Application discovery: natural-language entry, plain categories, compact visual cards. */
#consoleView #page-apps { max-width: 1640px; margin: 0 auto; }
#consoleView #page-apps .apps-discovery { max-width: 900px; margin: 0 auto 40px; text-align: center; }
#consoleView #page-apps .apps-discovery-intro .eyebrow { display: none; }
#consoleView #page-apps .apps-discovery-intro h1 { margin: 10px 0 0; color: var(--work-text); font-size: clamp(30px,3.2vw,46px); font-weight: 560; letter-spacing: -.055em; }
#consoleView #page-apps .apps-discovery-intro p { margin: 8px 0 21px; color: var(--work-muted); font-size: 14px; }
#consoleView #page-apps .apps-search { height: 58px; display: grid; grid-template-columns: 48px minmax(0,1fr) 44px; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: linear-gradient(110deg,#1a1a1c,#101012); box-shadow: 0 10px 40px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.035); text-align: left; transition:border-color .2s,box-shadow .2s; }
#consoleView #page-apps .apps-search:focus-within { border-color: rgba(178,198,255,.62); box-shadow: 0 0 0 3px rgba(116,148,255,.1),0 10px 40px rgba(0,0,0,.24); }
#consoleView #page-apps .apps-search-spark { display: grid; place-items: center; color: #efede8; font-size: 22px; }
#consoleView #page-apps .apps-search input { width: 100%; min-width: 0; height: 44px; padding: 0 5px; border: 0; outline: 0; color: var(--work-text); background: transparent; font: 14px var(--sans); box-shadow: none; }
#consoleView #page-apps .apps-search input::placeholder { color: #85858b; }
#consoleView #page-apps .apps-search button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #101114; background: #f1f0ed; cursor: pointer; transition:transform .2s,background .2s; }
#consoleView #page-apps .apps-search button:hover { transform: translateX(2px); background: #fff; }
#consoleView #page-apps .apps-search button:disabled { opacity: .55; cursor: wait; }
#consoleView #page-apps .apps-search button span { font: 24px/1 var(--sans); }
#consoleView #page-apps .apps-examples { min-height: 33px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--work-faint); }
#consoleView #page-apps .apps-examples button { padding: 2px 0; border: 0; color: var(--work-muted); background: transparent; font: 11px var(--sans); cursor: pointer; }
#consoleView #page-apps .apps-examples button:hover { color: var(--work-text); }
#consoleView #page-apps .apps-examples i { color: var(--work-faint); font-style: normal; }
#consoleView #page-apps .app-recommend-status { min-height: 20px; margin: 8px auto 0; color: var(--work-muted); font-size: 12px; }
#consoleView #page-apps .app-recommend-status:empty { display: none; }
#consoleView #page-apps .app-recommend-status.is-error { color: #f0a6a1; }
#consoleView #page-apps .app-recommend-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; text-align: left; }
#consoleView #page-apps .app-recommend-result { min-height: 86px; padding: 14px 15px; display: grid; gap: 5px; border: 1px solid var(--work-line); border-radius: 13px; color: var(--work-text); background: #171719; text-align: left; cursor: pointer; }
#consoleView #page-apps .app-recommend-result:hover { border-color: var(--work-line-strong); background: #202023; }
#consoleView #page-apps .app-recommend-result small { color: var(--work-faint); font-size: 10px; }
#consoleView #page-apps .app-recommend-result strong { font-size: 14px; font-weight: 620; }
#consoleView #page-apps .app-recommend-result span { color: var(--work-muted); font-size: 11px; line-height: 1.5; }
#consoleView #page-apps .apps-browse-head { min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 22px; border-bottom: 1px solid var(--work-line); }
#consoleView #page-apps .apps-categories { display: flex; align-items: center; gap: clamp(16px,3vw,38px); overflow-x: auto; }
#consoleView #page-apps .apps-categories button { position: relative; min-height: 44px; padding: 0 1px; border: 0; color: var(--work-muted); background: transparent; font: 12px var(--sans); white-space: nowrap; cursor: pointer; }
#consoleView #page-apps .apps-categories button[aria-selected="true"] { color: var(--work-text); }
#consoleView #page-apps .apps-categories button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #f1f0ed; content: ""; }
#consoleView #page-apps .apps-favorites-toggle { padding: 7px 2px 7px 10px; border: 0; color: var(--work-muted); background: transparent; font: 12px var(--sans); cursor: pointer; white-space: nowrap; }
#consoleView #page-apps .apps-favorites-toggle[aria-pressed="true"] { color: var(--work-text); }
#consoleView #page-apps .apps-section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; }
#consoleView #page-apps .apps-section-label h2 { margin: 0; color: var(--work-text); font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
#consoleView #page-apps .apps-count { padding: 0; border: 0; color: var(--work-faint); font: 11px var(--sans); }
#consoleView #page-apps .app-launch-grid { max-width: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 20px; }
#consoleView #page-apps .app-launch-card { position: relative; min-width: 0; min-height: 0; display: block; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; }
#consoleView #page-apps .app-launch-open { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 0; padding: 0; border: 0; color: var(--work-text); background: transparent; box-shadow: none; text-align: left; cursor: pointer; }
#consoleView #page-apps .app-launch-open:hover { border: 0; background: transparent; }
#consoleView #page-apps .app-launch-open:focus-visible,
#consoleView #page-apps .app-favorite:focus-visible { outline: 2px solid rgba(178,198,255,.9); outline-offset: 3px; border-radius: 8px; }
#consoleView #page-apps .app-launch-art { position: relative; grid-column: 1 / -1; aspect-ratio: 2.25 / 1; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #171719; }
#consoleView #page-apps .app-launch-art::after { position: absolute; inset: 35% 0 0; background: linear-gradient(0deg,rgba(0,0,0,.64),transparent); content: ""; pointer-events: none; }
#consoleView #page-apps .app-launch-art img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .84; transition:transform .5s cubic-bezier(.2,.7,.2,1),opacity .3s; }
#consoleView #page-apps .app-launch-card:hover .app-launch-art img { transform: scale(1.035); opacity: 1; }
#consoleView #page-apps .app-launch-type { position: absolute; z-index: 1; top: 12px; left: 13px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: rgba(10,10,12,.38); font-size: 10px; backdrop-filter: blur(10px); }
#consoleView #page-apps .app-launch-arrow { position: absolute; z-index: 1; right: 11px; bottom: 11px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: rgba(0,0,0,.3); font-size: 15px; backdrop-filter: blur(8px); }
#consoleView #page-apps .app-launch-copy { grid-column: 1; gap: 6px; padding: 10px 2px 0; }
#consoleView #page-apps .app-launch-copy strong { color: var(--work-text); font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
#consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { color: var(--work-muted); font-size: 11px; line-height: 1.45; }
#consoleView #page-apps .app-launch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
#consoleView #page-apps .app-launch-tags i { padding: 3px 7px; border: 1px solid var(--work-line); border-radius: 999px; color: var(--work-faint); font-size: 9px; font-style: normal; }
#consoleView #page-apps .app-favorite { position: absolute; z-index: 2; top: calc(100% - 74px); right: 7px; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #e4e4e4; background: transparent; font: 18px/1 var(--sans); opacity: 0; cursor: pointer; transition:opacity .2s,background .2s,color .2s; }
#consoleView #page-apps .app-launch-card:hover .app-favorite,
#consoleView #page-apps .app-favorite:focus-visible,
#consoleView #page-apps .app-favorite[aria-pressed="true"] { opacity: 1; }
#consoleView #page-apps .app-favorite:hover { background: rgba(0,0,0,.45); }
#consoleView #page-apps .app-favorite[aria-pressed="true"] { color: #fff; }
#consoleView #page-apps .app-favorite[aria-pressed="true"]::first-letter { color: #a9bcff; }
#consoleView #page-apps .app-launch-card.is-filtered-out { display: none; }
#consoleView #page-apps .apps-empty-state { padding: 48px 18px; color: var(--work-muted); text-align: center; font-size: 13px; }
#consoleView #page-apps .apps-empty-state:not(.hidden) { display: block; }
@media (min-width: 1450px) { #consoleView #page-apps .app-launch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 24px; } }
@media (max-width: 1000px) { #consoleView #page-apps .app-launch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } #consoleView #page-apps .app-recommend-results { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  #consoleView #page-apps .apps-discovery { margin-bottom: 28px; }
  #consoleView #page-apps .apps-discovery-intro h1 { font-size: 30px; }
  #consoleView #page-apps .apps-discovery-intro p { font-size: 12px; }
  #consoleView #page-apps .apps-search { height: 53px; grid-template-columns: 36px minmax(0,1fr) 40px; }
  #consoleView #page-apps .apps-search button { width: 38px; height: 38px; }
  #consoleView #page-apps .apps-examples { gap: 7px; }
  #consoleView #page-apps .apps-examples button { font-size: 10px; }
  #consoleView #page-apps .apps-browse-head { gap: 6px; margin-bottom: 16px; }
  #consoleView #page-apps .apps-categories { gap: 18px; }
  #consoleView #page-apps .apps-categories button { font-size: 11px; }
  #consoleView #page-apps .app-launch-grid { grid-template-columns: 1fr; gap: 19px; }
  #consoleView #page-apps .app-launch-art { aspect-ratio: 2.2 / 1; }
  #consoleView #page-apps .app-favorite { opacity: .75; }
}

/* Account overview: balance and activity first, then a compact searchable task ledger. */
#consoleView #page-overview .overview-page-head { min-height: 70px; margin-bottom: 24px; align-items: center; }
#consoleView #page-overview .overview-page-head .eyebrow { display: none; }
#consoleView #page-overview .overview-page-head h1 { margin: 0; font-size: clamp(26px,2.4vw,36px); font-weight: 620; letter-spacing: -.045em; }
#consoleView #page-overview .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 34px; border-bottom: 1px solid var(--work-line); }
#consoleView #page-overview .metric { position: relative; min-width: 0; min-height: 148px; display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto auto 1fr; align-content: start; align-items: end; gap: 0 9px; padding: 14px 24px 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
#consoleView #page-overview .metric + .metric { border-left: 1px solid var(--work-line); }
#consoleView #page-overview .metric:hover { transform: none; border-color: var(--work-line); }
#consoleView #page-overview .metric.primary-metric { border-color: var(--work-line); background: transparent; }
#consoleView #page-overview .metric .label { grid-column: 1/-1; margin: 0 0 13px; color: var(--work-muted); font-size: 12px; font-weight: 500; }
#consoleView #page-overview .metric-info { margin-left: 5px; color: var(--work-faint); cursor: help; }
#consoleView #page-overview .metric .number { grid-column: 1; grid-row: 2; margin: 0; color: var(--work-text); font-size: clamp(26px,2.5vw,38px); font-weight: 610; letter-spacing: -.045em; white-space: nowrap; }
#consoleView #page-overview .metric-unit { grid-column: 2; grid-row: 2; padding-bottom: 3px; color: var(--work-muted); font-size: 12px; }
#consoleView #page-overview .metric > small { grid-column: 1/-1; grid-row: 3; margin-top: 10px; color: var(--work-muted); font-size: 11px; }
#consoleView #page-overview .credit-rail { grid-column: 1/-1; grid-row: 4; align-self: end; height: 2px; margin-top: 18px; opacity: .7; }
#consoleView #page-overview .overview-record-switch { display: flex; gap: 30px; margin: 0 0 20px; padding: 0; border: 0; border-bottom: 1px solid var(--work-line); border-radius: 0; background: transparent; }
#consoleView #page-overview .overview-record-switch button { position: relative; min-height: 46px; padding: 0 2px; border-radius: 0; color: var(--work-muted); background: transparent; font-size: 13px; }
#consoleView #page-overview .overview-record-switch button.active { color: var(--work-text); background: transparent; box-shadow: none; }
#consoleView #page-overview .overview-record-switch button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #f2f1ee; content: ""; }
#consoleView #page-overview .overview-call-panel,
#consoleView #page-overview .overview-ledger-panel { margin-top: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
#consoleView #page-overview .overview-call-panel > .panel-head,
#consoleView #page-overview .overview-ledger-panel > .panel-head { min-height: 40px; padding: 0 0 10px; border: 0; }
#consoleView #page-overview .overview-call-panel .panel-head h2,
#consoleView #page-overview .overview-ledger-panel .panel-head h2 { font-size: 16px; }
#consoleView #page-overview .overview-call-copy small { font-size: 10px; }
#consoleView #page-overview .call-result-count { margin-left: auto; color: var(--work-faint); font-size: 11px; }
#consoleView #page-overview .call-retention-note { display: none; }
#consoleView #page-overview .overview-call-toolbar { min-height: 48px; display: flex; align-items: center; gap: 10px; margin: 8px 0 15px; }
#consoleView #page-overview .overview-search { width: min(280px,27vw); min-width: 190px; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--work-line-strong); border-radius: 9px; background: var(--work-input); }
#consoleView #page-overview .overview-search > span { color: var(--work-muted); font-size: 19px; line-height: 1; }
#consoleView #page-overview .overview-search input { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; color: var(--work-text); background: transparent; box-shadow: none; font: 11px var(--sans); }
#consoleView #page-overview .overview-search input::placeholder { color: var(--work-faint); }
#consoleView #page-overview .overview-call-toolbar select { min-width: 140px; height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--work-line-strong); border-radius: 9px; color: var(--work-soft); background-color: var(--work-surface); font: 11px var(--sans); }
#consoleView #page-overview .overview-call-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
#consoleView #page-overview .overview-call-actions button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; border: 0; color: var(--work-muted); background: transparent; font: 11px var(--sans); cursor: pointer; }
#consoleView #page-overview .overview-call-actions button:hover { color: var(--work-text); }
#consoleView #page-overview .overview-call-actions button span { font-size: 17px; }
#consoleView #page-overview .overview-call-actions button:disabled { opacity: .45; cursor: wait; }
#consoleView #page-overview #callTable { min-height: 100px; }
#consoleView #page-overview #callTable .table-wrap,
#consoleView #page-overview #ledgerTable .table-wrap { border: 0; border-radius: 0; background: transparent; }
#consoleView #page-overview #callTable table,
#consoleView #page-overview #ledgerTable table { width: 100%; table-layout: auto; border-collapse: collapse; }
#consoleView #page-overview #callTable th,
#consoleView #page-overview #ledgerTable th { padding: 12px 13px; border-bottom: 1px solid var(--work-line-strong); color: var(--work-muted); font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; }
#consoleView #page-overview #callTable td,
#consoleView #page-overview #ledgerTable td { padding: 14px 13px; border-bottom: 1px solid var(--work-line); color: var(--work-soft); font-size: 11px; vertical-align: middle; }
#consoleView #page-overview #callTable tbody tr:hover,
#consoleView #page-overview #ledgerTable tbody tr:hover { background: rgba(255,255,255,.025); }
#consoleView #page-overview .call-task-cell { max-width: 300px; }
#consoleView #page-overview .call-prompt { max-width: 290px; color: var(--work-text); font-size: 12px; }
#consoleView #page-overview .call-task-meta { margin-top: 4px; color: var(--work-faint); font-size: 10px; }
#consoleView #page-overview .call-task-meta code { color: var(--work-faint); }
#consoleView #page-overview #callTable .status { min-height: 0; padding: 0; border: 0; border-radius: 0; color: var(--work-soft); background: transparent; font: 11px var(--sans); }
#consoleView #page-overview #callTable .status::before { width: 7px; height: 7px; margin-right: 5px; background: #70c88b; box-shadow: none; }
#consoleView #page-overview #callTable .status.running::before,
#consoleView #page-overview #callTable .status.queued::before,
#consoleView #page-overview #callTable .status.dispatching::before { background: #82adff; animation: none; }
#consoleView #page-overview #callTable .status.failed::before { background: #e9b765; }
#consoleView #page-overview .call-result-actions { display: flex; align-items: center; gap: 6px; }
#consoleView #page-overview .call-result-actions .btn { min-height: 28px; padding: 5px 8px; border-radius: 7px; font-size: 10px; }
#consoleView #page-overview .call-result-actions .btn.primary { border-color: transparent; color: #e5e5e8; background: rgba(255,255,255,.08); }
#consoleView #page-overview .call-result-expiry { display: block; margin-top: 5px; color: var(--work-faint); font-size: 9px; white-space: nowrap; }
#consoleView #page-overview .ledger-more-wrap { border-color: var(--work-line); }
@media (max-width: 1050px) {
  #consoleView #page-overview .overview-call-toolbar { flex-wrap: wrap; }
  #consoleView #page-overview .overview-call-actions { margin-left: 0; }
  #consoleView #page-overview .metric { padding-inline: 16px; }
}
@media (max-width: 700px) {
  #consoleView #page-overview .metric-grid { grid-template-columns: 1fr 1fr; }
  #consoleView #page-overview .metric { min-height: 116px; padding: 14px 10px; }
  #consoleView #page-overview .metric:nth-child(3) { border-left: 0; }
  #consoleView #page-overview .metric:nth-child(n+3) { border-top: 1px solid var(--work-line); }
  #consoleView #page-overview .metric .number { font-size: 25px; }
  #consoleView #page-overview .overview-call-toolbar > * { flex: 1 1 42%; }
  #consoleView #page-overview .overview-search { width: auto; min-width: 0; }
  #consoleView #page-overview .overview-call-actions { flex: 1 1 100%; justify-content: flex-end; }
  #consoleView #page-overview #callTable .table-wrap,
  #consoleView #page-overview #ledgerTable .table-wrap { overflow-x: auto; }
  #consoleView #page-overview #callTable table { min-width: 760px; }
}

@media (max-width: 1280px) {
  #consoleView .creative-page .creative-shell { grid-template-columns: minmax(0,1fr); }
  #consoleView #page-studio .studio-shell { grid-template-columns: minmax(0,1fr); }
  #consoleView #page-studio .studio-result { position: static; max-height: none; }
  #consoleView #page-music .creative-shell { height: auto; min-height: 0; grid-template-columns: 1fr; }
  #consoleView #page-music #musicForm { height: auto; overflow: visible; }
  #consoleView #page-music .creative-controls { overflow: visible; }
  #consoleView #page-music .creative-results { height: auto; }
}
@media (max-height: 820px) and (min-width: 1121px) {
  #consoleView #page-music .creative-shell { height: calc(100dvh - 180px); min-height: 0; }
  #consoleView #page-music .creative-controls { grid-template-rows: auto auto 78px 78px auto auto; gap: 6px 12px; padding-block: 10px; }
  #consoleView #page-music .creative-source { padding-block: 12px 10px; }
  #consoleView #page-music .creative-controls textarea { max-height: 100px; }
}
@media (max-width: 600px) {
  #consoleView .content { padding: 20px 14px 28px; }
  #consoleView #page-music .creative-controls { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(100px,auto) minmax(110px,auto) auto auto; }
  #consoleView #page-music .creative-controls .field:nth-child(1),
  #consoleView #page-music .creative-controls .field:nth-child(2),
  #consoleView #page-music .creative-controls .field:nth-child(3),
  #consoleView #page-music .creative-controls .field:nth-child(4) { grid-column: 1; grid-row: auto; }
  #consoleView #page-music #musicPrice,
  #consoleView #page-music #musicError,
  #consoleView #page-music .creative-controls > button[type=submit] { grid-column: 1; grid-row: auto; }
  #consoleView #page-music .creative-controls > button[type=submit] { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  #consoleView *, #consoleView *::before, #consoleView *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Video creator, tuned to a focused studio: compact controls, large canvas, recent work carousel. */
#consoleView #page-studio .studio-page-head { min-height: 76px; margin-bottom: 14px; }
#consoleView #page-studio .studio-page-head h1 { margin: 0; font-size: clamp(28px,2.2vw,36px); letter-spacing: -.045em; }
#consoleView #page-studio .studio-page-head .eyebrow { display: none; }
#consoleView #page-studio .studio-page-head p { margin-top: 4px; font-size: 14px; }
#consoleView #page-studio .studio-page-head .page-back { margin: 0 0 4px -8px; padding: 3px 8px; font-size: 11px; }
#consoleView #page-studio .studio-balance { min-width: 154px; padding: 10px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: end; column-gap: 6px; }
#consoleView #page-studio .studio-balance span { grid-column: 1 / -1; margin-bottom: 2px; color: var(--work-faint); font: 11px var(--sans); letter-spacing: 0; text-transform: none; }
#consoleView #page-studio .studio-balance strong { font-size: 23px; font-weight: 560; }
#consoleView #page-studio .studio-balance small { padding-bottom: 3px; color: var(--work-muted); }
#consoleView #page-studio .studio-shell { height: calc(100dvh - 216px); min-height: 620px; grid-template-columns: minmax(350px,.37fr) minmax(0,.63fr); gap: 20px; align-items: stretch; }
#consoleView #page-studio .studio-compose { max-height: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.13) transparent; }
#consoleView #page-studio .studio-compose form { min-height: 100%; grid-template-rows: auto auto 1fr auto auto auto auto; align-content: start; }
#consoleView #page-studio .studio-section { padding: 13px 16px; }
#consoleView #page-studio .studio-section-head { align-items: baseline; margin-bottom: 8px; }
#consoleView #page-studio .studio-section-head > span,
#consoleView #page-studio .studio-section-head > label { font-size: 12px; }
#consoleView #page-studio .studio-section-head small { font-size: 10px; }
#consoleView #page-studio .studio-mode-tabs { gap: 0; padding: 0; border: 0; border-bottom: 1px solid var(--work-line); border-radius: 0; background: transparent; }
#consoleView #page-studio .studio-mode-tabs button { min-height: 38px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--work-muted); font-size: 12px; }
#consoleView #page-studio .studio-mode-tabs button.active { border-color: #f4f3f0; background: transparent; color: var(--work-text); box-shadow: none; }
#consoleView #page-studio .studio-quality-section { padding-block: 10px; }
#consoleView #page-studio .quality-choice { gap: 7px; }
#consoleView #page-studio .quality-choice label > span { min-height: 52px; padding: 8px 10px; grid-template-columns: 1fr auto; align-items: center; border-radius: 10px; }
#consoleView #page-studio .quality-choice b { font-size: 13px; }
#consoleView #page-studio .quality-choice em { font-size: 10px; }
#consoleView #page-studio .quality-choice small { display: none; }
#consoleView #page-studio .prompt-section { min-height: 0; display: flex; flex-direction: column; }
#consoleView #page-studio .prompt-section textarea { min-height: 100px; flex: 1; padding: 11px 12px; font-size: 12px; }
#consoleView #page-studio .studio-settings { padding: 12px 16px 6px; display: grid; grid-template-columns: minmax(88px,.9fr) minmax(96px,1fr) minmax(150px,1.45fr); align-items: center; gap: 8px; }
#consoleView #page-studio .studio-model-chip,
#consoleView #page-studio .studio-tool-select,
#consoleView #page-studio .studio-tool-quality { position: relative; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--work-line); border-radius: 9px; background: rgba(255,255,255,.025); color: #dedee1; }
#consoleView #page-studio .studio-model-chip { font-size: 11px; }
#consoleView #page-studio .studio-model-chip i,
#consoleView #page-studio .studio-tool-quality > i { color: var(--work-muted); font-size: 12px; font-style: normal; }
#consoleView #page-studio .studio-tool-select { padding: 0 5px; }
#consoleView #page-studio .studio-tool-select svg,
#consoleView #page-studio .studio-model-chip svg,
#consoleView #page-studio .studio-tool-quality > svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: #bfc0c5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#consoleView #page-studio .studio-tool-select select { width: auto; min-width: 0; height: 100%; margin: 0; padding: 0 12px 0 0; border: 0; border-radius: 0; background-color: transparent; color: var(--work-text); font: 10px var(--sans); appearance: none; }
#consoleView #page-studio .studio-tool-select::after { content: "⌄"; position: absolute; right: 5px; color: var(--work-muted); font-size: 11px; pointer-events: none; }
#consoleView #page-studio .studio-tool-quality { justify-content: flex-start; padding: 0 5px; gap: 4px; }
#consoleView #page-studio .studio-tool-quality > svg { width: 19px; }
#consoleView #page-studio .studio-tool-quality > i { margin-left: auto; }
#consoleView #page-studio .studio-tool-quality .quality-choice { min-width: 0; flex: 1; display: flex; gap: 2px; }
#consoleView #page-studio .studio-tool-quality .quality-choice label { flex: 1; min-width: 0; }
#consoleView #page-studio .studio-tool-quality .quality-choice label > span { min-height: 30px; padding: 0 5px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; white-space: nowrap; }
#consoleView #page-studio .studio-tool-quality .quality-choice b { color: var(--work-muted); font-size: 10px; font-weight: 560; white-space: nowrap; }
#consoleView #page-studio .studio-tool-quality .quality-choice input:checked + span { border-color: var(--work-line-strong); background: rgba(255,255,255,.1); box-shadow: none; }
#consoleView #page-studio .studio-tool-quality .quality-choice input:checked + span b { color: var(--work-text); }
#consoleView #page-studio .studio-tool-quality .quality-choice input:focus-visible + span { outline: 1px solid var(--work-blue); outline-offset: 1px; }
#consoleView #page-studio .studio-advanced { margin: 8px 16px 0; border: 1px solid var(--work-line); border-radius: 10px; background: rgba(255,255,255,.025); }
#consoleView #page-studio .studio-advanced summary { min-height: 37px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: var(--work-soft); font-size: 11px; cursor: pointer; list-style: none; }
#consoleView #page-studio .studio-advanced summary::-webkit-details-marker { display: none; }
#consoleView #page-studio .studio-advanced summary::after { content: "+"; color: var(--work-muted); font-size: 17px; }
#consoleView #page-studio .studio-advanced[open] summary::after { content: "−"; }
#consoleView #page-studio .studio-advanced summary span { color: var(--work-faint); font-size: 10px; }
#consoleView #page-studio .studio-advanced-fields { padding: 0 11px 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#consoleView #page-studio .studio-advanced { order: 6; }
#consoleView #page-studio #studioFormError { order: 7; }
#consoleView #page-studio .studio-submit { order: 8; }
#consoleView #page-studio .studio-advanced-fields { grid-template-columns: minmax(0,1fr); }
#consoleView #page-studio .studio-advanced-fields #studioSeed { display: none; }
#consoleView #page-studio .studio-advanced-fields label { display: grid; gap: 5px; color: var(--work-muted); font-size: 10px; }
#consoleView #page-studio .studio-advanced-fields label small { color: var(--work-faint); font-size: 9px; }
#consoleView #page-studio .studio-advanced-fields input { width: 100%; min-height: 36px; padding: 7px 9px; font-size: 11px; }
#consoleView #page-studio #studioFormError { padding: 0 16px; }
#consoleView #page-studio .studio-submit { min-height: 44px; margin: 10px 16px 13px; display: flex; justify-content: center; gap: 12px; border-radius: 11px; }
#consoleView #page-studio .studio-submit > span { font-size: 13px; }
#consoleView #page-studio .studio-submit > small { font-size: 10px; }
#consoleView #page-studio .studio-result { position: static; max-height: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.13) transparent; }
#consoleView #page-studio .studio-latest-head { min-height: 29px; padding: 0 1px 8px; display: flex; align-items: center; gap: 13px; }
#consoleView #page-studio .studio-latest-head strong { color: var(--work-text); font-size: 13px; font-weight: 620; }
#consoleView #page-studio .studio-latest-head span { display: flex; align-items: center; gap: 7px; color: var(--work-muted); font-size: 10px; }
#consoleView #page-studio .studio-latest-head i { width: 7px; height: 7px; border-radius: 50%; background: #83c99a; box-shadow: 0 0 12px rgba(131,201,154,.35); }
#consoleView #page-studio .result-stage { min-height: 0; aspect-ratio: 16 / 9; border: 0; border-radius: 15px; background: #0b0b0d; }
#consoleView #page-studio .result-stage video { border-radius: inherit; }
#consoleView #page-studio .result-empty { gap: 8px; }
#consoleView #page-studio .result-empty > span { width: 44px; height: 44px; border-color: var(--work-line-strong); color: #e7e7e9; background: rgba(255,255,255,.055); box-shadow: none; }
#consoleView #page-studio .result-empty strong { color: #e7e7e9; font-size: 13px; }
#consoleView #page-studio .result-empty small { color: var(--work-muted); font-size: 11px; }
#consoleView #page-studio .result-progress { padding: 10px 3px 13px; background: transparent; }
#consoleView #page-studio .result-progress-head span { color: var(--work-text); font-size: 12px; }
#consoleView #page-studio .result-progress-head code { margin-top: 3px; font-size: 9px; }
#consoleView #page-studio .result-progress-rail { height: 4px; margin: 9px 0; }
#consoleView #page-studio .result-progress p { min-height: 0; font-size: 10px; }
#consoleView #page-studio .result-actions { margin-top: 10px; }
#consoleView #page-studio .studio-task-center { border: 0; background: transparent; }
#consoleView #page-studio .task-center-head { min-height: 38px; padding: 6px 0; border-bottom: 0; }
#consoleView #page-studio .task-center-head strong { font-size: 13px; }
#consoleView #page-studio .task-center-head small { font-size: 10px; }
#consoleView #page-studio .task-refresh { min-height: 29px; }
#consoleView #page-studio .task-center-actions { display: flex; align-items: center; gap: 5px; }
#consoleView #page-studio .task-carousel-arrow { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--work-line); border-radius: 50%; background: rgba(255,255,255,.025); color: var(--work-muted); cursor: pointer; }
#consoleView #page-studio .task-carousel-arrow:hover { border-color: var(--work-line-strong); color: var(--work-text); }
#consoleView #page-studio .studio-task-list { grid-auto-flow: column; grid-auto-columns: minmax(190px,1fr); grid-template-columns: none; gap: 11px; padding: 2px 2px 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
#consoleView #page-studio .studio-task-card { min-width: 0; min-height: 142px; overflow: hidden; scroll-snap-align: start; border-radius: 12px; background: #171719; }
#consoleView #page-studio .studio-task-card::before { content: "▶"; height: 78px; display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 17px; background: radial-gradient(circle at 50% 50%,rgba(255,255,255,.09),transparent 26%), linear-gradient(135deg,#34363b,#151619 62%,#27282c); }
#consoleView #page-studio .studio-task-card:nth-child(3n + 2)::before { background: radial-gradient(circle at 60% 30%,rgba(234,211,179,.13),transparent 30%), linear-gradient(135deg,#44403a,#171719 65%,#282724); }
#consoleView #page-studio .studio-task-card:nth-child(3n)::before { background: radial-gradient(circle at 35% 40%,rgba(167,195,218,.16),transparent 30%), linear-gradient(135deg,#343b41,#161719 65%,#2c3033); }
#consoleView #page-studio .studio-task-main { min-height: 0; padding: 0; display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 0; }
#consoleView #page-studio .task-card-thumb { min-height: 84px; position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.88); background: radial-gradient(circle at 50% 40%,rgba(142,175,255,.2),transparent 40%),linear-gradient(135deg,#343944,#1d2026 58%,#272a31); }
#consoleView #page-studio .task-card-thumb::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,transparent 35%,rgba(255,255,255,.06)); }
#consoleView #page-studio .task-card-thumb > span { width:27px; height:27px; z-index:1; display:grid; place-items:center; padding-left:2px; border:1px solid rgba(255,255,255,.35); border-radius:50%; background:rgba(0,0,0,.3); font-size:10px; }
#consoleView #page-studio .task-card-thumb > i { position:absolute; left:7px; bottom:6px; padding:3px 6px; border-radius:99px; color:#fff; background:rgba(0,0,0,.48); font-size:8px; font-style:normal; }
#consoleView #page-studio .task-card-copy { min-width:0; align-self:center; display:grid; gap:7px; padding:10px 11px; }
#consoleView #page-studio .task-card-head { min-height: 25px; padding-right: 86px; }
#consoleView #page-studio .task-card-head strong { font-size: 11px; }
#consoleView #page-studio .task-mini-state { font-size: 8px; }
#consoleView #page-studio .task-card-meta { font-size: 8px; }
#consoleView #page-studio .task-card-actions { position:absolute; z-index:2; top:6px; right:6px; display:flex; gap:4px; }
#consoleView #page-studio .task-note-edit,
#consoleView #page-studio .task-delete { position:static; min-width:0; min-height:22px; padding:2px 6px; font-size:8px; opacity:.9; }
#consoleView #page-studio .task-card-meta { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#consoleView #page-studio .task-center-empty { padding: 14px 10px; border-style: dashed; border-color: var(--work-line); border-radius: 10px; font-size: 10px; }
#consoleView #page-studio .studio-local-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#consoleView #page-studio .studio-local-poster + .result-empty { z-index: 2; padding: 14px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(9,9,11,.66); backdrop-filter: blur(12px); }
#consoleView #page-studio .studio-local-poster + .result-empty > span { display: none; }
#consoleView #page-studio .studio-local-poster + .result-empty::before { content: "界面示例 · 静态预览"; color: rgba(255,255,255,.74); font-size: 10px; }
#consoleView #page-studio .studio-preview-work { min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--work-line); border-radius: 11px; background: #171719; }
#consoleView #page-studio .studio-preview-work img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
#consoleView #page-studio .studio-preview-work div { min-width: 0; padding: 8px 10px 10px; display: grid; gap: 4px; }
#consoleView #page-studio .studio-preview-work strong { overflow: hidden; color: var(--work-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#consoleView #page-studio .studio-preview-work small { color: var(--work-muted); font-size: 9px; }
#consoleView #page-studio .studio-preview-work > span { position: absolute; display: none; }

@media (max-height: 900px) and (min-width: 1281px) {
  #consoleView #page-studio .studio-shell { height: calc(100dvh - 216px); min-height: 620px; }
  #consoleView #page-studio .studio-section { padding-block: 10px; }
  #consoleView #page-studio .prompt-section textarea { min-height: 76px; }
  #consoleView #page-studio .studio-quality-section { padding-block: 8px; }
  #consoleView #page-studio .quality-choice label > span { min-height: 46px; }
  #consoleView #page-studio .studio-result { overflow: visible; }
}
@media (max-width: 1280px) {
  #consoleView .content { padding-top: 72px; }
  #consoleView #page-studio .studio-shell { height: auto; min-height: 0; grid-template-columns: minmax(0,1fr); }
  #consoleView #page-studio .studio-compose { max-height: none; }
  #consoleView #page-studio .studio-result { max-height: none; overflow: visible; }
  #consoleView #page-studio .studio-task-list { grid-auto-columns: minmax(210px,42%); }
}
@media (max-width: 600px) {
  #consoleView #page-studio .studio-page-head { align-items: flex-start; }
  #consoleView #page-studio .studio-page-head > div:first-child p { display: block; }
  #consoleView #page-studio .studio-balance { min-width: 115px; }
  #consoleView #page-studio .studio-balance strong { font-size: 18px; }
  #consoleView #page-studio .studio-mode-tabs button { padding-inline: 7px; font-size: 10px; }
  #consoleView #page-studio .studio-settings { grid-template-columns: 1fr 1fr; }
  #consoleView #page-studio .studio-tool-quality { min-width: 0; }
  #consoleView #page-studio .studio-task-list { grid-auto-columns: minmax(190px,76%); }
}

/* The theme control changes the complete console palette, including the newer workspace layer. */
html[data-theme="light"] #consoleView {
  --work-bg:#f2f4f7; --work-surface:#ffffff; --work-raised:#f8f9fb; --work-input:#f4f6f9;
  --work-line:rgba(28,42,59,.10); --work-line-strong:rgba(28,42,59,.18);
  --work-text:#202b38; --work-muted:#5d6a7c; --work-faint:#6f7b8a; --work-blue:#315fd8;
  --work-soft:#3a4656; --work-accent-text:#2f56c4;
  color:var(--work-text); background:var(--work-bg);
}
html[data-theme="light"] #consoleView .sidebar { border-color:var(--work-line); background:rgba(255,255,255,.92); }
html[data-theme="light"] #consoleView .nav button { color:#526174; }
html[data-theme="light"] #consoleView .nav button:hover { color:#202b38; border-color:var(--work-line); background:#f1f4f8; }
html[data-theme="light"] #consoleView .nav button.active { color:#234eb3; border-color:rgba(49,95,216,.16); background:#edf2ff; box-shadow:inset 2px 0 #315fd8; }
html[data-theme="light"] #consoleView .nav button.active .nav-symbol { background:#315fd8; }
html[data-theme="light"] #consoleView .identity,
html[data-theme="light"] #consoleView .panel,
html[data-theme="light"] #consoleView .metric,
html[data-theme="light"] #consoleView .studio-compose,
html[data-theme="light"] #consoleView .studio-result,
html[data-theme="light"] #consoleView .creative-form,
html[data-theme="light"] #consoleView .creative-results { border-color:var(--work-line); background:var(--work-surface); box-shadow:0 12px 36px rgba(30,48,72,.055); }
html[data-theme="light"] #consoleView .metric.primary-metric { border-color:var(--work-line); background:linear-gradient(145deg,#fff,#f6f8fb 74%); }
html[data-theme="light"] #consoleView .app-launch-card { border-color:var(--work-line); background:linear-gradient(145deg,#fff,#f7f9fc); }
html[data-theme="light"] #consoleView .app-launch-card:hover { border-color:rgba(49,95,216,.3); background:#fff; }
html[data-theme="light"] #consoleView #page-apps .apps-search { color:var(--work-text); border-color:var(--work-line-strong); background:linear-gradient(120deg,#fff,#f8faff); box-shadow:0 8px 24px rgba(29,46,72,.06); }
html[data-theme="light"] #consoleView #page-apps .apps-search input { color:var(--work-text); background:transparent; }
html[data-theme="light"] #consoleView #page-apps .apps-search input::placeholder { color:#8b96a4; }
html[data-theme="light"] #consoleView #page-apps .apps-search-spark { color:#315fd8; }
html[data-theme="light"] #consoleView .apps-examples button,
html[data-theme="light"] #consoleView .apps-categories button,
html[data-theme="light"] #consoleView .apps-favorites-toggle { color:#657285; }
html[data-theme="light"] #consoleView .apps-categories button[aria-selected="true"] { color:#202b38; border-color:#315fd8; }
html[data-theme="light"] #consoleView .app-launch-tags i { color:#536174; border-color:var(--work-line); background:#f4f6f9; }
html[data-theme="light"] #consoleView .app-recommend-result { color:var(--work-text); border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView .app-recommend-result:hover { border-color:rgba(49,95,216,.3); background:#f7f9ff; }
html[data-theme="light"] #consoleView .btn:not(.primary),
html[data-theme="light"] #consoleView .task-refresh,
html[data-theme="light"] #consoleView .task-carousel-arrow { color:#536174; border-color:var(--work-line-strong); background:#fff; }
html[data-theme="light"] #consoleView .btn:not(.primary):hover,
html[data-theme="light"] #consoleView .task-refresh:hover { color:#234eb3; border-color:rgba(49,95,216,.3); background:#f3f6ff; }
html[data-theme="light"] #consoleView .btn.primary { color:#fff; border-color:#315fd8; background:#315fd8; }
html[data-theme="light"] #consoleView .btn.primary:hover { color:#fff; border-color:#244db8; background:#244db8; }
html[data-theme="light"] #consoleView input:not([type=file]):not([type=radio]),
html[data-theme="light"] #consoleView select,
html[data-theme="light"] #consoleView textarea,
html[data-theme="light"] #consoleView .creative-page .creative-controls input:not([type=file]),
html[data-theme="light"] #consoleView .creative-page .creative-controls select,
html[data-theme="light"] #consoleView .creative-page .creative-controls textarea { color:var(--work-text); border-color:var(--work-line-strong); background-color:var(--work-input); }
html[data-theme="light"] #consoleView .creative-page .creative-controls .field > label { color:#3d4a5a; }
html[data-theme="light"] #consoleView .creative-page .creative-source-preview,
html[data-theme="light"] #consoleView .creative-page .creative-role,
html[data-theme="light"] #consoleView .creative-page .creative-project-overview { border-color:var(--work-line); background:#f5f7fa; }
html[data-theme="light"] #consoleView .studio-section { border-color:var(--work-line); }
html[data-theme="light"] #consoleView .studio-section-head > span,
html[data-theme="light"] #consoleView .studio-section-head > label,
html[data-theme="light"] #consoleView .studio-section-head small,
html[data-theme="light"] #consoleView .quality-choice b,
html[data-theme="light"] #consoleView .quality-choice em,
html[data-theme="light"] #consoleView .quality-choice small { color:var(--work-text); }
html[data-theme="light"] #consoleView .studio-mode-tabs,
html[data-theme="light"] #consoleView .studio-settings select,
html[data-theme="light"] #consoleView .upload-slot,
html[data-theme="light"] #consoleView .studio-advanced { border-color:var(--work-line); background:#f7f9fc; }
html[data-theme="light"] #consoleView .studio-mode-tabs button { color:#657285; }
html[data-theme="light"] #consoleView .studio-mode-tabs button.active { color:#fff; border-color:#315fd8; background:#315fd8; }
html[data-theme="light"] #consoleView .quality-choice label > span { border-color:var(--work-line-strong); background:#f7f9fc; }
html[data-theme="light"] #consoleView .quality-choice input:checked + span { color:#234eb3; border-color:#315fd8; background:#edf2ff; box-shadow:inset 2px 0 #315fd8; }
html[data-theme="light"] #consoleView .studio-advanced summary,
html[data-theme="light"] #consoleView .studio-advanced summary span { color:#536174; }
html[data-theme="light"] #consoleView .studio-task-center { border-color:var(--work-line); background:transparent; }
html[data-theme="light"] #consoleView .studio-task-card { border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView .studio-task-card:hover { border-color:var(--work-line-strong); background:#f8faff; }
html[data-theme="light"] #consoleView .studio-task-card.selected { border-color:rgba(49,95,216,.35); background:#f1f5ff; box-shadow:inset 2px 0 #315fd8; }
html[data-theme="light"] #consoleView .task-card-thumb { background:radial-gradient(circle at 50% 40%,rgba(49,95,216,.15),transparent 40%),linear-gradient(135deg,#dce4f1,#edf0f5 58%,#dfe5ef); }
html[data-theme="light"] #consoleView .task-card-thumb > span { color:#315fd8; border-color:rgba(49,95,216,.32); background:rgba(255,255,255,.72); }
html[data-theme="light"] #consoleView .task-card-thumb > i { color:#fff; }
html[data-theme="light"] #consoleView .result-progress { background:#fff; }
html[data-theme="light"] #consoleView .result-progress-head span,
html[data-theme="light"] #consoleView .result-progress-head strong { color:#26364a; }
html[data-theme="light"] #consoleView .result-progress-head code,
html[data-theme="light"] #consoleView .result-progress p { color:#657285; }
html[data-theme="light"] #consoleView .result-progress-rail,
html[data-theme="light"] #consoleView .task-mini-progress { background:#e8edf4; }
html[data-theme="light"] #consoleView .studio-task-card .task-card-meta { color:#657285; }
html[data-theme="light"] #consoleView .studio-task-card .task-note-edit { color:#315fd8; border-color:rgba(49,95,216,.24); background:#f5f7fc; }
html[data-theme="light"] #consoleView .studio-task-card .task-delete { color:#a54b4b; border-color:rgba(165,75,75,.2); background:#fbf5f5; }
html[data-theme="light"] #consoleView th { color:#526174; background:#f1f4f8; }
html[data-theme="light"] #consoleView td { color:#3f4c5b; }
html[data-theme="light"] #consoleView tr:hover td { background:#f7f9fc; }
html[data-theme="light"] #consoleView .modal { background:rgba(23,35,51,.25); }
html[data-theme="light"] #consoleView .modal-card { color:var(--work-text); border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView .app-recommend-status.is-error { color:#a43e43; }
html[data-theme="light"] #consoleView .notice { color:#45566b; border-color:var(--work-line); background:#f2f5fa; }
html[data-theme="light"] #consoleView .form-error { color:#a43e43; }
html[data-theme="light"] #consoleView .status { color:#536174; border-color:var(--work-line); background:#f8f9fb; }
html[data-theme="light"] #consoleView .status.completed { color:#28664d; }
html[data-theme="light"] #consoleView .status.failed { color:#a43e43; }
html[data-theme="light"] #consoleView .creative-page input::file-selector-button { color:#354457; border-color:var(--work-line-strong); background:#edf1f6; }
html[data-theme="light"] #consoleView .task-center-empty { color:#657285; border-color:var(--work-line-strong); background:#fafbfd; }
html[data-theme="light"] #consoleView .task-mini-state.completed { color:#28664d; border-color:rgba(40,102,77,.2); background:#eef8f2; }
html[data-theme="light"] #consoleView .task-mini-state.failed { color:#a43e43; border-color:rgba(164,62,67,.2); background:#fbf1f1; }
html[data-theme="light"] #consoleView .studio-task-card.is-running,
html[data-theme="light"] #consoleView .studio-task-card.is-dispatching { border-color:rgba(169,112,23,.25); background:#fffaf0; }
html[data-theme="light"] #consoleView .creative-gallery-stage { border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView .creative-gallery-head,
html[data-theme="light"] #consoleView .creative-gallery-actions { border-color:var(--work-line); }
html[data-theme="light"] #consoleView .creative-gallery-head strong,
html[data-theme="light"] #consoleView .creative-gallery-caption { color:#26364a; }
html[data-theme="light"] #consoleView .creative-gallery-head span,
html[data-theme="light"] #consoleView .creative-gallery-empty { color:#657285; }
html[data-theme="light"] #consoleView .creative-task { color:var(--work-text); border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView .creative-task.is-selected { border-color:rgba(49,95,216,.38); background:#f3f6ff; }
html[data-theme="light"] #consoleView .creative-task-thumb { background:linear-gradient(145deg,#e6ebf3,#f4f6f9); }
html[data-theme="light"] #consoleView .creative-task-thumb > span { color:#315fd8; }
html[data-theme="light"] #consoleView .creative-task-copy h3 { color:#26364a; }
html[data-theme="light"] #consoleView .creative-task-copy .creative-task-meta,
html[data-theme="light"] #consoleView .creative-task-copy .creative-task-message,
html[data-theme="light"] #consoleView .creative-task-cost { color:#657285; }
html[data-theme="light"] #consoleView .music-task-thumb { background:linear-gradient(145deg,#e9edf5,#dce5f7); }

/* App artwork supplied by the user is square; Windows and macOS get the same crop and sizing. */
#consoleView #page-apps .app-launch-art { aspect-ratio:1 / 1; }
#consoleView #page-apps .app-launch-art img { object-fit:cover; }
#consoleView #page-apps .apps-categories { min-width:0; flex:1 1 auto; flex-wrap:nowrap; overscroll-behavior-x:contain; scrollbar-width:none; }
#consoleView #page-apps .apps-categories::-webkit-scrollbar { display:none; }
#consoleView #page-apps .apps-browse-head { min-width:0; overflow:hidden; }
#consoleView #page-apps .apps-categories button { flex:0 0 auto; }
#consoleView #page-apps .apps-section-label { justify-content:space-between; }
#consoleView #page-apps .app-launch-grid { min-width:0; }
@media (min-width:1450px) { #consoleView #page-apps .app-launch-grid { grid-template-columns:repeat(3,minmax(0,260px)); gap:30px 24px; } }
@media (max-width:1000px) { #consoleView #page-apps .app-launch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { #consoleView #page-apps .apps-browse-head { overflow:visible; } #consoleView #page-apps .apps-categories { gap:18px; } #consoleView #page-apps .app-launch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; } #consoleView #page-apps .app-launch-art { aspect-ratio:1; } }

/* Creative tools share one large active preview and a compact grid of still-frame cards. */
#consoleView .creative-results { min-width:0; overflow:hidden; }
#consoleView .creative-gallery-stage { margin:0; overflow:hidden; border-bottom:1px solid var(--work-line); background:#101012; }
#consoleView .creative-gallery-head { min-height:42px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--work-line); }
#consoleView .creative-gallery-head strong { color:var(--work-text); font-size:13px; }
#consoleView .creative-gallery-head span { color:var(--work-muted); font-size:10px; }
#consoleView .creative-gallery-canvas { min-height:120px; max-height:min(58vh,680px); aspect-ratio:16/9; display:grid; place-items:center; overflow:hidden; background:#09090b; }
#consoleView .creative-gallery-canvas video { width:100%; height:100%; object-fit:contain; background:#09090b; }
#consoleView .creative-gallery-canvas img { display:block; max-width:100%; max-height:min(58vh,680px); object-fit:contain; }
#consoleView .creative-gallery-canvas audio { width:min(92%,680px); }
#consoleView .creative-gallery-empty { color:var(--work-muted); font-size:12px; text-align:center; }
#consoleView .creative-gallery-actions { min-height:42px; padding:6px 12px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--work-line); }
#consoleView .creative-gallery-caption { overflow:hidden; color:var(--work-text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
#consoleView .creative-gallery-actions:empty { display:none; }
#consoleView .creative-results > [id$="Tasks"] { min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:10px; }
#consoleView .creative-task { min-width:0; position:relative; display:grid; grid-template-columns:86px minmax(0,1fr); gap:0; overflow:hidden; border:1px solid var(--work-line); border-radius:12px; background:var(--work-raised); }
#consoleView .creative-task.is-selected { border-color:rgba(142,175,255,.58); background:rgba(142,175,255,.08); }
#consoleView .creative-task-thumb { width:86px; min-height:100%; aspect-ratio:1; position:relative; display:grid; place-items:center; padding:0; overflow:hidden; border:0; border-radius:0; color:#fff; background:linear-gradient(145deg,#373b45,#17191e); cursor:pointer; }
#consoleView .creative-task-thumb img,
#consoleView .creative-task-thumb video { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
#consoleView .creative-task-thumb::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,.14); }
#consoleView .creative-task-thumb > span { z-index:1; width:28px; height:28px; display:grid; place-items:center; padding-left:2px; border:1px solid rgba(255,255,255,.45); border-radius:50%; color:#fff; background:rgba(0,0,0,.38); font-size:10px; }
#consoleView .creative-task-copy { min-width:0; padding:9px 10px; display:grid; align-content:center; gap:5px; }
#consoleView .creative-task-copy > header { min-width:0; display:flex; align-items:center; gap:6px; }
#consoleView .creative-task-copy h3 { min-width:0; margin:0; overflow:hidden; color:var(--work-text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
#consoleView .creative-task-copy .task-mini-state { flex:0 0 auto; font-size:8px; }
#consoleView .creative-task-copy .creative-task-meta,
#consoleView .creative-task-copy .creative-task-message,
#consoleView .creative-task-cost { margin:0; overflow:hidden; color:var(--work-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
#consoleView .creative-task-copy .creative-task-message { display:none; }
#consoleView .creative-task-copy .creative-task-progress { height:3px; margin:0; }
#consoleView .creative-task-copy .creative-task-cost { display:none; }
#consoleView .creative-task-actions { display:flex; flex-wrap:wrap; gap:4px; }
#consoleView .creative-task-actions .btn { min-height:23px; padding:2px 6px; font-size:8px; }
#consoleView .creative-task-copy .creative-transcript,
#consoleView .creative-task-copy .creative-project-overview { display:none; }
#consoleView .music-task-card { grid-template-columns:80px minmax(0,1fr); }
#consoleView .music-task-thumb { width:80px; }
#consoleView .music-task-thumb > .music-task-play { position:absolute; right:6px; bottom:6px; z-index:2; width:19px; height:19px; font-size:8px; }
#consoleView .music-task-card .creative-task-copy { grid-template-rows:none; align-content:center; }
#consoleView .music-task-card .creative-task-meta,
#consoleView .music-task-card .music-task-error { max-width:100%; margin:0; overflow:hidden; color:var(--work-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
#consoleView .music-task-card .music-task-error { color:#dfaaa5; }
#consoleView .music-task-card .creative-task-actions { gap:5px; }
#consoleView .music-task-card .music-task-delete { color:#d5a4a4; }
#consoleView .music-task-card .music-task-delete:disabled { opacity:.4; cursor:not-allowed; }
#consoleView .creative-task-thumb:disabled { cursor:default; opacity:.72; }
@media (max-width:1100px) { #consoleView .creative-results > [id$="Tasks"] { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { #consoleView .creative-results > [id$="Tasks"] { grid-template-columns:minmax(0,1fr); } #consoleView .creative-gallery-canvas { max-height:52vh; } }

/* Keep the active media preview compact and show its complete source frame,
   leaving room for the selectable creation cards below. */
#consoleView .creative-gallery-canvas {
  width:100%;
  height:clamp(240px, 44vh, 500px);
  min-height:0;
  max-height:500px;
  aspect-ratio:auto;
}
#consoleView .creative-gallery-canvas video,
#consoleView .creative-gallery-canvas img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}
@media (max-height:760px) {
  #consoleView .creative-gallery-canvas { height:clamp(200px, 40vh, 340px); max-height:340px; }
}
@media (max-width:700px) {
  #consoleView .creative-gallery-canvas { height:clamp(220px, 44vh, 380px); max-height:380px; }
}

/* Keep category navigation and task galleries inside the Windows viewport. */
#consoleView, #consoleView .content, #consoleView .page, #consoleView .creative-shell,
#consoleView .creative-results, #consoleView .studio-result { min-width:0; }
#consoleView { overflow-x:clip; }
#consoleView #page-apps .apps-categories { overflow-x:auto; overflow-y:hidden; }
#consoleView #page-apps .apps-categories button:focus:not(:focus-visible) { outline:none; box-shadow:none; }
#consoleView #page-apps .apps-categories button:focus-visible { outline:2px solid var(--work-blue); outline-offset:2px; }
#consoleView .creative-gallery-canvas > img { width:auto; height:auto; }
#consoleView .creative-task-copy { overflow:hidden; }
#consoleView .music-task-card .creative-task-copy { grid-template-rows:none; }
@media (min-width:1101px) and (max-width:1450px) {
  #consoleView .creative-results > [id$="Tasks"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #consoleView #page-studio .studio-task-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  #consoleView .creative-page .creative-shell { grid-template-columns:minmax(0,1fr); }
  #consoleView #page-studio .studio-shell { grid-template-columns:minmax(0,1fr); }
  #consoleView #page-studio .studio-compose { max-height:none; }
}

/* Balance the app gallery across wide displays while preserving square artwork. */
#consoleView #page-apps .app-launch-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:26px 22px;
  align-items:start;
}
#consoleView #page-apps .apps-section-label { margin-bottom:18px; }
#consoleView #page-apps .apps-section-label > div { gap:9px; }
#consoleView #page-apps .app-launch-art { aspect-ratio:1 / 1; }
#consoleView #page-apps .app-launch-card { width:100%; }
@media (min-width:1001px) and (max-width:1450px) {
  #consoleView #page-apps .app-launch-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 20px; }
}
@media (max-width:1000px) {
  #consoleView #page-apps .app-launch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 16px; }
}
@media (max-width:620px) {
  #consoleView #page-apps .app-launch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 12px; }
}

/* Recent video tasks are compact horizontal cards; the only player stays above. */
#consoleView #page-studio .studio-task-list {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding:9px 12px 12px;
}
#consoleView #page-studio .studio-task-card {
  display:block;
  height:88px;
  min-height:0;
  border-radius:11px;
}
#consoleView #page-studio .studio-task-card::before { content:none !important; display:none !important; }
#consoleView #page-studio .studio-task-main {
  height:100%;
  min-height:0;
  grid-template-columns:72px minmax(0,1fr);
  align-items:stretch;
  gap:0;
  padding:0;
  overflow:hidden;
}
#consoleView #page-studio .task-card-thumb {
  width:72px;
  height:100%;
  min-height:0;
  aspect-ratio:auto;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:10px 0 0 10px;
}
#consoleView #page-studio .task-card-thumb img,
#consoleView #page-studio .task-card-thumb video {
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:cover;
}
#consoleView #page-studio .task-card-thumb > span { position:relative; z-index:1; }
#consoleView #page-studio .task-card-copy {
  min-width:0;
  height:100%;
  align-content:center;
  gap:5px;
  padding:8px 10px;
  overflow:hidden;
}
#consoleView #page-studio .task-card-head { min-height:0; padding:0; }
#consoleView #page-studio .task-card-head strong { font-size:11px; }
#consoleView #page-studio .task-card-meta { overflow:hidden; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
#consoleView #page-studio .task-mini-progress { height:3px; margin:0; }
#consoleView #page-studio .task-card-actions { display:none !important; }
@media (max-width:1100px) { #consoleView #page-studio .studio-task-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  #consoleView #page-studio .studio-task-list { grid-template-columns:minmax(0,1fr); }
  #consoleView #page-studio .studio-task-card { height:80px; }
}

/* Compact, non-scrolling creation history. The selected task always plays in the large preview above. */
#consoleView #page-studio .studio-compose form { align-content:start; grid-auto-rows:max-content; }
#consoleView #page-studio .studio-section { padding-block:13px; }
#consoleView #page-studio .studio-compose { max-height:calc(100dvh - 176px); }
#consoleView #page-studio .studio-model-chip { display:none !important; }
#consoleView #page-studio .studio-result { position:relative; top:auto; height:auto; max-height:none; overflow:visible; display:grid; grid-template-rows:auto auto auto auto; align-content:start; }
#consoleView #page-studio .result-stage,
#consoleView #page-studio .result-stage.landscape { width:100%; height:auto; min-height:0; max-height:min(56vh,620px); aspect-ratio:16/9; }
#consoleView #page-studio .result-stage.portrait { width:100%; height:min(52vh,520px); min-height:300px; max-height:min(52vh,520px); aspect-ratio:9/16; justify-self:center; }
#consoleView #page-studio .studio-task-list { grid-auto-flow:row; grid-auto-columns:auto; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:8px 0 2px; overflow:visible; scroll-snap-type:none; }
#consoleView #page-studio .studio-compose form { grid-template-rows:none; }
#consoleView #page-studio .studio-prompt-tip { display:block; margin-top:7px; color:var(--work-muted); font-size:10px; line-height:1.5; }
#consoleView #page-studio .studio-task-card { min-height:84px; }
#consoleView #page-studio .task-card-head { padding-right:0; align-items:center; }
#consoleView #page-studio .task-card-head strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#consoleView #page-studio .task-mini-state { position:static; }
#consoleView #page-studio .task-card-actions { display:none; }
#consoleView #page-apps .apps-section-label { align-items:center; }
#consoleView #page-apps .apps-section-label > div { display:flex; align-items:baseline; gap:11px; }
#consoleView #page-apps .apps-section-label .btn { min-height:31px; }
@media (max-width:1100px) { #consoleView #page-studio .studio-task-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { #consoleView #page-studio .studio-task-list { grid-template-columns:minmax(0,1fr); } #consoleView #page-studio .studio-task-main { grid-template-columns:104px minmax(0,1fr); } #consoleView #page-studio .studio-settings { grid-template-columns:repeat(2,minmax(0,1fr)); } #consoleView #page-studio .studio-tool-quality { grid-column:1/-1; } #consoleView #page-studio .result-stage.portrait { height:min(52vh,440px); min-height:260px; } }

/* Unified horizontal recent-work rails: latest output stays in the large stage. */
#consoleView #page-studio .studio-task-list,
#consoleView .creative-results > [id$="Tasks"] {
  display:grid;
  grid-auto-flow:column;
  grid-template-columns:none;
  grid-auto-columns:minmax(280px,32%);
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.16) transparent;
}
#consoleView #page-studio .studio-task-list { padding:9px 12px 12px; gap:9px; }
#consoleView .creative-results > [id$="Tasks"] { gap:10px; padding:10px; }
#consoleView #page-studio .studio-task-card,
#consoleView .creative-results > [id$="Tasks"] > .creative-task {
  height:132px;
  min-height:0;
  scroll-snap-align:start;
}
#consoleView #page-studio .task-card-actions { top:auto; right:8px; bottom:7px; display:flex !important; gap:4px; }
#consoleView #page-studio .task-card-copy { padding-bottom:28px; }
#consoleView #page-studio .task-note-edit,
#consoleView #page-studio .task-delete { min-height:22px; padding:2px 7px; font-size:9px; }
#consoleView .creative-results > [id$="Tasks"] > .creative-task { grid-template-columns:96px minmax(0,1fr); }
#consoleView .creative-results > [id$="Tasks"] > .creative-task .creative-task-thumb { width:96px; }
#consoleView .creative-results > [id$="Tasks"] > .creative-task .creative-task-actions { margin-top:3px; }
#consoleView .creative-results > [id$="Tasks"] > .creative-task:not(.music-task-card) .creative-task-copy h3 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; line-height:1.35; }
#consoleView .task-carousel-controls { display:inline-flex; align-items:center; gap:5px; }
#consoleView .task-carousel-button { width:29px; height:29px; display:grid; place-items:center; padding:0; border:1px solid var(--work-line-strong); border-radius:50%; color:var(--work-text); background:var(--work-input); cursor:pointer; }
#consoleView .task-carousel-button:hover { border-color:var(--work-blue); background:rgba(142,175,255,.1); }

/* Keep the studio and its media stage inside the content grid at every zoom. */
#consoleView > .content,
#consoleView .content,
#consoleView.app-shell,
#consoleView #page-studio,
#consoleView #page-studio .studio-shell,
#consoleView #page-studio .studio-compose,
#consoleView #page-studio .studio-result,
#consoleView #page-studio .result-stage,
#consoleView #page-studio .result-progress,
#consoleView #page-studio .studio-task-center { min-width:0; max-width:100%; }
#consoleView #page-studio { overflow-x:hidden; }
#consoleView #page-studio .studio-shell { width:100%; }
#consoleView #page-studio .studio-result { overflow:hidden; }
#consoleView #page-studio .result-stage { width:100%; overflow:hidden; contain:layout paint; }
#consoleView #page-studio .result-stage video { display:block; width:100%; max-width:100%; min-width:0; }
#consoleView #page-studio .result-progress-rail,
#consoleView #page-studio .task-center-head,
#consoleView #page-studio .studio-task-list { min-width:0; max-width:100%; }
#consoleView #page-studio .studio-result { display:flex; flex-direction:column; align-items:stretch; }
#consoleView #page-studio .studio-result > .result-stage { flex:0 0 auto; }
#consoleView #page-studio .result-progress { position:relative; flex:0 0 auto; }
#consoleView #page-studio .result-actions { position:static; width:100%; display:flex; align-items:center; justify-content:flex-start; gap:10px; margin:12px 0 2px; }
#consoleView #page-studio .result-actions .btn { width:auto; min-width:180px; min-height:42px; flex:0 0 auto; padding-inline:22px; }
/* Keep the primary preview from pushing the result controls and recent-work
   rail below the fold. Explicit height beats intrinsic video dimensions. */
#consoleView #page-studio .result-stage,
#consoleView #page-studio .result-stage.landscape {
  width:100%;
  height:clamp(260px, 40vh, 520px) !important;
  min-height:0 !important;
  max-height:520px !important;
  aspect-ratio:auto !important;
}
#consoleView #page-studio .result-stage.portrait {
  width:100%;
  height:clamp(260px, 46vh, 460px) !important;
  min-height:0 !important;
  max-height:460px !important;
  aspect-ratio:auto !important;
}
#consoleView #page-studio .result-stage video { width:100%; height:100%; max-height:100%; object-fit:contain; }
#consoleView #page-studio .studio-task-center { min-width:0; }
#consoleView #page-studio .studio-task-list { min-width:0; }
@media (max-width:700px) {
  #consoleView #page-studio .result-stage,
  #consoleView #page-studio .result-stage.landscape { height:clamp(220px, 38vh, 380px) !important; max-height:380px !important; }
  #consoleView #page-studio .result-stage.portrait { height:clamp(240px, 44vh, 380px) !important; max-height:380px !important; }
}
/* Leave enough of the page visible below the player on laptop-height screens.
   The gallery remains the focus, but should not push task controls off-screen. */
@media (max-height:950px) {
  #consoleView #page-studio .result-stage,
  #consoleView #page-studio .result-stage.landscape { height:clamp(220px, 32vh, 340px) !important; max-height:340px !important; }
  #consoleView #page-studio .result-stage.portrait { height:clamp(220px, 34vh, 340px) !important; max-height:340px !important; }
}
@media (max-height:760px) {
  #consoleView #page-studio .result-stage,
  #consoleView #page-studio .result-stage.landscape,
  #consoleView #page-studio .result-stage.portrait { height:clamp(190px, 30vh, 260px) !important; max-height:260px !important; }
}
.workflow-specs { min-height:40px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; padding:7px 9px; border:1px solid var(--work-line-strong); border-radius:10px; background:var(--work-input); }
.workflow-specs span { padding:5px 8px; border-radius:7px; color:var(--work-text); background:rgba(255,255,255,.06); font-size:11px; white-space:nowrap; }
@media (max-width:1100px) {
  #consoleView #page-studio .studio-task-list,
  #consoleView .creative-results > [id$="Tasks"] { grid-auto-columns:minmax(270px,48%); }
}
@media (max-width:700px) {
  #consoleView #page-studio .studio-task-list,
  #consoleView .creative-results > [id$="Tasks"] { grid-auto-columns:minmax(260px,84%); }
  #consoleView #page-studio .studio-task-card,
  #consoleView .creative-results > [id$="Tasks"] > .creative-task { height:124px; }
}

/* Filtering to one app must not stretch that card across the entire row. */
#consoleView #page-apps .app-launch-grid {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),320px));
  justify-content:start;
  align-items:start;
}

/* Make playback discoverable even when browser-native video controls fade out. */
#consoleView .creative-gallery-video-wrap { width:100%; height:100%; min-width:0; min-height:0; position:relative; display:grid; place-items:center; overflow:hidden; background:#09090b; }
#consoleView .creative-gallery-video-wrap video { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
#consoleView .creative-gallery-play { position:absolute; top:50%; left:50%; z-index:2; min-height:42px; padding:0 18px; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.42); border-radius:999px; color:#fff; background:rgba(15,16,20,.78); box-shadow:0 8px 28px rgba(0,0,0,.35); font:600 12px var(--sans); cursor:pointer; backdrop-filter:blur(10px); }
#consoleView .creative-gallery-play:hover { background:rgba(38,48,73,.9); border-color:rgba(142,175,255,.75); }
#consoleView .creative-gallery-play[hidden] { display:none !important; }

/* Image editing follows the ImageTo workflow while staying inside EQUAI's dark workbench. */
#consoleView #page-image-edit .image-edit-source { padding: 20px; }
#consoleView #page-image-edit .image-edit-dropzone {
  min-height: 154px; margin: 12px 0 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; border: 1px dashed #566276;
  border-radius: 14px; background: linear-gradient(145deg,rgba(144,174,255,.07),rgba(255,255,255,.015));
  color: var(--work-text); cursor: pointer; text-align: center; transition: border-color .16s,background .16s;
}
#consoleView #page-image-edit .image-edit-dropzone:hover,
#consoleView #page-image-edit .image-edit-dropzone.is-dragging,
#consoleView #page-image-edit .image-edit-dropzone:focus-visible { border-color: #8da9ff; background: rgba(119,148,255,.10); outline: 2px solid transparent; }
#consoleView #page-image-edit .image-edit-drop-icon { color: var(--work-accent-text); font-size: 30px; line-height: 1; font-weight: 300; }
#consoleView #page-image-edit .image-edit-dropzone strong { font-size: 14px; }
#consoleView #page-image-edit .image-edit-dropzone small { margin: 0; color: var(--work-muted); font-size: 10px; }
#consoleView #page-image-edit .image-edit-file-input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; clip-path:inset(50%); }
#consoleView #page-image-edit .image-edit-file-input:focus-visible + .image-edit-selected-head { outline:2px solid #8da9ff; outline-offset:3px; }
#consoleView #page-image-edit .image-edit-selected-head { display:flex; justify-content:space-between; align-items:center; gap:10px; color:var(--work-text); font-size:11px; }
#consoleView #page-image-edit .image-edit-selected-head span { color:var(--work-muted); font-variant-numeric:tabular-nums; }
#consoleView #page-image-edit .image-edit-previews { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
#consoleView #page-image-edit .image-edit-previews figure,
#consoleView #page-image-edit .image-edit-previews figure:first-child { position:relative; grid-column:auto; min-width:0; padding:5px; border:1px solid var(--work-line); border-radius:10px; background:rgba(255,255,255,.025); }
#consoleView #page-image-edit .image-edit-previews img { display:block; width:100%; height:86px; max-height:none; object-fit:contain; border-radius:6px; }
#consoleView #page-image-edit .image-edit-previews figcaption { margin:5px 2px 2px; overflow:hidden; color:var(--work-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
#consoleView #page-image-edit .image-edit-remove { position:absolute; top:8px; right:8px; padding:4px 7px; border:1px solid rgba(255,255,255,.24); border-radius:7px; background:rgba(12,13,16,.84); color:#f0f1f4; font-size:9px; cursor:pointer; }
#consoleView #page-image-edit .image-edit-controls { display:grid; gap:14px; }
#consoleView #page-image-edit .image-edit-controls .field { margin:0; }
#consoleView #page-image-edit .image-edit-controls textarea { min-height:120px; font-size:12px; }
#consoleView #page-image-edit #editPromptCount { display:block; margin-top:5px; text-align:right; color:var(--work-faint); font-size:10px; }
#consoleView #page-image-edit .image-edit-ratios { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
#consoleView #page-image-edit .image-edit-ratio { min-height:34px; border:1px solid var(--work-line-strong); border-radius:8px; background:rgba(255,255,255,.025); color:var(--work-muted); font-size:10px; cursor:pointer; }
#consoleView #page-image-edit .image-edit-ratio[aria-pressed="true"] { border-color:#8da9ff; background:rgba(119,148,255,.13); color:var(--work-accent-text); box-shadow:inset 0 0 0 1px rgba(141,169,255,.3); }
#consoleView #page-image-edit .image-edit-count-row { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px 12px; color:var(--work-text); font-size:12px; }
#consoleView #page-image-edit .image-edit-count-row output { padding:5px 9px; border-radius:8px; background:rgba(255,255,255,.08); color:var(--work-accent-text); font-variant-numeric:tabular-nums; }
#consoleView #page-image-edit .image-edit-count-row input { grid-column:1/-1; width:100%; accent-color:#91a9ff; }
#consoleView #page-image-edit .image-edit-models { display:grid; gap:7px; }
#consoleView #page-image-edit .image-edit-model-card { display:flex; width:100%; min-width:0; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid var(--work-line); border-radius:11px; background:rgba(255,255,255,.025); color:var(--work-text); text-align:left; cursor:pointer; }
#consoleView #page-image-edit .image-edit-model-card[aria-checked="true"] { border-color:#8da9ff; background:rgba(119,148,255,.09); box-shadow:inset 0 0 0 1px rgba(141,169,255,.23); }
#consoleView #page-image-edit .image-edit-model-copy,
#consoleView #page-image-edit .image-edit-model-price { display:grid; gap:4px; min-width:0; }
#consoleView #page-image-edit .image-edit-model-copy strong { font-size:11px; }
#consoleView #page-image-edit .image-edit-model-copy small { overflow:hidden; color:var(--work-muted); font-size:9px; text-overflow:ellipsis; }
#consoleView #page-image-edit .image-edit-model-price { flex:none; text-align:right; }
#consoleView #page-image-edit .image-edit-model-price strong { color:var(--work-accent-text); font-size:12px; font-variant-numeric:tabular-nums; }
#consoleView #page-image-edit .image-edit-model-price small { color:var(--work-faint); font-size:8px; }
#consoleView #page-image-edit .image-edit-hint { margin:0; }
#consoleView #page-image-edit .image-edit-output-strip { display:flex; gap:8px; width:100%; padding:10px 12px; overflow-x:auto; }
#consoleView #page-image-edit .image-edit-output-thumb { flex:none; width:64px; height:64px; padding:3px; overflow:hidden; border:1px solid var(--work-line); border-radius:9px; background:#111; cursor:pointer; }
#consoleView #page-image-edit .image-edit-output-thumb[aria-current="true"] { border-color:#8da9ff; box-shadow:0 0 0 1px #8da9ff; }
#consoleView #page-image-edit .image-edit-output-thumb img { width:100%; height:100%; object-fit:cover; }
@media (max-width:700px) {
  #consoleView #page-image-edit .image-edit-ratios { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #consoleView #page-image-edit .image-edit-previews { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

/* Let still images set the preview height from their intrinsic aspect ratio. */
#consoleView .creative-gallery-canvas.is-image-preview {
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
}
#consoleView .creative-gallery-canvas.is-image-preview > img {
  width:auto;
  height:auto;
  max-width:100%;
  max-height:min(58vh,680px);
  flex:0 1 auto;
}
#consoleView .creative-gallery-canvas.is-image-preview .image-edit-output-strip {
  width:100%;
  flex:0 0 auto;
}
@media (max-width:700px) {
  #consoleView .creative-gallery-canvas.is-image-preview > img { max-height:52vh; }
}

/* Multi-image results stay compact so the thumbnails and task cards remain reachable. */
#consoleView .creative-gallery-canvas.is-multiple-image-preview {
  height:clamp(280px,48vh,520px);
  min-height:0;
  max-height:min(58vh,520px);
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
}
#consoleView .creative-gallery-canvas.is-multiple-image-preview > img {
  min-height:0;
  max-height:calc(100% - 92px);
  flex:1 1 auto;
}
#consoleView .creative-gallery-canvas.is-multiple-image-preview .image-edit-output-strip {
  width:100%;
  min-height:76px;
  flex:0 0 auto;
  justify-content:center;
  padding:6px 12px;
}
#consoleView .creative-gallery-canvas.is-multiple-image-preview .image-edit-output-thumb {
  width:64px;
  height:64px;
  flex:0 0 64px;
  padding:3px;
  overflow:hidden;
  border:1px solid var(--work-line);
  border-radius:9px;
  background:#111;
  cursor:pointer;
}
#consoleView .creative-gallery-canvas.is-multiple-image-preview .image-edit-output-thumb[aria-current="true"] {
  border-color:#8da9ff;
  box-shadow:0 0 0 2px #8da9ff;
}
#consoleView .creative-gallery-canvas.is-multiple-image-preview .image-edit-output-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
@media (max-height:760px) {
  #consoleView .creative-gallery-canvas.is-multiple-image-preview { height:clamp(240px,42vh,420px); max-height:52vh; }
}
@media (max-width:700px) {
  #consoleView .creative-gallery-canvas.is-multiple-image-preview { height:clamp(240px,44vh,400px); max-height:52vh; }
}

/* 视频高清 tiers: same card language as the image-edit model picker. */
#consoleView #page-video-enhance .video-enhance-tiers { display:grid; gap:7px; }
#consoleView #page-video-enhance .video-enhance-tier { display:flex; width:100%; min-width:0; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid var(--work-line); border-radius:11px; background:rgba(255,255,255,.025); color:var(--work-text); text-align:left; cursor:pointer; }
#consoleView #page-video-enhance .video-enhance-tier[aria-checked="true"] { border-color:#8da9ff; background:rgba(119,148,255,.09); box-shadow:inset 0 0 0 1px rgba(141,169,255,.23); }
#consoleView #page-video-enhance .video-enhance-tier:disabled { cursor:not-allowed; opacity:.5; }
#consoleView #page-video-enhance .video-enhance-tier-copy,
#consoleView #page-video-enhance .video-enhance-tier-price { display:grid; gap:4px; min-width:0; }
#consoleView #page-video-enhance .video-enhance-tier-copy strong { font-size:13px; }
#consoleView #page-video-enhance .video-enhance-tier-copy small { color:var(--work-muted); font-size:11px; }
#consoleView #page-video-enhance .video-enhance-tier-price { flex:none; text-align:right; }
#consoleView #page-video-enhance .video-enhance-tier-price strong { color:var(--work-accent-text); font-size:13px; font-variant-numeric:tabular-nums; }
#consoleView #page-video-enhance .video-enhance-tier-price small { color:var(--work-faint); font-size:10px; }

/* One screen, no scrolling: on a desktop window the eleven apps sit in 6 × 2 below the search, their artwork sized
   from the height that is left (container query on .app-launch-fit), 1.45:1 to 2:1; the heading and
   search tighten on shorter windows. Phones and very short windows keep the scrolling grid above. */
@media (min-width:1001px) and (min-height:640px) {
  #consoleView #page-apps:not(.hidden) { display:flex; flex-direction:column; height:calc(100dvh - 126px); min-height:0; max-width:2200px; }
  /* slogan on the left, search on the right: half the height of the stacked heading, so the apps get it */
  #consoleView #page-apps .apps-discovery { flex:none; width:100%; max-width:none; display:grid;
    grid-template-columns:minmax(0,1fr) minmax(340px,1.05fr); column-gap:clamp(24px,4vw,72px); align-items:center;
    margin:0 0 clamp(14px,3vh,36px); padding-top:clamp(6px,2.4vh,30px); text-align:left; }
  #consoleView #page-apps .apps-discovery-intro { grid-column:1; grid-row:1 / span 2; }
  #consoleView #page-apps .apps-search { grid-column:2; grid-row:1; align-self:end; }
  #consoleView #page-apps .apps-examples { grid-column:2; grid-row:2; align-self:start; justify-content:flex-start; padding-left:22px; }
  #consoleView #page-apps .app-recommend-status,
  #consoleView #page-apps .app-recommend-results { grid-column:1 / -1; }
  #consoleView #page-apps .apps-discovery-intro h1 { margin:0; font-size:clamp(24px,min(2.5vw,4.6vh),40px); line-height:1.18; text-wrap:balance; }
  #consoleView #page-apps .apps-discovery-intro p { margin:clamp(6px,1.2vh,12px) 0 0; }
  #consoleView #page-apps .apps-search { height:clamp(46px,6vh,58px); }
  #consoleView #page-apps .apps-search input { height:clamp(36px,4.6vh,44px); }
  #consoleView #page-apps .apps-search button { width:clamp(36px,4.4vh,42px); height:clamp(36px,4.4vh,42px); }
  #consoleView #page-apps .apps-examples { min-height:0; margin-top:clamp(4px,1vh,10px); }
  #consoleView #page-apps .apps-browse-head { flex:none; margin-bottom:clamp(10px,2vh,22px); }
  #consoleView #page-apps .apps-section-label { flex:none; margin-bottom:clamp(8px,1.6vh,18px); }
  #consoleView #page-apps .app-launch-fit { flex:1 1 auto; min-height:0; container-type:size; }
  #consoleView #page-apps .app-launch-grid {
    --copy-h:56px; --row-gap:clamp(14px,2.4cqh,26px);
    --art-h:calc((100cqh - 2 * var(--copy-h) - var(--row-gap)) / 2);
    height:100%; grid-template-columns:repeat(6,minmax(0,calc(var(--art-h) * 2)));
    grid-auto-rows:max-content; gap:var(--row-gap) clamp(14px,1.4vw,24px);
    justify-content:start; align-content:start;
  }
  /* 1.45:1 when the width decides; a short window keeps the height and lets the artwork widen (up to 2:1) */
  #consoleView #page-apps .app-launch-art { width:100%; aspect-ratio:1.45 / 1; max-height:var(--art-h); }
  #consoleView #page-apps .app-launch-copy { height:var(--copy-h); padding-top:9px; overflow:hidden; }
  #consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  #consoleView #page-apps .app-launch-tags { display:none; }  /* same as the badge and the tabs above */
  #consoleView #page-apps .app-favorite { top:calc(100% - var(--copy-h) + 2px); }
}
/* The slogan breaks only between its two phrases. */
#consoleView #page-apps .apps-discovery-intro h1 .nowrap-chunk { display:inline-block; white-space:nowrap; }
/* 2026-11-17: any number of apps on one screen. app.js layoutAppGrid() picks the rows x columns for the cards this
   account sees (--app-cols, --app-cell-w, --art-h); without them the 6 x 2 layout above applies. */
@media (min-width:1001px) and (min-height:640px) {
  #consoleView #page-apps .app-launch-grid[style*="--app-cols"] {
    grid-template-columns:repeat(var(--app-cols),minmax(0,var(--app-cell-w)));
  }
  #consoleView #page-apps .app-launch-grid[style*="--app-cols"] .app-launch-art { height:var(--art-h); aspect-ratio:auto; max-height:none; }
}

/* Light theme: what the variables can't carry. */
html[data-theme="light"] #consoleView #page-apps .apps-search:focus-within { border-color:rgba(49,95,216,.45); box-shadow:0 0 0 3px rgba(49,95,216,.1),0 8px 24px rgba(29,46,72,.06); }
html[data-theme="light"] #consoleView #page-apps .apps-search button { color:#fff; background:#202b38; }
html[data-theme="light"] #consoleView #page-apps .apps-search button:hover { background:#315fd8; }
html[data-theme="light"] #consoleView .studio-submit > small { color:rgba(255,255,255,.78); }
html[data-theme="light"] #consoleView #page-overview #callTable tbody tr:hover,
html[data-theme="light"] #consoleView #page-overview #ledgerTable tbody tr:hover { background:rgba(28,42,59,.03); }
html[data-theme="light"] #consoleView #page-image-edit .image-edit-count-row output { background:rgba(49,95,216,.08); }

/* ── App page hero: display face, a sheen across the slogan, "平等" in the brand gradient, a turning ring
   around the search, a slow aurora behind. Everything is still when the system asks for reduced motion. ── */
@font-face { font-family:"EQUAI Slogan"; src:url("/fonts/smiley-sans-slogan.woff2") format("woff2"); font-display:swap; }  /* 得意黑 subset, OFL (fonts/SmileySans-OFL.txt) */
@property --apps-ring { syntax:"<angle>"; inherits:false; initial-value:0deg; }

#consoleView #page-apps .apps-discovery { position:relative; isolation:isolate; }
#consoleView #page-apps .apps-discovery::before {
  position:absolute; inset:-10px -30px -20px; z-index:-1; pointer-events:none; content:"";
  background:radial-gradient(38% 70% at 12% 45%,rgba(104,136,255,.20),transparent 70%),
             radial-gradient(30% 60% at 48% 25%,rgba(176,132,255,.13),transparent 70%),
             radial-gradient(32% 70% at 88% 55%,rgba(86,214,255,.11),transparent 72%);
  filter:blur(28px); animation:apps-aurora 16s ease-in-out infinite alternate;
}
#consoleView #page-apps .apps-slogan { font-family:"EQUAI Slogan",var(--sans); font-weight:400; letter-spacing:.015em; line-height:1.12; }
#consoleView #page-apps .apps-slogan .nowrap-chunk {
  color:transparent; -webkit-background-clip:text; background-clip:text;
  background-image:linear-gradient(105deg,#f4f3f0 0%,#f4f3f0 42%,#c9d4ff 50%,#f4f3f0 58%,#f4f3f0 100%);
  background-size:260% 100%; background-position:120% 0;
  padding-right:.14em; margin-right:-.14em;  /* the oblique face leans past its box; keep the fill under it */
  animation:apps-rise .9s cubic-bezier(.2,.8,.2,1) both, apps-sheen 7s ease-in-out 1.2s infinite;
}
#consoleView #page-apps .apps-slogan .nowrap-chunk + .nowrap-chunk { animation-delay:.14s, 1.6s; }
#consoleView #page-apps .apps-slogan-key {
  position:relative; font-style:normal; color:transparent; -webkit-background-clip:text; background-clip:text;
  background-image:linear-gradient(90deg,#7ea4ff,#b98cff,#5fdcff,#7ea4ff); background-size:300% 100%;
  animation:apps-flow 6s linear infinite;
}
#consoleView #page-apps .apps-slogan-key::after {
  position:absolute; right:.04em; bottom:-.02em; left:.04em; height:.09em; border-radius:99px; content:"";
  background:linear-gradient(90deg,#7ea4ff,#b98cff,#5fdcff); box-shadow:0 0 14px rgba(140,150,255,.55);
  transform:scaleX(0); transform-origin:left; animation:apps-draw .9s cubic-bezier(.65,0,.35,1) .7s forwards;
}
#consoleView #page-apps .apps-discovery-intro p { animation:apps-rise .8s cubic-bezier(.2,.8,.2,1) .28s both; }
#consoleView #page-apps .apps-search {
  border:1px solid transparent;
  background:linear-gradient(110deg,#1a1a1c,#101012) padding-box,
             conic-gradient(from var(--apps-ring),rgba(255,255,255,.13) 0deg,#7ea4ff 55deg,#b98cff 105deg,rgba(255,255,255,.13) 165deg,rgba(255,255,255,.13) 360deg) border-box;
  animation:apps-rise .8s cubic-bezier(.2,.8,.2,1) .36s both, apps-ring 9s linear infinite;
}
#consoleView #page-apps .apps-search:focus-within { animation-duration:.8s,2.6s; box-shadow:0 0 0 4px rgba(126,164,255,.10),0 12px 44px rgba(110,120,255,.18); }
#consoleView #page-apps .apps-search-spark { animation:apps-twinkle 3.4s ease-in-out infinite; }
#consoleView #page-apps .apps-examples { animation:apps-rise .8s cubic-bezier(.2,.8,.2,1) .44s both; }

html[data-theme="light"] #consoleView #page-apps .apps-discovery::before {
  background:radial-gradient(38% 70% at 12% 45%,rgba(84,120,255,.16),transparent 70%),
             radial-gradient(30% 60% at 48% 25%,rgba(160,110,255,.10),transparent 70%),
             radial-gradient(32% 70% at 88% 55%,rgba(40,180,240,.10),transparent 72%);
}
html[data-theme="light"] #consoleView #page-apps .apps-slogan .nowrap-chunk {
  background-image:linear-gradient(105deg,#1a2533 0%,#1a2533 42%,#4d72e8 50%,#1a2533 58%,#1a2533 100%);
}
html[data-theme="light"] #consoleView #page-apps .apps-slogan-key { background-image:linear-gradient(90deg,#2f5ae0,#7a4be6,#0c9fd6,#2f5ae0); }
html[data-theme="light"] #consoleView #page-apps .apps-slogan-key::after { background:linear-gradient(90deg,#2f5ae0,#7a4be6,#0c9fd6); box-shadow:0 0 12px rgba(80,100,230,.35); }
html[data-theme="light"] #consoleView #page-apps .apps-search {
  border-color:transparent;
  background:linear-gradient(120deg,#fff,#f8faff) padding-box,
             conic-gradient(from var(--apps-ring),rgba(28,42,59,.14) 0deg,#4d72e8 55deg,#8a5cf0 105deg,rgba(28,42,59,.14) 165deg,rgba(28,42,59,.14) 360deg) border-box;
}

@keyframes apps-rise { from { opacity:0; transform:translateY(14px); filter:blur(8px); } to { opacity:1; transform:none; filter:none; } }
@keyframes apps-sheen { 0%, 55% { background-position:120% 0; } 100% { background-position:-20% 0; } }
@keyframes apps-flow { to { background-position:300% 0; } }
@keyframes apps-draw { to { transform:scaleX(1); } }
@keyframes apps-ring { to { --apps-ring:360deg; } }
@keyframes apps-twinkle { 0%, 100% { transform:scale(1) rotate(0); opacity:.9; } 50% { transform:scale(1.18) rotate(18deg); opacity:1; } }
@keyframes apps-aurora { from { transform:translate3d(-2%,0,0) scale(1); } to { transform:translate3d(3%,-4%,0) scale(1.06); } }
@media (min-width:1001px) and (min-height:640px) {
  #consoleView #page-apps .apps-slogan { font-size:clamp(30px,min(3vw,5.6vh),54px); }
}
@media (prefers-reduced-motion:reduce) {
  #consoleView #page-apps .apps-discovery::before, #consoleView #page-apps .apps-slogan .nowrap-chunk,
  #consoleView #page-apps .apps-slogan-key, #consoleView #page-apps .apps-discovery-intro p,
  #consoleView #page-apps .apps-search, #consoleView #page-apps .apps-search-spark,
  #consoleView #page-apps .apps-examples { animation:none; }
  #consoleView #page-apps .apps-slogan-key::after { animation:none; transform:none; }
}

/* ── Account overview: four stat cards with their icon, and one records panel (tabs, tools, table) in which every
   task shows its picture (or its app's icon), the app as a chip, the state as a pill, and icon actions. ── */
#consoleView #page-overview .overview-page-head { min-height:0; margin-bottom:22px; }
#consoleView #page-overview .overview-sub { margin:6px 0 0; color:var(--work-muted); font-size:13px; }
#consoleView #page-overview .overview-stats { gap:16px; margin-bottom:22px; border:0; }
#consoleView #page-overview .overview-stats .metric { min-height:118px; padding:18px 20px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto 1fr; gap:14px 10px;
  border:1px solid var(--work-line); border-radius:16px; background:linear-gradient(160deg,var(--work-raised),var(--work-surface)); transition:border-color .2s,transform .2s; }
#consoleView #page-overview .overview-stats .metric + .metric { border-left:1px solid var(--work-line); }
#consoleView #page-overview .overview-stats .metric:hover { border-color:var(--work-line-strong); transform:translateY(-1px); }
#consoleView #page-overview .overview-stats .metric .label { grid-column:1; grid-row:1; margin:0; font-size:13px; }
#consoleView #page-overview .metric-icon { grid-column:2; grid-row:1; width:34px; height:34px; display:grid; place-items:center; margin:-6px -6px 0 0;
  border:1px solid var(--work-line); border-radius:10px; color:var(--work-muted); background:rgba(255,255,255,.03); }
#consoleView #page-overview .metric-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#consoleView #page-overview .metric-value { grid-column:1 / -1; grid-row:2; align-self:end; display:flex; align-items:baseline; gap:6px; min-width:0; }
#consoleView #page-overview .overview-stats .metric .number { font-size:clamp(26px,2.4vw,36px); line-height:1; }
#consoleView #page-overview .overview-stats .metric-unit { padding:0; font-size:14px; }
#consoleView #page-overview .overview-stats .primary-metric .number,
#consoleView #page-overview .overview-stats .primary-metric .metric-unit { color:var(--work-accent-text); }
#consoleView #page-overview .overview-stats .primary-metric .metric-icon { color:var(--work-accent-text); border-color:rgba(126,164,255,.32); background:rgba(126,164,255,.09); }
#consoleView #page-overview .overview-stats .credit-rail { display:none; }
#consoleView #page-overview .metric-live { width:8px; height:8px; margin-left:4px; align-self:center; border-radius:50%; background:#6f9bff; opacity:0; }
#consoleView #page-overview .metric-active.is-live .metric-live { opacity:1; box-shadow:0 0 0 0 rgba(111,155,255,.6); animation:overview-live 1.8s ease-out infinite; }
@keyframes overview-live { to { box-shadow:0 0 0 9px rgba(111,155,255,0); } }

#consoleView #page-overview .overview-records { padding:6px 22px 8px; border:1px solid var(--work-line); border-radius:18px; background:var(--work-surface); box-shadow:none; overflow:visible; }
#consoleView #page-overview .overview-records-head { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--work-line); }
#consoleView #page-overview .overview-records-head .overview-record-switch { margin:0; border:0; }
#consoleView #page-overview .overview-record-switch button { min-height:52px; font-size:14px; }
#consoleView #page-overview .overview-record-switch button.active::after { background:var(--work-accent-text); }
#consoleView #page-overview .overview-records .overview-call-panel,
#consoleView #page-overview .overview-records .overview-ledger-panel { margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
#consoleView #page-overview .overview-records .call-result-count { margin:0; }
#consoleView #page-overview .overview-call-toolbar { margin:16px 0; }
#consoleView #page-overview .overview-search { height:40px; }
#consoleView #page-overview .overview-search svg,
#consoleView #page-overview .overview-call-actions svg { width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#consoleView #page-overview .overview-search svg { color:var(--work-muted); }
#consoleView #page-overview .overview-call-actions { gap:10px; }
#consoleView #page-overview .overview-call-actions button { height:40px; padding:0 14px; border:1px solid var(--work-line-strong); border-radius:10px; color:var(--work-soft); }
#consoleView #page-overview .overview-call-actions button.icon-only { width:40px; padding:0; justify-content:center; }
#consoleView #page-overview .overview-call-actions button:hover { color:var(--work-text); border-color:var(--work-accent-text); }

#consoleView #page-overview #callTable .table-wrap { margin:0 -10px; }
#consoleView #page-overview #callTable thead th { padding:11px 14px; border:0; background:var(--work-raised); color:var(--work-muted); font-size:12px; }
#consoleView #page-overview #callTable thead th:first-child { border-radius:10px 0 0 10px; }
#consoleView #page-overview #callTable thead th:last-child { border-radius:0 10px 10px 0; }
#consoleView #page-overview #callTable td { padding:12px 14px; font-size:13px; }
#consoleView #page-overview #callTable tbody tr:last-child td { border-bottom:0; }
#consoleView #page-overview .call-task-cell { max-width:none; width:38%; }
#consoleView #page-overview .call-task { display:flex; align-items:center; gap:14px; min-width:0; }
#consoleView #page-overview .call-thumb { position:relative; flex:none; width:72px; height:48px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--work-line);
  border-radius:10px; color:var(--work-muted); background:linear-gradient(145deg,var(--work-raised),var(--work-input)); }
#consoleView #page-overview .call-thumb svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
#consoleView #page-overview .call-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#consoleView #page-overview .call-thumb.app-music { color:#c3a6ff; }
#consoleView #page-overview .call-thumb.app-digital-human,
#consoleView #page-overview .call-thumb.app-person-swap { color:#8fd0ff; }
#consoleView #page-overview .call-thumb.app-commerce-remix { color:#ffc48a; }
#consoleView #page-overview .call-thumb.app-image-edit { color:#9be3b5; }
#consoleView #page-overview .call-task-copy { display:grid; gap:4px; min-width:0; }
#consoleView #page-overview .call-prompt { max-width:100%; overflow:hidden; color:var(--work-text); font-size:14px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
#consoleView #page-overview .call-task-meta { margin:0; color:var(--work-muted); font-size:12px; }
#consoleView #page-overview .call-app-chip { display:inline-flex; padding:4px 10px; border:1px solid var(--work-line-strong); border-radius:8px; color:var(--work-soft); background:var(--work-raised); font-size:12px; white-space:nowrap; }
#consoleView #page-overview .status-pill { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap;
  color:#8fdca5; background:rgba(112,200,139,.14); }
#consoleView #page-overview .status-pill.failed { color:#ff9b93; background:rgba(255,110,100,.14); }
#consoleView #page-overview .status-pill.cancelled { color:var(--work-muted); background:rgba(150,150,160,.14); }
#consoleView #page-overview .status-pill.is-active { color:#9cbcff; background:rgba(111,155,255,.16); }
#consoleView #page-overview .status-pill.is-active::before { width:6px; height:6px; border-radius:50%; background:currentColor; content:""; animation:overview-blink 1.4s ease-in-out infinite; }
@keyframes overview-blink { 50% { opacity:.25; } }
#consoleView #page-overview .call-error { display:block; max-width:240px; margin-top:6px; overflow:hidden; color:var(--work-muted); font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
#consoleView #page-overview .call-points { color:var(--work-text); font-variant-numeric:tabular-nums; white-space:nowrap; }
#consoleView #page-overview .call-points small { display:block; margin-top:3px; color:var(--work-faint); font-size:11px; }
#consoleView #page-overview .call-points-pending { color:var(--work-muted); }
#consoleView #page-overview .call-time { color:var(--work-soft); font-variant-numeric:tabular-nums; white-space:nowrap; }
#consoleView #page-overview .call-result-actions { gap:10px; }
#consoleView #page-overview .call-icon-btn { width:38px; height:34px; display:grid; place-items:center; padding:0; border:1px solid var(--work-line-strong); border-radius:10px;
  color:var(--work-soft); background:transparent; cursor:pointer; transition:color .15s,border-color .15s,background .15s; }
#consoleView #page-overview .call-icon-btn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#consoleView #page-overview .call-icon-btn:hover:not(:disabled) { color:var(--work-text); border-color:var(--work-accent-text); background:rgba(126,164,255,.08); }
#consoleView #page-overview .call-icon-btn:disabled { opacity:.32; cursor:not-allowed; }
#consoleView #page-overview .call-result-expiry { display:none; }

html[data-theme="light"] #consoleView #page-overview .metric-icon { background:#f6f8fb; }
html[data-theme="light"] #consoleView #page-overview .overview-stats .primary-metric .metric-icon { border-color:rgba(49,95,216,.25); background:rgba(49,95,216,.07); }
html[data-theme="light"] #consoleView #page-overview .overview-records { box-shadow:0 12px 34px rgba(30,48,72,.05); }
html[data-theme="light"] #consoleView #page-overview .call-thumb.app-music { color:#7a4be6; }
html[data-theme="light"] #consoleView #page-overview .call-thumb.app-digital-human,
html[data-theme="light"] #consoleView #page-overview .call-thumb.app-person-swap { color:#1789c9; }
html[data-theme="light"] #consoleView #page-overview .call-thumb.app-commerce-remix { color:#c46a12; }
html[data-theme="light"] #consoleView #page-overview .call-thumb.app-image-edit { color:#1f8a4c; }
html[data-theme="light"] #consoleView #page-overview .status-pill { color:#1f7a45; background:rgba(31,138,76,.1); }
html[data-theme="light"] #consoleView #page-overview .status-pill.failed { color:#c0392b; background:rgba(192,57,43,.09); }
html[data-theme="light"] #consoleView #page-overview .status-pill.is-active { color:#2f56c4; background:rgba(49,95,216,.1); }
html[data-theme="light"] #consoleView #page-overview .call-icon-btn:hover:not(:disabled) { background:rgba(49,95,216,.06); }

@media (max-width:1100px) {
  #consoleView #page-overview .overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #consoleView #page-overview .overview-stats .metric:nth-child(n+3) { border-top:1px solid var(--work-line); }
  #consoleView #page-overview .overview-stats .metric:nth-child(3) { border-left:1px solid var(--work-line); }
}
@media (max-width:760px) {
  #consoleView #page-overview .overview-records { padding:4px 14px 6px; }
  #consoleView #page-overview .call-thumb { width:56px; height:40px; }
}
@media (prefers-reduced-motion:reduce) {
  #consoleView #page-overview .metric-active.is-live .metric-live, #consoleView #page-overview .status-pill.is-active::before { animation:none; }
}
#consoleView #page-overview .overview-search input,
#consoleView #page-overview .overview-call-toolbar select,
#consoleView #page-overview .overview-call-actions button { font-size:13px; }
#consoleView #page-overview .overview-call-actions button span { font-size:inherit; }  /* was sized for the old glyph icons */

/* Image results share the video preview's height budget so the task rail below stays visible;
   the results panel scrolls rather than clipping when a screen is still too short. */
#consoleView .creative-page .creative-results { overflow-x:hidden; overflow-y:auto; }
#consoleView .creative-gallery-canvas.is-image-preview:not(.is-multiple-image-preview) > img { max-height:clamp(200px,40vh,460px); }
#consoleView .creative-gallery-canvas.is-multiple-image-preview { height:clamp(250px,40vh,480px); max-height:480px; }
@media (max-height:760px) {
  #consoleView .creative-gallery-canvas.is-image-preview:not(.is-multiple-image-preview) > img { max-height:clamp(160px,30vh,260px); }
  #consoleView .creative-gallery-canvas.is-multiple-image-preview { height:clamp(210px,34vh,300px); max-height:300px; }
}

/* ── 2026-11-17 应用页精简：图片就是卡片，名字压在图底，描述悬停才出；每张卡不再挂类型标签和箭头（上面的分类已经说明）；
   分类改成胶囊切换，搜索框是静止的细边框；卡片依次浮现，悬停时一束跟随鼠标的光（app.js 写 --mx/--my）。 ── */
#consoleView #page-apps .apps-section-label { display:none; }
#consoleView #page-apps .apps-browse-head { border-bottom:0; }
#consoleView #page-apps .apps-categories { gap:4px; padding:4px; border:1px solid rgba(255,255,255,.08); border-radius:999px; background:rgba(255,255,255,.03); flex:0 1 auto; }
#consoleView #page-apps .apps-categories button { min-height:34px; padding:0 16px; border-radius:999px; font-size:13px; transition:color .25s,background .25s; }
#consoleView #page-apps .apps-categories button:hover { color:var(--work-text); }
#consoleView #page-apps .apps-categories button[aria-selected="true"] { color:#0b0b0c; background:#f2f1ee; }
#consoleView #page-apps .apps-categories button[aria-selected="true"]::after { display:none; }
#consoleView #page-apps .apps-favorites-toggle { padding:8px 14px; border:1px solid rgba(255,255,255,.08); border-radius:999px; }
#consoleView #page-apps .apps-favorites-toggle[aria-pressed="true"] { border-color:rgba(255,255,255,.3); }

#consoleView #page-apps .apps-search { border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.035); animation:apps-rise .8s cubic-bezier(.2,.8,.2,1) .36s both; transition:border-color .3s,background .3s,box-shadow .3s; }
#consoleView #page-apps .apps-search:hover { border-color:rgba(255,255,255,.2); }
#consoleView #page-apps .apps-search:focus-within { border-color:rgba(255,255,255,.34); background:rgba(255,255,255,.05); box-shadow:0 14px 50px -20px rgba(140,160,255,.35); animation:none; }
#consoleView #page-apps .apps-search-spark { animation:none; color:#bfc3cc; font-size:18px; }
#consoleView #page-apps .apps-discovery::before { opacity:.55; }

#consoleView #page-apps .app-launch-card { --mx:50%; --my:40%; overflow:visible; animation:apps-card-in .7s cubic-bezier(.2,.8,.2,1) both; }
#consoleView #page-apps .app-launch-card:nth-child(2) { animation-delay:.04s } #consoleView #page-apps .app-launch-card:nth-child(3) { animation-delay:.08s }
#consoleView #page-apps .app-launch-card:nth-child(4) { animation-delay:.12s } #consoleView #page-apps .app-launch-card:nth-child(5) { animation-delay:.16s }
#consoleView #page-apps .app-launch-card:nth-child(6) { animation-delay:.2s } #consoleView #page-apps .app-launch-card:nth-child(7) { animation-delay:.24s }
#consoleView #page-apps .app-launch-card:nth-child(8) { animation-delay:.28s } #consoleView #page-apps .app-launch-card:nth-child(9) { animation-delay:.32s }
#consoleView #page-apps .app-launch-card:nth-child(10) { animation-delay:.36s } #consoleView #page-apps .app-launch-card:nth-child(11) { animation-delay:.4s }
#consoleView #page-apps .app-launch-card:nth-child(n+12) { animation-delay:.44s }
#consoleView #page-apps .app-launch-open { position:relative; border-radius:16px; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
#consoleView #page-apps .app-launch-card:hover .app-launch-open { transform:translateY(-4px); }
#consoleView #page-apps .app-launch-art { border:1px solid rgba(255,255,255,.07); border-radius:16px; background:#0c0c0d; box-shadow:0 1px 0 rgba(255,255,255,.04) inset; transition:border-color .35s,box-shadow .45s; }
#consoleView #page-apps .app-launch-card:hover .app-launch-art { border-color:rgba(255,255,255,.22); box-shadow:0 24px 60px -28px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.04); }
#consoleView #page-apps .app-launch-art::before { position:absolute; inset:0; z-index:1; content:""; pointer-events:none; opacity:0; transition:opacity .35s;
  background:radial-gradient(260px circle at var(--mx) var(--my),rgba(255,255,255,.16),transparent 65%); }
#consoleView #page-apps .app-launch-card:hover .app-launch-art::before { opacity:1; }
#consoleView #page-apps .app-launch-art::after { inset:40% 0 0; background:linear-gradient(0deg,rgba(0,0,0,.86),rgba(0,0,0,.38) 55%,transparent); }
#consoleView #page-apps .app-launch-art img { opacity:.92; transition:transform .8s cubic-bezier(.2,.8,.2,1),opacity .35s; }
#consoleView #page-apps .app-launch-card:hover .app-launch-art img { transform:scale(1.045); opacity:1; }
#consoleView #page-apps .app-launch-type,
#consoleView #page-apps .app-launch-arrow,
#consoleView #page-apps .app-launch-tags { display:none; }
#consoleView #page-apps .app-launch-copy { position:absolute; z-index:2; left:16px; right:16px; bottom:14px; height:auto; display:grid; gap:0; padding:0; overflow:visible; pointer-events:none; }
#consoleView #page-apps .app-launch-copy strong { color:#fff; font-size:16px; font-weight:600; letter-spacing:-.01em; text-shadow:0 1px 12px rgba(0,0,0,.5); }
#consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { max-height:0; margin-top:0; opacity:0; color:rgba(255,255,255,.72); font-size:12px; line-height:1.5;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis; transition:max-height .4s cubic-bezier(.2,.8,.2,1),margin .4s,opacity .3s; }
#consoleView #page-apps .app-launch-card:hover .app-launch-copy > span:not(.app-launch-tags),
#consoleView #page-apps .app-launch-open:focus-visible .app-launch-copy > span:not(.app-launch-tags) { max-height:20px; margin-top:4px; opacity:1; }
#consoleView #page-apps .app-favorite { top:10px; right:10px; width:30px; height:30px; color:#fff; background:rgba(0,0,0,.42); backdrop-filter:blur(8px); font-size:15px; }
#consoleView #page-apps .app-favorite:hover { background:rgba(0,0,0,.65); }
@media (min-width:1001px) and (min-height:640px) {
  #consoleView #page-apps .app-launch-grid { --copy-h:0px; }
  #consoleView #page-apps .app-launch-copy { height:auto; padding-top:0; }
  #consoleView #page-apps .app-favorite { top:10px; }
}
@keyframes apps-card-in { from { opacity:0; transform:translateY(16px) scale(.985); } to { opacity:1; transform:none; } }

html[data-theme="light"] #consoleView #page-apps .apps-categories { border-color:var(--work-line); background:#f4f6f9; }
html[data-theme="light"] #consoleView #page-apps .apps-categories button[aria-selected="true"] { color:#fff; background:#202b38; }
html[data-theme="light"] #consoleView #page-apps .apps-favorites-toggle { border-color:var(--work-line); }
html[data-theme="light"] #consoleView #page-apps .apps-search { border-color:var(--work-line-strong); background:#fff; animation:apps-rise .8s cubic-bezier(.2,.8,.2,1) .36s both; }
html[data-theme="light"] #consoleView #page-apps .apps-search:focus-within { border-color:rgba(49,95,216,.45); box-shadow:0 12px 40px -18px rgba(49,95,216,.35); }
html[data-theme="light"] #consoleView #page-apps .app-launch-art { border-color:rgba(20,30,45,.08); }
html[data-theme="light"] #consoleView #page-apps .app-launch-card:hover .app-launch-art { border-color:rgba(20,30,45,.2); box-shadow:0 24px 50px -26px rgba(20,30,45,.45); }
@media (prefers-reduced-motion:reduce) {
  #consoleView #page-apps .app-launch-card, #consoleView #page-apps .apps-search { animation:none; }
  #consoleView #page-apps .app-launch-card:hover .app-launch-open, #consoleView #page-apps .app-launch-card:hover .app-launch-art img { transform:none; }
}
/* 交互调整：描述常显；卡片只在进入页面和切换分类时快速依次出现（--i = 可见顺序，app.js）；悬停快而轻；分类的白底块滑动。 */
#consoleView #page-apps .app-launch-card { animation:none; }
#consoleView #page-apps .app-launch-grid.is-entering .app-launch-card:not(.is-filtered-out) { animation:apps-card-in .42s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * 30ms) both; }
#consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { max-height:none; margin-top:3px; opacity:.7; transition:opacity .2s; }
#consoleView #page-apps .app-launch-card:hover .app-launch-copy > span:not(.app-launch-tags) { margin-top:3px; opacity:.95; }
#consoleView #page-apps .app-launch-open { transition:transform .22s cubic-bezier(.2,.8,.2,1); }
#consoleView #page-apps .app-launch-card:hover .app-launch-open { transform:translateY(-2px); }
#consoleView #page-apps .app-launch-card .app-launch-open:active { transform:scale(.985); transition-duration:.08s; }
#consoleView #page-apps .app-launch-art { transition:border-color .2s,box-shadow .25s; }
#consoleView #page-apps .app-launch-art::before { transition:opacity .2s; }
#consoleView #page-apps .app-launch-art img { transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .2s; }
#consoleView #page-apps .app-launch-card:hover .app-launch-art img { transform:scale(1.03); }
#consoleView #page-apps .apps-categories { position:relative; }
#consoleView #page-apps .apps-categories button { position:relative; z-index:1; transition:color .3s; }
#consoleView #page-apps .apps-categories button[aria-selected="true"] { background:transparent; }
#consoleView #page-apps .apps-categories:has(.apps-cat-hl) button[aria-selected="true"] { background:transparent; }
#consoleView #page-apps .apps-cat-hl { position:absolute; z-index:0; top:4px; bottom:4px; left:0; width:0; border-radius:999px; background:#f2f1ee; pointer-events:none;
  transition:transform .35s cubic-bezier(.3,.9,.3,1),width .35s cubic-bezier(.3,.9,.3,1),opacity .2s; }
#consoleView #page-apps .apps-categories.no-tab .apps-cat-hl { opacity:0; }
html[data-theme="light"] #consoleView #page-apps .apps-categories button[aria-selected="true"] { background:transparent; }
html[data-theme="light"] #consoleView #page-apps .apps-cat-hl { background:#202b38; }
@media (prefers-reduced-motion:reduce) {
  #consoleView #page-apps .app-launch-grid.is-entering .app-launch-card:not(.is-filtered-out) { animation:none; }
  #consoleView #page-apps .apps-cat-hl { transition:none; }
}
/* 搜索框精修：渐变细描边 + 顶部高光；左边渐变四角星放在玻璃小方块里；提交钮平时低调，输入了内容才亮起；示例做成小胶囊，前面一个「试试」。 */
#consoleView #page-apps .apps-search {
  position:relative; gap:6px; padding:0 8px 0 9px; border:1px solid transparent; border-radius:20px;
  background:linear-gradient(180deg,rgba(28,28,32,.96),rgba(16,16,19,.96)) padding-box,
             linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.06) 60%,rgba(255,255,255,.1)) border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 50px -30px rgba(0,0,0,.9);
}
#consoleView #page-apps .apps-search:hover { border-color:transparent; }
#consoleView #page-apps .apps-search:focus-within {
  border-color:transparent; box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 4px rgba(140,160,255,.08),0 20px 60px -26px rgba(120,140,255,.45);
  background:linear-gradient(180deg,rgba(30,30,35,.98),rgba(17,17,20,.98)) padding-box,
             linear-gradient(120deg,rgba(150,175,255,.7),rgba(190,150,255,.55) 50%,rgba(110,220,255,.6)) border-box;
}
#consoleView #page-apps .apps-search-spark {
  width:36px; height:36px; justify-self:center; display:flex; align-items:center; justify-content:center; border-radius:11px; font-size:0; line-height:0; color:transparent;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
#consoleView #page-apps .apps-search-spark::before {
  width:17px; height:17px; content:"";
  background:linear-gradient(135deg,#a9bdff,#c9a8ff 50%,#7fe3ff);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.6 4.9 10 10.5 10.5-5.6.5-10 4.9-10.5 10.5C11.5 16.9 7.1 12.5 1.5 12 7.1 11.5 11.5 7.1 12 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.6 4.9 10 10.5 10.5-5.6.5-10 4.9-10.5 10.5C11.5 16.9 7.1 12.5 1.5 12 7.1 11.5 11.5 7.1 12 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
#consoleView #page-apps .apps-search:focus-within .apps-search-spark::before { transform:rotate(90deg) scale(1.08); }
#consoleView #page-apps .apps-search input { padding:0 6px; font-size:15px; letter-spacing:.01em; }
#consoleView #page-apps .apps-search input::placeholder { color:rgba(235,235,240,.38); }
#consoleView #page-apps .apps-search button {
  width:40px; height:40px; border-radius:12px; color:rgba(255,255,255,.7); background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); transition:background .25s,color .25s,transform .2s,box-shadow .25s;
}
#consoleView #page-apps .apps-search button span { font-size:0; }
#consoleView #page-apps .apps-search button span::before {
  display:block; width:16px; height:16px; content:""; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
#consoleView #page-apps .apps-search button:hover { transform:none; color:#fff; background:rgba(255,255,255,.12); }
#consoleView #page-apps .apps-search:has(input:not(:placeholder-shown)) button { color:#0b0b0c; background:#f2f1ee; box-shadow:0 6px 18px -6px rgba(255,255,255,.35); }
#consoleView #page-apps .apps-search:has(input:not(:placeholder-shown)) button:hover { background:#fff; transform:translateX(1px); }
@media (min-width:1001px) and (min-height:640px) {
  #consoleView #page-apps .apps-search button { width:clamp(34px,4.4vh,40px); height:clamp(34px,4.4vh,40px); }
}

#consoleView #page-apps .apps-examples { gap:8px; }
#consoleView #page-apps .apps-examples::before { content:"试试"; margin-right:2px; color:rgba(235,235,240,.34); font-size:12px; }
#consoleView #page-apps .apps-examples i { display:none; }
#consoleView #page-apps .apps-examples button {
  padding:5px 12px; border:1px solid rgba(255,255,255,.08); border-radius:999px; color:rgba(235,235,240,.66);
  background:rgba(255,255,255,.025); font-size:12px; transition:color .2s,border-color .2s,background .2s;
}
#consoleView #page-apps .apps-examples button:hover { color:#fff; border-color:rgba(255,255,255,.2); background:rgba(255,255,255,.06); }
@media (min-width:1001px) and (min-height:640px) { #consoleView #page-apps .apps-examples { padding-left:6px; margin-top:clamp(8px,1.4vh,14px); } }

html[data-theme="light"] #consoleView #page-apps .apps-search {
  background:linear-gradient(180deg,#fff,#fbfcfe) padding-box,linear-gradient(180deg,rgba(20,30,45,.16),rgba(20,30,45,.07)) border-box;
  box-shadow:inset 0 1px 0 #fff,0 16px 40px -28px rgba(20,30,45,.35);
}
html[data-theme="light"] #consoleView #page-apps .apps-search:focus-within {
  background:linear-gradient(180deg,#fff,#fbfcfe) padding-box,linear-gradient(120deg,rgba(49,95,216,.6),rgba(122,75,230,.5),rgba(12,159,214,.5)) border-box;
  box-shadow:0 0 0 4px rgba(49,95,216,.08),0 18px 44px -24px rgba(49,95,216,.4);
}
html[data-theme="light"] #consoleView #page-apps .apps-search-spark { background:#f2f4f8; box-shadow:inset 0 0 0 1px rgba(20,30,45,.06); }
html[data-theme="light"] #consoleView #page-apps .apps-search-spark::before { background:linear-gradient(135deg,#2f5ae0,#7a4be6 50%,#0c9fd6); }
html[data-theme="light"] #consoleView #page-apps .apps-search input::placeholder { color:#97a1ae; }
html[data-theme="light"] #consoleView #page-apps .apps-search button { color:#5b6676; background:#f2f4f8; box-shadow:inset 0 0 0 1px rgba(20,30,45,.06); }
html[data-theme="light"] #consoleView #page-apps .apps-search:has(input:not(:placeholder-shown)) button { color:#fff; background:#202b38; box-shadow:0 6px 16px -6px rgba(32,43,56,.5); }
html[data-theme="light"] #consoleView #page-apps .apps-examples::before { color:#97a1ae; }
html[data-theme="light"] #consoleView #page-apps .apps-examples button { color:#536174; border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView #page-apps .apps-examples button:hover { color:#202b38; border-color:rgba(20,30,45,.2); }

/* ── 2026-11-17 侧边栏精修：标语提亮；圆点换成线条图标；选中项是柔和渐变底 + 左侧一条发光的渐变竖条；顶部一点光；底部账户卡玻璃质感。 ── */
#consoleView .sidebar { position:sticky; overflow:hidden; background:linear-gradient(180deg,rgba(15,15,18,.97),rgba(10,10,12,.97)); }
#consoleView .sidebar::before { position:absolute; top:-120px; left:-80px; width:320px; height:260px; z-index:0; content:""; pointer-events:none;
  background:radial-gradient(closest-side,rgba(120,140,255,.14),rgba(170,130,255,.06) 55%,transparent); }
#consoleView .sidebar > * { position:relative; z-index:1; }
#consoleView .sidebar-brand { gap:12px; padding-bottom:22px; border-bottom:0; }
#consoleView .sidebar-brand::after { height:1px; margin-top:2px; content:""; background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,.02)); }
#consoleView .sidebar-brand span { color:rgba(240,240,244,.78); font:500 10.5px var(--sans); letter-spacing:.28em; }
#consoleView .nav { gap:18px; }
#consoleView .nav-group { gap:4px; }
#consoleView .nav-group-label { padding:0 12px 4px; color:rgba(235,235,240,.34); font:500 10px var(--sans); letter-spacing:.14em; }
#consoleView .nav button { position:relative; min-height:42px; padding:8px 12px; gap:11px; color:rgba(235,235,240,.62); border:1px solid transparent; font-weight:500; font-size:14px;
  transition:color .2s,background .2s,border-color .2s; }
#consoleView .nav button:hover { color:#fff; border-color:transparent; background:rgba(255,255,255,.04); }
#consoleView .nav button.active { color:#fff; font-weight:600; border-color:rgba(255,255,255,.07); box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  background:linear-gradient(90deg,rgba(255,255,255,.085),rgba(255,255,255,.025)); }
#consoleView .nav button.active::before { position:absolute; left:-1px; top:50%; width:3px; height:18px; margin-top:-9px; border-radius:0 3px 3px 0; content:"";
  background:linear-gradient(180deg,#9db4ff,#c09bff); box-shadow:0 0 10px rgba(160,160,255,.7); }
#consoleView .nav-symbol { width:18px; height:18px; flex:none; border-radius:0; color:inherit; background:currentColor; opacity:.75; box-shadow:none;
  -webkit-mask:var(--nav-icon) center/contain no-repeat; mask:var(--nav-icon) center/contain no-repeat; }
#consoleView .nav button.active .nav-symbol { background:currentColor; opacity:1; box-shadow:none; }
#consoleView .nav button[data-page="overview"] { --nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
#consoleView .nav button[data-page="apps"] { --nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 3c.4 4.6 3.9 8.1 8.5 8.5-4.6.4-8.1 3.9-8.5 8.5-.4-4.6-3.9-8.1-8.5-8.5C8.1 11.1 11.6 7.6 12 3Z'/%3E%3Cpath d='M19 2.5v3M17.5 4h3' stroke-linecap='round'/%3E%3C/svg%3E"); }
#consoleView .nav button[data-page="api"] { --nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5M13.5 4.5l-3 15'/%3E%3C/svg%3E"); }
#consoleView .identity { padding:15px 16px; border:1px solid rgba(255,255,255,.07); border-radius:16px;
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.015)); box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
#consoleView .identity span { color:rgba(235,235,240,.45); font:500 10px var(--sans); letter-spacing:.14em; }
#consoleView .identity strong { font-weight:600; }
#consoleView .identity code { color:rgba(235,235,240,.4); }
@media (max-width:1000px) { #consoleView .sidebar { overflow:visible; } #consoleView .sidebar::before { display:none; } #consoleView .nav button.active::before { display:none; } }

html[data-theme="light"] #consoleView .sidebar { background:rgba(255,255,255,.94); }
html[data-theme="light"] #consoleView .sidebar::before { background:radial-gradient(closest-side,rgba(49,95,216,.08),transparent); }
html[data-theme="light"] #consoleView .sidebar-brand::after { background:linear-gradient(90deg,rgba(20,30,45,.1),rgba(20,30,45,.02)); }
html[data-theme="light"] #consoleView .sidebar-brand span { color:#6b7686; }
html[data-theme="light"] #consoleView .nav-group-label { color:#97a1ae; }
html[data-theme="light"] #consoleView .nav button { color:#526174; }
html[data-theme="light"] #consoleView .nav button:hover { color:#202b38; background:#f1f4f8; }
html[data-theme="light"] #consoleView .nav button.active { color:#202b38; border-color:rgba(20,30,45,.07); background:linear-gradient(90deg,#eef2fb,#f7f9fd); box-shadow:none; }
html[data-theme="light"] #consoleView .nav button.active::before { background:linear-gradient(180deg,#2f5ae0,#7a4be6); box-shadow:0 0 8px rgba(80,100,230,.4); }
html[data-theme="light"] #consoleView .nav button.active .nav-symbol { background:#315fd8; }
html[data-theme="light"] #consoleView .identity { border-color:var(--work-line); background:#fff; box-shadow:none; }

/* 搜索图标：一圈缓慢旋转的彩色光环，中间一颗小白星；点进输入框时转快、变亮。 */
#consoleView #page-apps .apps-search-spark { position:relative; background:none; box-shadow:none; }
#consoleView #page-apps .apps-search-spark::before {
  width:24px; height:24px; border-radius:50%; -webkit-mask:none; mask:none;
  background:conic-gradient(from 0deg,#7ea4ff,#c58cff,#ff8fd2,#ffd08a,#6fe3ff,#7ea4ff);
  -webkit-mask:radial-gradient(circle,transparent 7.5px,#000 8.5px); mask:radial-gradient(circle,transparent 7.5px,#000 8.5px);
  filter:drop-shadow(0 0 6px rgba(160,150,255,.55)); animation:apps-orb 6s linear infinite; transition:filter .3s;
}
#consoleView #page-apps .apps-search-spark::after {
  position:absolute; left:50%; top:50%; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; content:""; background:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.6 4.9 10 10.5 10.5-5.6.5-10 4.9-10.5 10.5C11.5 16.9 7.1 12.5 1.5 12 7.1 11.5 11.5 7.1 12 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.6 4.9 10 10.5 10.5-5.6.5-10 4.9-10.5 10.5C11.5 16.9 7.1 12.5 1.5 12 7.1 11.5 11.5 7.1 12 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:apps-twinkle 3.4s ease-in-out infinite;
}
#consoleView #page-apps .apps-search:focus-within .apps-search-spark::before { transform:none; animation-duration:1.6s; filter:drop-shadow(0 0 9px rgba(170,150,255,.9)); }
@keyframes apps-orb { to { transform:rotate(360deg); } }
html[data-theme="light"] #consoleView #page-apps .apps-search-spark { background:none; box-shadow:none; }
html[data-theme="light"] #consoleView #page-apps .apps-search-spark::before { background:conic-gradient(from 0deg,#2f5ae0,#7a4be6,#d04fa8,#0c9fd6,#2f5ae0); filter:drop-shadow(0 0 4px rgba(80,100,230,.35)); }
html[data-theme="light"] #consoleView #page-apps .apps-search-spark::after { background:#2f5ae0; }
@media (prefers-reduced-motion:reduce) { #consoleView #page-apps .apps-search-spark::before, #consoleView #page-apps .apps-search-spark::after { animation:none; } }
html[data-theme="light"] #consoleView .identity span { color:#8a95a4; }
html[data-theme="light"] #consoleView .identity code { color:#97a1ae; }
/* 小字悬停才出（只在有鼠标的设备上；触屏没有悬停，照常常显）；键盘选中时也出。 */
@media (hover:hover) and (pointer:fine) {
  #consoleView #page-apps .app-launch-copy { transform:translateY(19px); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
  #consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { opacity:0; transition:opacity .25s; }
  #consoleView #page-apps .app-launch-card:hover .app-launch-copy,
  #consoleView #page-apps .app-launch-open:focus-visible .app-launch-copy { transform:none; }
  #consoleView #page-apps .app-launch-card:hover .app-launch-copy > span:not(.app-launch-tags),
  #consoleView #page-apps .app-launch-open:focus-visible .app-launch-copy > span:not(.app-launch-tags) { opacity:.85; transition-delay:.05s; }
}
@media (prefers-reduced-motion:reduce) { #consoleView #page-apps .app-launch-copy { transition:none; } }

/* ── 顶栏：左边当前位置（控制台 / 应用 / 视频生成），右边可用积分 + 充值、浅色、退出。 ── */
body:not(.auth-mode) .topbar { gap:10px; }
.top-crumb { margin-right:auto; display:flex; align-items:center; gap:10px; min-width:0; padding-left:clamp(20px,2.6vw,40px); font-size:13px; white-space:nowrap; }
.top-crumb span { color:rgba(235,235,240,.4); }
.top-crumb i { color:rgba(235,235,240,.2); font-style:normal; }
.top-crumb button { padding:0; border:0; color:rgba(235,235,240,.62); background:none; font:inherit; cursor:pointer; transition:color .2s; }
.top-crumb button:hover { color:#fff; }
.top-crumb strong { overflow:hidden; color:#fff; font-weight:600; text-overflow:ellipsis; }
.top-points { min-height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 5px 0 13px; border:1px solid rgba(255,255,255,.1); border-radius:999px;
  color:#fff; background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025)); font:600 13px var(--sans); font-variant-numeric:tabular-nums; cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06); transition:border-color .2s,background .2s; }
.top-points:hover { border-color:rgba(255,255,255,.22); }
.top-points-dot { width:7px; height:7px; border-radius:50%; background:linear-gradient(135deg,#9db4ff,#c09bff); box-shadow:0 0 8px rgba(160,160,255,.8); }
.top-points small { margin-left:-2px; color:rgba(235,235,240,.5); font-size:11px; font-weight:500; }
.top-points b { height:26px; display:inline-flex; align-items:center; margin-left:4px; padding:0 11px; border-radius:999px; color:#0b0b0c; background:#f2f1ee; font-size:12px; font-weight:600; transition:background .2s; }
.top-points:hover b { background:#fff; }
.topbar .top-actions:not(:has(> :not(.hidden))) { display:none; }
#logoutBtn { min-height:36px; border-radius:999px; }
body.auth-mode .top-crumb, body.auth-mode .top-points { display:none !important; }
@media (max-width:1000px) { .top-crumb { display:none; } .top-points { margin-left:auto; } .top-points small { display:none; } }
html[data-theme="light"] .top-crumb span { color:#97a1ae; }
html[data-theme="light"] .top-crumb i { color:#c3cad3; }
html[data-theme="light"] .top-crumb button { color:#657285; }
html[data-theme="light"] .top-crumb button:hover, html[data-theme="light"] .top-crumb strong { color:#202b38; }
html[data-theme="light"] .top-points { color:#202b38; border-color:var(--work-line, rgba(20,30,45,.1)); background:#fff; box-shadow:none; }
html[data-theme="light"] .top-points small { color:#8a95a4; }
html[data-theme="light"] .top-points b { color:#fff; background:#202b38; }
html[data-theme="light"] .top-points-dot { background:linear-gradient(135deg,#2f5ae0,#7a4be6); box-shadow:0 0 6px rgba(80,100,230,.5); }

/* 小字悬停时最多两行，不截成省略号；名字随描述高度自然上移。 */
@media (hover:hover) and (pointer:fine) {
  #consoleView #page-apps .app-launch-copy, #consoleView #page-apps .app-launch-card:hover .app-launch-copy { transform:none; }
  #consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { max-height:0; margin-top:0; transition:max-height .35s cubic-bezier(.2,.8,.2,1),margin .35s,opacity .25s; }
  #consoleView #page-apps .app-launch-card:hover .app-launch-copy > span:not(.app-launch-tags),
  #consoleView #page-apps .app-launch-open:focus-visible .app-launch-copy > span:not(.app-launch-tags) { max-height:40px; margin-top:4px; }
}
#consoleView #page-apps .app-launch-copy > span:not(.app-launch-tags) { white-space:normal; text-overflow:clip; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

/* ── 2026-11-17 视频生成页精修：和应用页同一套语言。顶部收小、去掉和顶栏重复的余额框；左右两栏同一种卡片、里面都留白；
   生成方式改成胶囊切换；描述框、设置项、按钮统一圆角和底色；右栏结果区加「提示词」卡（复制 / 再用一次）。 ── */
#consoleView #page-studio .studio-balance { display:none; }
#consoleView #page-studio .studio-page-head { align-items:flex-end; margin-bottom:18px; }
#consoleView #page-studio .studio-page-head .eyebrow { display:none; }
#consoleView #page-studio .page-back { display:inline-flex; align-items:center; gap:6px; margin-bottom:10px; padding:5px 11px 5px 9px; border:1px solid rgba(255,255,255,.08); border-radius:999px;
  color:rgba(235,235,240,.62); background:rgba(255,255,255,.03); font-size:12px; transition:color .2s,border-color .2s; }
#consoleView #page-studio .page-back:hover { color:#fff; border-color:rgba(255,255,255,.2); }
#consoleView #page-studio .studio-page-head h1 { margin:0; font-size:clamp(26px,2.2vw,32px); font-weight:650; letter-spacing:-.02em; }
#consoleView #page-studio .studio-page-head p { margin:6px 0 0; color:rgba(235,235,240,.5); font-size:13.5px; }

#consoleView #page-studio .studio-shell { gap:18px; }
#consoleView #page-studio .studio-compose,
#consoleView #page-studio .studio-result { border:1px solid rgba(255,255,255,.07); border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 30px 80px -50px rgba(0,0,0,.9); }
#consoleView #page-studio .studio-compose form { padding:6px 20px 20px; }
#consoleView #page-studio .studio-section { padding-block:16px; border-color:rgba(255,255,255,.05); }
#consoleView #page-studio .studio-section-head { margin-bottom:12px; }
#consoleView #page-studio .studio-section-head > span,
#consoleView #page-studio .studio-section-head > label { color:#fff; font-size:13.5px; font-weight:600; }
#consoleView #page-studio .studio-section-head small { color:rgba(235,235,240,.42); font-size:12px; }

#consoleView #page-studio .studio-mode-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:4px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(0,0,0,.25); }
#consoleView #page-studio .studio-mode-tabs button { min-height:38px; border:0; border-radius:10px; color:rgba(235,235,240,.6); background:transparent; font-size:13px; font-weight:500; box-shadow:none; transition:color .2s,background .25s; }
#consoleView #page-studio .studio-mode-tabs button::after { display:none; }
#consoleView #page-studio .studio-mode-tabs button:hover { color:#fff; }
#consoleView #page-studio .studio-mode-tabs button.active { color:#0b0b0c; background:#f2f1ee; font-weight:600; box-shadow:0 4px 14px -6px rgba(255,255,255,.3); }

#consoleView #page-studio #studioPrompt { min-height:150px; padding:14px 16px; border:1px solid rgba(255,255,255,.08); border-radius:16px; color:#f4f3f0;
  background:rgba(0,0,0,.28); font-size:14.5px; line-height:1.7; transition:border-color .2s,box-shadow .25s,background .2s; }
#consoleView #page-studio #studioPrompt::placeholder { color:rgba(235,235,240,.32); }
#consoleView #page-studio #studioPrompt:focus { outline:0; border-color:rgba(255,255,255,.24); background:rgba(0,0,0,.36); box-shadow:0 0 0 4px rgba(140,160,255,.07); }
#consoleView #page-studio .studio-prompt-tip { display:block; margin-top:10px; color:rgba(235,235,240,.36); font-size:11.5px; }

#consoleView #page-studio .studio-settings { gap:8px; padding-top:16px; }
#consoleView #page-studio .studio-tool-select,
#consoleView #page-studio .studio-tool-quality { min-height:44px; border:1px solid rgba(255,255,255,.08); border-radius:13px; background:rgba(255,255,255,.03); transition:border-color .2s,background .2s; }
#consoleView #page-studio .studio-tool-select:hover,
#consoleView #page-studio .studio-tool-quality:hover { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.05); }
#consoleView #page-studio .studio-tool-select svg,
#consoleView #page-studio .studio-tool-quality > svg { color:rgba(235,235,240,.55); }
#consoleView #page-studio .quality-choice span { border-radius:9px; }
#consoleView #page-studio .studio-advanced { margin-top:8px; border:1px solid rgba(255,255,255,.07); border-radius:13px; background:rgba(255,255,255,.02); }
#consoleView #page-studio .studio-advanced summary { color:rgba(235,235,240,.75); font-size:13px; }
#consoleView #page-studio .studio-submit { min-height:54px; margin-top:16px; border:0; border-radius:16px; color:#0b0b0c;
  background:linear-gradient(180deg,#fbfaf7,#e9e7e2); box-shadow:inset 0 1px 0 #fff,0 14px 34px -16px rgba(255,255,255,.35); font-size:15px; font-weight:650; transition:transform .15s,box-shadow .25s; }
#consoleView #page-studio .studio-submit:hover { box-shadow:inset 0 1px 0 #fff,0 18px 44px -16px rgba(255,255,255,.45); }
#consoleView #page-studio .studio-submit:active { transform:scale(.99); }
#consoleView #page-studio .studio-submit > small { margin-left:10px; padding:3px 9px; border-radius:999px; color:rgba(11,11,12,.6); background:rgba(0,0,0,.06); font:500 11.5px var(--sans); }

#consoleView #page-studio .studio-result { gap:14px; padding:18px; }
#consoleView #page-studio .studio-latest-head { display:flex; align-items:center; justify-content:space-between; padding:0 2px; }
#consoleView #page-studio .studio-latest-head strong { color:#fff; font-size:14px; font-weight:600; }
#consoleView #page-studio .studio-latest-head span { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1px solid rgba(255,255,255,.07); border-radius:999px; color:rgba(235,235,240,.55); font-size:11.5px; }
#consoleView #page-studio .studio-latest-head span i { width:6px; height:6px; border-radius:50%; background:#5ee0a8; box-shadow:0 0 8px rgba(94,224,168,.8); }
#consoleView #page-studio .result-stage { border:1px solid rgba(255,255,255,.06); border-radius:16px; background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.05),transparent 60%),#070708; }
#consoleView #page-studio .result-empty span { width:52px; height:52px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04); backdrop-filter:blur(8px); }
#consoleView #page-studio .result-progress { padding:14px 16px; border:1px solid rgba(255,255,255,.06); border-radius:16px; background:rgba(0,0,0,.22); }
#consoleView #page-studio .result-progress-head span { color:#fff; font-size:13.5px; font-weight:600; }
#consoleView #page-studio .result-progress-head code { color:rgba(235,235,240,.4); font-size:11px; }
#consoleView #page-studio .result-progress-head strong { color:#fff; font:600 15px var(--sans); font-variant-numeric:tabular-nums; }
#consoleView #page-studio .result-progress-rail { height:4px; margin:12px 0 10px; border-radius:99px; background:rgba(255,255,255,.07); }
#consoleView #page-studio .result-progress-rail i { border-radius:99px; background:linear-gradient(90deg,#9db4ff,#c09bff 60%,#7fe3ff); box-shadow:0 0 10px rgba(160,160,255,.6); }
#consoleView #page-studio .result-progress p { margin:0; color:rgba(235,235,240,.5); font-size:12.5px; }
#consoleView #page-studio .studio-task-center { padding:0; border:0; background:transparent; }
#consoleView #page-studio .task-center-head strong { color:#fff; font-size:14px; font-weight:600; }
#consoleView #page-studio .task-center-head small { color:rgba(235,235,240,.42); font-size:11.5px; }
#consoleView #page-studio .task-refresh,
#consoleView #page-studio .task-carousel-button { min-height:32px; padding:0 12px; border:1px solid rgba(255,255,255,.08); border-radius:999px; color:rgba(235,235,240,.7); background:rgba(255,255,255,.03); font-size:12px; }
#consoleView #page-studio .task-refresh:hover,
#consoleView #page-studio .task-carousel-button:hover { color:#fff; border-color:rgba(255,255,255,.2); }
#consoleView #page-studio .studio-task-card { border-color:rgba(255,255,255,.07); border-radius:16px; overflow:hidden; }
#consoleView #page-studio .studio-task-card.selected { border-color:rgba(170,175,255,.45); box-shadow:0 0 0 1px rgba(170,175,255,.2),0 12px 30px -18px rgba(140,150,255,.6); }

/* 提示词卡 */
#consoleView #page-studio .studio-prompt-card { padding:14px 16px 12px; border:1px solid rgba(255,255,255,.06); border-radius:16px; background:rgba(0,0,0,.22); }
#consoleView #page-studio .studio-prompt-card.hidden { display:none; }
#consoleView #page-studio .studio-prompt-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
#consoleView #page-studio .studio-prompt-card-head strong { color:#fff; font-size:13.5px; font-weight:600; }
#consoleView #page-studio .studio-prompt-switch { display:flex; gap:2px; padding:3px; border:1px solid rgba(255,255,255,.07); border-radius:999px; background:rgba(255,255,255,.02); }
#consoleView #page-studio .studio-prompt-switch button { min-height:26px; padding:0 11px; border:0; border-radius:999px; color:rgba(235,235,240,.55); background:transparent; font-size:12px; cursor:pointer; transition:color .2s,background .2s; }
#consoleView #page-studio .studio-prompt-switch button:hover { color:#fff; }
#consoleView #page-studio .studio-prompt-switch button[aria-selected="true"] { color:#0b0b0c; background:#f2f1ee; font-weight:600; }
#consoleView #page-studio .studio-prompt-text { max-height:120px; margin:0; overflow-y:auto; color:rgba(240,240,244,.84); font-size:13px; line-height:1.7; white-space:pre-wrap; word-break:break-word;
  user-select:text; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.14) transparent; }
#consoleView #page-studio .studio-prompt-text.is-note { color:rgba(235,235,240,.4); }
#consoleView #page-studio .studio-prompt-actions { display:flex; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.05); }
#consoleView #page-studio .studio-prompt-actions button { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0 13px; border:1px solid rgba(255,255,255,.09); border-radius:999px;
  color:rgba(240,240,244,.85); background:rgba(255,255,255,.04); font-size:12.5px; cursor:pointer; transition:color .2s,border-color .2s,background .2s; }
#consoleView #page-studio .studio-prompt-actions button:hover:not(:disabled) { color:#fff; border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.07); }
#consoleView #page-studio .studio-prompt-actions button:disabled { opacity:.4; cursor:default; }
#consoleView #page-studio .studio-prompt-actions button.is-done { color:#7ff0bf; border-color:rgba(94,224,168,.35); }
#consoleView #page-studio .studio-prompt-actions svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

html[data-theme="light"] #consoleView #page-studio .page-back { color:#536174; border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView #page-studio .studio-page-head p { color:#657285; }
html[data-theme="light"] #consoleView #page-studio .studio-compose,
html[data-theme="light"] #consoleView #page-studio .studio-result { border-color:var(--work-line); background:#fff; box-shadow:0 20px 60px -40px rgba(20,30,45,.3); }
html[data-theme="light"] #consoleView #page-studio .studio-section-head > span,
html[data-theme="light"] #consoleView #page-studio .studio-section-head > label,
html[data-theme="light"] #consoleView #page-studio .studio-latest-head strong,
html[data-theme="light"] #consoleView #page-studio .task-center-head strong,
html[data-theme="light"] #consoleView #page-studio .result-progress-head span,
html[data-theme="light"] #consoleView #page-studio .result-progress-head strong,
html[data-theme="light"] #consoleView #page-studio .studio-prompt-card-head strong { color:#202b38; }
html[data-theme="light"] #consoleView #page-studio .studio-mode-tabs { border-color:var(--work-line); background:#f4f6f9; }
html[data-theme="light"] #consoleView #page-studio .studio-mode-tabs button { color:#657285; }
html[data-theme="light"] #consoleView #page-studio .studio-mode-tabs button.active { color:#fff; background:#202b38; }
html[data-theme="light"] #consoleView #page-studio #studioPrompt { color:#202b38; border-color:var(--work-line); background:#f8f9fb; }
html[data-theme="light"] #consoleView #page-studio #studioPrompt:focus { border-color:rgba(49,95,216,.4); background:#fff; box-shadow:0 0 0 4px rgba(49,95,216,.08); }
html[data-theme="light"] #consoleView #page-studio .studio-tool-select,
html[data-theme="light"] #consoleView #page-studio .studio-tool-quality,
html[data-theme="light"] #consoleView #page-studio .studio-advanced { border-color:var(--work-line); background:#f8f9fb; }
html[data-theme="light"] #consoleView #page-studio .studio-submit { color:#fff; background:linear-gradient(180deg,#2b3746,#1c2632); box-shadow:0 14px 30px -16px rgba(20,30,45,.6); }
html[data-theme="light"] #consoleView #page-studio .studio-submit > small { color:rgba(255,255,255,.7); background:rgba(255,255,255,.12); }
html[data-theme="light"] #consoleView #page-studio .result-stage { border-color:var(--work-line); background:#f4f6f9; }
html[data-theme="light"] #consoleView #page-studio .result-progress,
html[data-theme="light"] #consoleView #page-studio .studio-prompt-card { border-color:var(--work-line); background:#f8f9fb; }
html[data-theme="light"] #consoleView #page-studio .studio-prompt-text { color:#26364a; }
html[data-theme="light"] #consoleView #page-studio .studio-prompt-switch { border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView #page-studio .studio-prompt-switch button[aria-selected="true"] { color:#fff; background:#202b38; }
html[data-theme="light"] #consoleView #page-studio .studio-prompt-actions button { color:#26364a; border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView #page-studio .studio-latest-head span,
html[data-theme="light"] #consoleView #page-studio .task-refresh,
html[data-theme="light"] #consoleView #page-studio .task-carousel-button { color:#536174; border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView #page-studio .studio-section-head small,
html[data-theme="light"] #consoleView #page-studio .studio-prompt-tip,
html[data-theme="light"] #consoleView #page-studio .result-progress-head code,
html[data-theme="light"] #consoleView #page-studio .task-center-head small,
html[data-theme="light"] #consoleView #page-studio .studio-prompt-text.is-note { color:#8a95a4; }
html[data-theme="light"] #consoleView #page-studio .result-progress p,
html[data-theme="light"] #consoleView #page-studio .studio-advanced summary,
html[data-theme="light"] #consoleView #page-studio .studio-prompt-switch button { color:#536174; }
html[data-theme="light"] #consoleView #page-studio .studio-prompt-switch button[aria-selected="true"] { color:#fff; }
html[data-theme="light"] #consoleView #page-studio #studioPrompt::placeholder { color:#97a1ae; }
html[data-theme="light"] #consoleView #page-studio .studio-tool-select svg,
html[data-theme="light"] #consoleView #page-studio .studio-tool-quality > svg { color:#657285; }

/* 总览：充值入口统一放在顶栏的积分胶囊上，这里的「充值积分」按钮不再重复显示（按钮还在，顶栏点「充值」就是点它）。 */
#consoleView #page-overview .overview-page-head .top-actions { display:none; }

/* 视频生成页标题：顶栏已经有「控制台 / 应用 / 视频生成」，这里只留一行——应用配图小方块 + 名字；说明文字去掉，返回按钮只在手机上留。 */
#consoleView #page-studio .studio-page-head { margin:4px 0 16px; }
#consoleView #page-studio .studio-page-head p { display:none !important; }
#consoleView #page-studio .studio-page-head .page-back { display:none; }
#consoleView #page-studio .studio-page-head h1 { display:flex; align-items:center; gap:12px; font-size:20px; font-weight:600; letter-spacing:-.01em; line-height:1; }
#consoleView #page-studio .studio-page-head h1::before { width:38px; height:38px; flex:none; border:1px solid rgba(255,255,255,.12); border-radius:11px; content:"";
  background:url("/app-art/video-generation.webp") 55% 45% / 170% no-repeat,#0c0c0d; box-shadow:0 6px 18px -8px rgba(0,0,0,.8); }
@media (max-width:1000px) { #consoleView #page-studio .studio-page-head .page-back { display:inline-flex; } }
html[data-theme="light"] #consoleView #page-studio .studio-page-head h1::before { border-color:rgba(20,30,45,.1); box-shadow:0 6px 16px -8px rgba(20,30,45,.4); }
#consoleView #page-studio .studio-page-head { min-height:0; padding-top:0; margin-top:2px; align-items:center; }
#consoleView #page-studio .studio-page-head > div:first-child { padding:0; }
#consoleView #page-studio .studio-section-head > span,
#consoleView #page-studio .studio-section-head > label { flex:none; white-space:nowrap; }
#consoleView #page-studio .studio-section-head { gap:14px; }
#consoleView #page-studio .studio-section-head small { text-align:right; }
@media (min-width:1001px) {
  #consoleView #page-studio .studio-shell { height:calc(100dvh - 148px); }
  #consoleView #page-studio .studio-compose { max-height:calc(100dvh - 148px); }
  #consoleView #page-studio .studio-result { max-height:calc(100dvh - 148px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.14) transparent; }
}


/* ── 2026-11-17 九个应用页（电商复刻、长视频换商品、长视频换人、数字人、视频高清、视频去字幕、图片编辑、音频生成、音乐生成）
   套用视频生成页的样式：一行小标题（配图小方块 + 名字），左右同一种卡片；文件选择做成虚线拖放框 + 白色胶囊按钮；
   输入框、下拉框、切换标签、价格说明、提交按钮、生成记录统一。 ── */
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head { min-height:0; margin:2px 0 16px; padding:0; align-items:center; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head > div { padding:0; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head p, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head .eyebrow { display:none !important; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head .page-back { display:none; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head h1 { display:flex; align-items:center; gap:12px; margin:0; font-size:20px; font-weight:600; letter-spacing:-.01em; line-height:1; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head h1::before { width:38px; height:38px; flex:none; border:1px solid rgba(255,255,255,.12); border-radius:11px; content:"";
  background:#0c0c0d 55% 45% / 170% no-repeat; box-shadow:0 6px 18px -8px rgba(0,0,0,.8); }
#consoleView #page-commerce-remix > .page-head h1::before { background-image:url("/app-art/commerce-remix.webp"); }
#consoleView #page-product-swap > .page-head h1::before { background-image:url("/app-art/commerce-remix.webp"); }
#consoleView #page-person-swap > .page-head h1::before { background-image:url("/app-art/person-swap.webp"); }
#consoleView #page-digital-human > .page-head h1::before { background-image:url("/app-art/digital-human.webp"); }
#consoleView #page-video-enhance > .page-head h1::before { background-image:url("/app-art/video-enhance.webp"); }
#consoleView #page-video-desub > .page-head h1::before { background-image:url("/app-art/video-desub.webp"); }
#consoleView #page-image-edit > .page-head h1::before { background-image:url("/app-art/image-edit.webp"); }
#consoleView #page-audio > .page-head h1::before { background-image:url("/app-art/audio-generation.svg"); }
#consoleView #page-music > .page-head h1::before { background-image:url("/app-art/music-edit.webp"); }
@media (max-width:1000px) { #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head .page-back { display:inline-flex; align-items:center; margin-bottom:10px; padding:5px 11px; border:1px solid rgba(255,255,255,.08); border-radius:999px; font-size:12px; } }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-shell { gap:18px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results { border:1px solid rgba(255,255,255,.07); border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 30px 80px -50px rgba(0,0,0,.9); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form { padding:20px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-controls { border-color:rgba(255,255,255,.05); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form label, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form h2, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-role-head label { color:#fff; font-size:13.5px; font-weight:600; letter-spacing:0; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form label .muted, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form label span.muted { margin-left:6px; color:rgba(235,235,240,.42); font-size:12px; font-weight:400; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form small.muted, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form p.muted, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .field > small { color:rgba(235,235,240,.42); font-size:12px; line-height:1.6; }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file] { width:100%; min-height:52px; padding:9px 10px; border:1px dashed rgba(255,255,255,.14); border-radius:14px; color:rgba(235,235,240,.5);
  background:rgba(0,0,0,.22); font-size:12.5px; cursor:pointer; transition:border-color .2s,background .2s; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file]:hover { border-color:rgba(255,255,255,.3); background:rgba(0,0,0,.3); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file]::file-selector-button { margin-right:12px; padding:8px 15px; border:0; border-radius:999px; color:#0b0b0c; background:#f2f1ee; font:600 12.5px var(--sans); cursor:pointer; transition:background .2s; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file]:hover::file-selector-button { background:#fff; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file]:disabled { opacity:.45; cursor:not-allowed; }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input[type=text], #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input:not([type]), #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form select { border:1px solid rgba(255,255,255,.08); border-radius:14px; color:#f4f3f0;
  background-color:rgba(0,0,0,.28); font-size:14px; transition:border-color .2s,box-shadow .25s,background-color .2s; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea { padding:12px 14px; line-height:1.7; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form select, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input[type=text], #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input:not([type]) { min-height:44px; padding-inline:14px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea::placeholder, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input::placeholder { color:rgba(235,235,240,.32); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea:focus, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input[type=text]:focus, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input:not([type]):focus, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form select:focus {
  outline:0; border-color:rgba(255,255,255,.24); background-color:rgba(0,0,0,.36); box-shadow:0 0 0 4px rgba(140,160,255,.07); }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source-preview, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-image-preview, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-image-previews { border:1px solid rgba(255,255,255,.06); border-radius:16px;
  background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.05),transparent 60%),#070708; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-role { border:1px solid rgba(255,255,255,.07); border-radius:16px; background:rgba(255,255,255,.02); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-role-head span { padding:2px 8px; border:1px solid rgba(255,255,255,.08); border-radius:999px; color:rgba(235,235,240,.5); font-size:11px; }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; width:100%; margin-bottom:16px; padding:4px;
  border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(0,0,0,.25); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) button { min-height:38px; padding:0 12px; border:0; border-radius:10px; color:rgba(235,235,240,.6); background:transparent;
  font-size:13px; font-weight:500; box-shadow:none; transition:color .2s,background .25s; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) button::after { display:none; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) button:hover { color:#fff; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) button.active { color:#0b0b0c; background:#f2f1ee; font-weight:600; box-shadow:0 4px 14px -6px rgba(255,255,255,.3); }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-price, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) #musicPrice { margin:14px 0 0; padding:10px 13px; border:1px solid rgba(255,255,255,.06); border-radius:12px; color:rgba(235,235,240,.68);
  background:rgba(255,255,255,.025); font-size:12.5px; line-height:1.6; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.primary[type=submit] { width:100%; min-height:52px; margin-top:14px; border:0; border-radius:16px; color:#0b0b0c;
  background:linear-gradient(180deg,#fbfaf7,#e9e7e2); box-shadow:inset 0 1px 0 #fff,0 14px 34px -16px rgba(255,255,255,.35); font-size:15px; font-weight:650; transition:transform .15s,box-shadow .25s,opacity .2s; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.primary[type=submit]:hover:not(:disabled) { box-shadow:inset 0 1px 0 #fff,0 18px 44px -16px rgba(255,255,255,.45); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.primary[type=submit]:active:not(:disabled) { transform:scale(.99); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.primary[type=submit]:disabled { opacity:.45; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.small:not([type=submit]) { min-height:32px; padding:0 13px; border:1px solid rgba(255,255,255,.09); border-radius:999px; color:rgba(240,240,244,.85); background:rgba(255,255,255,.04); font-size:12.5px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.small:not([type=submit]):hover { color:#fff; border-color:rgba(255,255,255,.22); }

#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results { padding:18px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .panel-head { padding:0 2px 14px; border-bottom:0; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .panel-head h2 { color:#fff; font-size:14px; font-weight:600; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .panel-head .btn, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) #audioRefresh, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) #musicRefresh { min-height:32px; padding:0 13px; border:1px solid rgba(255,255,255,.08); border-radius:999px; color:rgba(235,235,240,.7); background:rgba(255,255,255,.03); font-size:12px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .panel-head .btn:hover { color:#fff; border-color:rgba(255,255,255,.2); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .empty { border:1px dashed rgba(255,255,255,.1); border-radius:16px; color:rgba(235,235,240,.45); background:rgba(0,0,0,.18); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-task { border-color:rgba(255,255,255,.07); border-radius:16px; background:rgba(0,0,0,.2); overflow:hidden; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-task.is-selected { border-color:rgba(170,175,255,.45); box-shadow:0 0 0 1px rgba(170,175,255,.2),0 12px 30px -18px rgba(140,150,255,.6); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-task .btn.small { border-radius:999px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-gallery-canvas { border-radius:16px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .task-mini-progress { border-radius:99px; background:rgba(255,255,255,.07); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .task-mini-progress i { border-radius:99px; background:linear-gradient(90deg,#9db4ff,#c09bff 60%,#7fe3ff); }

html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) > .page-head h1::before { border-color:rgba(20,30,45,.1); box-shadow:0 6px 16px -8px rgba(20,30,45,.4); }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results { border-color:var(--work-line); background:#fff; box-shadow:0 20px 60px -40px rgba(20,30,45,.3); }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form label, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form h2, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-role-head label, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .panel-head h2 { color:#202b38; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form label .muted, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form small.muted, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form p.muted, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .field > small { color:#8a95a4; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file] { color:#657285; border-color:rgba(20,30,45,.18); background:#f8f9fb; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file]:hover { border-color:rgba(20,30,45,.32); background:#f3f5f8; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) input[type=file]::file-selector-button { color:#fff; background:#202b38; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input[type=text], html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input:not([type]), html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form select { color:#202b38; border-color:var(--work-line); background-color:#f8f9fb; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea:focus, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input[type=text]:focus, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input:not([type]):focus, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form select:focus { border-color:rgba(49,95,216,.4); background-color:#fff; box-shadow:0 0 0 4px rgba(49,95,216,.08); }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) textarea::placeholder, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form input::placeholder { color:#97a1ae; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source-preview, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-image-preview, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-image-previews { border-color:var(--work-line); background:#f4f6f9; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-role { border-color:var(--work-line); background:#fbfcfd; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) { border-color:var(--work-line); background:#f4f6f9; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) button { color:#657285; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) :is(.studio-mode-tabs,.audio-mode-tabs,.music-mode) button.active { color:#fff; background:#202b38; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-price, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) #musicPrice { color:#536174; border-color:var(--work-line); background:#f8f9fb; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.primary[type=submit] { color:#fff; background:linear-gradient(180deg,#2b3746,#1c2632); box-shadow:0 14px 30px -16px rgba(20,30,45,.6); }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .btn.small:not([type=submit]), html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .panel-head .btn, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) #audioRefresh, html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) #musicRefresh { color:#536174; border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-results .empty { color:#8a95a4; border-color:rgba(20,30,45,.14); background:#f8f9fb; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-task { border-color:var(--work-line); background:#fff; }

/* 九页排版收口：内层分区不再自带左右内边距（和直接放在表单里的字段对齐），字段之间留一致的间距。 */
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form { display:flex; flex-direction:column; gap:0; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-controls { margin:0; padding:16px 0; border-width:0; background:none; box-shadow:none; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source { padding-top:4px; border-bottom:1px solid rgba(255,255,255,.05); }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-controls { padding-bottom:0; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source:has(+ .creative-controls) { margin-bottom:4px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .field { display:grid; gap:8px; margin:0 0 18px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form .field:last-of-type { margin-bottom:0; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source { display:grid; gap:10px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form > .field, #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-form > .audio-panel { margin-bottom:18px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-controls > h2 { margin:0 0 4px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-controls > p.muted { margin:0 0 12px; }
#consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-role-grid { gap:10px; margin-bottom:18px; }
html[data-theme="light"] #consoleView :is(#page-commerce-remix,#page-product-swap,#page-person-swap,#page-digital-human,#page-video-enhance,#page-video-desub,#page-image-edit,#page-audio,#page-music) .creative-source { border-color:var(--work-line); }
/* 音乐页「写新歌 / 翻唱」各自隐藏的字段：上面统一的 display 不能盖过它们 */
#consoleView #page-music[data-music-mode="generate"] .music-cover-only,
#consoleView #page-music[data-music-mode="cover"] .music-generate-only { display:none !important; }
html[data-theme="light"] #consoleView .creative-page .creative-role-head span { color:#657285; border-color:var(--work-line); }
#consoleView .creative-page .creative-image-preview > p.muted { width:100%; margin:0; padding:14px 16px; text-align:center; }

/* ── 2026-11-17 视频生成右栏排布：完成后进度卡收成一行（状态 + 编号 | 下载、调用记录）；提示词卡按钮在标题右侧、正文 3 行可展开；
   最近创作是竖版卡片（16:9 缩略图 + 一行标题 + 一行规格），备注/删除悬停才出现。 ── */
#consoleView #page-studio .result-progress { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:14px; padding:14px 16px; }
#consoleView #page-studio .result-progress > * { grid-column:1 / -1; }
#consoleView #page-studio .result-progress-head { grid-column:1; display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
#consoleView #page-studio .result-progress-head > div { display:flex; align-items:center; gap:10px; min-width:0; }
#consoleView #page-studio .result-progress-head span { display:inline-flex; align-items:center; gap:7px; flex:none; }
#consoleView #page-studio .result-progress-head span::before { width:7px; height:7px; border-radius:50%; content:""; background:#9db4ff; box-shadow:0 0 8px rgba(157,180,255,.8); }
#consoleView #page-studio .studio-result.is-complete .result-progress-head span::before { background:#5ee0a8; box-shadow:0 0 8px rgba(94,224,168,.8); }
#consoleView #page-studio .result-progress-head code { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#consoleView #page-studio .result-actions { grid-column:2; grid-row:1; margin:0 !important; gap:8px; }
#consoleView #page-studio .result-actions .btn { min-width:0 !important; min-height:34px !important; padding:0 14px !important; border-radius:999px; font-size:12.5px; }
#consoleView #page-studio .result-actions .btn:not(.primary) { border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.03); color:rgba(240,240,244,.8); }
#consoleView #page-studio .studio-result.is-complete .result-progress-rail,
#consoleView #page-studio .studio-result.is-complete .result-progress p,
#consoleView #page-studio .studio-result.is-complete #studioProgressValue { display:none; }

#consoleView #page-studio .studio-prompt-card { padding:13px 16px 12px; }
#consoleView #page-studio .studio-prompt-card-head { margin-bottom:8px; }
#consoleView #page-studio .studio-prompt-card .studio-prompt-actions { margin:0; padding:0; border:0; gap:6px; }
#consoleView #page-studio .studio-prompt-card .studio-prompt-actions button { min-height:28px; padding:0 10px; font-size:12px; }
#consoleView #page-studio .studio-prompt-text { position:relative; max-height:calc(1.7em * 3); overflow:hidden; color:rgba(240,240,244,.76); font-size:12.5px;
  -webkit-mask-image:linear-gradient(#000 60%, transparent); mask-image:linear-gradient(#000 60%, transparent); }
#consoleView #page-studio .studio-prompt-card:has(.studio-prompt-more.hidden) .studio-prompt-text { -webkit-mask-image:none; mask-image:none; }
#consoleView #page-studio .studio-prompt-card.is-open .studio-prompt-text { max-height:260px; overflow-y:auto; -webkit-mask-image:none; mask-image:none; }
#consoleView #page-studio .studio-prompt-more { margin-top:4px; padding:2px 0; border:0; color:rgba(235,235,240,.55); background:none; font-size:12px; cursor:pointer; }
#consoleView #page-studio .studio-prompt-more:hover { color:#fff; }
#consoleView #page-studio .studio-prompt-more.hidden { display:none; }

#consoleView #page-studio .studio-task-list.is-works { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(180px, calc((100% - 24px) / 3)); grid-template-columns:none;
  gap:12px; padding:2px 2px 8px; overflow-x:auto; scroll-snap-type:x proximity; }
#consoleView #page-studio .studio-work { position:relative; min-width:0; scroll-snap-align:start; }
#consoleView #page-studio .studio-work-main { width:100%; display:grid; gap:9px; padding:0; border:0; color:inherit; background:none; text-align:left; cursor:pointer; }
#consoleView #page-studio .studio-work-thumb { position:relative; display:grid; place-items:center; width:100%; height:auto; aspect-ratio:16 / 9; overflow:hidden; border:1px solid rgba(255,255,255,.07);
  border-radius:14px; background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.06),transparent 60%),#0a0a0b; transition:border-color .2s,box-shadow .25s; }
#consoleView #page-studio .studio-work-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
#consoleView #page-studio .studio-work:hover .studio-work-thumb img { transform:scale(1.04); }
#consoleView #page-studio .studio-work-play { position:relative; z-index:1; width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.3); border-radius:50%;
  color:#fff; background:rgba(0,0,0,.35); backdrop-filter:blur(8px); font-size:11px; opacity:.85; transition:opacity .2s, transform .2s; }
#consoleView #page-studio .studio-work:hover .studio-work-play { opacity:1; transform:scale(1.06); }
#consoleView #page-studio .studio-work-state { position:absolute; z-index:1; top:8px; left:8px; padding:3px 8px; border-radius:999px; color:#fff; background:rgba(0,0,0,.5);
  backdrop-filter:blur(8px); font:500 11px var(--sans); font-style:normal; }
#consoleView #page-studio .studio-work.failed .studio-work-state { color:#ffb0b0; }
#consoleView #page-studio .studio-work.is-active .studio-work-state { color:#c9d4ff; }
#consoleView #page-studio .studio-work-progress { position:absolute; z-index:1; left:10px; right:10px; bottom:9px; height:3px; border-radius:99px; background:rgba(255,255,255,.18); }
#consoleView #page-studio .studio-work-progress i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#9db4ff,#c09bff 60%,#7fe3ff); }
#consoleView #page-studio .studio-work-copy { display:grid; gap:3px; min-width:0; padding:0 2px; }
#consoleView #page-studio .studio-work-copy strong { overflow:hidden; color:#fff; font-size:13px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
#consoleView #page-studio .studio-work-copy small { color:rgba(235,235,240,.45); font-size:11.5px; }
#consoleView #page-studio .studio-work.selected .studio-work-thumb { border-color:rgba(170,175,255,.6); box-shadow:0 0 0 1px rgba(170,175,255,.3),0 12px 30px -16px rgba(140,150,255,.7); }
#consoleView #page-studio .studio-work-actions { position:absolute; z-index:2; top:7px; right:7px; display:flex; gap:4px; opacity:0; transition:opacity .2s; }
#consoleView #page-studio .studio-work:hover .studio-work-actions, #consoleView #page-studio .studio-work:focus-within .studio-work-actions { opacity:1; }
#consoleView #page-studio .studio-work-actions button { width:28px; height:28px; display:grid; place-items:center; padding:0; border:0; border-radius:9px; color:#fff;
  background:rgba(0,0,0,.55); backdrop-filter:blur(8px); cursor:pointer; transition:background .2s,color .2s; }
#consoleView #page-studio .studio-work-actions button:hover { background:rgba(0,0,0,.8); }
#consoleView #page-studio .studio-work-actions button[data-delete-studio-task]:hover { color:#ff9a9a; }
#consoleView #page-studio .studio-work-actions svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
@media (hover:none) { #consoleView #page-studio .studio-work-actions { opacity:1; } }
html[data-theme="light"] #consoleView #page-studio .studio-work-thumb { border-color:var(--work-line); background:#eef1f5; }
html[data-theme="light"] #consoleView #page-studio .studio-work-copy strong { color:#202b38; }
html[data-theme="light"] #consoleView #page-studio .studio-work-copy small { color:#8a95a4; }
html[data-theme="light"] #consoleView #page-studio .result-actions .btn:not(.primary) { color:#26364a; border-color:var(--work-line); background:#fff; }
html[data-theme="light"] #consoleView #page-studio .studio-prompt-text { color:#26364a; }
#consoleView #page-studio .studio-work-thumb > i.studio-work-state { top:8px; left:8px; bottom:auto; height:auto; padding:3px 8px; font-size:11px; }
#consoleView #page-studio .studio-work-thumb { min-height:0; }
#consoleView #page-studio .studio-work-thumb::before { z-index:0; }
#consoleView #page-studio .result-actions .btn { display:inline-flex !important; align-items:center; justify-content:center; line-height:1; }
/* API Key 列表：状态、撤销、删除排成一行；删除是低调的描边按钮，悬停变红 */
#consoleView .key-card .key-actions { display:flex; align-items:center; gap:8px; flex:none; }
#consoleView .key-card .delete-key { border-color:rgba(255,255,255,.1); color:rgba(235,235,240,.6); background:transparent; }
#consoleView .key-card .delete-key:hover { color:#ff9a9a; border-color:rgba(255,122,122,.4); background:rgba(255,92,96,.06); }
html[data-theme="light"] #consoleView .key-card .delete-key { color:#657285; border-color:var(--work-line); }
html[data-theme="light"] #consoleView .key-card .delete-key:hover { color:#d04545; border-color:rgba(208,69,69,.35); }
