/* Creative OS · refined studio layer with brand green (2026-10-22)
   Loaded last on the main workbench, after polish-ui.css. Visual only:
   no DOM, ids, events or business logic depend on this file. Remove the
   <link> (and refined-motion.js) in index.html to roll back the layout,
   components and motion. Secondary accent literals (violet, blue, navy)
   were neutralised separately by tools/recolor-accent.py; the brand lime
   is kept.

   Direction
   - Neutral, Apple-like base; the brand lime (#b7f34a) is the one hue,
     reserved for primary actions, the current place and progress.
     Lime is always a fill under dark ink, never text on a light ground.
   - No hairlines: surfaces separate by tone and soft depth, not borders.
   - Calm type: system faces, medium weights, no heavy bold.
   - Motion after Google Flow / Material 3: emphasized-decelerate
     entrances, a gliding nav indicator, a composer that opens on focus,
     lifted tiles, results that resolve from blur. Transform / opacity /
     filter on small elements only; all of it off under reduced motion.
   - No AI clichés: no gradients, sparkles, glows or shimmer.
*/

/* ---------- Tokens ---------- */
:root,
html[data-ui-skin] {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Creative UI", "PingFang SC", "Microsoft YaHei UI", "Source Han Sans SC", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Creative UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --r-ease: cubic-bezier(.2, 0, 0, 1);          /* M3 emphasized */
  --r-out: cubic-bezier(.05, .7, .1, 1);         /* M3 emphasized decelerate */
  --r-spring: cubic-bezier(.34, 1.25, .64, 1);   /* small overshoot for controls */
  --r-fast: .15s;
  --r-mid: .24s;
  --r-slow: .42s;
  --r-card: 18px;
  --r-ctl: 10px;
  --r-sm: 8px;

  /* Light */
  --page: #f5f5f7;
  --side-bg: #f5f5f7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f5f5f7;
  --fill: rgba(0, 0, 0, .05);
  --fill-2: rgba(0, 0, 0, .035);
  --fill-hover: rgba(0, 0, 0, .07);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;
  --soft: #a1a1a6;
  --line: rgba(0, 0, 0, .05);
  --line-strong: rgba(0, 0, 0, .08);
  --hair: rgba(0, 0, 0, .14);
  --hair-strong: rgba(0, 0, 0, .28);
  --brand: #b7f34a;
  --brand-hover: #aee83f;
  --brand-ink: #14200a;
  --brand-ring: rgba(120, 170, 30, .45);
  --select: #1d1d1f;
  --select-ink: #ffffff;
  /* --accent is also read by legacy rules as a text colour: keep it ink here. */
  --accent: #1d1d1f;
  --accent-2: #424245;
  --accent-ink: #ffffff;
  --accent-wash: rgba(0, 0, 0, .05);
  --accent-select: rgba(0, 0, 0, .06);
  --accent-select-ink: #1d1d1f;
  --success: #248a3d;
  --warn: #b25000;
  --danger: #d70015;
  --danger-wash: rgba(215, 0, 21, .07);
  --bar-bg: rgba(245, 245, 247, .8);
  --toast-bg: rgba(29, 29, 31, .92);
  --toast-ink: #f5f5f7;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 28px rgba(0, 0, 0, .045);
  --lift-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .12);
  --ring: 0 0 0 3px rgba(0, 0, 0, .12);
  --shadow: var(--card-shadow);
  --float: var(--lift-shadow);
  --radius: var(--r-card);
  --radius-sm: var(--r-ctl);
  --scroll-thumb: rgba(0, 0, 0, .18);
  --scroll-thumb-hover: rgba(0, 0, 0, .3);
  --scroll-thumb-active: rgba(0, 0, 0, .42);
  --scroll-track: transparent;
  --polish-hover: var(--fill-2);
  --polish-focus: var(--ring);
}

/* Dark */
html.creative-ui,
html.creative-ui[data-ui-skin] {
  --page: #000000;
  --side-bg: #000000;
  --surface: #0f0f10;
  --surface-strong: #18181a;
  --surface-soft: #0b0b0c;
  --fill: rgba(255, 255, 255, .06);
  --fill-2: rgba(255, 255, 255, .04);
  --fill-hover: rgba(255, 255, 255, .09);
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #8e8e93;
  --soft: #6e6e73;
  --line: rgba(255, 255, 255, .05);
  --line-strong: rgba(255, 255, 255, .09);
  --hair: rgba(255, 255, 255, .16);
  --hair-strong: rgba(255, 255, 255, .34);
  --brand: #9aa6ff;
  --brand-hover: #c9d0ff;
  --brand-ink: #0b0d1a;
  --brand-ring: rgba(154, 166, 255, .45);
  --select: #f5f5f7;
  --select-ink: #0b0b0c;
  --accent: #9aa6ff;
  --accent-2: #d2d2d7;
  --accent-ink: #0b0d1a;
  --accent-wash: rgba(154, 166, 255, .08);
  --accent-select: rgba(255, 255, 255, .08);
  --accent-select-ink: #ffffff;
  --success: #30d158;
  --warn: #ffd60a;
  --danger: #ff453a;
  --danger-wash: rgba(255, 69, 58, .1);
  --bar-bg: rgba(0, 0, 0, .72);
  --toast-bg: rgba(44, 44, 46, .94);
  --toast-ink: #f5f5f7;
  --card-shadow: none;
  --lift-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  --ring: 0 0 0 3px rgba(154, 166, 255, .32);
  --scroll-thumb: rgba(255, 255, 255, .14);
  --scroll-thumb-hover: rgba(255, 255, 255, .24);
  --scroll-thumb-active: rgba(255, 255, 255, .34);
  --polish-hover: var(--fill-2);
  --polish-focus: var(--ring);
}

/* ---------- No hairlines ----------
   Separation comes from surface tone and depth. Widths stay, so nothing
   reflows; only the colour goes. Focus and selection use rings instead.
   Shapes drawn with borders (logo, spinners, resize grip) are exempt. */
html[data-ui-skin] .app *:not(:is(.side-head strong, .node-resize-handle, .asset-thumb-state, .upload-thumb, .btn.is-reversing, button[aria-busy="true"], .loader-orbit, .infinite-canvas-loading i, .drop:not(.has-image), .video-upload-zone, .agent-advanced-panel)),
html[data-ui-skin] .app *:not(:is(.side-head strong, .node-resize-handle, .asset-thumb-state, .upload-thumb, .btn.is-reversing, button[aria-busy="true"], .loader-orbit, .infinite-canvas-loading i, .drop:not(.has-image), .video-upload-zone, .agent-advanced-panel))::before,
html[data-ui-skin] .app *:not(:is(.side-head strong, .node-resize-handle, .asset-thumb-state, .upload-thumb, .btn.is-reversing, button[aria-busy="true"], .loader-orbit, .infinite-canvas-loading i, .drop:not(.has-image), .video-upload-zone, .agent-advanced-panel))::after,
html[data-ui-skin] :is(.popover, .announcement-drawer, .feedback-panel, .mobile-sheet, .auth-overlay) *,
html[data-ui-skin] :is(.popover-card, .announcement-drawer, .feedback-panel, .mobile-sheet) {
  border-color: transparent !important;
}
html[data-ui-skin] .app hr { opacity: 0; }
html[data-ui-skin] .app *:not(:focus-visible) { outline-color: transparent !important; }

/* ---------- Typography ---------- */
html[data-ui-skin], html[data-ui-skin] body,
html[data-ui-skin] button, html[data-ui-skin] input,
html[data-ui-skin] textarea, html[data-ui-skin] select { font-family: var(--font); }
html[data-ui-skin] body {
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
/* Original type ran 700–820; cap it so the page reads calm, not loud. */
html[data-ui-skin] .app :is(b, strong, h1, h2, h3, h4, th) { font-weight: 600 !important; }
html[data-ui-skin] .app :is(button, label, summary, .chip, select) { font-weight: 500 !important; }
html[data-ui-skin] .topbar .title h2,
html[data-ui-skin] #pageTitle {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink);
}
html[data-ui-skin] .card-title strong,
html[data-ui-skin] .head h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
}
html[data-ui-skin] .field > label,
html[data-ui-skin] .field label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Frame ---------- */
html[data-ui-skin] .app,
html[data-ui-skin] .main { background: var(--page); }
html[data-ui-skin] .panel,
html[data-ui-skin] .view {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-ui-skin] .app-legal-footer { background: transparent !important; color: var(--soft); }

/* ---------- Density: the work area gets the room ---------- */
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .main { grid-template-rows: 52px minmax(0, 1fr) 24px !important; }
  html:not(.mobile-screen)[data-ui-skin] .topbar { min-height: 52px !important; height: 52px; padding: 0 14px 0 16px !important; }
  html:not(.mobile-screen)[data-ui-skin] .app-legal-footer { min-height: 24px; height: 24px; padding: 0 16px !important; font-size: 11px; }
  html:not(.mobile-screen)[data-ui-skin] .view:not([data-view="infinite"]) { padding: 10px 14px 14px !important; }
  html:not(.mobile-screen)[data-ui-skin] .view > .head { margin-bottom: 10px !important; min-height: 0 !important; }
  html:not(.mobile-screen)[data-ui-skin] .agent-layout { grid-template-columns: 208px minmax(0, 1fr) !important; gap: 10px !important; }
  html:not(.mobile-screen)[data-ui-skin] .agent-side { gap: 10px !important; }
  html:not(.mobile-screen)[data-ui-skin] :is(.txt-workspace, .img-workspace) { gap: 10px !important; }
  html:not(.mobile-screen)[data-ui-skin] .txt-workspace { grid-template-columns: minmax(340px, 380px) minmax(0, 1fr) !important; }
  html:not(.mobile-screen)[data-ui-skin] .card-title { min-height: 44px; padding-top: 0; padding-bottom: 0; }
  html:not(.mobile-screen)[data-ui-skin] .card-body { padding: 10px 12px 12px !important; }
  #assetResults { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; }
  /* Card headers: compact actions so titles never wrap. */
  html:not(.mobile-screen)[data-ui-skin] .card-title .btn { min-height: 28px; padding: 0 11px; font-size: 12px; white-space: nowrap; }
  html:not(.mobile-screen)[data-ui-skin] .card-title .quick-row { gap: 6px; flex-wrap: nowrap; }
  html:not(.mobile-screen)[data-ui-skin] .card-title strong { white-space: nowrap; }
}
@media (min-width: 1180px) {
  /* Image-to-image: references and prompt narrow, results take the rest. */
  html:not(.mobile-screen)[data-ui-skin] .img-three-column .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html:not(.mobile-screen)[data-ui-skin] .img-three-column { grid-template-columns: 340px 340px minmax(0, 1fr) !important; gap: 10px !important; }
}

