/*
 * Creator appearance core v2.
 * Role-shared tokens and stable creator components only. Business-page details
 * live in /assets/creator/theme/modules and chat surfaces are intentionally
 * outside this theme domain.
 */

html[data-dyc-creator-page] {
  color-scheme: light;
  --dyc-ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --dyc-ui-canvas: #f7f9fc;
  --dyc-ui-shell: #ffffff;
  --dyc-ui-surface: #ffffff;
  --dyc-ui-surface-raised: #ffffff;
  --dyc-ui-surface-modal: #ffffff;
  --dyc-ui-surface-soft: #f5f7fb;
  --dyc-ui-field: #ffffff;
  --dyc-ui-text: #111827;
  --dyc-ui-text-secondary: #475569;
  --dyc-ui-text-muted: #64748b;
  --dyc-ui-border: rgba(15, 23, 42, .12);
  --dyc-ui-border-strong: rgba(15, 23, 42, .22);
  --dyc-ui-brand: #c83e78;
  --dyc-ui-brand-soft: rgba(200, 62, 120, .11);
  --dyc-ui-info: #315a9f;
  --dyc-ui-info-soft: rgba(49, 90, 159, .11);
  --dyc-ui-success: #147a49;
  --dyc-ui-success-soft: rgba(20, 122, 73, .1);
  --dyc-ui-warning: #9a5b09;
  --dyc-ui-warning-soft: rgba(154, 91, 9, .11);
  --dyc-ui-danger: #b4233f;
  --dyc-ui-danger-soft: rgba(180, 35, 63, .1);
  --dyc-ui-focus: rgba(49, 90, 159, .34);
  --dyc-ui-primary-gradient: linear-gradient(118deg, #c83e78 0%, #315a9f 54%, #5b35a4 100%);
  --dyc-ui-card-shadow: 0 12px 32px rgba(15, 23, 42, .1);
  --dyc-ui-raised-shadow: 0 18px 44px rgba(15, 23, 42, .14);
  --dyc-ui-modal-shadow: 0 24px 80px rgba(15, 23, 42, .2);
  --dyc-ui-radius-sm: 12px;
  --dyc-ui-radius: 18px;
  --dyc-ui-radius-lg: 24px;
  --dyc-ui-control-height: 42px;
  --dyc-ui-control-pad-y: 10px;
  --dyc-ui-control-pad-x: 12px;
  --dyc-ui-card-pad: 18px;
  --dyc-ui-layout-gap: 16px;
  --dyc-ui-ambient-opacity: .7;
  --dyc-palette-night-canvas: #090d15;
  --dyc-palette-night-shell: #0f1622;
  --dyc-palette-night-surface: #141d2b;
  --dyc-palette-night-surface-raised: #1a2535;
  --dyc-palette-night-surface-modal: #202c3d;
  --dyc-palette-night-field: #0d1521;
  --dyc-palette-night-text: #f7f9fc;
  --dyc-palette-night-text-secondary: #c3ccda;
  --dyc-palette-night-text-muted: #93a0b4;
  --dyc-palette-night-border: rgba(255, 255, 255, .08);
  --dyc-palette-night-border-strong: rgba(255, 255, 255, .16);
  --dyc-palette-night-brand: #ff7db5;
  --dyc-palette-night-info: #8fb6ff;
  --dyc-palette-night-success: #62d49a;
  --dyc-palette-night-warning: #f2bd66;
  --dyc-palette-night-danger: #ff879c;
}

html[data-dyc-creator-tone="night"] {
  color-scheme: dark;
  --dyc-ui-canvas: var(--dyc-palette-night-canvas);
  --dyc-ui-shell: var(--dyc-palette-night-shell);
  --dyc-ui-surface: var(--dyc-palette-night-surface);
  --dyc-ui-surface-raised: var(--dyc-palette-night-surface-raised);
  --dyc-ui-surface-modal: var(--dyc-palette-night-surface-modal);
  --dyc-ui-surface-soft: #111a27;
  --dyc-ui-field: var(--dyc-palette-night-field);
  --dyc-ui-text: var(--dyc-palette-night-text);
  --dyc-ui-text-secondary: var(--dyc-palette-night-text-secondary);
  --dyc-ui-text-muted: var(--dyc-palette-night-text-muted);
  --dyc-ui-border: var(--dyc-palette-night-border);
  --dyc-ui-border-strong: var(--dyc-palette-night-border-strong);
  --dyc-ui-brand: var(--dyc-palette-night-brand);
  --dyc-ui-brand-soft: rgba(255, 125, 181, .13);
  --dyc-ui-info: var(--dyc-palette-night-info);
  --dyc-ui-info-soft: rgba(143, 182, 255, .13);
  --dyc-ui-success: var(--dyc-palette-night-success);
  --dyc-ui-success-soft: rgba(98, 212, 154, .12);
  --dyc-ui-warning: var(--dyc-palette-night-warning);
  --dyc-ui-warning-soft: rgba(242, 189, 102, .12);
  --dyc-ui-danger: var(--dyc-palette-night-danger);
  --dyc-ui-danger-soft: rgba(255, 135, 156, .12);
  --dyc-ui-focus: rgba(143, 182, 255, .38);
  --dyc-ui-card-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  --dyc-ui-raised-shadow: 0 18px 48px rgba(0, 0, 0, .3);
  --dyc-ui-modal-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

/* Compatibility aliases for existing creator-page styles. Support chat keeps
 * its own variables, so the support route is deliberately excluded here. */
html[data-dyc-creator-tone="night"]:not([data-dyc-creator-module="support"]) {
  --bg: var(--dyc-ui-canvas);
  --bg0: var(--dyc-ui-canvas);
  --bg1: var(--dyc-ui-shell);
  --bg2: var(--dyc-ui-surface);
  --bg-main: var(--dyc-ui-canvas);
  --bg-soft: var(--dyc-ui-surface-soft);
  --bg-card: var(--dyc-ui-surface);
  --bg-card-soft: var(--dyc-ui-surface-raised);
  --card: var(--dyc-ui-surface);
  --card2: var(--dyc-ui-surface-raised);
  --card-bg: var(--dyc-ui-surface);
  --card-soft: var(--dyc-ui-surface-soft);
  --panel: var(--dyc-ui-surface);
  --paper: var(--dyc-ui-surface);
  --paper-strong: var(--dyc-ui-surface-raised);
  --surface: var(--dyc-ui-surface);
  --surface-soft: var(--dyc-ui-surface-soft);
  --surface-warm: var(--dyc-ui-brand-soft);
  --glass: rgba(20, 29, 43, .94);
  --glass2: rgba(26, 37, 53, .92);
  --ink: var(--dyc-ui-text);
  --ink-soft: var(--dyc-ui-text-secondary);
  --text: var(--dyc-ui-text);
  --text-main: var(--dyc-ui-text);
  --text-sub: var(--dyc-ui-text-secondary);
  --text-mute: var(--dyc-ui-text-muted);
  --sub: var(--dyc-ui-text-secondary);
  --muted: var(--dyc-ui-text-muted);
  --soft: var(--dyc-ui-surface-soft);
  --line: var(--dyc-ui-border);
  --line2: var(--dyc-ui-border-strong);
  --line-strong: var(--dyc-ui-border-strong);
  --stroke: var(--dyc-ui-border);
  --stroke2: var(--dyc-ui-border-strong);
  --border-soft: var(--dyc-ui-border);
  --border-soft-strong: var(--dyc-ui-border-strong);
  --primary: var(--dyc-ui-brand);
  --primary-soft: var(--dyc-ui-brand-soft);
  --primary-blue: var(--dyc-ui-info);
  --pink: var(--dyc-ui-brand);
  --pinkDeep: #d9558c;
  --blue: var(--dyc-ui-info);
  --ok: var(--dyc-ui-success);
  --warn: var(--dyc-ui-warning);
  --danger: var(--dyc-ui-danger);
  --bad: var(--dyc-ui-danger);
  --shadow: var(--dyc-ui-card-shadow);
  --shadow2: var(--dyc-ui-raised-shadow);
  --shadow-soft: var(--dyc-ui-card-shadow);
  --dyc-night-bg: var(--dyc-ui-canvas);
  --dyc-night-bg-2: var(--dyc-ui-shell);
  --dyc-night-panel: var(--dyc-ui-surface);
  --dyc-night-panel-2: var(--dyc-ui-surface-raised);
  --dyc-night-panel-3: var(--dyc-ui-field);
  --dyc-night-line: var(--dyc-ui-border);
  --dyc-night-line-strong: var(--dyc-ui-border-strong);
  --dyc-night-text: var(--dyc-ui-text);
  --dyc-night-sub: var(--dyc-ui-text-secondary);
  --dyc-night-muted: var(--dyc-ui-text-muted);
  --dyc-night-accent: var(--dyc-ui-brand);
  --dyc-night-accent-2: var(--dyc-ui-info);
  --dyc-night-ok: var(--dyc-ui-success);
  --dyc-night-warm: var(--dyc-ui-warning);
  --dyc-night-danger: var(--dyc-ui-danger);
  --dyc-night-active-gradient: var(--dyc-ui-primary-gradient);
  --bg-gradient: linear-gradient(180deg, #090d15 0%, #0d1420 52%, #090d15 100%);
}

html[data-dyc-creator-tone="night"][data-dyc-creator-module="account"] .dyc-douyin-works {
  --dyc-dy-line: var(--dyc-ui-border);
  --dyc-dy-muted: var(--dyc-ui-text-muted);
  --dyc-dy-pink: var(--dyc-ui-brand);
  --dyc-dy-surface: var(--dyc-ui-surface);
  --dyc-dy-surface-soft: linear-gradient(145deg, var(--dyc-ui-surface), var(--dyc-ui-surface-raised));
  --dyc-dy-card-soft: linear-gradient(145deg, var(--dyc-ui-surface-raised), var(--dyc-ui-surface));
  --dyc-dy-text: var(--dyc-ui-text);
  --dyc-dy-cover: var(--dyc-ui-field);
  --dyc-dy-cover-muted: var(--dyc-ui-text-muted);
  --dyc-dy-list-line: var(--dyc-ui-border);
  --dyc-dy-empty-line: var(--dyc-ui-border-strong);
  --dyc-dy-avatar: var(--dyc-ui-brand-soft);
  --dyc-dy-notice-line: rgba(143, 182, 255, .28);
  --dyc-dy-notice-bg: var(--dyc-ui-info-soft);
  --dyc-dy-notice-text: var(--dyc-ui-info);
  --dyc-dy-warn-line: rgba(242, 189, 102, .28);
  --dyc-dy-warn-bg: var(--dyc-ui-warning-soft);
  --dyc-dy-warn-text: var(--dyc-ui-warning);
  --dyc-dy-ok-line: rgba(98, 212, 154, .28);
  --dyc-dy-ok-bg: var(--dyc-ui-success-soft);
  --dyc-dy-ok-text: var(--dyc-ui-success);
  --dyc-dy-danger-line: rgba(255, 135, 156, .28);
  --dyc-dy-danger-bg: var(--dyc-ui-danger-soft);
  --dyc-dy-danger-text: var(--dyc-ui-danger);
}

html[data-dyc-creator-page] body {
  font-family: var(--dyc-ui-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-dyc-creator-tone="night"],
html[data-dyc-creator-tone="night"] body {
  background-color: var(--dyc-ui-canvas);
}

html[data-dyc-creator-tone="night"] body {
  color: var(--dyc-ui-text);
  background-image:
    radial-gradient(circle at 4% -8%, rgba(255, 125, 181, .1), transparent 30%),
    radial-gradient(circle at 96% 0%, rgba(143, 182, 255, .09), transparent 34%),
    linear-gradient(180deg, #090d15 0%, #0d1420 48%, #090d15 100%);
}

html[data-dyc-creator-tone="night"] body::selection {
  color: #ffffff;
  background: rgba(200, 62, 120, .62);
}

/* Theme style is meaningful in day and night modes. */
html[data-dyc-creator-theme-style="clean"] {
  --dyc-ui-card-shadow: none;
  --dyc-ui-raised-shadow: none;
  --dyc-ui-modal-shadow: 0 20px 64px rgba(15, 23, 42, .18);
  --dyc-ui-ambient-opacity: 0;
}

html[data-dyc-creator-theme-style="contrast"] {
  --dyc-ui-border: rgba(15, 23, 42, .34);
  --dyc-ui-border-strong: rgba(15, 23, 42, .54);
  --dyc-ui-text: #070d18;
  --dyc-ui-text-secondary: #27364b;
  --dyc-ui-text-muted: #485970;
  --dyc-ui-card-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}

html[data-dyc-creator-tone="night"][data-dyc-creator-theme-style="contrast"] {
  --dyc-ui-surface: #121c2a;
  --dyc-ui-surface-raised: #192639;
  --dyc-ui-field: #08111d;
  --dyc-ui-border: rgba(255, 255, 255, .2);
  --dyc-ui-border-strong: rgba(255, 255, 255, .34);
  --dyc-ui-text: #ffffff;
  --dyc-ui-text-secondary: #dbe4f0;
  --dyc-ui-text-muted: #aebacd;
}

html[data-dyc-creator-tone="day"][data-dyc-creator-theme-style="clean"] body {
  background: #f6f8fc;
}

html[data-dyc-creator-tone="day"][data-dyc-creator-theme-style="contrast"] body {
  color: var(--dyc-ui-text);
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

html[data-dyc-creator-tone="night"][data-dyc-creator-theme-style="clean"] body {
  background: var(--dyc-ui-canvas);
}

html[data-dyc-creator-theme-style="clean"] :is(
  .dyc-workbench-nav-item, .dyc-workbench-action, .dyc-workbench-actions-toggle,
  .dyc-workbench-dock-item, .creator-workbench-footer
) {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-dyc-creator-theme-style="contrast"] :is(
  .dyc-workbench-nav-item, .dyc-workbench-action, .dyc-workbench-actions-toggle,
  .dyc-workbench-dock-item
) {
  border-color: var(--dyc-ui-border-strong);
}

/* Density works independently of tone. */
html[data-dyc-creator-density="compact"] {
  --dyc-ui-control-height: 36px;
  --dyc-ui-control-pad-y: 7px;
  --dyc-ui-control-pad-x: 10px;
  --dyc-ui-card-pad: 13px;
  --dyc-ui-layout-gap: 11px;
}

html[data-dyc-creator-density="large"] {
  --dyc-ui-control-height: 48px;
  --dyc-ui-control-pad-y: 12px;
  --dyc-ui-control-pad-x: 14px;
  --dyc-ui-card-pad: 22px;
  --dyc-ui-layout-gap: 20px;
}

html[data-dyc-creator-density="compact"] body {
  line-height: 1.45;
}

html[data-dyc-creator-density="large"] body {
  font-size: 16px;
  line-height: 1.7;
}

/* Native controls are role-shared; chat containers stay outside this domain. */
html[data-dyc-creator-tone="night"] :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  textarea, select, option
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *) {
  min-height: var(--dyc-ui-control-height);
  padding: var(--dyc-ui-control-pad-y) var(--dyc-ui-control-pad-x);
  color: var(--dyc-ui-text);
  background: var(--dyc-ui-field);
  border-color: var(--dyc-ui-border-strong);
  caret-color: var(--dyc-ui-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

html[data-dyc-creator-tone="night"] :is(
  input, textarea
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *)::placeholder {
  color: var(--dyc-ui-text-muted);
  opacity: .82;
}

html[data-dyc-creator-tone="night"] :is(
  input, textarea, select
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *):-webkit-autofill {
  -webkit-text-fill-color: var(--dyc-ui-text);
  box-shadow: inset 0 0 0 1000px var(--dyc-ui-field);
  caret-color: var(--dyc-ui-brand);
}

html[data-dyc-creator-tone="night"] :is(
  input[readonly], textarea[readonly], select[disabled]
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *) {
  color: var(--dyc-ui-text-muted);
  background: var(--dyc-ui-surface-soft);
}

html[data-dyc-creator-tone="night"] :is(
  .dyc-workbench-nav-item, .dyc-workbench-action, .dyc-workbench-actions-toggle,
  .dyc-workbench-dock-item
) {
  color: var(--dyc-ui-text-secondary);
  background: var(--dyc-ui-surface-raised);
  border-color: var(--dyc-ui-border-strong);
  box-shadow: none;
}

html[data-dyc-creator-tone="night"] :is(
  .dyc-workbench-nav-item.is-active,
  .dyc-workbench-action-primary
) {
  color: #ffffff;
  background: var(--dyc-ui-primary-gradient);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 12px 28px rgba(49, 90, 159, .22);
}

html[data-dyc-creator-page] :is(
  a, button, input, textarea, select, summary, [tabindex]
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *):focus-visible {
  outline: 2px solid var(--dyc-ui-info);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--dyc-ui-focus);
}

html[data-dyc-creator-page] :is(
  button, input, textarea, select, a
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *)[disabled],
html[data-dyc-creator-page] :is(
  button, input, textarea, select, a
):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .56;
}

html[data-dyc-creator-page] [aria-busy="true"] {
  cursor: progress;
}

/* Shared creator chrome and footer. */
html[data-dyc-creator-tone="night"] .dyc-workbench-chrome {
  --dyc-chrome-line: var(--dyc-ui-border);
  --dyc-chrome-text: var(--dyc-ui-text);
  --dyc-chrome-sub: var(--dyc-ui-text-secondary);
  --dyc-chrome-pink: var(--dyc-ui-brand);
  --dyc-chrome-blue: var(--dyc-ui-info);
  --dyc-chrome-shadow: var(--dyc-ui-card-shadow);
  color: var(--dyc-ui-text);
}

html[data-dyc-creator-tone="night"] :is(.dyc-workbench-brand-title, .dyc-workbench-account) {
  color: var(--dyc-ui-text);
}

html[data-dyc-creator-tone="night"] :is(.dyc-workbench-brand-sub, .dyc-workbench-actions-wrap) {
  color: var(--dyc-ui-text-secondary);
}

html[data-dyc-creator-tone="night"] :is(.dyc-workbench-nav-icon, .dyc-workbench-dock-icon) {
  color: var(--dyc-ui-brand);
  background: var(--dyc-ui-brand-soft);
  border-color: rgba(255, 125, 181, .24);
  box-shadow: none;
}

html[data-dyc-creator-tone="night"] .creator-workbench-footer {
  color: var(--dyc-ui-text-secondary);
  background: var(--dyc-ui-shell);
  border-top-color: var(--dyc-ui-border);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .16);
}

html[data-dyc-creator-tone="night"] :is(
  .creator-workbench-footer-title, .creator-workbench-footer-system
) {
  color: var(--dyc-ui-text);
}

html[data-dyc-creator-tone="night"] :is(
  .creator-workbench-footer-desc, .creator-workbench-footer-links span,
  .creator-workbench-footer-dot, .creator-workbench-footer-icp
) {
  color: var(--dyc-ui-text-muted);
}

html[data-dyc-creator-tone="night"] :is(
  .creator-workbench-footer-system a, .creator-workbench-footer-links a,
  .creator-workbench-footer-icp a
) {
  color: var(--dyc-ui-info);
}

/* User preference and OS preference both disable non-essential motion. */
html[data-dyc-creator-reduce-motion="1"] {
  scroll-behavior: auto;
}

html[data-dyc-creator-reduce-motion="1"] body :where(*, *::before, *::after):not(
  .chat-shell *, .chat-box *, .reply-box *, .message-body *, .composer *
) {
  scroll-behavior: auto;
  animation-duration: .001ms;
  animation-iteration-count: 1;
  transition-duration: .001ms;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  html[data-dyc-creator-page] {
    scroll-behavior: auto;
  }

  html[data-dyc-creator-page] body :where(*, *::before, *::after):not(
    .chat-shell *, .chat-box *, .reply-box *, .message-body *, .composer *
  ) {
    scroll-behavior: auto;
    animation-duration: .001ms;
    animation-iteration-count: 1;
    transition-duration: .001ms;
    transition-delay: 0s;
  }
}

/* CSS-only system-mode fallback prevents a light flash if runtime JS fails. */
@media (prefers-color-scheme: dark) {
  html[data-dyc-creator-color-mode="system"] {
    color-scheme: dark;
    --dyc-ui-canvas: var(--dyc-palette-night-canvas);
    --dyc-ui-shell: var(--dyc-palette-night-shell);
    --dyc-ui-surface: var(--dyc-palette-night-surface);
    --dyc-ui-surface-raised: var(--dyc-palette-night-surface-raised);
    --dyc-ui-surface-modal: var(--dyc-palette-night-surface-modal);
    --dyc-ui-surface-soft: #111a27;
    --dyc-ui-field: var(--dyc-palette-night-field);
    --dyc-ui-text: var(--dyc-palette-night-text);
    --dyc-ui-text-secondary: var(--dyc-palette-night-text-secondary);
    --dyc-ui-text-muted: var(--dyc-palette-night-text-muted);
    --dyc-ui-border: var(--dyc-palette-night-border);
    --dyc-ui-border-strong: var(--dyc-palette-night-border-strong);
    --dyc-ui-brand: var(--dyc-palette-night-brand);
    --dyc-ui-brand-soft: rgba(255, 125, 181, .13);
    --dyc-ui-info: var(--dyc-palette-night-info);
    --dyc-ui-info-soft: rgba(143, 182, 255, .13);
    --dyc-ui-success: var(--dyc-palette-night-success);
    --dyc-ui-success-soft: rgba(98, 212, 154, .12);
    --dyc-ui-warning: var(--dyc-palette-night-warning);
    --dyc-ui-warning-soft: rgba(242, 189, 102, .12);
    --dyc-ui-danger: var(--dyc-palette-night-danger);
    --dyc-ui-danger-soft: rgba(255, 135, 156, .12);
    --dyc-ui-focus: rgba(143, 182, 255, .38);
    --dyc-ui-card-shadow: 0 12px 32px rgba(0, 0, 0, .24);
    --dyc-ui-raised-shadow: 0 18px 48px rgba(0, 0, 0, .3);
    --dyc-ui-modal-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  }

  html[data-dyc-creator-color-mode="system"]:not([data-dyc-creator-module="support"]) {
    --bg: var(--dyc-ui-canvas);
    --bg0: var(--dyc-ui-canvas);
    --bg1: var(--dyc-ui-shell);
    --bg2: var(--dyc-ui-surface);
    --bg-main: var(--dyc-ui-canvas);
    --bg-soft: var(--dyc-ui-surface-soft);
    --bg-card: var(--dyc-ui-surface);
    --bg-card-soft: var(--dyc-ui-surface-raised);
    --card: var(--dyc-ui-surface);
    --card2: var(--dyc-ui-surface-raised);
    --card-bg: var(--dyc-ui-surface);
    --panel: var(--dyc-ui-surface);
    --surface: var(--dyc-ui-surface);
    --surface-soft: var(--dyc-ui-surface-soft);
    --glass: rgba(20, 29, 43, .94);
    --glass2: rgba(26, 37, 53, .92);
    --ink: var(--dyc-ui-text);
    --text: var(--dyc-ui-text);
    --text-main: var(--dyc-ui-text);
    --text-sub: var(--dyc-ui-text-secondary);
    --text-mute: var(--dyc-ui-text-muted);
    --sub: var(--dyc-ui-text-secondary);
    --muted: var(--dyc-ui-text-muted);
    --line: var(--dyc-ui-border);
    --line2: var(--dyc-ui-border-strong);
    --line-strong: var(--dyc-ui-border-strong);
    --stroke: var(--dyc-ui-border);
    --stroke2: var(--dyc-ui-border-strong);
    --border-soft: var(--dyc-ui-border);
    --border-soft-strong: var(--dyc-ui-border-strong);
    --primary: var(--dyc-ui-brand);
    --primary-soft: var(--dyc-ui-brand-soft);
    --primary-blue: var(--dyc-ui-info);
    --pink: var(--dyc-ui-brand);
    --blue: var(--dyc-ui-info);
    --ok: var(--dyc-ui-success);
    --warn: var(--dyc-ui-warning);
    --danger: var(--dyc-ui-danger);
    --shadow: var(--dyc-ui-card-shadow);
    --shadow2: var(--dyc-ui-raised-shadow);
  }

  html[data-dyc-creator-color-mode="system"][data-dyc-creator-module="account"] .dyc-douyin-works {
    --dyc-dy-line: var(--dyc-ui-border);
    --dyc-dy-muted: var(--dyc-ui-text-muted);
    --dyc-dy-pink: var(--dyc-ui-brand);
    --dyc-dy-surface: var(--dyc-ui-surface);
    --dyc-dy-surface-soft: linear-gradient(145deg, var(--dyc-ui-surface), var(--dyc-ui-surface-raised));
    --dyc-dy-card-soft: linear-gradient(145deg, var(--dyc-ui-surface-raised), var(--dyc-ui-surface));
    --dyc-dy-text: var(--dyc-ui-text);
    --dyc-dy-cover: var(--dyc-ui-field);
    --dyc-dy-cover-muted: var(--dyc-ui-text-muted);
    --dyc-dy-list-line: var(--dyc-ui-border);
    --dyc-dy-empty-line: var(--dyc-ui-border-strong);
    --dyc-dy-avatar: var(--dyc-ui-brand-soft);
    --dyc-dy-notice-line: rgba(143, 182, 255, .28);
    --dyc-dy-notice-bg: var(--dyc-ui-info-soft);
    --dyc-dy-notice-text: var(--dyc-ui-info);
    --dyc-dy-warn-line: rgba(242, 189, 102, .28);
    --dyc-dy-warn-bg: var(--dyc-ui-warning-soft);
    --dyc-dy-warn-text: var(--dyc-ui-warning);
    --dyc-dy-ok-line: rgba(98, 212, 154, .28);
    --dyc-dy-ok-bg: var(--dyc-ui-success-soft);
    --dyc-dy-ok-text: var(--dyc-ui-success);
    --dyc-dy-danger-line: rgba(255, 135, 156, .28);
    --dyc-dy-danger-bg: var(--dyc-ui-danger-soft);
    --dyc-dy-danger-text: var(--dyc-ui-danger);
  }

  html[data-dyc-creator-color-mode="system"],
  html[data-dyc-creator-color-mode="system"] body {
    background-color: var(--dyc-ui-canvas);
  }

  html[data-dyc-creator-color-mode="system"] body {
    color: var(--dyc-ui-text);
    background-image:
      radial-gradient(circle at 4% -8%, rgba(255, 125, 181, .1), transparent 30%),
      radial-gradient(circle at 96% 0%, rgba(143, 182, 255, .09), transparent 34%),
      linear-gradient(180deg, #090d15 0%, #0d1420 48%, #090d15 100%);
  }

}

@media (max-width: 760px) {
  html[data-dyc-creator-page] :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="image"]),
    textarea, select
  ):not(.chat-shell *):not(.chat-box *):not(.reply-box *):not(.message-body *):not(.composer *) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  html[data-dyc-creator-density="compact"] {
    --dyc-ui-card-pad: 12px;
    --dyc-ui-layout-gap: 10px;
  }

  html[data-dyc-creator-density="large"] {
    --dyc-ui-card-pad: 17px;
    --dyc-ui-layout-gap: 14px;
  }
}

@media print {
  html[data-dyc-creator-page],
  html[data-dyc-creator-page] body {
    color-scheme: light;
    color: #111827;
    background: #ffffff;
  }

  html[data-dyc-creator-page] :is(
    .dyc-workbench-chrome, .dyc-workbench-dock, .creator-workbench-footer
  ) {
    display: none;
  }
}