/* ---------- Side navigation ---------- */
html[data-ui-skin] .side { background: var(--side-bg); box-shadow: none; }
html[data-ui-skin] .nav button {
  color: var(--muted);
  background: transparent;
  border-radius: var(--r-ctl);
  box-shadow: none;
  transition: background-color var(--r-fast) var(--r-ease), color var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .nav button::before { display: none; }
html[data-ui-skin] .nav button:hover { color: var(--ink); background: var(--fill-2); transform: none; }
html[data-ui-skin] .nav button.active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
/* Rail (after the Iconsax sidebar reference): a floating capsule panel,
   groups split by hairlines; the current page sits in a softly glowing
   circle (pill on the light skin) with a glowing bar on the rail edge.
   Glow is a desaturated mint-to-sky, never saturated green. */
html[data-ui-skin] { --glow-a: #6c7cff; --glow-b: #8cc8ff; }
html[data-ui-skin] .nav .nav-icon,
html[data-ui-skin] .nav button.active .nav-icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: transform .3s var(--r-spring);
}
html[data-ui-skin] .nav .nav-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
html[data-ui-skin] .nav button:active .nav-icon { transform: scale(.9); }
html[data-ui-skin] .nav button { position: relative; color: var(--muted); }
html[data-ui-skin] .nav button.active { color: var(--ink) !important; }
html[data-ui-skin] .nav button:hover { color: var(--ink); }

@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .side {
    margin: 10px 0 10px 10px;
    height: calc(100% - 20px);
    min-height: 0;
    padding: 14px 0 !important;
    border-radius: 28px !important;
    overflow: visible;
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .side {
    background: linear-gradient(180deg, rgba(34, 34, 38, .62), rgba(12, 12, 14, .7)) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px rgba(0, 0, 0, .55) !important;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .side {
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 50px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .04) !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .side-head { margin-bottom: 0 !important; padding-bottom: 14px !important; min-height: 0 !important; box-shadow: inset 0 -1px 0 var(--line); }
  html:not(.mobile-screen)[data-ui-skin] .nav { padding-top: 14px; }
  /* Group dividers: create / build / library. */
  html:not(.mobile-screen)[data-ui-skin] .nav button:is([data-nav="workflow"], [data-nav="assets"]) { margin-top: 15px; }
  html:not(.mobile-screen)[data-ui-skin] .nav button:is([data-nav="workflow"], [data-nav="assets"])::before {
    content: "";
    display: block !important;
    position: absolute;
    top: -10px;
    left: 50%;
    width: 28px;
    height: 1px;
    background: var(--line-strong);
    transform: translateX(-50%);
  }
  /* Edge bar for the current page. */
  html:not(.mobile-screen)[data-ui-skin] .nav button::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--glow-a), var(--glow-b));
    box-shadow: 0 0 10px rgba(140, 200, 255, .7), 0 0 2px rgba(255, 255, 255, .6);
    opacity: 0;
    transform: translateY(-50%) scaleY(.3);
    transition: opacity .25s var(--r-ease), transform .35s var(--r-out);
  }
  html:not(.mobile-screen)[data-ui-skin] .nav button.active::after { opacity: 1; transform: translateY(-50%) scaleY(1); }

  /* Dark: icon-only circles. Labels stay for screen readers (aria-label). */
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .app { grid-template-columns: 86px minmax(0, 1fr) !important; }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav { gap: 6px; justify-items: center; }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    width: 44px !important;
    height: 44px;
    min-height: 44px !important;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: background-color .2s var(--r-ease), box-shadow .3s var(--r-ease), color .2s var(--r-ease);
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button b {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button:hover:not(.active) { background: rgba(255, 255, 255, .05) !important; }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button.active {
    background:
      radial-gradient(120% 90% at 50% 115%, rgba(140, 200, 255, .32), rgba(140, 200, 255, 0) 70%),
      radial-gradient(90% 70% at 50% -10%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%),
      rgba(255, 255, 255, .04) !important;
    box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .32), 0 0 22px rgba(120, 190, 255, .22) !important;
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button::after { left: -21px; }

  /* Light: labelled pills in a floating white panel. */
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .app { grid-template-columns: 196px minmax(0, 1fr) !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .side { padding: 14px 10px !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav { gap: 4px; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav button {
    min-height: 40px !important;
    height: 40px;
    padding: 0 12px !important;
    column-gap: 11px;
    border-radius: 999px !important;
    background: transparent !important;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav button b { font-size: 13px; font-weight: 500 !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav button:hover:not(.active) { background: rgba(0, 0, 0, .035) !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav button.active {
    background: linear-gradient(90deg, rgba(140, 200, 255, .16), rgba(108, 124, 255, .1)) !important;
    box-shadow: inset 0 0 0 1px rgba(110, 170, 230, .28), 0 6px 18px rgba(110, 170, 230, .14) !important;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav button::after { left: -10px; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .nav button:is([data-nav="workflow"], [data-nav="assets"])::before { left: 4px; right: 4px; width: auto; transform: none; }
}

/* ---------- Top bar ---------- */
html[data-ui-skin] .topbar {
  background: var(--bar-bg) !important;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-ui-skin] .topbar .status .chip,
html[data-ui-skin] .topbar .status > button {
  min-height: 30px;
  padding: 0 13px;
  color: var(--ink-2) !important;
  background: transparent !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
  font-size: 12px;
  transition: background-color var(--r-fast) var(--r-ease), color var(--r-fast) var(--r-ease), box-shadow var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .topbar .status .chip:hover,
html[data-ui-skin] .topbar .status > button:hover { color: var(--ink) !important; background: var(--fill-2) !important; box-shadow: inset 0 0 0 1px var(--hair-strong) !important; }
html[data-ui-skin] .announcement-trigger { color: var(--ink-2) !important; }
html[data-ui-skin] .announcement-trigger svg,
html[data-ui-skin] .announcement-trigger .icon { color: inherit; }
html[data-ui-skin] .announcement-trigger svg :is(path, circle, line, polyline, rect) { stroke: currentColor !important; }
/* Theme toggle glyph: neutral, it is a setting, not a brand moment. */
html[data-ui-skin] #themeToggleBtn > span { filter: grayscale(1); opacity: .8; }

/* Status dots: small, semantic, no glow. */
html[data-ui-skin] .chip::before {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: none;
  background: var(--soft);
}
html[data-ui-skin] .chip.ok::before { background: var(--success); }
html[data-ui-skin] .chip.warn::before { background: var(--warn); }
html[data-ui-skin] .chip.error::before { background: var(--danger); }
html[data-ui-skin] #themeToggleBtn::before { display: none; }
html[data-ui-skin] #licenseStatusPill::before { margin: -1px 7px 0 0; }
html[data-ui-skin] .topbar #licenseStatusPill { gap: 0; }

/* ---------- Cards ---------- */
html[data-ui-skin] :is(.card, .agent-side > section, section.video-panel, article.service, article.result, section.feishu-demo, .video-remake-panel) {
  background: var(--surface) !important;
  border-radius: var(--r-card) !important;
  box-shadow: var(--card-shadow) !important;
}
html[data-ui-skin] .video-panel-body { background: transparent !important; }
html[data-ui-skin] .card-title { background: transparent; box-shadow: none; }
html[data-ui-skin] :is(.empty-result, .action-reference, .node-body, .prompt-text, .service-note, .feishu-demo-form,
  .video-analysis-empty, .asset-thumb-shell, .agent-side .thumb, .feishu-demo label, .video-generation-state, .agent-advanced-panel) {
  background: var(--surface-soft) !important;
  box-shadow: none !important;
  border-radius: 14px;
}
html.creative-ui[data-ui-skin] :is(.empty-result, .action-reference, .node-body, .prompt-text, .service-note, .feishu-demo-form,
  .video-analysis-empty, .asset-thumb-shell, .agent-side .thumb, .feishu-demo label, .video-generation-state, .agent-advanced-panel) {
  background: rgba(255, 255, 255, .03) !important;
}
html[data-ui-skin] .empty-result { color: var(--muted); }
html.creative-ui[data-ui-skin] :is(section.chat, .chat-feed) { background: transparent !important; box-shadow: none !important; }
html:not(.creative-ui)[data-ui-skin] section.chat { background: var(--surface) !important; box-shadow: var(--card-shadow) !important; border-radius: var(--r-card); }
html[data-ui-skin] .chat-feed { background-image: none !important; }
html[data-ui-skin] .view .head { background: transparent !important; box-shadow: none !important; }

/* Pre-existing: long rows (chip strips) pushed card bodies 7px past the card edge. */
html[data-ui-skin] .view .card-body { min-width: 0; }
html[data-ui-skin] .view .card-body > * { min-width: 0; max-width: 100%; }
/* Dark workflow toolbar is a card; let it sit on the page instead of a strip. */
html.creative-ui[data-ui-skin] .workflow-simple aside.card { background: transparent !important; box-shadow: none !important; }

/* ---------- Buttons ----------
   Editorial capsules: secondary actions are hairline pills, the primary
   action is a solid pill (white on dark, ink on light) with an arrow that
   turns brand lime on hover. Cards and fields stay borderless. */
html[data-ui-skin] .btn {
  min-height: 32px;
  padding: 0 15px;
  color: var(--ink) !important;
  background: transparent !important;
  background-image: none !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
  font-size: 12.5px;
  transition: background-color var(--r-fast) var(--r-ease), box-shadow var(--r-fast) var(--r-ease), color var(--r-fast) var(--r-ease), opacity var(--r-fast) var(--r-ease), transform var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .btn:hover { background: var(--fill-2) !important; box-shadow: inset 0 0 0 1px var(--hair-strong) !important; transform: none; }
html[data-ui-skin] .btn:active:not(:disabled) { transform: scale(.97); }
html[data-ui-skin] .btn:disabled { opacity: .4; }
html[data-ui-skin] .btn.primary {
  min-height: 36px;
  padding: 0 16px 0 20px;
  color: var(--page) !important;
  background: var(--ink) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  letter-spacing: .01em;
}
html[data-ui-skin] .btn.primary::after {
  content: "\2197";
  position: static;
  inset: auto;
  display: inline-block;
  margin-left: 9px;
  background: none;
  font-size: 13px;
  line-height: 1;
  transform: none;
  transition: transform .35s var(--r-spring);
}
html[data-ui-skin] .btn.primary:hover { color: inherit; }
html[data-ui-skin] .btn.primary:hover::after { transform: translate(2px, -2px); }
html[data-ui-skin] .btn.primary:active:not(:disabled) { transform: scale(.96); }
html[data-ui-skin] .btn.primary:disabled { opacity: .4; }
html[data-ui-skin] .btn.danger { color: var(--danger) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 40%, transparent) !important; }
html[data-ui-skin] .btn.danger:hover { background: var(--danger-wash) !important; }
/* The sparkle glyph on "generate" buttons reads as an AI cliché. */
html[data-ui-skin] .btn[data-run]::before { display: none !important; }

html[data-ui-skin] :is(.workflow-template-active, .workflow-template-active:hover) {
  color: var(--page) !important;
  background: var(--ink) !important;
  box-shadow: none !important;
}

/* ---------- Chips and segmented controls ---------- */
html[data-ui-skin] .action-chip,
html[data-ui-skin] .view .chip {
  color: var(--ink-2) !important;
  background: transparent !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
  font-size: 12px;
  transition: background-color var(--r-fast) var(--r-ease), color var(--r-fast) var(--r-ease), box-shadow var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .action-chip:hover,
html[data-ui-skin] .view .chip:hover { color: var(--ink) !important; background: var(--fill-2) !important; box-shadow: inset 0 0 0 1px var(--hair-strong) !important; }
html[data-ui-skin] :is(.action-chip.active, .action-chip.is-active, .view .chip.active, .action-chip.active:hover, .action-chip.is-active:hover, .view .chip.active:hover) {
  color: var(--page) !important;
  background: var(--ink) !important;
  box-shadow: none !important;
  animation: refined-pop .35s var(--r-spring);
}

/* Tab pairs read like the reference's CREATE / EXPLORE switch. */
html[data-ui-skin] :is(.asset-source-tabs, .video-workspace-tabs) {
  padding: 0;
  gap: 6px;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-ui-skin] :is(.asset-source-tab, .video-workspace-tabs button) {
  color: var(--ink-2) !important;
  background: transparent !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
  transition: background-color var(--r-mid) var(--r-out), color var(--r-fast) var(--r-ease), box-shadow var(--r-fast) var(--r-ease);
}
html[data-ui-skin] :is(.asset-source-tab, .video-workspace-tabs button):hover { color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--hair-strong) !important; }
html[data-ui-skin] :is(.asset-source-tab.active, .video-workspace-tabs button.active, .asset-source-tab.active:hover, .video-workspace-tabs button.active:hover) {
  animation: refined-pop .35s var(--r-spring);
  color: var(--page) !important;
  background: var(--ink) !important;
  box-shadow: none !important;
}

html[data-ui-skin] .video-mode-option {
  border-radius: 14px;
  background: var(--surface-soft) !important;
  box-shadow: none !important;
  transition: background-color var(--r-fast) var(--r-ease), box-shadow var(--r-fast) var(--r-ease);
}
html.creative-ui[data-ui-skin] .video-mode-option { background: rgba(255, 255, 255, .03) !important; }
html[data-ui-skin] .video-mode-option:hover { background: var(--fill) !important; }
html[data-ui-skin] .video-mode-option.active {
  background: var(--surface) !important;
  box-shadow: 0 0 0 1.5px var(--select) !important;
}

/* Stepper */
html[data-ui-skin] .count-control {
  overflow: hidden;
  border-radius: var(--r-ctl) !important;
  background: var(--fill-2) !important;
  box-shadow: none !important;
}
html[data-ui-skin] .count-step {
  color: var(--ink-2) !important;
  background: transparent !important;
  transition: background-color var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .count-step:hover:not(:disabled) { color: var(--ink) !important; background: var(--fill) !important; }
html[data-ui-skin] .view .count-control input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
html[data-ui-skin] .view .count-control input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
html[data-ui-skin] .view .count-control input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus {
  background: transparent !important;
  box-shadow: none !important;
  font-variant-numeric: tabular-nums;
}

/* ---------- Icons ----------
   One family everywhere: Lucide (ISC, see licenses/lucide), 24px grid,
   round caps. Inline icons in index.html and the canvas use the same set;
   these masks cover icons that only exist in CSS. */
html[data-ui-skin] .btn[data-reverse]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M7 8h8M7 12h10M7 16h6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M7 8h8M7 12h10M7 16h6'/%3E%3C/svg%3E"); width: 14px; height: 14px; flex-basis: 14px; }
html[data-ui-skin] .btn[data-paste]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1ZM8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10M17 10l4 4-4 4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1ZM8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10M17 10l4 4-4 4'/%3E%3C/svg%3E"); width: 14px; height: 14px; flex-basis: 14px; }
html[data-ui-skin] .btn[data-save-results]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10L12 15L17 10M12 15L12 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10L12 15L17 10M12 15L12 3'/%3E%3C/svg%3E"); width: 14px; height: 14px; flex-basis: 14px; }
html[data-ui-skin] .btn[data-clear-results]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11L10 17M14 11L14 17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11L10 17M14 11L14 17'/%3E%3C/svg%3E"); width: 14px; height: 14px; flex-basis: 14px; }
html[data-ui-skin] .agent-choice-trigger > i,
html[data-ui-skin] .agent-output-summary > i {
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 0;
  background: currentColor;
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-ui-skin] .nav button[data-mobile-menu] .nav-icon { font-size: 0; display: grid; place-items: center; }
html[data-ui-skin] .nav button[data-mobile-menu] .nav-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Fields ---------- */
html[data-ui-skin] .view input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
html[data-ui-skin] .view select,
html[data-ui-skin] .view textarea,
html[data-ui-skin] .popover :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
html[data-ui-skin] .feedback-panel :is(input, textarea) {
  color: var(--ink) !important;
  background-color: var(--fill-2) !important;
  border-radius: var(--r-ctl);
  box-shadow: none;
  transition: background-color var(--r-fast) var(--r-ease), box-shadow var(--r-fast) var(--r-ease);
}
html:not(.mobile-screen)[data-ui-skin] .view :is(select, input:not([type="checkbox"]):not([type="radio"])) { font-size: 13.5px; }
html[data-ui-skin] .view select option { color: var(--ink); background: var(--surface); }
html[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):hover { background-color: var(--fill) !important; }
html[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus,
html[data-ui-skin] .popover :is(input, select, textarea):focus,
html[data-ui-skin] .feedback-panel :is(input, textarea):focus {
  outline: none;
  background-color: var(--surface) !important;
  box-shadow: var(--ring) !important;
}
html.creative-ui[data-ui-skin] .view :is(input, select, textarea):focus { background-color: #1c1c1e !important; }
html[data-ui-skin] ::placeholder { color: var(--soft); opacity: 1; }
html[data-ui-skin] :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--brand); }

/* Upload slots: a quiet filled well instead of a dashed outline. */
html[data-ui-skin] .drop:not(.has-image) {
  color: var(--muted) !important;
  background: var(--surface-soft) !important;
  border-radius: 14px;
  box-shadow: none !important;
  transition: background-color var(--r-fast) var(--r-ease), color var(--r-fast) var(--r-ease);
}
html.creative-ui[data-ui-skin] .drop:not(.has-image) { background: rgba(255, 255, 255, .03) !important; }
html[data-ui-skin] .drop:not(.has-image):hover,
html[data-ui-skin] .drop.dragover,
html[data-ui-skin] .drop.is-dragover,
html[data-ui-skin] .drop.drag-over {
  color: var(--ink) !important;
  background: var(--fill) !important;
}
html[data-ui-skin] .drop.has-image { border-radius: 14px; }
html[data-ui-skin] .video-upload-zone { background: var(--surface-soft) !important; box-shadow: none !important; border-radius: 14px; }
html.creative-ui[data-ui-skin] .video-upload-zone { background: rgba(255, 255, 255, .03) !important; }

/* ---------- Agent chat ---------- */
html[data-ui-skin] .bubble.agent,
html[data-ui-skin] .bubble.agent .agent-message-shell {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-ui-skin] .bubble.agent .agent-message-shell { padding-top: 5px; padding-left: 4px; }
html[data-ui-skin] .bubble.user {
  color: var(--ink) !important;
  background: var(--fill) !important;
  background-image: none !important;
  border-radius: 18px 18px 6px 18px;
  box-shadow: none !important;
}
html[data-ui-skin] .bubble.user .agent-message-action,
html[data-ui-skin] .agent-message-action {
  color: var(--ink-2) !important;
  background: var(--fill-2) !important;
  border-radius: var(--r-sm);
  box-shadow: none !important;
}
html[data-ui-skin] .agent-message-action:hover { transform: none; background: var(--fill-hover) !important; }
html[data-ui-skin] .agent-message-body { font-size: 15px; line-height: 1.72; color: var(--ink); }
html[data-ui-skin] .agent-version-badge { color: var(--ink-2) !important; background: var(--fill) !important; box-shadow: none !important; }

/* Assistant mark: a plain monogram instead of the sparkle. */
html[data-ui-skin] .agent-message-avatar {
  position: relative;
  color: var(--brand-ink) !important;
  background: var(--brand) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}
html[data-ui-skin] .agent-message-avatar svg { opacity: 0; }
html[data-ui-skin] .agent-message-avatar::after {
  content: "C";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 14px/1 var(--font-display);
  letter-spacing: -.02em;
}

/* Prompt bar after the reference: a translucent slab with one hairline. */
html[data-ui-skin] .composer,
html[data-ui-skin] .composer.agent-composer {
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px var(--hair), 0 10px 40px rgba(0, 0, 0, .06) !important;
  transition: box-shadow var(--r-mid) var(--r-ease);
}
html.creative-ui[data-ui-skin] .composer { background: rgba(22, 22, 24, .72) !important; box-shadow: inset 0 0 0 1px var(--hair), 0 20px 60px rgba(0, 0, 0, .5) !important; }
html[data-ui-skin] .composer:focus-within { box-shadow: inset 0 0 0 1px var(--hair-strong), 0 18px 50px rgba(0, 0, 0, .1) !important; }
html.creative-ui[data-ui-skin] .composer:focus-within { box-shadow: inset 0 0 0 1px var(--hair-strong), 0 24px 70px rgba(0, 0, 0, .6) !important; }
/* Flow-style: the prompt opens up while you write (desktop only). */
html:not(.mobile-screen)[data-ui-skin] .view .composer textarea { transition: min-height .45s var(--r-spring); }
html:not(.mobile-screen)[data-ui-skin] .view .composer:focus-within textarea { min-height: 112px; }
html[data-ui-skin] .view .composer textarea,
html[data-ui-skin] .view .composer textarea:hover,
html[data-ui-skin] .view .composer textarea:focus {
  background: transparent !important;
  box-shadow: none !important;
  resize: none;
  font-size: 15px;
  line-height: 1.6;
}
html[data-ui-skin] .composer select,
html[data-ui-skin] .view .composer select:hover { background-color: transparent !important; }
/* Each picker's wrapper is the capsule; the trigger inside stays clear. */
html[data-ui-skin] .composer .agent-tool {
  background: transparent !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
  transition: box-shadow var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .composer .agent-tool:hover { box-shadow: inset 0 0 0 1px var(--hair-strong) !important; }
html[data-ui-skin] .composer .agent-choice-trigger { background: transparent !important; box-shadow: none !important; }
html[data-ui-skin] .composer :is(.agent-media-trigger, .voice-input-button, .agent-advanced-toggle, .agent-output-summary) {
  color: var(--ink-2) !important;
  background: transparent !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
}
html[data-ui-skin] .composer :is(.agent-media-trigger, .voice-input-button, .agent-advanced-toggle, .agent-output-summary):hover { color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--hair-strong) !important; }

/* Night-sky backdrop (refined-motion.js): fixed behind the whole workspace.
   Full strength on arrival, then it settles to a faint backdrop. */
.cos-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s var(--r-ease);
}
html.creative-ui[data-ui-skin] .cos-sky.is-visible { opacity: 1; }
html.creative-ui[data-ui-skin] .cos-sky.is-visible.is-settled { opacity: .78; transition-duration: 9s; }
html:not(.creative-ui) .cos-sky { display: none; }
/* Everything sits on the sky: the frame is transparent, surfaces are
   slightly translucent (no backdrop blur on large areas, which would
   re-blur every frame), bars keep their thin frosted glass. */
html.creative-ui[data-ui-skin] body { background: #000 !important; }
html.creative-ui[data-ui-skin] .app { position: relative; z-index: 1; background: transparent !important; }
html.creative-ui[data-ui-skin] :is(.main, .panel, .view, .app-legal-footer) { background: transparent !important; }
html.creative-ui[data-ui-skin] .topbar { background: rgba(0, 0, 0, .35) !important; }
html.creative-ui[data-ui-skin] {
  --surface: rgba(16, 16, 18, .74);
  --surface-strong: rgba(26, 26, 29, .8);
}
html.creative-ui[data-ui-skin] :is(.workflow-canvas, #workflowCanvas) { background: transparent !important; }



html[data-ui-skin] .directory-item {
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .directory-item:hover { background: var(--fill-2) !important; }
html[data-ui-skin] .directory-item.active { background: var(--fill) !important; }
html[data-ui-skin] .directory-item.active::after,
html[data-ui-skin] .directory-item .dot { background: var(--success) !important; }

/* ---------- Workflow ---------- */
html[data-ui-skin] .workflow-canvas {
  background-color: transparent !important;
  border-radius: var(--r-card);
  box-shadow: none !important;
}
html[data-ui-skin] article.node {
  background: var(--surface) !important;
  border-radius: 16px;
  box-shadow: var(--card-shadow) !important;
  transition: box-shadow var(--r-mid) var(--r-ease);
}
html.creative-ui[data-ui-skin] article.node { background: var(--surface-strong) !important; }
html[data-ui-skin] article.node.selected { box-shadow: var(--card-shadow), 0 0 0 1.5px var(--ink) !important; }
html[data-ui-skin] .node-head { background: transparent !important; box-shadow: none !important; }
html[data-ui-skin] article.node .node-body { background: transparent !important; }
html[data-ui-skin] .node-num {
  color: var(--ink-2) !important;
  background: var(--fill) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-weight: 600;
}
html[data-ui-skin] .node-delete { color: var(--muted) !important; background: transparent !important; }
html[data-ui-skin] .node-delete:hover { color: var(--danger) !important; background: var(--danger-wash) !important; }
html[data-ui-skin] .react-flow__edge-path,
html[data-ui-skin] .workflow-canvas svg path { stroke: var(--soft); }

/* ---------- Overlays ---------- */
html[data-ui-skin] .toast {
  color: var(--toast-ink) !important;
  background: var(--toast-bg) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18) !important;
  font-size: 13px;
  padding: 11px 18px;
  transition: opacity var(--r-mid) var(--r-ease), transform var(--r-slow) var(--r-out) !important;
}
html[data-ui-skin] .toast:not(.show) { transform: translate(-50%, 10px); }
html[data-ui-skin] :is(.popover-card, .announcement-drawer, .feedback-panel) {
  background: var(--surface) !important;
  box-shadow: var(--lift-shadow) !important;
}
html.creative-ui[data-ui-skin] :is(.popover-card, .announcement-drawer, .feedback-panel) { background: #1c1c1e !important; }
html[data-ui-skin] .popover-card { border-radius: 20px; }
html[data-ui-skin] :is(.announcement-backdrop, .feedback-backdrop) { background: rgba(0, 0, 0, .28); }

/* Video remake step indicator: hairline capsules, lime for the current step. */
html[data-ui-skin] .video-step {
  color: var(--muted) !important;
  background: transparent !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
}
html[data-ui-skin] .video-step i {
  color: var(--ink-2) !important;
  background: var(--fill) !important;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
html[data-ui-skin] .video-step.active { color: var(--ink) !important; background: var(--fill-2) !important; box-shadow: none !important; }
html[data-ui-skin] .video-step.active i { color: var(--brand-ink) !important; background: var(--brand) !important; }
html[data-ui-skin] .video-step.done i { color: var(--page) !important; background: var(--ink) !important; }

/* ---------- Floating surfaces ----------
   Every menu, popover, dialog and drawer shares one surface: near-black (or
   white) with a single hairline and a deep, soft shadow; rows are 10px-radius
   with a quiet hover fill. Selection is a neutral fill, never a colour wash. */
html[data-ui-skin] :is(#agentMediaMenu, .agent-mention-menu, .agent-output-popover, #agentChoicePopover, .popover-card, .announcement-drawer, .feedback-panel, .auth-card) {
  color: var(--ink) !important;
  background: #ffffff !important;
  background-image: none !important;
  border-radius: 16px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .16) !important;
}
html.creative-ui[data-ui-skin] :is(#agentMediaMenu, .agent-mention-menu, .agent-output-popover, #agentChoicePopover, .popover-card, .announcement-drawer, .feedback-panel, .auth-card) {
  background: #141416 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 28px 70px rgba(0, 0, 0, .7) !important;
}
html[data-ui-skin] :is(#agentMediaMenu, .agent-mention-menu, .agent-output-popover, #agentChoicePopover) { padding: 6px !important; }
html[data-ui-skin] :is(#agentMediaMenu, .agent-mention-menu, .agent-output-popover, #agentChoicePopover):is(:popover-open, :not([hidden])) {
  animation: refined-float .26s var(--r-out) both;
}
@keyframes refined-float {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
html[data-ui-skin] :is(#agentMediaMenu button, .agent-choice-option, .agent-mention-card, .reference-picker button) {
  min-height: 36px;
  border-radius: 10px !important;
  color: var(--ink-2) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  transform: none !important;
  transition: background-color var(--r-fast) var(--r-ease), color var(--r-fast) var(--r-ease);
}
html[data-ui-skin] :is(#agentMediaMenu button, .agent-choice-option, .agent-mention-card, .reference-picker button):hover { color: var(--ink) !important; background: var(--fill-2) !important; }
html[data-ui-skin] #agentChoicePopover .agent-choice-option:is([aria-selected="true"], .active) {
  color: var(--ink) !important;
  background: var(--fill) !important;
}
html[data-ui-skin] #agentChoicePopover .agent-choice-option:is([aria-selected="true"], .active) > :last-child:not(:first-child) {
  color: var(--muted) !important;
  font-size: 11px;
  font-weight: 500 !important;
}
html[data-ui-skin] :is(.agent-output-heading, .popover-head) {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-ui-skin] :is(.agent-output-heading strong, .popover-head h3, .popover-head strong, #popTitle) { font-family: var(--font-display); font-size: 15px; letter-spacing: -.01em; }
html[data-ui-skin] .popover-body { background: transparent !important; }
html[data-ui-skin] .popover { background: rgba(0, 0, 0, .45) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-ui-skin] .popover.show .popover-card { animation: refined-float .3s var(--r-out) both; }
html[data-ui-skin] :is(.popover-card, .feedback-panel, .announcement-drawer) [data-close-pop],
html[data-ui-skin] :is(.popover-card, .feedback-panel, .announcement-drawer) :is(.close, .popover-close, [aria-label="关闭"]) {
  border-radius: 999px !important;
  color: var(--ink-2) !important;
  background: var(--fill-2) !important;
  box-shadow: none !important;
}

/* Long-form dialog copy (privacy policy, terms, model notes). */
html[data-ui-skin] .popover .popover-body { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
html[data-ui-skin] .popover .popover-body :is(h3, h4, h5, strong) { color: var(--ink); }
html[data-ui-skin] .popover .popover-body :is(h3, h4, h5) { margin: 20px 0 6px; font-size: 14px; letter-spacing: -.005em; }
html[data-ui-skin] .popover .popover-body p { margin: 0 0 10px; }
html[data-ui-skin] .popover .popover-body ul { margin: 0 0 12px; padding-left: 18px; }
html[data-ui-skin] .popover .popover-body li { margin: 3px 0; }
html[data-ui-skin] .popover .popover-body li::marker { color: var(--soft); }

/* ---------- Motion ---------- */
@keyframes refined-in {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes refined-pop {
  0% { transform: scale(.94); }
  100% { transform: none; }
}
@keyframes refined-resolve {
  from { opacity: 0; filter: blur(14px); transform: scale(1.06); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes refined-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
html[data-ui-skin] .view.active { animation: refined-in var(--r-slow) var(--r-out) both; }
html[data-ui-skin] .view.active[data-view="infinite"] { animation-name: none; }
/* Cards settle in one after another when a page opens. Only on pages that
   render once; video / assets / settings re-render on input and would replay. */
html[data-ui-skin] .view.active:is([data-view="txt"], [data-view="img"]) .card { animation: refined-in .5s var(--r-out) both; }
html[data-ui-skin] .view.active:is([data-view="txt"], [data-view="img"]) .card:nth-child(2) { animation-delay: .05s; }
html[data-ui-skin] .view.active:is([data-view="txt"], [data-view="img"]) .card:nth-child(3) { animation-delay: .1s; }

/* Result and asset tiles: lift on hover, the picture eases in a touch. */
html[data-ui-skin] article.result {
  transition: transform .45s var(--r-spring), box-shadow .35s var(--r-ease) !important;
}
html[data-ui-skin] article.result .mock-img { overflow: hidden; }
html[data-ui-skin] article.result .mock-img img { transition: transform .9s var(--r-ease); }
@media (hover: hover) {
  html[data-ui-skin] article.result:not(.loading):hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 22px 50px rgba(0, 0, 0, .14) !important;
  }
  html.creative-ui[data-ui-skin] article.result:not(.loading):hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .55) !important; }
  html[data-ui-skin] article.result:not(.loading):hover .mock-img img { transform: scale(1.035); }
}
/* A finished result resolves from blur, once (refined-motion.js sets the class). */
html[data-ui-skin] article.result.is-resolving .mock-img img { animation: refined-resolve .9s var(--r-out) both; }

/* Generating: calm sheen across the slot, thin lime progress, no sparkle. */
html[data-ui-skin] article.result.loading .mock-img {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}
html.creative-ui[data-ui-skin] article.result.loading .mock-img { background: rgba(255, 255, 255, .03) !important; }
html[data-ui-skin] article.result.loading .mock-img::before,
html[data-ui-skin] article.result.loading .progress::before,
html[data-ui-skin] article.result.loading .progress::after { display: none !important; }
html[data-ui-skin] article.result.loading .progress { background: transparent !important; }
html[data-ui-skin] article.result.loading .mock-img::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: 1;
  transform: none;
  background: linear-gradient(100deg, transparent 30%, var(--fill) 50%, transparent 70%);
  animation: refined-scan 1.8s linear infinite;
  pointer-events: none;
}
html[data-ui-skin] .result-loader::before { display: none !important; }
html[data-ui-skin] .loader-orbit { display: none !important; }
html[data-ui-skin] .loader-status { color: var(--ink) !important; font-weight: 500 !important; }
html[data-ui-skin] .loader-copy span { color: var(--muted) !important; }
html[data-ui-skin] .loader-track { height: 3px !important; background: var(--fill) !important; box-shadow: none !important; }
html[data-ui-skin] .loader-bar { background: var(--brand) !important; box-shadow: none !important; }
html[data-ui-skin] .loader-value { color: var(--muted) !important; font-weight: 500 !important; font-variant-numeric: tabular-nums; }

/* ---------- Focus ---------- */
html[data-ui-skin] :is(button, a, [role="button"], summary):focus-visible {
  outline: none !important;
  box-shadow: var(--ring) !important;
}

/* ---------- Workflow page ----------
   Row 1: templates as one segmented control. Row 2: what you can add on the
   left, what acts on the selection on the right. Zoom floats in the canvas
   corner like the infinite canvas. Same structure in both skins. */
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head { justify-content: flex-start !important; margin-bottom: 8px !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head > .quick-row {
    display: inline-flex !important;
    flex-wrap: nowrap;
    gap: 0 !important;
    padding: 2px;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px var(--hair);
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head > .quick-row .btn {
    min-height: 26px !important;
    height: 26px;
    padding: 0 11px !important;
    border-radius: 7px !important;
    color: var(--muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head > .quick-row .btn:hover { color: var(--ink) !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head > .quick-row .btn.workflow-template-active { color: var(--page) !important; background: var(--ink) !important; }

  /* One toolbar row on wide screens: templates sit on the right of the tools. */
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple { position: relative; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head { position: absolute !important; top: 10px; right: 14px; z-index: 6; margin: 0 !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell > aside .card-body { padding-right: 500px !important; min-height: 30px; }
  /* Main-video adds a node-jump bar inside the head: keep two rows then. */
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple > .head:has(#workflowVideoNavigation:not([hidden])) {
    position: static !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px;
    margin-bottom: 8px !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple:has(> .head #workflowVideoNavigation:not([hidden])) .workflow-shell > aside .card-body { padding-right: 0 !important; }
  html:not(.mobile-screen)[data-ui-skin] #workflowVideoNavigation .quick-row .btn {
    min-height: 26px !important;
    height: 26px;
    padding: 0 9px !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
  }
  html:not(.mobile-screen)[data-ui-skin] #workflowVideoNavigation .quick-row .btn:hover { color: var(--ink) !important; background: var(--fill-2) !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell { position: relative; display: flex !important; flex-direction: column; gap: 8px !important; grid-template-columns: none !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell > aside.card {
    position: static !important;
    transform: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
    order: 0;
    animation: none !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell > aside .card-title { display: none !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell > aside .card-body {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px !important;
    padding: 0 !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-tool-group:not([hidden]) { display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell > aside .btn {
    width: auto;
    min-height: 28px !important;
    height: 28px;
    padding: 0 11px !important;
    font-size: 11.5px !important;
    white-space: nowrap;
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple #wfArrange { margin-left: 10px; position: relative; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple #wfArrange::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--hair);
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple #workflowCanvas { order: 1; flex: 1 1 auto; min-height: 420px; border-radius: 14px !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-zoom-controls {
    position: absolute !important;
    inset: auto auto 12px 12px !important;
    z-index: 5;
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    margin: 0 !important;
    padding: 3px;
    border-radius: 12px;
    background: var(--bar-bg);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: inset 0 0 0 1px var(--hair), 0 8px 24px rgba(0, 0, 0, .18);
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-zoom-controls .btn {
    min-height: 26px !important;
    height: 26px;
    min-width: 26px;
    padding: 0 8px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
    font-variant-numeric: tabular-nums;
  }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-zoom-controls .btn:hover { background: var(--fill) !important; }
}

/* ---------- Liquid action buttons ----------
   Key actions (generate, send and run) are glass pills with a slowly flowing
   lime / mint / sky interior, a soft oval highlight and a chromatic rim that
   turns. While they work ("thinking") the flow speeds up. Other primary
   buttons carry the same green flow without the rim. Light skin follows the
   white glass pill with a drifting colour bloom. No red anywhere.
   Everything is background layers on the button itself: no extra markup. */
@property --cos-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --cos-x { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --cos-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@keyframes cos-spin { to { --cos-a: 360deg; } }
@keyframes cos-flow {
  0% { --cos-x: 12%; --cos-y: 20%; }
  50% { --cos-x: 58%; --cos-y: 85%; }
  100% { --cos-x: 88%; --cos-y: 35%; }
}

html[data-ui-skin] .btn.primary {
  --flow: 18s;
  --spin: 12s;
  border: 1.5px solid transparent !important;
  color: #0c1406 !important;
  font-weight: 600 !important;
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(70% 140% at var(--cos-x) 55%, #c4e89a, rgba(196, 232, 154, 0) 72%) padding-box,
    radial-gradient(60% 140% at calc(100% - var(--cos-x)) 45%, #9ad8cf, rgba(154, 216, 207, 0) 72%) padding-box,
    radial-gradient(50% 130% at 90% var(--cos-y), #8cc4ff, rgba(140, 196, 255, 0) 70%) padding-box,
    linear-gradient(90deg, #d3eabb, #b6d6f6) padding-box,
    linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .15)) border-box !important;
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(20, 40, 60, .16), 0 6px 22px rgba(120, 180, 240, .16) !important;
  animation: cos-flow var(--flow) ease-in-out infinite alternate;
  transition: transform var(--r-fast) var(--r-ease), box-shadow .3s var(--r-ease), filter .3s var(--r-ease);
}
html[data-ui-skin] .btn.primary:is(:hover, :focus-visible):not(:disabled) {
  --flow: 9s;
  filter: saturate(1.08) brightness(1.03);
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(20, 40, 60, .16), 0 8px 30px rgba(120, 180, 240, .3) !important;
}
html[data-ui-skin] .btn.primary::after { color: inherit !important; }

/* Key actions add the sky bloom and the turning chromatic rim. */
html[data-ui-skin] .btn.primary:is([data-run], .agent-send, [data-video-generate], .video-primary-action, #workflowBatchGenerate, [data-design-action="generate"], #licenseActivateBtn) {
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(70% 140% at var(--cos-x) 55%, #c4e89a, rgba(196, 232, 154, 0) 72%) padding-box,
    radial-gradient(55% 140% at calc(100% - var(--cos-x)) 40%, #9ad8cf, rgba(154, 216, 207, 0) 72%) padding-box,
    radial-gradient(45% 120% at 88% var(--cos-y), #86c2ff, rgba(134, 194, 255, 0) 70%) padding-box,
    linear-gradient(90deg, #d6ebc0, #c9e0fb) padding-box,
    conic-gradient(from var(--cos-a), #c4e89a, #9ad8cf, #86c2ff, #ffffff, #dcefff, #9ad8cf, #c4e89a) border-box !important;
  animation: cos-flow var(--flow) ease-in-out infinite alternate, cos-spin var(--spin) linear infinite;
}
/* Thinking: the same pill, flowing fast while the task runs. */
html[data-ui-skin] .btn.primary:is([aria-busy="true"], .is-reversing, .agent-send:disabled) {
  --flow: 4s;
  --spin: 3.2s;
  opacity: 1 !important;
  cursor: progress;
}
html[data-ui-skin] .btn.primary:disabled:not([aria-busy="true"]):not(.is-reversing):not(.agent-send) {
  opacity: .42 !important;
  animation-play-state: paused;
  filter: grayscale(.4);
}
html[data-ui-skin] .btn.primary:active:not(:disabled) { transform: scale(.97); }

/* Light skin: white glass pill with a drifting green / sky bloom. */
html:not(.creative-ui)[data-ui-skin] .btn.primary {
  color: #1d1d1f !important;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(38% 150% at calc(45% + var(--cos-x) * .45) 70%, rgba(196, 232, 154, .75), rgba(196, 232, 154, 0) 70%) padding-box,
    radial-gradient(30% 130% at calc(100% - var(--cos-x) * .35) 25%, rgba(154, 216, 207, .7), rgba(154, 216, 207, 0) 70%) padding-box,
    linear-gradient(180deg, #ffffff, #eef0f3) padding-box,
    linear-gradient(180deg, #ffffff, rgba(0, 0, 0, .08)) border-box !important;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), inset 0 -6px 14px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .08) !important;
}
html:not(.creative-ui)[data-ui-skin] .btn.primary:is(:hover, :focus-visible):not(:disabled) {
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), inset 0 -6px 14px rgba(0, 0, 0, .05), 0 12px 30px rgba(70, 140, 220, .16), 0 1px 3px rgba(0, 0, 0, .08) !important;
}
html:not(.creative-ui)[data-ui-skin] .btn.primary:is([data-run], .agent-send, [data-video-generate], .video-primary-action, #workflowBatchGenerate, [data-design-action="generate"], #licenseActivateBtn) {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(40% 160% at calc(40% + var(--cos-x) * .5) 72%, rgba(196, 232, 154, .85), rgba(196, 232, 154, 0) 70%) padding-box,
    radial-gradient(32% 140% at calc(100% - var(--cos-x) * .4) 22%, rgba(154, 216, 207, .8), rgba(154, 216, 207, 0) 70%) padding-box,
    radial-gradient(28% 120% at 92% var(--cos-y), rgba(124, 186, 255, .85), rgba(124, 196, 255, 0) 70%) padding-box,
    linear-gradient(180deg, #ffffff, #eef0f3) padding-box,
    conic-gradient(from var(--cos-a), #ffffff, rgba(196, 232, 154, .9), #ffffff, rgba(124, 196, 255, .8), #ffffff, rgba(154, 216, 207, .8), #ffffff) border-box !important;
}

/* ---------- Flat nesting ----------
   Only cards carry a surface. Anything nested inside (option groups,
   empty states, notes, node bodies, settings drawers) sits directly on the
   card: grouped by a small label and spacing, separated by a hairline when
   needed. Fields are hairline outlines, not grey blocks. */
html[data-ui-skin] :is(.action-reference, .prompt-text, .service-note, .feishu-demo-form, .feishu-demo label,
  .video-analysis-empty, .video-generation-state, .agent-advanced-panel, .empty-result, .agent-side .thumb),
html.creative-ui[data-ui-skin] :is(.action-reference, .prompt-text, .service-note, .feishu-demo-form, .feishu-demo label,
  .video-analysis-empty, .video-generation-state, .agent-advanced-panel, .empty-result, .agent-side .thumb) {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-ui-skin] .action-reference { padding: 0 !important; }
html[data-ui-skin] .agent-advanced-panel { border-top: 1px solid var(--line) !important; border-radius: 0 !important; }
html[data-ui-skin] :is(.empty-result, .video-analysis-empty) { color: var(--soft) !important; }
html[data-ui-skin] .agent-side .thumb { box-shadow: inset 0 0 0 1px var(--hair) !important; }

/* Upload and drop targets: a dashed hairline is the one honest "drop here". */
html[data-ui-skin] .view :is(.drop:not(.has-image), .video-upload-zone),
html.creative-ui[data-ui-skin] .view :is(.drop:not(.has-image), .video-upload-zone) {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px dashed var(--hair) !important;
}
html[data-ui-skin] :is(.drop:not(.has-image), .video-upload-zone):hover,
html[data-ui-skin] .drop:is(.dragover, .is-dragover, .drag-over) {
  color: var(--ink) !important;
  background: var(--fill-2) !important;
  border-color: var(--hair-strong) !important;
}

/* Fields: transparent with a hairline; the card shows through. */
html[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), select, textarea),
html[data-ui-skin] :is(.popover, .feedback-panel) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background-color: transparent !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important;
}
html[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):hover { background-color: transparent !important; box-shadow: inset 0 0 0 1px var(--hair-strong) !important; }
html[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus,
html[data-ui-skin] :is(.popover, .feedback-panel) :is(input, select, textarea):focus {
  background-color: transparent !important;
  box-shadow: inset 0 0 0 1px var(--hair-strong), var(--ring) !important;
}
html[data-ui-skin] .view select option { background: var(--surface); }
html[data-ui-skin] .count-control { background: transparent !important; box-shadow: inset 0 0 0 1px var(--hair) !important; }
html[data-ui-skin] .view .count-control input:not([type="checkbox"]) { box-shadow: none !important; }
html[data-ui-skin] .view .composer :is(textarea, select) { box-shadow: none !important; }

/* Choice cards (video modes): hairline, selected = ink outline. */
html[data-ui-skin] .video-mode-option,
html.creative-ui[data-ui-skin] .video-mode-option { background: transparent !important; box-shadow: inset 0 0 0 1px var(--hair) !important; }
html[data-ui-skin] .video-mode-option:hover { background: var(--fill-2) !important; }
html[data-ui-skin] .video-mode-option.active { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }

/* Project list: rows on the card; the open project gets a quiet fill. */
html[data-ui-skin] .directory-item { background: transparent !important; }
html[data-ui-skin] .directory-item.active { background: var(--fill-2) !important; }

/* Workflow nodes: one surface; header and body share it. */
html[data-ui-skin] article.node .node-head { box-shadow: inset 0 -1px 0 var(--line) !important; }
html[data-ui-skin] .node-body :is(.drop, .slot) { min-height: 0; }
/* Image-to-image reference slots: compact wells instead of tall tiles. */
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .img-three-column .slot .drop:not(.has-image) { height: 104px !important; min-height: 0 !important; }
  html:not(.mobile-screen)[data-ui-skin] .img-three-column .slot-grid { gap: 8px !important; height: auto !important; grid-template-rows: none !important; align-content: start !important; grid-auto-rows: auto !important; }
  html:not(.mobile-screen)[data-ui-skin] .img-three-column .slot { align-self: start; }
}
html[data-ui-skin] .video-upload-icon { background: var(--fill) !important; box-shadow: none !important; }

/* ---------- Type scale and control size (desktop) ----------
   Pro-tool density: 13px body, 12px controls, 11px meta; 32px controls,
   28px compact actions. Titles are set apart by weight, not size. */
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] :is(#pageTitle, .topbar .title h2) { font-size: 15px !important; font-weight: 600 !important; letter-spacing: -.01em; }
  html:not(.mobile-screen)[data-ui-skin] :is(.card-title strong, .head h3, .video-remake-head h3, .agent-side h3, .agent-side strong) { font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0; }
  html:not(.mobile-screen)[data-ui-skin] :is(.head p, .video-remake-head p, .card-title span, .empty-result, .loader-copy span) { font-size: 11.5px !important; }
  html:not(.mobile-screen)[data-ui-skin] :is(.field > label, .field label, .agent-tool > span, .action-reference-head strong, .slot > b) { font-size: 11px !important; color: var(--muted) !important; font-weight: 500 !important; letter-spacing: .01em; }
  html:not(.mobile-screen)[data-ui-skin] .view :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"])) { min-height: 32px !important; height: 32px; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 12.5px !important; border-radius: 8px !important; }
  html:not(.mobile-screen)[data-ui-skin] .view textarea { font-size: 12.5px !important; line-height: 1.65 !important; border-radius: 8px !important; }
  html:not(.mobile-screen)[data-ui-skin] .view .composer textarea { font-size: 14px !important; }
  html:not(.mobile-screen)[data-ui-skin] .btn { min-height: 30px !important; padding: 0 13px !important; font-size: 12px !important; }
  html:not(.mobile-screen)[data-ui-skin] .btn.primary { min-height: 32px !important; padding: 0 14px 0 16px !important; }
  html:not(.mobile-screen)[data-ui-skin] .card-title .btn,
  html:not(.mobile-screen)[data-ui-skin] .view > .head .btn:not(.primary) { min-height: 26px !important; padding: 0 10px !important; font-size: 11.5px !important; }
  html:not(.mobile-screen)[data-ui-skin] :is(.action-chip, .view .chip) { min-height: 26px !important; height: 26px; padding: 0 10px !important; font-size: 11.5px !important; }
  html:not(.mobile-screen)[data-ui-skin] .topbar .status :is(.chip, button) { min-height: 28px !important; height: 28px; padding: 0 11px !important; font-size: 11.5px !important; }
  html:not(.mobile-screen)[data-ui-skin] .announcement-trigger { width: 28px !important; min-width: 28px !important; height: 28px !important; padding: 0 !important; }
  html:not(.mobile-screen)[data-ui-skin] .announcement-trigger svg { width: 15px; height: 15px; }
  html:not(.mobile-screen)[data-ui-skin] .count-control { height: 32px; }
  html:not(.mobile-screen)[data-ui-skin] .count-step { min-height: 32px !important; width: 32px; }
  html:not(.mobile-screen)[data-ui-skin] .card-title { min-height: 40px !important; padding: 0 12px !important; }
  html:not(.mobile-screen)[data-ui-skin] .field { gap: 5px !important; }
  html:not(.mobile-screen)[data-ui-skin] :is(.control-grid, .img-control-grid) { gap: 10px 8px !important; }
  html:not(.mobile-screen)[data-ui-skin] .drop:not(.has-image) { font-size: 11.5px !important; font-weight: 500 !important; }
  html:not(.mobile-screen)[data-ui-skin] .agent-message-body { font-size: 14px !important; }
  html:not(.mobile-screen)[data-ui-skin] :is(.agent-side .directory-item, .directory-item) { padding: 8px 10px !important; }
  html:not(.mobile-screen)[data-ui-skin] .composer :is(.agent-tool, .agent-output-summary, .agent-media-trigger, .voice-input-button, .agent-advanced-toggle) { min-height: 28px !important; height: 28px; font-size: 11.5px !important; }
  html:not(.mobile-screen)[data-ui-skin] .composer .agent-choice-trigger { min-height: 26px !important; font-size: 11.5px !important; }
  html:not(.mobile-screen)[data-ui-skin] .composer :is(.agent-media-trigger, .voice-input-button) { width: 28px !important; min-width: 28px !important; padding: 0 !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) {
  html.mobile-screen[data-ui-skin] .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
  }
  html.mobile-screen[data-ui-skin] .topbar .title { flex: 1 1 auto; min-width: 0; }
  html.mobile-screen[data-ui-skin] .topbar .status { flex: 0 1 auto; justify-content: flex-end; }
  html.mobile-screen[data-ui-skin] .topbar .title h2,
  html.mobile-screen[data-ui-skin] #pageTitle { font-size: 17px; }

  html.mobile-screen[data-ui-skin] .side {
    background: var(--bar-bg) !important;
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: none !important;
  }
  html.mobile-screen[data-ui-skin] .nav button,
  html.mobile-screen[data-ui-skin] .nav button:hover,
  html.mobile-screen[data-ui-skin] .nav button.active { color: var(--soft); background: transparent !important; }
  html.mobile-screen[data-ui-skin] .nav button.active { color: var(--ink); }
  html.creative-ui.mobile-screen[data-ui-skin] .nav button.active { color: var(--brand); }
  html.mobile-screen[data-ui-skin] .nav button.mobile-only {
    display: grid;
    grid-template-rows: 24px 16px;
    justify-items: center;
    align-content: center;
  }
  html.mobile-screen[data-ui-skin] .nav b { font-size: 10.5px; }
  html.mobile-screen[data-ui-skin] .nav .nav-icon { transition: transform var(--r-fast) var(--r-ease); }
  html.mobile-screen[data-ui-skin] .nav button:active .nav-icon { transform: scale(.9); }

  html.mobile-screen[data-ui-skin] .card { border-radius: 16px !important; }
  html.mobile-screen[data-ui-skin] .composer { border-radius: 18px !important; margin: 4px 10px 10px; }
  html.mobile-screen[data-ui-skin] .btn { min-height: 44px; }
  html.mobile-screen[data-ui-skin] .toast { bottom: calc(84px + var(--mobile-safe-bottom, 0px)); }

  html.mobile-screen[data-ui-skin] .mobile-sheet[open] {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(var(--mobile-height, 100dvh) - 48px);
    padding-bottom: var(--mobile-safe-bottom, 0px);
    border-radius: 22px 22px 0 0;
    background: var(--surface);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
    animation: refined-sheet-up var(--r-slow) var(--r-out) both;
  }
  html.creative-ui.mobile-screen[data-ui-skin] .mobile-sheet[open] { background: #1c1c1e; }
  html.mobile-screen[data-ui-skin] .mobile-sheet[open]::before {
    content: "";
    display: block;
    width: 36px;
    height: 5px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--fill-hover);
  }
  html.mobile-screen[data-ui-skin] .mobile-sheet::backdrop { background: rgba(0, 0, 0, .32); }
  html.mobile-screen[data-ui-skin] .mobile-sheet > header h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
  html.mobile-screen[data-ui-skin] .mobile-nav-grid button {
    border-radius: 14px;
    background: var(--fill-2);
    transition: background-color var(--r-fast) var(--r-ease);
  }
  html.mobile-screen[data-ui-skin] .mobile-nav-grid button[aria-current="page"] { color: var(--brand-ink); background: var(--brand); }
}
@keyframes refined-sheet-up {
  from { transform: translate3d(0, 100%, 0); }
  to { transform: none; }
}

/* ---------- Phone density ----------
   Same system as desktop, sized for thumbs: 40px actions, 34px chips, 44px
   fields (16px text so iOS does not zoom), flat nesting, smaller titles.
   Workflow templates become one scrollable segmented row. */
@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) {
  html.mobile-screen[data-ui-skin] .view:not([data-view="agent"]):not([data-view="infinite"]) { padding: 10px !important; }
  html.mobile-screen[data-ui-skin] :is(.card-title strong, .head h3, .video-remake-head h3) { font-size: 14px !important; font-weight: 600 !important; }
  html.mobile-screen[data-ui-skin] :is(.head p, .video-remake-head p, .card-title span) { font-size: 12px !important; }
  html.mobile-screen[data-ui-skin] :is(.field > label, .field label, .action-reference-head strong, .slot > b) { font-size: 12px !important; color: var(--muted) !important; font-weight: 500 !important; }
  html.mobile-screen[data-ui-skin] .card-title { min-height: 44px !important; padding: 0 12px !important; }
  html.mobile-screen[data-ui-skin] .card-body { padding: 4px 12px 12px !important; }
  html.mobile-screen[data-ui-skin] .btn { min-height: 40px !important; padding: 0 14px !important; font-size: 13px !important; }
  html.mobile-screen[data-ui-skin] .card-title .btn { min-height: 34px !important; padding: 0 11px !important; font-size: 12.5px !important; }
  html.mobile-screen[data-ui-skin] :is(.action-chip, .view .chip) { min-height: 34px !important; padding: 0 12px !important; font-size: 12.5px !important; }
  html.mobile-screen[data-ui-skin] .view :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"])) { border-radius: 10px !important; }
  html.mobile-screen[data-ui-skin] .view textarea { border-radius: 10px !important; }
  html.mobile-screen[data-ui-skin] :is(.control-grid, .img-control-grid) { gap: 10px 8px !important; }
  html.mobile-screen[data-ui-skin] .card { border-radius: 14px !important; }
  html.mobile-screen[data-ui-skin] .img-three-column .slot .drop:not(.has-image) { height: 92px !important; min-height: 0 !important; }

  /* Workflow: templates as one scrollable segmented row. */
  html.mobile-screen[data-ui-skin] .workflow-simple > .head > .quick-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--hair);
  }
  html.mobile-screen[data-ui-skin] .workflow-simple > .head > .quick-row::-webkit-scrollbar { display: none; }
  html.mobile-screen[data-ui-skin] .workflow-simple > .head > .quick-row .btn {
    flex: none;
    width: auto !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    color: var(--muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
    white-space: nowrap;
  }
  html.mobile-screen[data-ui-skin] .workflow-simple > .head > .quick-row .btn.workflow-template-active { color: var(--page) !important; background: var(--ink) !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell > aside.card { order: 0 !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell > aside .card-title { display: none !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell > aside .card-body { display: flex !important; flex-wrap: wrap; gap: 6px !important; padding: 0 !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple #workflowCanvas { order: 1 !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell > aside .btn { min-height: 36px !important; padding: 0 12px !important; font-size: 12.5px !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell > aside.card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; box-shadow: none !important; }
}

/* ---------- Dark: fewer lines ----------
   On the night sky, outlines read as clutter. Secondary controls become
   quiet translucent fills; only floating panels keep one faint edge, and
   the current selection is the only thing that glows. */
html.creative-ui[data-ui-skin] {
  --q-fill: rgba(255, 255, 255, .055);
  --q-fill-h: rgba(255, 255, 255, .09);
  --q-field: rgba(255, 255, 255, .045);
  --ring: 0 0 0 3px rgba(140, 200, 255, .26);
}
html.creative-ui[data-ui-skin] :is(.btn:not(.primary), .action-chip, .view .chip, .topbar .status .chip, .topbar .status > button, .announcement-trigger,
  .composer .agent-tool, .composer :is(.agent-media-trigger, .voice-input-button, .agent-advanced-toggle, .agent-output-summary),
  .asset-source-tab, .video-workspace-tabs button, .video-step) {
  background: var(--q-fill) !important;
  box-shadow: none !important;
}
html.creative-ui[data-ui-skin] :is(.btn:not(.primary), .action-chip, .view .chip, .topbar .status .chip, .topbar .status > button, .announcement-trigger,
  .composer .agent-tool, .composer :is(.agent-media-trigger, .voice-input-button, .agent-advanced-toggle, .agent-output-summary),
  .asset-source-tab, .video-workspace-tabs button):hover { background: var(--q-fill-h) !important; box-shadow: none !important; }
html.creative-ui[data-ui-skin] .btn.danger { color: #ff8a80 !important; background: rgba(255, 90, 80, .1) !important; }
html.creative-ui[data-ui-skin] :is(.action-chip.active, .action-chip.is-active, .view .chip.active, .asset-source-tab.active, .video-workspace-tabs button.active, .workflow-template-active,
  .action-chip.active:hover, .action-chip.is-active:hover, .asset-source-tab.active:hover, .video-workspace-tabs button.active:hover) {
  color: #0b0b0c !important;
  background: #f2f3f5 !important;
  box-shadow: none !important;
}
html.creative-ui[data-ui-skin] .workflow-simple > .head > .quick-row { box-shadow: none !important; background: var(--q-fill) !important; }
html.creative-ui[data-ui-skin] .workflow-simple > .head > .quick-row .btn { background: transparent !important; }
html.creative-ui[data-ui-skin] .workflow-simple > .head > .quick-row .btn.workflow-template-active { background: #f2f3f5 !important; }
html.creative-ui[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), select, textarea),
html.creative-ui[data-ui-skin] :is(.popover, .feedback-panel, .auth-card) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background-color: var(--q-field) !important;
  box-shadow: none !important;
}
html.creative-ui[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):hover { background-color: rgba(255, 255, 255, .065) !important; box-shadow: none !important; }
html.creative-ui[data-ui-skin] .view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus,
html.creative-ui[data-ui-skin] :is(.popover, .feedback-panel, .auth-card) :is(input, select, textarea):focus {
  background-color: rgba(255, 255, 255, .07) !important;
  box-shadow: var(--ring) !important;
}
html.creative-ui[data-ui-skin] .view :is(.composer textarea, .composer select, .count-control input) { background-color: transparent !important; }
html.creative-ui[data-ui-skin] .count-control { background: var(--q-field) !important; box-shadow: none !important; }
html.creative-ui[data-ui-skin] .video-mode-option { background: var(--q-field) !important; box-shadow: none !important; }
html.creative-ui[data-ui-skin] .video-mode-option:hover { background: var(--q-fill-h) !important; }
/* Your messages: a quiet graphite bubble with a faint mint edge. */
html.creative-ui[data-ui-skin] .bubble.user .agent-message-shell {
  color: #f2f4f5 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .055)) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06) !important;
}
html.creative-ui[data-ui-skin] .video-mode-option.active { background: rgba(140, 200, 255, .1) !important; box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .35) !important; }
html.creative-ui[data-ui-skin] .view :is(.drop:not(.has-image), .video-upload-zone) { background: rgba(255, 255, 255, .03) !important; border-color: rgba(255, 255, 255, .09) !important; }
html.creative-ui[data-ui-skin] .composer,
html.creative-ui[data-ui-skin] .composer:focus-within { box-shadow: 0 20px 60px rgba(0, 0, 0, .45) !important; background: rgba(24, 24, 28, .72) !important; }
html.creative-ui[data-ui-skin] .composer:focus-within { box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(170, 215, 255, .22) !important; }
html.creative-ui[data-ui-skin] article.node .node-head { box-shadow: none !important; }
html.creative-ui[data-ui-skin] .agent-side .thumb { box-shadow: none !important; background: var(--q-field) !important; }
html.creative-ui[data-ui-skin] .workflow-simple .workflow-zoom-controls { box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important; }
html.creative-ui[data-ui-skin] .agent-advanced-panel { border-top-color: transparent !important; }
html.creative-ui[data-ui-skin] .agent-message-action { background: var(--q-fill) !important; }

/* Dark rail: small Chinese labels return under the icons. */
@media (min-width: 761px) {
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button {
    width: 64px !important;
    height: 54px;
    min-height: 54px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 16px !important;
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button b {
    position: static !important;
    width: auto; height: auto;
    overflow: hidden;
    clip: auto;
    max-width: 60px;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 500 !important;
    line-height: 1.2;
    letter-spacing: .02em;
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav .nav-icon,
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav .nav-icon svg { width: 19px; height: 19px; }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav { gap: 4px; }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .nav button::after { left: -6px; }
}

/* Agent avatar (after the liquid Home-button reference): a small glass
   orb with the brand arc inside and a slowly turning chromatic ring of
   light around it. Blue, mint and white only. */
@keyframes cos-orb-spin { to { --cos-a: 360deg; } }
html[data-ui-skin] .agent-message-avatar {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
  color: #fff !important;
  border: 2px solid transparent !important;
  border-radius: 50% !important;
  background:
    radial-gradient(80% 60% at 50% 12%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(90% 90% at 50% 110%, rgba(120, 180, 255, .35), rgba(120, 180, 255, 0) 70%) padding-box,
    linear-gradient(180deg, #25262b, #0d0d10) padding-box,
    conic-gradient(from var(--cos-a), #8cc8ff, #ffffff 10%, #6c7cff 24%, #b9a8ff 38%, #6aa8ff 50%, #ffffff 62%, #7fe6e0 76%, #8cc8ff) border-box !important;
  box-shadow: 0 0 18px rgba(140, 200, 255, .42), 0 0 3px rgba(255, 255, 255, .6), inset 0 -4px 8px rgba(0, 0, 0, .5) !important;
  animation: cos-orb-spin 10s linear infinite;
}
html[data-ui-skin] .agent-message-avatar svg { opacity: 0; }
html[data-ui-skin] .agent-message-avatar::after {
  content: "" !important;
  position: absolute;
  inset: 25%;
  background: linear-gradient(180deg, #ffffff, #cfe3ff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M19 8.2A8 8 0 1 0 19.4 15'/%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' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M19 8.2A8 8 0 1 0 19.4 15'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-ui-skin] .agent-message-avatar::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 14%;
  right: 14%;
  width: 26%;
  height: 26%;
  background: #9aa6ff;
  -webkit-mask: var(--mark-star) center / contain no-repeat;
  mask: var(--mark-star) center / contain no-repeat;
  filter: drop-shadow(0 0 3px rgba(108, 124, 255, .9));
  animation: cos-twinkle 3s ease-in-out infinite;
}
html:not(.creative-ui)[data-ui-skin] .agent-message-avatar {
  background:
    radial-gradient(80% 60% at 50% 12%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(90% 90% at 50% 110%, rgba(120, 180, 255, .3), rgba(120, 180, 255, 0) 70%) padding-box,
    linear-gradient(180deg, #ffffff, #eef1f6) padding-box,
    conic-gradient(from var(--cos-a), #8cc8ff, #ffffff 10%, #6c7cff 24%, #b9a8ff 38%, #6aa8ff 50%, #ffffff 62%, #7fe6e0 76%, #8cc8ff) border-box !important;
  box-shadow: 0 0 12px rgba(120, 180, 255, .3), 0 2px 6px rgba(0, 0, 0, .08) !important;
}
html:not(.creative-ui)[data-ui-skin] .agent-message-avatar::after { background: linear-gradient(180deg, #2a3140, #4c6b94); }

/* ---------- Welcome (opening sequence) ----------
   0.0s  black, a hairline of light opens across the middle
   0.5s  the curtain lifts; the film settles from a slow zoom
   0.7s  kicker tracks in; each character of the title resolves from blur
   1.9s  a single soft light passes across the title
   2.0s  actions and chrome fade up. Transform / opacity / small blurs only. */
@keyframes w-line { 0% { transform: scaleX(0); opacity: 0; } 35% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes w-curtain { 0%, 45% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes w-film { from { transform: scale(1.08); filter: brightness(.55); } to { transform: none; filter: none; } }
@keyframes w-char { from { opacity: 0; filter: blur(14px); transform: translateY(32%) scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes w-track { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; } }
@keyframes w-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes w-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes w-sheen { 0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(480%) skewX(-18deg); opacity: 0; } }
html[data-ui-skin] .welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(220, 236, 255, .9), transparent) center / 100% 1px no-repeat,
    #000;
  animation: w-curtain 1.15s var(--r-ease) both;
}
html[data-ui-skin] .welcome-media { animation: w-film 2.6s cubic-bezier(.16, 1, .3, 1) .35s both; transform-origin: 60% 50%; }
html[data-ui-skin] .welcome-kicker { animation: w-track 1.2s var(--r-out) .7s both !important; }
html[data-ui-skin] .welcome-title-line b {
  animation: w-char 1.1s cubic-bezier(.16, 1, .3, 1) both !important;
  animation-delay: calc(.8s + var(--char) * 55ms) !important;
}
html[data-ui-skin] .welcome-title { position: relative; }
html[data-ui-skin] .welcome-title::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 26%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(220, 236, 255, .32), rgba(255, 255, 255, 0));
  mix-blend-mode: plus-lighter;
  filter: blur(6px);
  transform: translateX(-120%) skewX(-18deg);
  animation: w-sheen 1.6s cubic-bezier(.45, 0, .2, 1) 2s both;
}
html[data-ui-skin] .welcome-top { animation: w-fade 1s var(--r-ease) 1.6s both; }
html[data-ui-skin] :is(.welcome-video-timeline, .welcome-chapter, .welcome-legal-footer) { animation: w-fade 1.2s var(--r-ease) 2.2s both; }
html[data-ui-skin] .welcome-primary-action {
  margin-top: 34px;
  --flow: 18s;
  --spin: 12s;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent !important;
  border-radius: 999px;
  color: #0c1406 !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  text-decoration: none;
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(70% 140% at var(--cos-x) 55%, #c4e89a, rgba(196, 232, 154, 0) 72%) padding-box,
    radial-gradient(55% 140% at calc(100% - var(--cos-x)) 40%, #9ad8cf, rgba(154, 216, 207, 0) 72%) padding-box,
    radial-gradient(45% 120% at 88% var(--cos-y), #86c2ff, rgba(134, 194, 255, 0) 70%) padding-box,
    linear-gradient(90deg, #d6ebc0, #c9e0fb) padding-box,
    conic-gradient(from var(--cos-a), #c4e89a, #9ad8cf, #86c2ff, #ffffff, #dcefff, #9ad8cf, #c4e89a) border-box !important;
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(20, 40, 60, .16), 0 14px 40px rgba(120, 180, 240, .25) !important;
  animation: w-rise 1s var(--r-out) 1.9s both, cos-flow var(--flow) ease-in-out infinite alternate, cos-spin var(--spin) linear infinite !important;
  transition: transform var(--r-fast) var(--r-ease), box-shadow .3s var(--r-ease);
}
html[data-ui-skin] .welcome-primary-action:hover { --flow: 9s; transform: translateY(-1px); box-shadow: inset 0 3px 10px rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(20, 40, 60, .16), 0 18px 50px rgba(120, 180, 240, .35) !important; }
html[data-ui-skin] .welcome-primary-action:active { transform: scale(.97); }
html[data-ui-skin] .welcome-enter {
  color: #f5f5f7;
  border: 0;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--r-fast) var(--r-ease), transform var(--r-fast) var(--r-ease);
}
html[data-ui-skin] .welcome-enter:hover { background: rgba(255, 255, 255, .15); transform: none; }
html[data-ui-skin] .welcome-enter:active { transform: scale(.97); }
html[data-ui-skin] :is(.welcome-enter, .welcome-primary-action) * { text-decoration: none; }

/* ---------- Activation (licence gate) ----------
   A floating glass card over the dimmed workspace (and the night sky on
   the dark skin): film on the left fading into the card, a calm form on
   the right, one liquid action. Rises in from a soft blur. */
@keyframes gate-in { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
html[data-ui-skin] .auth-overlay.active {
  background: rgba(0, 0, 0, .5) !important;
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}
html:not(.creative-ui)[data-ui-skin] .auth-overlay.active { background: rgba(242, 243, 247, .7) !important; }
html[data-ui-skin] .auth-card {
  width: min(880px, calc(100vw - 32px)) !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 28px !important;
  background: rgba(16, 16, 19, .78) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 120px rgba(0, 0, 0, .65) !important;
  animation: gate-in .8s cubic-bezier(.16, 1, .3, 1) both;
}
html:not(.creative-ui)[data-ui-skin] .auth-card {
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 40px 100px rgba(30, 40, 60, .16) !important;
}
html[data-ui-skin] .auth-visual {
  position: relative;
  border-radius: 0 !important;
  background:
    url("/assets/welcome-editorial-noir-poster.jpg?v=20260830") center / cover no-repeat,
    #000 !important;
}
html[data-ui-skin] .auth-visual video { position: relative; z-index: 0; }
/* Brand orb floating over the film: same iridescent ring as the Agent mark. */
html[data-ui-skin] .auth-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M19 8.2A8 8 0 1 0 19.4 15'/%3E%3C/svg%3E") center / 46% no-repeat padding-box,
    radial-gradient(80% 60% at 50% 12%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%) padding-box,
    linear-gradient(180deg, rgba(40, 42, 48, .9), rgba(10, 10, 12, .95)) padding-box,
    conic-gradient(from var(--cos-a), #8cc8ff, #ffffff 10%, #6c7cff 24%, #b9a8ff 38%, #6aa8ff 50%, #ffffff 62%, #7fe6e0 76%, #8cc8ff) border-box;
  box-shadow: 0 0 40px rgba(140, 200, 255, .4), 0 0 4px rgba(255, 255, 255, .6);
  animation: cos-orb-spin 10s linear infinite, gate-in 1s cubic-bezier(.16, 1, .3, 1) .2s both;
}
html[data-ui-skin] .auth-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, rgba(16, 16, 19, .9) 100%), linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 40%);
}
html:not(.creative-ui)[data-ui-skin] .auth-visual::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .5) 100%); }
html[data-ui-skin] .auth-content { background: transparent !important; box-shadow: none !important; color: var(--ink) !important; }
html[data-ui-skin] .auth-copy h3 {
  font-family: "Welcome Smiley", var(--font-display);
  font-size: 32px !important;
  font-weight: 400 !important;
  letter-spacing: 0;
  color: var(--ink) !important;
  animation: w-char 1s cubic-bezier(.16, 1, .3, 1) .25s both;
}
html[data-ui-skin] .auth-card .field { animation: w-rise .8s var(--r-out) .45s both; }
html[data-ui-skin] .auth-card .auth-actions { animation: w-rise .8s var(--r-out) .55s both; gap: 8px; }
html[data-ui-skin] .auth-card .auth-note { animation: w-fade .8s var(--r-ease) .7s both; color: var(--muted) !important; font-size: 12px; background: transparent !important; box-shadow: none !important; }
html[data-ui-skin] .auth-label { font-size: 12px !important; color: var(--muted) !important; }
html[data-ui-skin] .auth-card input {
  height: 48px;
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .05) !important;
  box-shadow: none !important;
}
html:not(.creative-ui)[data-ui-skin] .auth-card input { background: rgba(0, 0, 0, .04) !important; }
html[data-ui-skin] .auth-card input:focus { outline: none; box-shadow: var(--ring) !important; }
html[data-ui-skin] .auth-card .btn { border-radius: 999px !important; min-height: 40px !important; }
html[data-ui-skin] .auth-card .btn:not(.primary) { color: var(--muted) !important; background: transparent !important; box-shadow: none !important; }
html[data-ui-skin] .auth-card .btn:not(.primary):hover { color: var(--ink) !important; background: var(--q-fill, rgba(0, 0, 0, .04)) !important; }


/* ---------- Brand mark: "星轨" (option C) ----------
   The brand arc with its star, which now travels slowly back and forth
   along the arc (CSS offset-path). Arc in ink/white, star in soft mint
   with a faint glow. Used by the rail, welcome header and activation card;
   the PNG app icons carry the same mark. */
@keyframes cos-orbit { 0%, 6% { offset-distance: 0%; } 50%, 56% { offset-distance: 100%; } 100% { offset-distance: 0%; } }
@keyframes cos-twinkle { 0%, 100% { opacity: .85; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
:root { --mark-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='black' stroke-width='9' stroke-linecap='round'%3E%3Cpath d='M70.98 28.72A30 30 0 1 0 70.98 67.28'/%3E%3C/svg%3E"); --mark-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 -11L2.9 -2.9L11 0L2.9 2.9L0 11L-2.9 2.9L-11 0L-2.9 -2.9Z'/%3E%3C/svg%3E"); }
html[data-ui-skin] .side-head strong {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 10px;
  width: auto !important;
  height: 30px !important;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 0 0 40px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font: 600 15px/1 var(--font-display) !important;
  letter-spacing: -.015em;
}
html[data-ui-skin] .side-head strong::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  background: currentColor !important;
  -webkit-mask: var(--mark-arc) center / contain no-repeat;
  mask: var(--mark-arc) center / contain no-repeat;
  clip-path: none !important;
}
html[data-ui-skin] .side-head strong::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  background: #6c7cff !important;
  clip-path: none !important;
  -webkit-mask: var(--mark-star) center / contain no-repeat;
  mask: var(--mark-star) center / contain no-repeat;
  filter: drop-shadow(0 0 3px rgba(108, 124, 255, .9));
  offset-path: path("M22.18 8.98A9.375 9.375 0 1 0 22.18 21.02");
  offset-rotate: 0deg;
  offset-anchor: center;
  animation: cos-orbit 14s cubic-bezier(.45, 0, .55, 1) infinite, cos-twinkle 3s ease-in-out infinite;
}
html:not(.creative-ui)[data-ui-skin] .side-head strong::after { background: #4fae9a !important; filter: none; }
@media (min-width: 761px) {
  /* Dark rail is narrow: mark only, centred; the name stays for screen readers. */
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .side-head { display: grid !important; justify-items: center; }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .side-head strong { width: 30px !important; padding: 0 !important; color: #f5f5f7 !important; font-size: 0 !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .side-head { padding-left: 8px !important; }
}

/* Welcome header and activation card use the same mark. */
html[data-ui-skin] .welcome-brand-mark {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f5f5f7;
}
html[data-ui-skin] .welcome-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--mark-arc) center / contain no-repeat;
  mask: var(--mark-arc) center / contain no-repeat;
}
html[data-ui-skin] .welcome-brand-mark::after {
  inset: 0 auto auto 0 !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 0 !important;
  background: #6c7cff !important;
  -webkit-mask: var(--mark-star) center / contain no-repeat;
  mask: var(--mark-star) center / contain no-repeat;
  filter: drop-shadow(0 0 3px rgba(108, 124, 255, .9));
  offset-path: path("M22.18 8.98A9.375 9.375 0 1 0 22.18 21.02");
  offset-rotate: 0deg;
  offset-anchor: center;
  animation: cos-orbit 14s cubic-bezier(.45, 0, .55, 1) infinite, cos-twinkle 3s ease-in-out infinite;
}
html[data-ui-skin] .auth-visual::before {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 34px !important;
  height: 34px !important;
  background: #f5f5f7 !important;
  -webkit-mask: var(--mark-arc) center / contain no-repeat;
  mask: var(--mark-arc) center / contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
  animation: gate-in 1s cubic-bezier(.16, 1, .3, 1) .2s both !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-ui-skin] *,
  html[data-ui-skin] *::before,
  html[data-ui-skin] *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Local review: retain the Noir material, refine readability and touch layout. */
html[data-ui-skin] { --muted: #64646b; --soft: #64646b; }
html.creative-ui[data-ui-skin] { --muted: #a1a1aa; --soft: #a1a1aa; }
html[data-ui-skin] :is(input, textarea)::placeholder { color: var(--muted) !important; opacity: 1; }
html[data-ui-skin] :is(button, a, [role="button"], summary):focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 3px;
}
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-shell > aside .btn,
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-zoom-controls .btn { min-height: 34px !important; }
  html:not(.mobile-screen)[data-ui-skin] .workflow-simple .workflow-zoom-controls .btn { min-width: 34px; }
}
@media (max-width: 760px) {
  html.mobile-screen[data-ui-skin] .workflow-simple #workflowCanvas { padding: 0 !important; min-width: 0; }
  html.mobile-screen[data-ui-skin] .workflow-stage { margin: 0 !important; }
  html.mobile-screen[data-ui-skin] .workflow-stage,
  html.mobile-screen[data-ui-skin] .zoom-layer,
  html.mobile-screen[data-ui-skin] #nodes { min-width: 0; max-width: 100%; }
  html.mobile-screen[data-ui-skin] .workflow-simple > .head > .quick-row .btn,
  html.mobile-screen[data-ui-skin] .workflow-simple .workflow-shell > aside .btn,
  html.mobile-screen[data-ui-skin] .mobile-node-toggle { min-height: 44px !important; }
  html.mobile-screen[data-ui-skin] .workflow-simple > .head > .quick-row { scroll-padding-inline: 8px; }
}

/* Detail corrections: continuous frosted backdrop and usable dropdowns. */
:root { --z-popover: 40; }
html.creative-ui[data-ui-skin] .main > .panel,
html.creative-ui[data-ui-skin] .main > .topbar {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.creative-ui[data-ui-skin] .nav button b { display: none !important; }
html.creative-ui[data-ui-skin] .nav button { justify-content: center; gap: 0 !important; }
html:not(.creative-ui)[data-ui-skin] .nav button b { display: block !important; }
html[data-ui-skin] .topbar .status > #welcomeAgain {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 34px; min-width: 34px; height: 34px; padding: 0 !important;
}
html[data-ui-skin] #welcomeAgain::before { display: none !important; }
html[data-ui-skin] #agentChoicePopover {
  color: var(--ink); background: rgba(250,250,252,.97) !important;
  z-index: calc(var(--z-popover) + 5); border-radius: 14px;
}
html.creative-ui[data-ui-skin] #agentChoicePopover { background: rgba(27,29,34,.97) !important; }
html[data-ui-skin] #agentChoicePopover .agent-choice-option {
  min-height: 44px; line-height: 1.45; padding: 8px 12px;
  font-size: 13px; white-space: normal;
}
html[data-ui-skin] #agentChoicePopover .agent-choice-option b { flex-shrink: 0; }
@media(max-width:760px) {
  html.mobile-screen[data-ui-skin] .topbar .status > #welcomeAgain { display: inline-flex !important; width: 44px; min-width: 44px; height: 44px; }
  html.mobile-screen[data-ui-skin] .nav button { min-height: 44px; }
  html.mobile-screen[data-ui-skin] #agentChoicePopover { bottom: calc(76px + env(safe-area-inset-bottom,0px)) !important; max-height: min(380px,calc(100dvh - 160px)); }
}


/* =====================================================================
   Round 14 (after the night-sky photo, glass-orb, Sign-in and "thinking"
   references). Visual changes here are scoped to the dark skin; the light
   skin keeps its earlier look. The collapsible navigation and the wider
   work area apply to both skins on desktop. Appended last so it wins.
   ===================================================================== */

/* The user's own avatar stays a quiet initial ("我"), never the orb. */
html[data-ui-skin] .bubble.user .agent-message-avatar {
  color: var(--ink) !important;
  border: 0 !important;
  background: var(--q-fill, rgba(0, 0, 0, .05)) !important;
  box-shadow: none !important;
  animation: none !important;
  font-size: 12px;
  font-weight: 600;
}
html[data-ui-skin] .bubble.user .agent-message-avatar::before,
html[data-ui-skin] .bubble.user .agent-message-avatar::after { display: none !important; }

/* Agent avatar (dark): a glowing glass orb in the app-icon palette. White
   rim, a slowly turning mint core over deep navy, mint light pooling below.
   Inside, the brand mark: the arc, with its star travelling along it. */
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
  border: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(42% 30% at 34% 22%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle, rgba(255, 255, 255, 0) 0 58%, rgba(232, 248, 242, .4) 80%, rgba(246, 252, 250, .8) 100%),
    radial-gradient(50% 50% at 50% 50%, rgba(108, 124, 255, .85), rgba(108, 124, 255, 0) 100%),
    conic-gradient(from var(--cos-a) at 50% 52%, #2a3d57, #4a5bff 22%, #9aa6ff 40%, #4f7f86 58%, #203047 78%, #2a3d57) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .32),
    inset 0 -3px 6px rgba(12, 20, 32, .45),
    0 7px 16px -4px rgba(108, 124, 255, .45) !important;
  animation: cos-orb-spin 16s linear infinite !important;
}
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar svg { opacity: 0; }
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar::before {
  content: "" !important;
  position: absolute !important;
  inset: auto !important;
  top: calc(50% - 10px) !important;
  left: calc(50% - 10px) !important;
  z-index: 1;
  width: 20px !important;
  height: 20px !important;
  border-radius: 0;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
  -webkit-mask: var(--mark-arc) center / contain no-repeat !important;
  mask: var(--mark-arc) center / contain no-repeat !important;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .7)) !important;
  animation: none !important;
}
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  z-index: 2;
  width: 9px !important;
  height: 9px !important;
  background: #e3e7ff !important;
  -webkit-mask: var(--mark-star) center / contain no-repeat !important;
  mask: var(--mark-star) center / contain no-repeat !important;
  filter: drop-shadow(0 0 3px rgba(154, 166, 255, .95)) !important;
  /* The arc's path, in the avatar's own 34px box (mark drawn at 20px, offset 7px). */
  offset-path: path("M21.79 12.98A6.25 6.25 0 1 0 21.79 21.02");
  offset-rotate: 0deg;
  offset-anchor: center;
  animation: cos-orbit 9s cubic-bezier(.45, 0, .55, 1) infinite, cos-twinkle 2.6s ease-in-out infinite !important;
}
/* The working message keeps the orb, breathing; the thinking chip sits in
   the panel's top-right corner instead (below). */
@keyframes cos-breathe { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-avatar { animation: cos-orb-spin 4s linear infinite, cos-breathe 2s ease-in-out infinite !important; }
html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-shell { background: transparent !important; box-shadow: none !important; }
html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-body { color: var(--muted) !important; }

/* After sending (dark, after the "thinking" screen recording): your
   message lands with a soft glowing edge that fades out; the reply then
   resolves from the top down instead of appearing all at once. */
@keyframes cos-sent { 0% { outline-color: rgba(154, 166, 255, .7); filter: drop-shadow(0 0 10px rgba(154, 166, 255, .35)); } 100% { outline-color: rgba(154, 166, 255, 0); filter: drop-shadow(0 0 10px rgba(154, 166, 255, 0)); } }
@keyframes cos-reveal { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
html.creative-ui[data-ui-skin] .bubble.user.is-entering .agent-message-shell { outline: 1px solid transparent; animation: cos-sent 1.8s cubic-bezier(.22, 1, .36, 1) .1s both; }
html.creative-ui[data-ui-skin] .bubble.agent.is-entering:not(.is-transient) .agent-message-body {
  -webkit-mask: linear-gradient(180deg, #000 45%, transparent 55%) 0 0 / 100% 300% no-repeat;
  mask: linear-gradient(180deg, #000 45%, transparent 55%) 0 0 / 100% 300% no-repeat;
  animation: cos-reveal 1.2s cubic-bezier(.3, 0, .2, 1) both;
}

/* Conversation panel (dark, after the "Thinking…" reference): one frosted
   glass sheet with a soft light along its left edge; the composer is a
   quiet inset pill. While the Agent thinks, a small chip appears in the
   panel's top-right corner: two glass bubbles drifting round each other
   and "思考中…" with a slow light sweep. */
@keyframes cos-think-bubbles {
  0%, 100% { background-position: 0 1px, 0 1px, 11px 3px, 11px 3px; }
  50% { background-position: 9px 3px, 9px 3px, 2px 1px, 2px 1px; }
}
@keyframes cos-text-sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes cos-chip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat {
  position: relative;
  border-radius: 28px !important;
  background:
    radial-gradient(26% 46% at 0% 46%, rgba(220, 240, 236, .09), rgba(220, 240, 236, 0) 70%),
    linear-gradient(180deg, rgba(24, 26, 30, .58), rgba(14, 15, 18, .7)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .4) !important;
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer {
  position: relative;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .04) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
  transition: box-shadow .3s var(--r-ease), background-color .3s var(--r-ease);
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer:focus-within {
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: inset 0 0 0 1px rgba(154, 166, 255, .22), 0 0 0 4px rgba(154, 166, 255, .05) !important;
}

/* Activation (dark): real frosted glass. The overlay no longer blurs the
   page itself (a blurred parent would hide the page from the card's own
   backdrop blur); instead soft blue and lilac light drifts behind the card
   and the card refracts it and the workspace beneath. */
@keyframes gate-beam { from { opacity: 0; transform: rotate(32deg) translateY(-6%); } to { opacity: 1; transform: rotate(32deg); } }
@keyframes gate-drift { 0%, 100% { transform: translate(-4%, -3%) scale(1); } 50% { transform: translate(5%, 4%) scale(1.08); } }
html.creative-ui[data-ui-skin] .auth-overlay.active {
  place-items: center;
  overflow: hidden;
  background: rgba(2, 4, 10, .58) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.creative-ui[data-ui-skin] .auth-overlay.active::before {
  content: "";
  position: absolute;
  top: -34%;
  right: 22%;
  width: 26vw;
  height: 120vh;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, .06) 70%, rgba(255, 255, 255, 0));
  filter: blur(24px);
  transform-origin: top center;
  animation: gate-beam 1.6s cubic-bezier(.16, 1, .3, 1) .2s both;
}
html.creative-ui[data-ui-skin] .auth-overlay.active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  pointer-events: none;
  background:
    radial-gradient(34% 30% at 34% 34%, rgba(42, 66, 100, .75), rgba(42, 66, 100, 0) 100%),
    radial-gradient(30% 28% at 68% 66%, rgba(108, 124, 255, .32), rgba(108, 124, 255, 0) 100%),
    radial-gradient(22% 20% at 70% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 100%);
  animation: gate-drift 14s ease-in-out infinite;
}
html.creative-ui[data-ui-skin] #licenseOverlay .auth-card {
  position: relative;
  z-index: 1;
  display: block !important;
  width: min(400px, calc(100vw - 32px)) !important;
  min-height: 0 !important;
  max-height: calc(100svh - 32px);
  overflow: auto;
  border-radius: 32px !important;
  background:
    radial-gradient(80% 50% at 80% 0%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) !important;
  -webkit-backdrop-filter: blur(40px) saturate(170%) !important;
  backdrop-filter: blur(40px) saturate(170%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .24), 0 30px 90px rgba(0, 0, 0, .55) !important;
}
html.creative-ui[data-ui-skin] .auth-visual { display: none !important; }
html.creative-ui[data-ui-skin] .auth-content {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 16px !important;
  padding: 40px 32px 30px !important;
  background: transparent !important;
}
html.creative-ui[data-ui-skin] .auth-copy { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
html.creative-ui[data-ui-skin] .auth-copy::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  background: var(--ink);
  -webkit-mask: var(--mark-arc) center / contain no-repeat;
  mask: var(--mark-arc) center / contain no-repeat;
  animation: gate-in .8s cubic-bezier(.16, 1, .3, 1) .15s both;
}
html.creative-ui[data-ui-skin] .auth-copy h3 { margin: 0 !important; font-family: var(--font-display) !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.01em !important; }
html.creative-ui[data-ui-skin] .auth-copy::after { content: "输入邀请码，激活后进入工作台。"; font-size: 13px; color: var(--muted); animation: w-fade .8s var(--r-ease) .4s both; }
html.creative-ui[data-ui-skin] .auth-card .auth-label { display: flex; justify-content: space-between; }
html.creative-ui[data-ui-skin] .auth-card input {
  height: 46px;
  border-radius: 14px !important;
  text-align: left;
  font-size: 14px !important;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) !important;
}
html.creative-ui[data-ui-skin] .auth-card input:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 4px rgba(154, 166, 255, .12) !important; }
html.creative-ui[data-ui-skin] .auth-card .auth-actions { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px 6px !important; }
html.creative-ui[data-ui-skin] .auth-card .btn.primary#licenseActivateBtn {
  flex: 1 0 100%;
  min-height: 46px !important;
  margin-bottom: 6px;
  border: 0 !important;
  border-radius: 999px !important;
  color: #0b0b0c !important;
  background: linear-gradient(180deg, #ffffff, #eceef2) !important;
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(0, 0, 0, .35) !important;
  animation: w-rise .8s var(--r-out) .55s both !important;
}
html.creative-ui[data-ui-skin] .auth-card .btn.primary#licenseActivateBtn::after { color: #0b0b0c !important; }
html.creative-ui[data-ui-skin] .auth-card .btn.primary#licenseActivateBtn:hover { background: #fff !important; box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(154, 166, 255, .22) !important; }
html.creative-ui[data-ui-skin] .auth-card :is(#licenseRecheckBtn, #licensePreviewBtn) { min-height: 34px !important; padding: 0 10px !important; font-size: 12.5px !important; }
html.creative-ui[data-ui-skin] .auth-card .auth-note { text-align: center; padding: 0 !important; }

/* ---------- Desktop layout: brand tile, larger work area ----------
   The side column leaves the grid: its brand shows at the top left and
   its buttons stay in the DOM (routing, ids, events) while the
   bottom-left orb is the visible navigation. Every page gets the full
   width. */
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] #app.app { grid-template-columns: minmax(0, 1fr) !important; }
  html:not(.mobile-screen)[data-ui-skin] .app > .side {
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 70;
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
    width: 212px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 24px);
    margin: 0 !important;
    padding: 9px 8px 10px !important;
    overflow: hidden auto;
    border: 0 !important;
    border-radius: 20px !important;
    clip-path: inset(0 calc(100% - 48px) calc(100% - 48px) 0 round 15px);
    transition: clip-path .46s cubic-bezier(.16, 1, .3, 1), box-shadow .3s var(--r-ease);
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .app > .side {
    background: rgba(20, 21, 26, .82) !important;
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .app > .side {
    background: rgba(255, 255, 255, .94) !important;
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 14px rgba(30, 40, 60, .08) !important;
  }

  /* Brand tile: the mark sits in the visible 48px corner; the name
     appears beside it once the panel is open. */
  html:not(.mobile-screen)[data-ui-skin] .app > .side .side-head {
    display: block !important;
    flex: none;
    height: 30px;
    margin: 0 0 6px !important;
    padding: 0 0 0 1px !important;
    border: 0 !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .app > .side .side-head strong {
    position: absolute !important;
    top: 9px;
    left: 9px;
    width: 30px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .app > .side .side-head strong { color: #f5f5f7 !important; }
  /* The name is drawn beside the mark so the mark keeps its own 30px box
     (the star's orbit is defined in that box). */
  html:not(.mobile-screen)[data-ui-skin] .app > .side .side-head::after {
    content: "Creative OS";
    position: absolute;
    top: 9px;
    left: 51px;
    line-height: 30px;
    color: var(--ink);
    font: 600 15px/30px var(--font-display);
    letter-spacing: -.015em;
    white-space: nowrap;
  }
  /* Page header clears the brand tile. */
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar { padding-left: 72px !important; }

}
@media (prefers-reduced-motion: reduce) {
  html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar,
  html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar::after,
  html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-avatar::before,
  html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-avatar::after,
  html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-body,
  html.creative-ui[data-ui-skin] .bubble.is-entering .agent-message-shell,
  html.creative-ui[data-ui-skin] .bubble.is-entering .agent-message-body,
  html.creative-ui[data-ui-skin] .composer.agent-composer::before,
  html.creative-ui[data-ui-skin] .composer.agent-composer::after,
  html.creative-ui[data-ui-skin] .auth-overlay.active::before,
  html.creative-ui[data-ui-skin] .auth-overlay.active::after { animation: none !important; }
  html.creative-ui[data-ui-skin] .bubble.is-entering .agent-message-body { -webkit-mask: none !important; mask: none !important; }
}

/* =====================================================================
   Round 15: one palette, taken from the app icon (deep navy-black, white
   arc, mint star), frosted sky, logo menu, fuller pages, calmer phone UI.
   Colour changes are dark-skin only; the light skin keeps its look.
   ===================================================================== */
html.creative-ui[data-ui-skin] {
  --mint: #9aa6ff;
  --mint-2: #6c7cff;
  --navy: #202f45;
  --brand: #9aa6ff;
  --brand-hover: #c9d0ff;
  --brand-ink: #0b0d1a;
  --brand-ring: rgba(154, 166, 255, .4);
  --accent: #9aa6ff;
  --accent-ink: #0b0d1a;
  --accent-wash: rgba(154, 166, 255, .08);
  --glow-a: #9aa6ff;
  --glow-b: #ffffff;
  --ring: 0 0 0 3px rgba(154, 166, 255, .22);
}
/* Primary actions (dark): mint and white liquid glass, the rim turning
   slowly through mint, white and a touch of the icon's navy. */
html.creative-ui[data-ui-skin] :is(.btn.primary, .welcome-primary-action) {
  color: #0b0d1a !important;
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(70% 140% at var(--cos-x) 55%, #9aa6ff, rgba(154, 166, 255, 0) 72%) padding-box,
    radial-gradient(55% 140% at calc(100% - var(--cos-x)) 40%, #f7f8ff, rgba(246, 255, 252, 0) 72%) padding-box,
    radial-gradient(45% 120% at 88% var(--cos-y), #6c7cff, rgba(108, 124, 255, 0) 70%) padding-box,
    linear-gradient(90deg, #c9d0ff, #eef0ff) padding-box,
    linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)) border-box !important;
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(10, 30, 24, .14), 0 6px 22px rgba(108, 124, 255, .14) !important;
}
html.creative-ui[data-ui-skin] .btn.primary:is(:hover, :focus-visible):not(:disabled) { box-shadow: inset 0 3px 10px rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(10, 30, 24, .14), 0 8px 30px rgba(108, 124, 255, .26) !important; }
html.creative-ui[data-ui-skin] :is(.btn.primary:is([data-run], .agent-send, [data-video-generate], .video-primary-action, #workflowBatchGenerate, [data-design-action="generate"]), .welcome-primary-action) {
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%) padding-box,
    radial-gradient(70% 140% at var(--cos-x) 55%, #9aa6ff, rgba(154, 166, 255, 0) 72%) padding-box,
    radial-gradient(55% 140% at calc(100% - var(--cos-x)) 40%, #f7f8ff, rgba(246, 255, 252, 0) 72%) padding-box,
    radial-gradient(45% 120% at 88% var(--cos-y), #6c7cff, rgba(108, 124, 255, 0) 70%) padding-box,
    linear-gradient(90deg, #c9d0ff, #eef0ff) padding-box,
    conic-gradient(from var(--cos-a), #9aa6ff, #ffffff, #6c7cff, #4b6382, #ffffff, #9aa6ff) border-box !important;
}
html.creative-ui[data-ui-skin] .video-mode-option.active { background: rgba(154, 166, 255, .08) !important; box-shadow: inset 0 0 0 1px rgba(154, 166, 255, .28) !important; }
html.creative-ui[data-ui-skin] .composer:focus-within { box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(154, 166, 255, .2) !important; }

/* Frosted veil over the sky: the stars soften behind a thin layer of
   ground glass (refined-motion.js adds the layer). */
html.creative-ui[data-ui-skin] .cos-sky { filter: blur(1.4px); }
.cos-frost { display: none; }
html.creative-ui[data-ui-skin] .cos-frost {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px,
    radial-gradient(80% 60% at 50% 110%, rgba(32, 47, 69, .5), rgba(32, 47, 69, 0) 70%),
    linear-gradient(180deg, rgba(18, 21, 28, .2), rgba(10, 12, 17, .3));
  transition: opacity 1.2s var(--r-ease);
}
html.creative-ui[data-ui-skin] .cos-sky.is-visible + .cos-frost { opacity: 1; }

@media (min-width: 761px) {
  /* Brand (top left): mark and name only; navigation lives in the
     bottom-left orb (refined-motion.js). */
  html:not(.mobile-screen)[data-ui-skin] .app > .side { clip-path: inset(0 calc(100% - 176px) calc(100% - 48px) 0 round 15px); pointer-events: none; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not(.mobile-screen)[data-ui-skin] .app > .side .nav { visibility: hidden; }
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar { padding-left: 200px !important; }
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar .title h2 { color: var(--muted) !important; font-weight: 500 !important; }

  /* Agent: the project column and the conversation sit together, centred;
     the composer stays at the bottom. */
  html:not(.mobile-screen)[data-ui-skin] .agent-layout { grid-template-columns: 220px minmax(0, 960px) !important; justify-content: center; }
  html:not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] section.chat { padding: 10px 14px 14px; }

  /* Forms take the room they need; only result areas fill the height, so
     no half-empty cards before you start. */
  html:not(.mobile-screen)[data-ui-skin] :is(.txt-workspace, .img-three-column, .video-quick-grid, .video-remake-grid) { align-items: start !important; }
  html:not(.mobile-screen)[data-ui-skin] :is(.txt-workspace, .img-three-column, .video-quick-grid, .video-remake-grid) > :last-child { align-self: stretch !important; }
  html:not(.mobile-screen)[data-ui-skin] .txt-workspace { grid-template-columns: minmax(400px, 480px) minmax(0, 1fr) !important; }
}
@media (min-width: 1180px) {
  html:not(.mobile-screen)[data-ui-skin] .img-three-column { grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr) minmax(0, 1.15fr) !important; }
}

/* ---------- Phone (after Apple HIG / Material 3 type and touch specs) ----------
   One quiet type scale: 17 title, 15 body, 13 secondary, 12 caption;
   44px touch targets; 16px side margins; inputs stay 16px so iOS does not
   zoom. The bottom tab bar gives way to the logo menu (mode-picker.js);
   fewer glows and gradients. */
@media (max-width: 760px) {
  html.mobile-screen[data-ui-skin] .app > .side { display: none !important; }
  html.mobile-screen[data-ui-skin] .main { padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
  html.mobile-screen[data-ui-skin] body { font-size: 15px; }
  html.mobile-screen[data-ui-skin] .topbar { gap: 8px; padding: 6px 12px !important; }
  html.mobile-screen[data-ui-skin] .topbar .title h2 { font-size: 17px !important; font-weight: 600 !important; letter-spacing: -.01em; }
  html.mobile-screen[data-ui-skin] .topbar .status { gap: 6px !important; }
  html.mobile-screen[data-ui-skin] .topbar .status :is(.chip, button) { font-size: 12px !important; }
  html.mobile-screen[data-ui-skin] #licenseStatusPill { max-width: 34px; overflow: hidden; padding: 0 !important; justify-content: center; text-indent: -999px; white-space: nowrap; }
  html.mobile-screen[data-ui-skin] #licenseStatusPill::before { text-indent: 0; }
  html.mobile-screen[data-ui-skin] .agent-message-body { font-size: 15px !important; line-height: 1.6 !important; }
  html.mobile-screen[data-ui-skin] .agent-message-meta { font-size: 12px !important; }
  html.mobile-screen[data-ui-skin] :is(.card-title strong, .view > .head h3, .view > .head strong) { font-size: 15px !important; }
  html.mobile-screen[data-ui-skin] :is(.field label, .agent-tool > span, .card-title span) { font-size: 12px !important; }
  html.mobile-screen[data-ui-skin] :is(.btn, .chip, .agent-tool select, .agent-output-summary) { font-size: 13px !important; }
  html.mobile-screen[data-ui-skin] .btn.primary { font-size: 14px !important; }
  html.mobile-screen[data-ui-skin] :is(textarea, input:not([type="checkbox"]):not([type="radio"]), select) { font-size: 16px !important; }
  html.mobile-screen[data-ui-skin] .view :is(small, .hint, .muted, .auth-note) { font-size: 12px !important; }
  /* Calm on the phone: no animated rims or blooms. */
  html.creative-ui.mobile-screen[data-ui-skin] :is(.btn.primary, .welcome-primary-action) {
    animation: none !important;
    background: linear-gradient(180deg, #c9d0ff, #9aa6ff) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 14px rgba(108, 124, 255, .12) !important;
  }
  html.creative-ui.mobile-screen[data-ui-skin] .view[data-view="agent"] section.chat { border-radius: 22px !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}

/* Logo button (phone): top left, opens the mode menu. */
.cos-logo-button { display: none; }
html.mobile-screen[data-ui-skin] .cos-logo-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 2px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--q-fill, rgba(0, 0, 0, .05));
  cursor: pointer;
}
html.mobile-screen[data-ui-skin] .cos-logo-button::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--mark-arc) center / contain no-repeat;
  mask: var(--mark-arc) center / contain no-repeat;
}
html.mobile-screen[data-ui-skin] .cos-logo-button::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--mint, #4fae9a);
  -webkit-mask: var(--mark-star) center / contain no-repeat;
  mask: var(--mark-star) center / contain no-repeat;
}
html:not(.creative-ui).mobile-screen[data-ui-skin] .cos-logo-button::after { background: #4fae9a; }

@media (prefers-reduced-motion: reduce) {
  html.creative-ui[data-ui-skin] .composer.agent-composer .agent-tool-row::before,
  html.creative-ui[data-ui-skin] .composer.agent-composer .agent-tool-row::after,
  html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-avatar { animation: none !important; }
}
html.creative-ui.mobile-screen[data-ui-skin] .mobile-nav-grid button:not([aria-current="page"]) .nav-icon { color: #d7dce1 !important; opacity: 1 !important; }

/* =====================================================================
   Round 16: composer halo back (quiet, in the icon palette), "Thinking…"
   at the bottom right of the typing area, fewer empty areas, a tidier
   top bar and a finer phone scale.
   ===================================================================== */
/* Composer halo (dark): a thin band of mint and white light travels slowly
   round the edge, with a faint bloom. Brighter while typing; quicker
   while the Agent thinks. */
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer { isolation: isolate; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::before,
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--cos-a), rgba(255, 255, 255, 0) 0deg 200deg, rgba(108, 124, 255, .35) 250deg, #9aa6ff 292deg, #ffffff 318deg, rgba(154, 166, 255, .45) 338deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cos-orb-spin 12s linear infinite;
  opacity: .45;
  transition: opacity .5s var(--r-ease);
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::after { z-index: -1; inset: -2px; padding: 3px; filter: blur(8px); opacity: .2; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer:focus-within::before { opacity: .75; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer:focus-within::after { opacity: .32; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] .chat:has(.bubble.is-transient) .composer.agent-composer::before { animation-duration: 4s; opacity: .85; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] .chat:has(.bubble.is-transient) .composer.agent-composer::after { animation-duration: 4s; opacity: .4; }

/* "Thinking…" (dark): bottom right of the typing area, just above the
   send controls; only while the Agent is working. */
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer .agent-tool-row::before,
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer .agent-tool-row::after {
  content: "";
  position: absolute;
  bottom: 60px;
  z-index: 3;
  display: none;
  height: 22px;
  pointer-events: none;
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer .agent-tool-row::before {
  right: 84px;
  width: 30px;
  background:
    radial-gradient(circle closest-side at 38% 34%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle closest-side, rgba(255, 255, 255, .05) 0 66%, rgba(255, 255, 255, .55) 90%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle closest-side at 38% 34%, rgba(227, 231, 255, .85), rgba(227, 231, 255, 0) 48%),
    radial-gradient(circle closest-side, rgba(154, 166, 255, .08) 0 66%, rgba(154, 166, 255, .5) 90%, rgba(154, 166, 255, 0) 100%);
  background-size: 18px 18px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(154, 166, 255, .3));
  animation: cos-think-bubbles 3.2s cubic-bezier(.45, 0, .55, 1) infinite, cos-chip-in .4s var(--r-out) both;
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer .agent-tool-row::after {
  content: "Thinking…";
  right: 16px;
  font: 500 12.5px/22px var(--font-display, inherit);
  letter-spacing: .01em;
  color: transparent;
  background: linear-gradient(100deg, rgba(170, 176, 184, .85) 0 38%, #ffffff 50%, rgba(170, 176, 184, .85) 62% 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: cos-text-sweep 2.6s linear infinite, cos-chip-in .4s var(--r-out) both;
}
/* Round 19 (user): the English "Thinking…" and its bubbles sat in the typing box, far from where the
   answer appears, and repeated the working message in the conversation. Not shown any more. */

/* Empty result areas: a framed preview space with an image glyph, instead
   of a lone line of text in a large void. */
html[data-ui-skin] .card:has(> .card-body > .result-grid > .empty-result:only-child) { display: flex !important; flex-direction: column; }
html[data-ui-skin] .card:has(> .card-body > .result-grid > .empty-result:only-child) > .card-body { flex: 1; display: flex !important; min-height: 0; }
html[data-ui-skin] .result-grid:has(> .empty-result:only-child) { flex: 1; display: flex !important; align-items: stretch !important; }
html[data-ui-skin] .result-grid > .empty-result:only-child {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  margin: 0 !important;
  border: 1px dashed rgba(0, 0, 0, .09) !important;
  border-radius: 18px !important;
  background: rgba(0, 0, 0, .015) !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
html.creative-ui[data-ui-skin] .result-grid > .empty-result:only-child { border-color: rgba(255, 255, 255, .08) !important; background: rgba(255, 255, 255, .02) !important; }
html[data-ui-skin] .result-grid > .empty-result:only-child::before {
  content: "";
  width: 40px;
  height: 40px;
  background: currentColor;
  opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%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' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 761px) {
  /* Agent: the project column runs the full height beside the panel. */
  html:not(.mobile-screen)[data-ui-skin] .agent-side { display: flex !important; flex-direction: column; }
  html:not(.mobile-screen)[data-ui-skin] .agent-side > .card:last-child { flex: 1; }

  /* Top bar: fewer words. Skin switch and sign-out become icons (names
     stay as aria-labels and tooltips); the licence pill is capped. */
  html:not(.mobile-screen)[data-ui-skin] .topbar #themeToggleBtn { width: 34px; min-width: 34px; padding: 0 !important; justify-content: center; }
  html:not(.mobile-screen)[data-ui-skin] .topbar #themeToggleBtn > b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html:not(.mobile-screen)[data-ui-skin] .topbar #themeToggleBtn > span { display: none !important; }
  html:not(.mobile-screen)[data-ui-skin] .topbar #themeToggleBtn::after {
    content: "" !important;
    display: block !important;
    width: 16px;
    height: 16px;
    margin: auto;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 17a5 5 0 0 0 0-10z' fill='black'/%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' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 17a5 5 0 0 0 0-10z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Result areas fill the visible height and stay in view while the form
     beside them scrolls. */
  html:not(.mobile-screen)[data-ui-skin] :is(.txt-workspace, .img-three-column, .video-quick-grid, .video-remake-grid) > :last-child {
    align-self: start !important;
    position: sticky;
    top: 0;
    height: calc(100dvh - 120px);
    min-height: 420px;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] :is(.txt-workspace, .img-three-column, .video-quick-grid, .video-remake-grid) > :last-child { height: calc(100dvh - 190px); }
  html:not(.mobile-screen)[data-ui-skin] .topbar #licenseStatusPill { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 34px; height: 34px; }
  html:not(.mobile-screen)[data-ui-skin] .topbar #licenseLogoutBtn:not(.hidden) { position: relative; width: 34px; min-width: 34px; padding: 0 !important; font-size: 0 !important; color: var(--ink-2, var(--ink)); }
  html:not(.mobile-screen)[data-ui-skin] .topbar #licenseLogoutBtn:not(.hidden)::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background: currentColor;
    border-radius: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%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' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Phone, finer: 14px reading text, 12-13px controls, 40px fields, tighter
   cards. Inputs keep 16px (smaller makes iOS zoom the page on focus). */
@media (max-width: 760px) {
  html.mobile-screen[data-ui-skin] .topbar .title h2 { font-size: 16px !important; }
  html.mobile-screen[data-ui-skin] .agent-message-body { font-size: 14px !important; line-height: 1.6 !important; }
  html.mobile-screen[data-ui-skin] .agent-message-meta, html.mobile-screen[data-ui-skin] .agent-message-meta strong { font-size: 11.5px !important; }
  html.mobile-screen[data-ui-skin] .view:not([data-view="infinite"]) { padding: 8px 12px 12px !important; }
  html.mobile-screen[data-ui-skin] :is(.card-title strong, .view > .head h3, .view > .head strong) { font-size: 14px !important; }
  html.mobile-screen[data-ui-skin] .view > .head :is(p, span) { font-size: 12px !important; }
  html.mobile-screen[data-ui-skin] .card-title { min-height: 40px !important; padding: 0 12px !important; }
  html.mobile-screen[data-ui-skin] .card-body { padding: 8px 12px 12px !important; }
  html.mobile-screen[data-ui-skin] :is(.field label, .agent-tool > span, .card-title span) { font-size: 11.5px !important; }
  html.mobile-screen[data-ui-skin] :is(.btn, .chip, .agent-tool select, .agent-output-summary, .action-chip) { font-size: 12.5px !important; }
  html.mobile-screen[data-ui-skin] .view :is(.btn:not(.primary), .action-chip) { min-height: 34px !important; padding: 0 12px !important; }
  html.mobile-screen[data-ui-skin] .btn.primary { min-height: 40px !important; font-size: 13.5px !important; }
  html.mobile-screen[data-ui-skin] .view :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"])) { height: 40px !important; min-height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  html.mobile-screen[data-ui-skin] .view .field { gap: 4px !important; }
  html.mobile-screen[data-ui-skin] .view :is(.drop, .video-upload-zone) { font-size: 12.5px !important; }
  html.mobile-screen[data-ui-skin] .composer textarea { min-height: 52px !important; }
  html.mobile-screen[data-ui-skin] .composer :is(.agent-tool, .agent-output-summary, .voice-input-button, .agent-media-trigger, .agent-advanced-toggle) { min-height: 34px !important; height: 34px; }
  html.mobile-screen[data-ui-skin] .composer :is(.voice-input-button, .agent-media-trigger) { width: 34px !important; min-width: 34px !important; }
  html.mobile-screen[data-ui-skin] .composer .agent-tool select { height: 34px !important; min-height: 34px !important; }
  html.mobile-screen[data-ui-skin] .composer .agent-send { min-height: 38px !important; height: 38px; }
  html.mobile-screen[data-ui-skin] .composer .agent-tool-row { gap: 6px !important; padding: 6px 8px 8px !important; }
  html.mobile-screen[data-ui-skin] .result-grid > .empty-result:only-child { min-height: 160px; font-size: 12.5px; }
  html.mobile-screen[data-ui-skin] .result-grid > .empty-result:only-child::before { width: 30px; height: 30px; }
  html.creative-ui.mobile-screen[data-ui-skin] .view[data-view="agent"] .composer.agent-composer .agent-tool-row::before { right: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::before,
  html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::after { animation: none !important; }
}

/* =====================================================================
   Round 17: navigation orb, bottom left (desktop). A small glass orb with
   the brand arc; above it a quiet "切换功能" hint whose characters rise in
   once, then a slow wave of light passes through them. Click: the
   features fan out on a short arc, each with a small label.
   ===================================================================== */
.cos-fan { display: none; }
@keyframes cos-hint-rise { from { opacity: 0; transform: translateY(5px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cos-hint-wave { 0%, 70%, 100% { color: var(--fan-hint); text-shadow: none; } 35% { color: var(--fan-hint-hi); text-shadow: 0 0 8px var(--fan-glow); } }
@keyframes cos-hint-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes cos-hint-line { 0%, 100% { opacity: .35; transform: scaleY(.7); } 50% { opacity: .9; transform: scaleY(1); } }
@keyframes cos-orb-breathe { 0%, 100% { box-shadow: var(--fan-orb-shadow), 0 0 0 0 var(--fan-glow); } 50% { box-shadow: var(--fan-orb-shadow), 0 0 18px 2px var(--fan-glow); } }
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .cos-fan {
    --fan-hint: rgba(214, 222, 228, .55);
    --fan-hint-hi: #ffffff;
    --fan-glow: rgba(154, 166, 255, .45);
    --fan-chip: rgba(28, 31, 36, .78);
    --fan-chip-ink: #e6eaee;
    --fan-label: #b4bcc5;
    --fan-orb-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), inset 0 -3px 6px rgba(12, 20, 32, .45), 0 8px 20px -6px rgba(108, 124, 255, .5);
    position: fixed;
    left: 14px;
    bottom: 32px;
    z-index: 80;
    display: block;
    width: 44px;
    height: 44px;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan {
    --fan-hint: rgba(60, 64, 72, .55);
    --fan-hint-hi: #1d1d1f;
    --fan-glow: rgba(79, 174, 154, .3);
    --fan-chip: rgba(255, 255, 255, .92);
    --fan-chip-ink: #3a3d44;
    --fan-label: #5f636b;
    --fan-orb-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px rgba(30, 40, 60, .14);
  }
  html:not(.mobile-screen)[data-ui-skin] body:has(#app.hidden) .cos-fan,
  html:not(.mobile-screen)[data-ui-skin] body:has(#welcome:not(.hidden)) .cos-fan { display: none; }

  /* Room for the orb: pages start a little in from the left edge. */
  html:not(.mobile-screen)[data-ui-skin] .main > .panel { margin-left: 58px; }
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar { padding-left: 200px !important; }
  html:not(.mobile-screen)[data-ui-skin] .app-legal-footer { padding-left: 72px !important; }

  /* The orb. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background:
      radial-gradient(42% 30% at 34% 22%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%),
      radial-gradient(circle, rgba(255, 255, 255, 0) 0 58%, rgba(232, 248, 242, .35) 80%, rgba(246, 252, 250, .7) 100%),
      radial-gradient(50% 50% at 50% 50%, rgba(108, 124, 255, .8), rgba(108, 124, 255, 0) 100%),
      conic-gradient(from var(--cos-a) at 50% 52%, #2a3d57, #4a5bff 22%, #9aa6ff 40%, #4f7f86 58%, #203047 78%, #2a3d57);
    box-shadow: var(--fan-orb-shadow);
    animation: cos-orb-spin 16s linear infinite, cos-orb-breathe 4.5s ease-in-out infinite;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-orb {
    background: radial-gradient(42% 30% at 34% 22%, #fff, rgba(255, 255, 255, 0) 72%), radial-gradient(circle at 50% 70%, #f4f6f8, #e4e8ed);
    animation: cos-orb-breathe 4.5s ease-in-out infinite;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb::before {
    content: "";
    position: absolute;
    inset: 11px;
    background: #fff;
    -webkit-mask: var(--mark-arc) center / contain no-repeat;
    mask: var(--mark-arc) center / contain no-repeat;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .6));
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 9px;
    width: 7px;
    height: 7px;
    background: #e3e7ff;
    -webkit-mask: var(--mark-star) center / contain no-repeat;
    mask: var(--mark-star) center / contain no-repeat;
    filter: drop-shadow(0 0 3px rgba(154, 166, 255, .95));
    animation: cos-twinkle 2.6s ease-in-out infinite;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-orb::before { background: #1d1d1f; filter: none; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-orb::after { background: #4fae9a; filter: none; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb:hover { transform: scale(1.06); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 3px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-orb { transform: scale(.92); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-orb::before { transform: rotate(-90deg); }

  /* Scrim: a soft shade rising from the corner, click to close. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at 36px calc(100% - 54px), rgba(3, 5, 9, .62), rgba(3, 5, 9, .34) 260px, rgba(3, 5, 9, 0) 520px);
    transition: opacity .35s var(--r-ease);
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at 36px calc(100% - 54px), rgba(246, 247, 249, .85), rgba(246, 247, 249, .5) 260px, rgba(246, 247, 249, 0) 520px); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-scrim { opacity: 1; pointer-events: auto; }

  /* Items: fan out from the orb along a quarter arc (up to right). */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-items { position: absolute; left: 0; top: 0; z-index: 2; width: 44px; height: 44px; pointer-events: none; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--fan-chip-ink);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 0) scale(.4);
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .25s var(--r-ease);
    transition-delay: calc((7 - var(--d)) * 14ms);
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-item {
    opacity: 1;
    pointer-events: auto;
    transform: translate(var(--x), var(--y)) scale(1);
    transition-delay: calc(var(--d) * 26ms);
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-chip {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fan-chip);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 6px 16px rgba(0, 0, 0, .3);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background-color .2s var(--r-ease), transform .2s var(--r-ease);
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px rgba(30, 40, 60, .12); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-chip svg { width: 16px; height: 16px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item:is(:hover, :focus-visible) .cos-fan-chip { transform: scale(1.1); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item:focus-visible { outline: none; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item:focus-visible .cos-fan-chip { box-shadow: 0 0 0 2px var(--ink); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-chip { color: #0b0d1a; background: #9aa6ff; box-shadow: 0 0 0 4px rgba(154, 166, 255, .14), 0 6px 16px rgba(108, 124, 255, .35); }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-chip { color: #fff; background: #1d1d1f; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-label {
    position: absolute;
    left: 50%;
    top: 50%;
    font: 500 11px/14px var(--font-display, inherit);
    letter-spacing: .02em;
    white-space: nowrap;
    color: var(--fan-label);
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--lx), var(--ly));
    transition: opacity .3s var(--r-ease), color .2s var(--r-ease);
    pointer-events: none;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-label { opacity: 1; transition-delay: calc(.12s + var(--d) * 26ms); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item:is(:hover, :focus-visible) .cos-fan-label { color: var(--fan-hint-hi); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-label { color: #9aa6ff; font-weight: 600; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-label { color: #1d1d1f; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-skin] .cos-fan :is(.cos-fan-orb, .cos-fan-orb::after, .cos-fan-hint i, .cos-fan-hint::after) { animation: none !important; }
  html[data-ui-skin] .cos-fan :is(.cos-fan-item, .cos-fan-label, .cos-fan-scrim, .cos-fan-orb, .cos-fan-orb::before) { transition: none !important; }
}

/* =====================================================================
   Round 18: one visual system. Shared rules for pieces that had drifted
   apart: the brand corner, segmented tabs, notices, canvas nodes, floating
   controls, form submit buttons. Dark uses the icon palette throughout.
   ===================================================================== */
/* Brand corner: just the mark and name, no tile. */
@media (min-width: 761px) {
  html[data-ui-skin]:not(.mobile-screen) #app > .side { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html[data-ui-skin]:not(.mobile-screen) #app > .side .side-head { border: 0 !important; box-shadow: none !important; background: none !important; }
}

/* Segmented tabs (batch tasks, pose and styling sets): one quiet pill
   style; the selected one is mint on dark, ink on light. */
html[data-ui-skin] :is(.batch-json-tab, .batch-pose-tab) {
  min-height: 30px;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--muted) !important;
  background: var(--q-fill, rgba(0, 0, 0, .045)) !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  transform: none !important;
  transition: background-color .2s var(--r-ease), color .2s var(--r-ease);
}
html[data-ui-skin] :is(.batch-json-tab, .batch-pose-tab):hover { color: var(--ink) !important; background: var(--q-fill-h, rgba(0, 0, 0, .07)) !important; }
html.creative-ui[data-ui-skin] :is(.batch-json-tab, .batch-pose-tab).active { color: #9aa6ff !important; background: rgba(154, 166, 255, .1) !important; box-shadow: inset 0 0 0 1px rgba(154, 166, 255, .3) !important; font-weight: 600 !important; }
html:not(.creative-ui)[data-ui-skin] :is(.batch-json-tab, .batch-pose-tab).active { color: #fff !important; background: #1d1d1f !important; font-weight: 600 !important; }
html[data-ui-skin] .batch-json-tab[data-status="error"]:not(.active) { color: #e8a0a6 !important; }

/* Notices inside nodes and forms: neutral, never a red wash. */
html[data-ui-skin] .batch-item-retry {
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--muted) !important;
  background: var(--q-fill, rgba(0, 0, 0, .04)) !important;
  box-shadow: none !important;
  font-size: 12px;
}
html[data-ui-skin] .batch-item-retry .btn { color: var(--ink) !important; background: var(--q-fill-h, rgba(0, 0, 0, .06)) !important; border: 0 !important; box-shadow: none !important; }

/* Canvas nodes (dark): solid enough that connector lines never show
   through the content. A scrolling settings area fades at its bottom. */
html.creative-ui[data-ui-skin] article.node { background: rgba(22, 23, 27, .96) !important; }
html[data-ui-skin] .batch-reverse-settings {
  -webkit-mask: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
  mask: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
  padding-bottom: 10px;
}

/* Floating controls on canvases share the bar glass. */
html.creative-ui[data-ui-skin] .workflow-simple .workflow-zoom-controls {
  border: 0 !important;
  background: rgba(24, 26, 30, .82) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 26px rgba(0, 0, 0, .4) !important;
}

/* Submit buttons that close a form look like every other primary. */
html[data-ui-skin] #feedbackBtn {
  min-height: 40px;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: #1d1d1f !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14) !important;
}
html.creative-ui[data-ui-skin] #feedbackBtn { color: #0b0d1a !important; background: linear-gradient(180deg, #e3e7ff, #9aa6ff) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 18px rgba(108, 124, 255, .14) !important; }

/* Text-to-image: the generate action ends the form, as on every other
   page, and stays reachable while the form scrolls. */
html[data-ui-skin] .btn.primary.txt-run-button {
  position: sticky !important;
  bottom: 0;
  z-index: 2;
  width: 100%;
  min-height: 44px !important;
  margin-top: 4px;
}
html[data-ui-skin] .txt-workspace > .card:first-child { overflow: visible !important; }
html[data-ui-skin] .txt-run-button { box-shadow: 0 -10px 24px rgba(0, 0, 0, .12), 0 6px 22px rgba(108, 124, 255, .14) !important; }

/* =====================================================================
   Round 19: "更多设置" opens upward like every other composer menu; the
   "切换功能" hint becomes a small glass capsule with a travelling edge
   of light (the composer's halo, in miniature) and a tail to the orb.
   ===================================================================== */
html[data-ui-skin] .view[data-view="agent"] .composer.agent-composer { overflow: visible !important; }
html[data-ui-skin] .view[data-view="agent"] .composer .agent-advanced-panel:not([hidden]) {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  margin: 0 !important;
  padding: 14px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .16) !important;
  animation: refined-float .26s var(--r-out) both;
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] .composer .agent-advanced-panel:not([hidden]) {
  background: rgba(22, 24, 28, .96) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 28px 70px rgba(0, 0, 0, .6) !important;
}
html[data-ui-skin] .agent-advanced-toggle::after { transform: rotate(-90deg) !important; }
html[data-ui-skin] .agent-advanced-toggle[aria-expanded="true"]::after { transform: rotate(90deg) !important; }

@keyframes cos-cap-in { from { opacity: 0; transform: translate(-50%, 6px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: translate(-50%, 0); filter: none; } }
@keyframes cos-cap-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 11px);
    display: block;
    padding: 0 9px;
    height: 22px;
    border-radius: 11px;
    font: 500 11px/22px var(--font-display, inherit);
    letter-spacing: .04em;
    white-space: nowrap;
    color: #e4ebee;
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 16px rgba(0, 0, 0, .3);
    pointer-events: none;
    isolation: isolate;
    transform: translate(-50%, 0);
    animation: cos-cap-in .7s cubic-bezier(.16, 1, .3, 1) .5s both, cos-cap-float 5s ease-in-out 1.2s infinite;
    transition: opacity .3s var(--r-ease), color .2s var(--r-ease);
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-hint {
    color: #2b2e33;
    background: rgba(255, 255, 255, .92);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 6px 16px rgba(30, 40, 60, .1);
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint i { font-style: normal; }
  /* A band of mint and white light circles the capsule's edge. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--cos-a), rgba(255, 255, 255, 0) 0deg 230deg, rgba(108, 124, 255, .6) 280deg, #ffffff 316deg, rgba(154, 166, 255, .7) 336deg, rgba(255, 255, 255, 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: cos-orb-spin 6s linear infinite;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-hint::before { background: conic-gradient(from var(--cos-a), rgba(0, 0, 0, 0) 0deg 230deg, rgba(79, 174, 154, .5) 290deg, rgba(29, 29, 31, .55) 320deg, rgba(0, 0, 0, 0) 360deg); }
  /* Tail pointing down to the orb. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 7px;
    height: 7px;
    margin: -4px 0 0 -3.5px;
    background: inherit;
    border-radius: 0 0 2px 0;
    box-shadow: inset -1px -1px 0 rgba(255, 255, 255, .1);
    transform: rotate(45deg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-hint::after { background: #fff; box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .07); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan:hover .cos-fan-hint { color: #ffffff; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-hint { opacity: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-skin] .cos-fan-hint, html[data-ui-skin] .cos-fan-hint::before { animation: none !important; }
  html[data-ui-skin] .view[data-view="agent"] .composer .agent-advanced-panel:not([hidden]) { animation: none !important; }
}

/* =====================================================================
   Round 20 (after the "ring of light" recording). Dark accent is now the
   reference's white core with an indigo glow. The navigation orb becomes
   a ring of light with the brand C inside; it tilts, breathes and dims
   but never goes fully dark. It lives at the right end of the footer,
   so pages use the full width with no side gutters. The Agent avatar
   uses the same ring.
   ===================================================================== */
@keyframes cos-ring-tilt {
  0%, 100% { transform: perspective(90px) rotateX(0deg) rotateZ(0deg); opacity: 1; }
  22% { transform: perspective(90px) rotateX(62deg) rotateZ(-14deg); opacity: 1; }
  44% { transform: perspective(90px) rotateX(0deg) rotateZ(0deg); opacity: 1; }
  68% { opacity: .42; }
  84% { opacity: 1; }
}
@keyframes cos-ring-c { 0%, 60%, 100% { opacity: 1; filter: drop-shadow(0 0 3px rgba(154, 166, 255, .95)); } 72% { opacity: .5; filter: drop-shadow(0 0 1px rgba(154, 166, 255, .5)); } }
@keyframes cos-ring-bloom { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 0 18px rgba(92, 108, 255, .35); } 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 28px rgba(92, 108, 255, .55); } }

@media (min-width: 761px) {
  /* No side gutters: pages run edge to edge; the footer grows a little
     to carry the orb at its right end. */
  html:not(.mobile-screen)[data-ui-skin] .main > .panel { margin-left: 0 !important; }
  html:not(.mobile-screen)[data-ui-skin] .main { grid-template-rows: 52px minmax(0, 1fr) 44px !important; }
  html:not(.mobile-screen)[data-ui-skin] .app-legal-footer { height: 44px !important; min-height: 44px !important; padding: 0 168px 0 16px !important; }
  html:not(.mobile-screen)[data-ui-skin] .agent-layout { grid-template-columns: 232px minmax(0, 1fr) !important; justify-content: stretch !important; }

  html:not(.mobile-screen)[data-ui-skin] .cos-fan { left: auto; right: 18px; bottom: 4px; width: 36px; height: 36px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-items { width: 36px; height: 36px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-item { left: 2px; top: 2px; }

  /* The orb: a dark disc holding a ring of light and the C. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, #05060c 0 55%, #0c0f22 74%, #05060c 100%) !important;
    animation: cos-ring-bloom 7s ease-in-out infinite !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb::before {
    inset: 3px !important;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    background: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    box-shadow: 0 0 3px #fff, 0 0 9px rgba(124, 139, 255, .95), 0 0 18px rgba(92, 108, 255, .55), inset 0 0 7px rgba(124, 139, 255, .7);
    filter: none !important;
    animation: cos-ring-tilt 7s cubic-bezier(.45, 0, .35, 1) infinite;
    transition: none;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-orb::after {
    inset: 11px !important;
    top: 11px !important;
    right: 11px !important;
    width: auto !important;
    height: auto !important;
    background: #ffffff !important;
    -webkit-mask: var(--mark-arc) center / contain no-repeat !important;
    mask: var(--mark-arc) center / contain no-repeat !important;
    animation: cos-ring-c 7s ease-in-out infinite !important;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-orb-star {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 6px;
    background: #ffffff;
    -webkit-mask: var(--mark-star) center / contain no-repeat;
    mask: var(--mark-star) center / contain no-repeat;
    filter: drop-shadow(0 0 2px rgba(154, 166, 255, 1));
    offset-path: path("M21.35 15.19A4.375 4.375 0 1 0 21.35 20.81");
    offset-rotate: 0deg;
    offset-anchor: center;
    animation: cos-orbit 9s cubic-bezier(.45, 0, .55, 1) infinite;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan.is-open .cos-fan-orb::before { animation-play-state: paused; }
  /* Light skin keeps its own colours: an ink ring on a white disc with the
     white UI's soft mint glow and mint star, no indigo. */
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-orb { background: radial-gradient(circle, #ffffff 0 60%, #f1f2f8 100%) !important; animation-name: cos-ring-bloom-light !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-orb::before { border-color: #1d1d1f; box-shadow: 0 0 8px rgba(79, 174, 154, .3); }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-orb::after { background: #1d1d1f !important; filter: none !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-orb-star { background: #4fae9a !important; filter: none !important; }

  /* Hint capsule: beside the orb, tail pointing right. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint {
    left: auto;
    right: calc(100% + 11px);
    bottom: auto;
    top: 7px;
    transform: none;
    animation: cos-cap-in-side .7s cubic-bezier(.16, 1, .3, 1) .5s both, cos-cap-float 5s ease-in-out 1.2s infinite;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint::after {
    left: 100%;
    top: 50%;
    margin: -3.5px 0 0 -4px;
    border-radius: 0 2px 0 0;
    box-shadow: inset -1px 1px 0 rgba(255, 255, 255, .1);
  }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-hint::after { box-shadow: inset -1px 1px 0 rgba(0, 0, 0, .07); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint::before { background: conic-gradient(from var(--cos-a), rgba(255, 255, 255, 0) 0deg 230deg, rgba(108, 124, 255, .7) 280deg, #ffffff 316deg, rgba(154, 166, 255, .8) 336deg, rgba(255, 255, 255, 0) 360deg); }

  /* Scrim rises from the bottom-right corner. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at calc(100% - 36px) calc(100% - 22px), rgba(3, 4, 10, .66), rgba(3, 4, 10, .36) 260px, rgba(3, 4, 10, 0) 520px); }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at calc(100% - 36px) calc(100% - 22px), rgba(246, 247, 249, .88), rgba(246, 247, 249, .5) 260px, rgba(246, 247, 249, 0) 520px); }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-chip { color: #0b0d1a; background: #ffffff; box-shadow: 0 0 0 3px rgba(124, 139, 255, .3), 0 0 16px rgba(92, 108, 255, .6); }
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-label { color: #c9d0ff; }
}
@keyframes cos-cap-in-side { from { opacity: 0; transform: translateX(6px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Agent avatar (dark): the same ring of light with the C and its star. */
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar {
  background: radial-gradient(circle, #05060c 0 52%, #0c0f22 72%, #05060c 100%) !important;
  box-shadow:
    inset 0 0 0 1.5px #ffffff,
    inset 0 0 8px 1px rgba(124, 139, 255, .75),
    0 0 4px rgba(255, 255, 255, .6),
    0 0 12px rgba(108, 124, 255, .7),
    0 0 24px rgba(92, 108, 255, .3) !important;
  animation: cos-avatar-glow 6s ease-in-out infinite !important;
}
@keyframes cos-avatar-glow { 0%, 100% { filter: brightness(1); } 70% { filter: brightness(.7); } }
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar::before { filter: drop-shadow(0 0 2px rgba(154, 166, 255, .9)) !important; }
html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar::after { background: #ffffff !important; filter: drop-shadow(0 0 3px rgba(154, 166, 255, 1)) !important; }
html.creative-ui[data-ui-skin] .bubble.agent.is-transient .agent-message-avatar { animation: cos-avatar-glow 1.6s ease-in-out infinite !important; }

@media (prefers-reduced-motion: reduce) {
  html[data-ui-skin] :is(.cos-fan-orb, .cos-fan-orb::before, .cos-fan-orb::after, .cos-orb-star, .cos-fan-hint) { animation: none !important; }
  html.creative-ui[data-ui-skin] .bubble.agent .agent-message-avatar { animation: none !important; }
}
@media (min-width: 761px) {
  /* Legible over anything: solid chips, labels on small dark pills, and a
     deeper shade near the corner while the fan is open. */
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .cos-fan-chip { background: rgba(18, 20, 30, .96) !important; box-shadow: inset 0 0 0 1px rgba(154, 166, 255, .18), 0 6px 16px rgba(0, 0, 0, .45) !important; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-label { padding: 2px 7px; border-radius: 7px; background: rgba(12, 14, 22, .82); }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-label { background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(30, 40, 60, .1); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at calc(100% - 36px) calc(100% - 22px), rgba(3, 4, 10, .82), rgba(3, 4, 10, .55) 280px, rgba(3, 4, 10, 0) 560px) !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at calc(100% - 36px) calc(100% - 22px), rgba(246, 247, 249, .95), rgba(246, 247, 249, .65) 280px, rgba(246, 247, 249, 0) 560px) !important; }
}
@media (min-width: 761px) {
  html.creative-ui:not(.mobile-screen)[data-ui-skin] .cos-fan-item.is-active .cos-fan-chip { color: #0b0d1a !important; background: #ffffff !important; box-shadow: 0 0 0 3px rgba(124, 139, 255, .3), 0 0 16px rgba(92, 108, 255, .6) !important; }
}

/* =====================================================================
   Round 21: opening sequence "星轨划过" (option B) and the infinity
   loader.
   0.0s  night sky; the top bar (进入工作台) is already there
   0.3s  a star streaks across and comes to rest where the C begins
   1.7s  the C draws itself in light; its star pops
   3.1s  we dive through the C: the sky opens onto the film
   3.7s  bottom left: kicker, then the title rises character by character,
         then the white CTA. Any click or key skips straight to the end.
   The film may load slowly: an infinity loader shows until it plays,
   never blocking the way in.
   ===================================================================== */
@keyframes w2-curtain { 0%, 74% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes w2-film { from { transform: scale(1.16); filter: brightness(.45); } to { transform: none; filter: none; } }
@keyframes w2-char { from { opacity: 0; transform: translateY(46%) rotate(4deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes w2-trail { to { stroke-dashoffset: 0; } }
@keyframes w2-fade-out { to { opacity: 0; } }
@keyframes w2-head { to { offset-distance: 100%; } }
@keyframes w2-pop { from { opacity: 0; transform: scale(.2) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes w2-dive { 0% { transform: scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(16); opacity: 0; } }

html[data-ui-skin] #welcome::before {
  background:
    radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 22% 68%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.4px 1.4px at 37% 28%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 51% 82%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1px 1px at 63% 18%, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.2px 1.2px at 74% 55%, rgba(255, 255, 255, .65), transparent),
    radial-gradient(1px 1px at 86% 34%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 93% 76%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1px 1px at 15% 44%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1px 1px at 44% 52%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(70% 50% at 50% 112%, #161b40 0, transparent 70%),
    #02030a !important;
  animation: w2-curtain 4.1s cubic-bezier(.4, 0, .2, 1) both !important;
}
html[data-ui-skin] #welcome .welcome-media { animation: w2-film 2.2s cubic-bezier(.16, 1, .3, 1) 3.1s both !important; }
html[data-ui-skin] #welcome .welcome-top { position: relative; z-index: 50; animation: w-fade .8s var(--r-ease) .4s both !important; }

/* The intro stage (refined-motion.js): a 1280×800 scene scaled to cover. */
.w-intro { position: absolute; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; }
.w-intro-stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 800px; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.w-intro-dive { transform-origin: 640px 400px; animation: w2-dive 1.3s cubic-bezier(.75, 0, .25, 1) 3.1s forwards; }
.w-intro-trail { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: w2-trail 1.6s cubic-bezier(.5, 0, .15, 1) .3s forwards, w2-fade-out .8s ease 2.1s forwards; }
.w-intro-c { stroke-dasharray: 240; stroke-dashoffset: 240; animation: w2-trail .9s cubic-bezier(.65, 0, .35, 1) 1.7s forwards; }
.w-intro-star { opacity: 0; transform-box: fill-box; transform-origin: center; animation: w2-pop .7s cubic-bezier(.16, 1, .3, 1) 2.35s forwards; }
.w-intro-head {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  box-shadow: 0 0 12px #fff, 0 0 26px rgba(124, 139, 255, .9);
  offset-path: path("M -60 120 C 300 160 520 280 610 340 S 652 360 668 362");
  offset-rotate: auto;
  offset-distance: 0%;
  animation: w2-head 1.6s cubic-bezier(.5, 0, .15, 1) .3s forwards, w2-fade-out .3s ease 1.9s forwards;
}

/* Copy: bottom left, rising in after the dive. */
html[data-ui-skin] #welcome .welcome-core { align-self: end; margin-top: 0; margin-bottom: clamp(90px, 13vh, 150px); }
html[data-ui-skin] #welcome .welcome-title { font-size: clamp(54px, 6.4vw, 104px); }
html[data-ui-skin] #welcome .welcome-kicker { animation: w-track 1s var(--r-out) 3.7s both !important; }
html[data-ui-skin] #welcome .welcome-title-line b {
  transform-origin: left bottom;
  animation: w2-char .8s cubic-bezier(.16, 1, .3, 1) both !important;
  animation-delay: calc(3.9s + var(--char) * 55ms) !important;
}
html[data-ui-skin] #welcome .welcome-title::after { animation-delay: 5.3s !important; }
html[data-ui-skin] #welcome :is(.welcome-video-timeline, .welcome-chapter, .welcome-legal-footer) { animation: w-fade 1s var(--r-ease) 5s both !important; }
/* The CTA: a plain white pill, no coloured rim or glow. */
html[data-ui-skin] #welcome#welcome .welcome-primary-action {
  border: 0 !important;
  color: #0b0d1a !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35) !important;
  animation: w-rise .9s var(--r-out) 4.8s both !important;
  transition: transform .2s var(--r-ease), box-shadow .3s var(--r-ease);
}
html[data-ui-skin] #welcome .welcome-primary-action::before,
html[data-ui-skin] #welcome .welcome-primary-action::after { display: none !important; }
html[data-ui-skin] #welcome#welcome .welcome-primary-action:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(0, 0, 0, .45) !important; }

/* Skip: any click or key during the intro jumps to the final state. */
#welcome.w-skip .w-intro { display: none; }
#welcome.w-skip::before,
#welcome.w-skip :is(.welcome-media, .welcome-top, .welcome-kicker, .welcome-title-line b, .welcome-primary-action, .welcome-video-timeline, .welcome-chapter, .welcome-legal-footer),
#welcome.w-skip .welcome-title::after { animation-delay: 0s !important; animation-duration: .01s !important; }

/* ---------- Infinity loader ----------
   A faint infinity track with a comet running round it, its colour
   drifting between teal and indigo. Pure CSS on any element of class
   .cos-inf, and on the existing generation (.loader-orbit) and canvas
   loading (.infinite-canvas-loading i) indicators. */
@keyframes cos-inf-run { to { offset-distance: 100%; } }
@keyframes cos-inf-hue { 0%, 100% { color: #5fe3cf; } 50% { color: #8a7bff; } }
:is(.cos-inf, .loader-orbit, .infinite-canvas-loading i) {
  position: relative !important;
  display: block !important;
  width: 64px !important;
  height: 32px !important;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath d='M32 16C38 7 52 6 52 16C52 26 38 25 32 16C26 7 12 6 12 16C12 26 26 25 32 16Z' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E") center / 64px 32px no-repeat !important;
  box-shadow: none !important;
  animation: cos-inf-hue 3.6s ease-in-out infinite !important;
  flex: none;
}
:is(.cos-inf, .loader-orbit, .infinite-canvas-loading i) > svg { display: none !important; }
/* Head and a fainter tail running a few percent behind it. */
:is(.cos-inf, .loader-orbit, .infinite-canvas-loading i)::before,
:is(.cos-inf, .loader-orbit, .infinite-canvas-loading i)::after {
  content: "" !important;
  position: absolute !important;
  inset: auto !important;
  left: 0 !important;
  top: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  offset-path: path("M32 16C38 7 52 6 52 16C52 26 38 25 32 16C26 7 12 6 12 16C12 26 26 25 32 16Z");
  offset-rotate: auto;
  offset-anchor: center;
  offset-distance: 0%;
  opacity: 1 !important;
  transform: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}
:is(.cos-inf, .loader-orbit, .infinite-canvas-loading i)::after {
  width: 7px !important;
  height: 3px !important;
  background: #ffffff !important;
  box-shadow: 0 0 5px currentColor, 0 0 12px currentColor, 0 0 20px currentColor !important;
  animation: cos-inf-run 1.8s linear infinite !important;
}
:is(.cos-inf, .loader-orbit, .infinite-canvas-loading i)::before {
  width: 12px !important;
  height: 2px !important;
  background: currentColor !important;
  box-shadow: 0 0 8px currentColor !important;
  opacity: .55 !important;
  filter: blur(.6px);
  animation: cos-inf-run 1.8s linear -1.71s infinite !important;
}
html:not(.creative-ui) :is(.loader-orbit, .infinite-canvas-loading i, .cos-inf) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath d='M32 16C38 7 52 6 52 16C52 26 38 25 32 16C26 7 12 6 12 16C12 26 26 25 32 16Z' fill='none' stroke='%23000000' stroke-opacity='.12' stroke-width='2'/%3E%3C/svg%3E") !important; animation-name: cos-inf-hue-light !important; }
@keyframes cos-inf-hue-light { 0%, 100% { color: #1fa58f; } 50% { color: #5a4fe0; } }

/* Welcome: the loader waits bottom right until the film can play. */
.w-loading {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(244, 245, 250, .55);
  font: 500 10.5px/1 var(--font-display, inherit);
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--r-ease);
}
#welcome:has(.welcome-video:not(.is-ready)) .w-loading { opacity: 1; transition-delay: 3.6s; }
#welcome.w-skip:has(.welcome-video:not(.is-ready)) .w-loading { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .w-intro { display: none !important; }
  html[data-ui-skin] #welcome::before { animation: none !important; opacity: 0; visibility: hidden; }
  :is(.cos-inf, .loader-orbit, .infinite-canvas-loading i)::before, :is(.cos-inf, .loader-orbit, .infinite-canvas-loading i)::after { animation-duration: 6s !important; }
}
html[data-ui-skin] .result-loader .loader-orbit { display: block !important; margin: 0 auto 10px; }
html:not(.creative-ui) :is(.loader-orbit, .infinite-canvas-loading i, .cos-inf)::after { background: currentColor !important; }

/* =====================================================================
   Round 22: navigation at the top centre, quieter message bubbles, a
   level header, and an opening without the film that flows straight
   into the workspace.
   ===================================================================== */
@media (min-width: 761px) {
  /* Header: one line, brand and page name on the same centre line. */
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar { height: 52px !important; min-height: 52px !important; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; }
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar .title { display: flex; align-items: center; height: 52px; }
  html:not(.mobile-screen)[data-ui-skin] .main > .topbar .title h2 { margin: 0 !important; line-height: 1 !important; font-size: 15px !important; }
  html:not(.mobile-screen)[data-ui-skin] #app > .side { top: 2px !important; }
  html:not(.mobile-screen)[data-ui-skin] .main { grid-template-rows: 52px minmax(0, 1fr) 28px !important; }
  html:not(.mobile-screen)[data-ui-skin] .app-legal-footer { height: 28px !important; min-height: 28px !important; padding: 0 16px !important; }

  /* Navigation orb: top centre, capsule to its right, the features open
     on a half circle below. */
  html:not(.mobile-screen)[data-ui-skin] .cos-fan { left: calc(50% - 58px); right: auto; top: 8px; bottom: auto; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint {
    left: calc(100% + 11px);
    right: auto;
    top: 7px;
    animation: cos-cap-in-r .7s cubic-bezier(.16, 1, .3, 1) .3s both, cos-cap-float 5s ease-in-out 1s infinite;
    pointer-events: auto;
    cursor: pointer;
  }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-hint::after { left: auto; right: 100%; margin: -3.5px -4px 0 0; border-radius: 0 0 0 2px; box-shadow: inset 1px -1px 0 rgba(255, 255, 255, .1); }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-hint::after { box-shadow: inset 1px -1px 0 rgba(0, 0, 0, .07); }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at 50% 26px, rgba(3, 4, 10, .82), rgba(3, 4, 10, .55) 280px, rgba(3, 4, 10, 0) 560px) !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at 50% 26px, rgba(246, 247, 249, .95), rgba(246, 247, 249, .65) 280px, rgba(246, 247, 249, 0) 560px) !important; }
}
@keyframes cos-cap-in-r { from { opacity: 0; transform: translateX(-6px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Your messages: a compact bubble on the right, no title row, actions
   appear on hover below it. Same shape on both skins. */
html[data-ui-skin] .bubble.user { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
html[data-ui-skin] .bubble.user .agent-message-shell {
  max-width: min(560px, 72%) !important;
  margin-left: auto;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 18px 18px 6px 18px !important;
  color: var(--ink) !important;
  background: #eef0f5 !important;
  box-shadow: none !important;
}
html.creative-ui[data-ui-skin] .bubble.user .agent-message-shell { color: #f2f4f8 !important; background: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06) !important; }
html[data-ui-skin] .bubble.user .agent-message-meta { display: none !important; }
html[data-ui-skin] .bubble.user .agent-message-body { font-size: 14.5px !important; line-height: 1.6 !important; color: inherit !important; }
html[data-ui-skin] .bubble.user .agent-message-actions {
  position: absolute;
  right: 0;
  top: 100%;
  display: flex;
  gap: 4px;
  margin: 0 !important;
  padding-top: 4px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s var(--r-ease), transform .18s var(--r-ease);
  pointer-events: none;
}
html[data-ui-skin] .bubble.user .agent-message-shell { position: relative; }
html[data-ui-skin] .bubble.user:is(:hover, :focus-within) .agent-message-actions { opacity: 1; transform: none; pointer-events: auto; }
html[data-ui-skin] .bubble.user .agent-message-action { height: 24px; padding: 0 8px !important; font-size: 11.5px !important; color: var(--muted) !important; background: transparent !important; }
html[data-ui-skin] .bubble.user .agent-message-action:hover { color: var(--ink) !important; background: var(--q-fill, rgba(0, 0, 0, .05)) !important; }
html[data-ui-skin] .bubble.user { margin-bottom: 14px; }

/* ---------- Opening without the film ----------
   The sky stays as the background; the C draws, settles, the copy rises,
   and the workspace opens by itself behind a dissolving still frame. */
html[data-ui-skin] #welcome :is(.welcome-fallback, .welcome-media, .welcome-video-timeline, .welcome-chapter, .w-loading) { display: none !important; }
html[data-ui-skin] #welcome::before { z-index: 0 !important; animation: none !important; opacity: 1 !important; visibility: visible !important; }
html[data-ui-skin] #welcome :is(.welcome-core, .welcome-legal-footer) { position: relative; z-index: 5; }
@keyframes w3-settle { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(.82); opacity: 0; } }
.w-intro-dive { animation: w3-settle .9s cubic-bezier(.65, 0, .35, 1) 2.95s forwards !important; }
html[data-ui-skin] #welcome .welcome-kicker { animation-delay: 3.0s !important; }
html[data-ui-skin] #welcome .welcome-title-line b { animation-delay: calc(3.15s + var(--char) * 50ms) !important; }
html[data-ui-skin] #welcome .welcome-title::after { animation-delay: 4.3s !important; }
html[data-ui-skin] #welcome .welcome-primary-action { animation-delay: 4.0s !important; }
html[data-ui-skin] #welcome .welcome-legal-footer { animation-delay: 4.2s !important; }
/* Seamless hand-over: the still copy fades, softens and opens up while
   the workspace settles in underneath. */
#welcome.w-leaving { display: grid !important; visibility: visible !important; position: fixed !important; inset: 0; z-index: 400; pointer-events: none; transition: opacity .9s cubic-bezier(.4, 0, .2, 1), transform 1s cubic-bezier(.4, 0, .2, 1), filter .9s ease; }
#welcome.w-leaving.is-leaving { opacity: 0; transform: scale(1.04); filter: blur(6px); }
@keyframes w3-arrive { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
html.w-arriving #app .main { animation: w3-arrive .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
@media (prefers-reduced-motion: reduce) {
  #welcome.w-leaving { transition: none !important; }
  html.w-arriving #app .main { animation: none !important; }
}
html[data-ui-skin] .bubble.user .agent-message-actions { width: max-content; white-space: nowrap; }
html[data-ui-skin] #welcome .welcome-title::after { display: none !important; }
@media (min-width: 761px) {
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] #app > .side { top: 14px !important; }
}

/* ---------- Opening: C dive + light-pen title ----------
   The C opens up toward the viewer (we pass through its ring), then a
   light pen writes each line of the title from left to right. */
.w-intro-dive { transform-origin: 646px 400px !important; animation: w2-dive 1.3s cubic-bezier(.75, 0, .25, 1) 2.95s forwards !important; }
.w-intro-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(40% 40% at 50% 50%, rgba(154, 166, 255, .32), transparent 70%); animation: w4-flash 1.2s ease 3.55s forwards; }
@keyframes w4-flash { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
#welcome.w-pen-on .welcome-core { transform-origin: 0 100%; animation: w4-push 2.4s cubic-bezier(.16, 1, .3, 1) 3.4s both; }
@keyframes w4-push { from { transform: scale(1.06); } to { transform: none; } }
/* The line is uncovered exactly where the pen is, so the text appears
   behind the light. Started by the script together with the pens. */
html[data-ui-skin] #welcome .welcome-title-line { width: max-content; }
#welcome.w-pen-on .welcome-title-line { animation: w4-write 1.1s cubic-bezier(.5, 0, .2, 1) 3.7s both; }
#welcome.w-pen-on .welcome-title-line + .welcome-title-line { animation-delay: 4.15s; }
@keyframes w4-write { from { clip-path: inset(-12% 100% -12% 0); } to { clip-path: inset(-12% -4% -12% 0); } }
html[data-ui-skin] #welcome#welcome .welcome-title-line b { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
/* The bar moves with left, not transform, so it runs on the same thread
   as the clip-path reveal and the two can never drift apart. */
.w-pen { position: absolute; pointer-events: none; opacity: 0; animation: w4-pen-glow 1.1s ease 3.7s forwards; }
.w-pen[data-pen="2"], .w-pen[data-pen="2"]::before { animation-delay: 4.15s; }
.w-pen::before { content: ""; position: absolute; left: -2px; top: 8%; bottom: 8%; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 26px rgba(124, 139, 255, .95), 0 0 60px rgba(92, 108, 255, .6); animation: w4-pen 1.1s cubic-bezier(.5, 0, .2, 1) 3.7s both; }
@keyframes w4-pen { from { left: -2px; } to { left: calc(100% - 2px); } }
@keyframes w4-pen-glow { 0% { opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
html[data-ui-skin] #welcome .welcome-kicker { animation-delay: 3.55s !important; }
html[data-ui-skin] #welcome .welcome-primary-action { animation-delay: 4.9s !important; }
html[data-ui-skin] #welcome .welcome-legal-footer { animation-delay: 5.0s !important; }
#welcome.w-skip .w-pen { display: none; }
#welcome.w-skip :is(.welcome-core, .welcome-title-line) { animation-delay: 0s !important; animation-duration: .01s !important; }
@media (prefers-reduced-motion: reduce) {
  #welcome :is(.welcome-core, .welcome-title-line) { animation: none !important; }
  .w-pen { display: none !important; }
}

/* Light skin keeps its own colours (no indigo): the orb glow and the
   Agent avatar sparkle return to the white UI's mint. */
@keyframes cos-ring-bloom-light { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px rgba(30, 40, 60, .14), 0 0 10px 1px rgba(79, 174, 154, .22); } 50% { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px rgba(30, 40, 60, .14), 0 0 16px 2px rgba(79, 174, 154, .34); } }
html:not(.creative-ui)[data-ui-skin] .bubble.agent .agent-message-avatar::before { background: #86f3d2 !important; filter: drop-shadow(0 0 3px rgba(94, 222, 179, .9)) !important; }

/* Compact feature fan: a tighter arc with smaller chips. */
@media (min-width: 761px) {
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-chip { width: 28px; height: 28px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-chip svg { width: 14px; height: 14px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-label { font-size: 10.5px; line-height: 13px; padding: 1px 6px; }
  html:not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at 50% 26px, rgba(3, 4, 10, .8), rgba(3, 4, 10, .5) 210px, rgba(3, 4, 10, 0) 420px) !important; }
  html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .cos-fan-scrim { background: radial-gradient(circle at 50% 26px, rgba(246, 247, 249, .95), rgba(246, 247, 249, .6) 210px, rgba(246, 247, 249, 0) 420px) !important; }
}

/* ---------- Audit fixes (all work areas, desktop and phone) ---------- */
/* 动作参考: wrap the chips instead of cutting the last ones off. */
html[data-ui-skin] .action-reference-chips { flex-wrap: wrap !important; overflow: visible !important; row-gap: 6px; }
/* The sticky generate button sits on a band of the card's colour, so the
   form never shows through around it while scrolling. */
html.creative-ui[data-ui-skin] .txt-run-button { box-shadow: 0 10px 0 10px #0f0f12, 0 -8px 0 0 #0f0f12, 0 -22px 12px -6px #0f0f12, 0 6px 22px rgba(108, 124, 255, .14) !important; }
html:not(.creative-ui)[data-ui-skin] .txt-run-button { box-shadow: 0 10px 0 10px #ffffff, 0 -8px 0 0 #ffffff, 0 -22px 12px -6px #ffffff, 0 6px 22px rgba(0, 0, 0, .06) !important; }
/* 资产 (dark): the label on each thumbnail was white text on a white pill. */
html.creative-ui[data-ui-skin] .mock-img::after { color: #eef0f6 !important; background: rgba(10, 12, 18, .62) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important; }
/* 接口设置: notification switches as compact inline checks. */
html[data-ui-skin] .feishu-switches { gap: 6px 14px !important; }
html[data-ui-skin] .feishu-switches label { display: inline-flex !important; align-items: center; gap: 6px; padding: 4px 0 !important; font-size: 12px !important; white-space: nowrap; }
html[data-ui-skin] .feishu-switches input[type="checkbox"] { width: 14px !important; height: 14px !important; margin: 0 !important; flex: none; }
/* Phone: the Agent composer's three setting chips fit on one line. */
html.mobile-screen[data-ui-skin] .agent-setting-strip { gap: 4px !important; scrollbar-width: none; }
html.mobile-screen[data-ui-skin] .agent-setting-strip::-webkit-scrollbar { display: none; }
html.mobile-screen[data-ui-skin] .agent-setting-strip > * { padding-left: 8px !important; padding-right: 7px !important; gap: 4px !important; }
html:not(.creative-ui)[data-ui-skin] .feishu-switches label { border: 0 !important; background: transparent !important; box-shadow: none !important; }
/* Dark: upload slots light up in indigo on hover/drag (was the old lime). */
html.creative-ui[data-ui-skin] .view :is(.slot, .batch-upload-item) .drop:not(.has-image):is(:hover, :focus-visible, .is-dragover) { border-color: rgba(154, 166, 255, .55) !important; }

/* ---------- Phone Agent composer: a plain input with four icons ----------
   Add and settings on the left, voice and a round send on the right; mode,
   model and output live in the settings panel (phone-composer.js). */
.cos-set-toggle, .cos-ask, .cos-set-more { display: none; }
html.mobile-screen[data-ui-skin] #app .agent-composer { position: relative; overflow: visible !important; border-radius: 24px !important; padding: 10px 6px 4px !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer .cos-ask {
  display: inline-flex; align-items: center; gap: 3px;
  margin: 0 0 0 10px; padding: 3px 4px 3px 0; border: 0; background: none;
  color: var(--ink); font: 600 13px/18px var(--font-display, inherit); letter-spacing: -.01em; cursor: pointer;
}
html.mobile-screen[data-ui-skin] #app .agent-composer .cos-ask svg { opacity: .7; transition: transform .25s var(--r-ease); }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .cos-ask svg { transform: rotate(180deg); }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentInput { min-height: 56px !important; padding-top: 4px !important; font-size: 15px !important; }
/* Settings panel: the existing setting strip, shown above the composer only when asked for. */
html.mobile-screen[data-ui-skin] #app .agent-composer .agent-tool-row { padding: 4px 6px 6px !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer:not(.cos-set-open) .agent-setting-strip { display: none !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30;
  display: flex !important; flex-direction: column; align-items: stretch; gap: 4px !important;
  padding: 8px; border-radius: 20px; overflow: visible !important;
  background: rgba(18, 20, 28, .92); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 50px rgba(0, 0, 0, .45);
  animation: cos-panel-in .28s var(--r-out) both;
}
html.mobile-screen:not(.creative-ui)[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip { background: rgba(255, 255, 255, .96); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 50px rgba(30, 40, 60, .16); }
@keyframes cos-panel-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip > :not([hidden]):not(.agent-output-popover) { width: 100% !important; height: 44px !important; justify-content: space-between !important; padding: 0 12px !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip > :not([hidden]):not(.agent-output-popover):active { background: var(--fill-2) !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip .agent-choice-trigger { flex: 1; justify-content: space-between; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .cos-set-more { display: flex; align-items: center; border: 0; color: var(--ink-2, var(--ink)); font: inherit; font-size: 13px; cursor: pointer; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .cos-set-more::after { content: "›"; margin-left: auto; opacity: .5; font-size: 18px; }
/* Bottom row: + and settings left, voice and send right; plain icons. */
html.mobile-screen[data-ui-skin] #app .agent-composer .agent-action-strip { display: flex !important; align-items: center; gap: 2px !important; width: 100%; }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentAdvancedToggle { display: none !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer .agent-media-actions { order: 1; }
html.mobile-screen[data-ui-skin] #app .agent-composer .cos-set-toggle { order: 2; display: grid; place-items: center; }
html.mobile-screen[data-ui-skin] #app .agent-composer .voice-input-button { order: 3; margin-left: auto !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend { order: 4; }
html.mobile-screen[data-ui-skin] #app .agent-composer :is(.agent-media-trigger, .cos-set-toggle, .voice-input-button) {
  width: 40px !important; height: 40px !important; min-width: 40px; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  color: var(--ink) !important; background: transparent !important; box-shadow: none !important; cursor: pointer;
  transition: background-color .2s var(--r-ease), transform .2s var(--r-ease);
}
html.mobile-screen[data-ui-skin] #app .agent-composer :is(.agent-media-trigger, .cos-set-toggle, .voice-input-button):active { background: var(--fill-2) !important; transform: scale(.94); }
html.mobile-screen[data-ui-skin] #app .agent-composer :is(.agent-media-trigger, .voice-input-button) svg { width: 20px; height: 20px; }
html.mobile-screen[data-ui-skin] #app .agent-composer .cos-set-toggle[aria-expanded="true"] { background: var(--fill-2) !important; }
/* Send: a white circle with an up arrow; the label stays for screen readers. */
html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend {
  position: relative; width: 40px !important; height: 40px !important; min-width: 40px !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; font-size: 0 !important; color: transparent !important;
  background: #ffffff !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .3) !important; animation: none !important;
}
html.mobile-screen:not(.creative-ui)[data-ui-skin] #app .agent-composer #agentSend { background: #1d1d1f !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .15) !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: #0b0d1a; display: block !important; opacity: 1 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%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' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
html.mobile-screen:not(.creative-ui)[data-ui-skin] #app .agent-composer #agentSend::before { background: #ffffff; }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend::after { display: none !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend:active:not(:disabled) { transform: scale(.92); }
html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend:disabled { opacity: .4 !important; }
/* A soft line of light along the bottom edge (dark: indigo to violet; light keeps its mint and blue). */
html.mobile-screen[data-ui-skin] #app .agent-composer::after {
  content: "" !important; position: absolute !important; inset: auto 14% -1px 14% !important; width: auto !important; height: 2px !important; border-radius: 2px; pointer-events: none; animation: none !important; transform: none !important; mask: none !important; -webkit-mask: none !important;
  background: linear-gradient(90deg, transparent, #6c7cff 22%, #b7a4ff 50%, #f0a6e0 74%, transparent);
  filter: drop-shadow(0 0 6px rgba(150, 140, 255, .8)); opacity: .85;
}
html.mobile-screen:not(.creative-ui)[data-ui-skin] #app .agent-composer::after { background: linear-gradient(90deg, transparent, #4fae9a 25%, #86c2ff 60%, transparent); filter: drop-shadow(0 0 5px rgba(79, 174, 154, .5)); opacity: .7; }
@media (prefers-reduced-motion: reduce) { html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip { animation: none; } }

html.mobile-screen[data-ui-skin] #app .agent-composer #agentSend { margin-left: 6px !important; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip .agent-tool > span:first-child { display: inline !important; flex: none; margin-right: 12px; color: var(--muted); font-size: 13px; }
/* Phone mode picker: a soft glow behind the chosen mode, a larger title, a centred call to action. */
#modePicker h1 { font-size: 30px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.03em !important; }
#modePicker .mm-option[aria-checked=true] .mm-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 34px 10px rgba(154, 166, 255, .34); }
html:not(.creative-ui) #modePicker .mm-option[aria-checked=true] .mm-icon { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
#modePicker .mm-wheel::before { content: ""; position: absolute; right: 30px; top: 50%; width: 300px; height: 220px; transform: translate(0, -50%); background: radial-gradient(closest-side, rgba(124, 139, 255, .16), rgba(124, 139, 255, 0)); pointer-events: none; }
html:not(.creative-ui) #modePicker .mm-wheel::before { display: none; }
#modePicker .mm-enter { justify-content: center !important; gap: 8px; }
html.mobile-screen[data-ui-skin] #app .agent-composer.cos-set-open .agent-setting-strip .agent-tool > :is(select, .agent-choice-trigger) { flex: 1 !important; width: auto !important; }

/* ---------- Desktop Agent: halo in the light skin, a narrower column, a plain avatar ---------- */
/* Light skin: the same slow band of light round the composer edge, in the
   white UI's own mint and blue. */
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer { isolation: isolate; }
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::before,
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--cos-a), rgba(79, 174, 154, 0) 0deg 200deg, rgba(79, 174, 154, .45) 250deg, #4fae9a 285deg, #86c2ff 315deg, rgba(134, 194, 255, .4) 338deg, rgba(134, 194, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cos-orb-spin 12s linear infinite;
  opacity: .5;
  transition: opacity .5s var(--r-ease);
}
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::after { z-index: -1; inset: -2px; padding: 3px; filter: blur(8px); opacity: .18; }
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer:focus-within::before { opacity: .8; }
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer:focus-within::after { opacity: .28; }
html:not(.creative-ui):not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .chat:has(.bubble.is-transient) .composer.agent-composer::before { animation-duration: 4s; opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  html:not(.creative-ui)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::before,
  html:not(.creative-ui)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer::after { animation: none !important; }
}
/* The conversation fills the width; only the Agent's text lines are capped so long replies stay readable. */
html:not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .bubble.agent .agent-message-body, html:not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .bubble.agent .agent-message-content { max-width: 900px; }
/* The resting composer is low; on focus it grows back to the roomy height for typing and images. */
html:not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer:not(:focus-within) #agentInput:placeholder-shown { min-height: 46px !important; }
/* Agent avatar: a small plain C, no ring, glow, sparkle or motion. */
html[data-ui-skin] #app .bubble.agent .agent-message-avatar {
  width: 24px !important; height: 24px !important; min-width: 24px;
  background: none !important; box-shadow: none !important; border: 0 !important; animation: none !important; overflow: visible;
}
html[data-ui-skin] #app .bubble.agent .agent-message-avatar::before { display: none !important; }
html[data-ui-skin] #app .bubble.agent .agent-message-avatar::after {
  inset: 3px !important; width: auto !important; height: auto !important; animation: none !important; filter: none !important;
  background: var(--ink) !important; transform: none !important; opacity: 1 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='black' stroke-width='10' stroke-linecap='round'%3E%3Cpath d='M70.98 28.72A30 30 0 1 0 70.98 67.28'/%3E%3C/svg%3E") center/contain no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='black' stroke-width='10' stroke-linecap='round'%3E%3Cpath d='M70.98 28.72A30 30 0 1 0 70.98 67.28'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* Workflow: the canvas fills the remaining height down to the footer in both skins. */
html:not(.mobile-screen)[data-ui-skin] .view[data-view="workflow"].active { display: flex !important; flex-direction: column; }
html:not(.mobile-screen)[data-ui-skin] .view[data-view="workflow"].active > .workflow-shell { flex: 1 1 auto; min-height: 0; height: auto !important; max-height: none !important; }

/* Night sky: no meteors; the whole field drifts very slowly instead. The
   layer is drawn a little larger than the screen so the drift never shows
   an edge. Transform only, paused under reduced motion. */
@keyframes cos-sky-drift {
  0% { transform: scale(1.08) translate3d(-2%, -1.2%, 0); }
  50% { transform: scale(1.1) translate3d(1.2%, .6%, 0); }
  100% { transform: scale(1.08) translate3d(2%, -.8%, 0); }
}
html.creative-ui[data-ui-skin] .cos-sky.is-visible { transform-origin: 50% 50%; animation: cos-sky-drift 160s ease-in-out infinite alternate; will-change: transform; }
@media (prefers-reduced-motion: reduce) { html.creative-ui[data-ui-skin] .cos-sky.is-visible { animation: none; transform: none; } }

/* Agent: the composer is a third narrower than the conversation and sits
   centred under it; focus still grows it for typing and images. */
html:not(.mobile-screen)[data-ui-skin] .view[data-view="agent"] .composer.agent-composer { width: 66.667% !important; min-width: min(560px, 100%); max-width: none !important; margin-left: auto !important; margin-right: auto !important; align-self: center; justify-self: center; box-sizing: border-box; }

/* Agent: a starfield to play with behind the conversation (star-play.js),
   dark skin only. Messages and the composer stay above it. */
.cos-play, .cos-play-tip { display: none; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat { position: relative; isolation: isolate; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat > .cos-play { display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat > :not(.cos-play):not(.cos-play-tip) { position: relative; z-index: 1; }
html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat > .cos-play-tip {
  display: block; position: absolute; z-index: 3; max-width: 240px; padding: 6px 11px; border-radius: 12px 12px 12px 4px;
  color: #eef0fa; background: rgba(28, 30, 46, .9); box-shadow: inset 0 0 0 1px rgba(154, 166, 255, .22), 0 10px 24px rgba(0, 0, 0, .35);
  font-size: 12.5px; line-height: 1.45; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat > .cos-play-tip.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.creative-ui[data-ui-skin] .view[data-view="agent"] section.chat > .cos-play-tip { transition: none; } }
