/* Fynix 2.0: P19 / P20 / P22. Geometry and colors follow the supplied Stitch exports. */
.fynix2-management {
  color-scheme: light;
  --bg: #f8f9ff;
  --bg-elevated: #eff4ff;
  --surface: #fff;
  --surface-2: #eff4ff;
  --surface-3: #e5eeff;
  --line: #c7c4d8;
  --line-soft: #dce9ff;
  --text: #0b1c30;
  --text-2: #464555;
  --text-3: #777587;
  --accent: #3525cd;
  --accent-strong: #4f46e5;
  --accent-soft: #eeecff;
  --success: #006e4b;
  --warning: #a35d08;
  --danger: #ba1a1a;
  --shadow: 0 12px 36px rgba(15, 23, 42, .12);
}
.fynix2-management .workspace { background: #f8f9ff; }
.fynix2-management .panel {
  background: #fff;
  border: 1px solid #dce9ff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.fynix2-management :is(.page-heading, .stage-heading) h1 { font-size: 24px; line-height: 32px; letter-spacing: -.015em; }
.fynix2-management :is(.primary-action, .secondary-action) { min-height: 38px; border-radius: 8px; }
.fynix2-management .primary-action { color: #fff; background: #4f46e5; border-color: #4f46e5; }
.fynix2-management .primary-action:hover { background: #3525cd; border-color: #3525cd; }
.fynix2-management .secondary-action { color: #464555; background: #fff; border-color: #c7c4d8; }
.fynix2-management :is(input, select, textarea) { color: #0b1c30; accent-color: #4f46e5; }
.fynix2-management :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; }
.fynix2-management :is(.admin-drawer, .member-drawer, .invite-dialog, .account-dialog, .create-company-dialog) {
  color: #0b1c30;
  background: #fff;
  border-color: #c7c4d8;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}
.fynix2-management :is(.admin-drawer, .member-drawer, .invite-dialog, .account-dialog, .create-company-dialog) :is(input, select, textarea) {
  background: #fff;
  border-color: #c7c4d8;
  color: #0b1c30;
  border-radius: 8px;
}
.fynix2-management :is(.admin-drawer, .member-drawer) :is(input:not([type=checkbox]), select) { min-height: 38px; }
.fynix2-management :is(.admin-drawer-scrim, .member-drawer-scrim) { background: rgba(15, 23, 42, .32); backdrop-filter: blur(3px); }
.fynix2-management :is(dialog)::backdrop { background: rgba(15, 23, 42, .32); backdrop-filter: blur(3px); }

/* P19: a fixed-facts column and a larger media/editor column. */
.fynix2-company-editor .company-asset-editor-workspace { padding: 24px 24px 88px; }
.fynix2-company-editor .asset-editor-heading { margin: 0 0 20px; align-items: center; }
.fynix2-company-editor .back-link { color: #777587; }
.fynix2-company-editor .asset-version-head { border-color: #dce9ff; background: #fff; border-radius: 10px; }
.fynix2-company-editor .asset-editor-tabs { background: #fff; margin-bottom: 16px; border-color: #dce9ff; border-radius: 10px; }
.fynix2-company-editor .asset-editor-tabs button { padding: 12px 16px; }
.fynix2-company-editor .asset-editor-tabs button.active { background: #eeecff; color: #3525cd; }
.fynix2-company-editor .asset-editor-board {
  grid-template-columns: minmax(240px, 34fr) minmax(0, 66fr);
  grid-template-areas: "summary canvas" "readiness canvas";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 16px;
  height: auto;
  min-height: 0;
}
.fynix2-company-editor .asset-editor-summary { grid-area: summary; }
.fynix2-company-editor .asset-editor-readiness { grid-area: readiness; display: grid; }
.fynix2-company-editor .asset-editor-canvas { grid-area: canvas; min-height: 650px; }
.fynix2-company-editor :is(.asset-editor-summary, .asset-editor-readiness) > header { padding: 16px; }
.fynix2-company-editor :is(.asset-editor-summary, .asset-editor-readiness) h2 { font-size: 16px; }
.fynix2-company-editor .asset-editor-preview { background: #eff4ff; border: 1px solid #dce9ff; margin: 16px; border-radius: 12px; min-height: 180px; }
.fynix2-company-editor .asset-editor-preview:not(.voice):not(.empty) { aspect-ratio: 9 / 16; max-height: 400px; }
.fynix2-company-editor .asset-editor-preview :is(img, video) { height: 100%; max-height: 400px; object-fit: contain; }
.fynix2-company-editor .asset-editor-preview > div { height: 100%; width: 100%; }
.fynix2-company-editor .asset-editor-preview.empty { color: #777587; border-style: dashed; padding: 24px; text-align: center; gap: 12px; }
.fynix2-company-editor .asset-editor-summary dl { margin: 0 16px 16px; }
.fynix2-company-editor .asset-editor-summary dl > div { padding: 10px 0; }
.fynix2-company-editor .asset-editor-summary dd { white-space: normal; overflow-wrap: anywhere; }
.fynix2-company-editor .asset-canvas-heading { min-height: 66px; padding: 14px 16px; background: #fff; gap: 12px; }
.fynix2-company-editor .asset-canvas-heading h2 { font-size: 16px; }
.fynix2-company-editor .asset-definition-form { padding: 16px; gap: 16px; }
.fynix2-company-editor :is(.asset-definition-form, .asset-generate-fields) :is(input, select, textarea),
.fynix2-company-editor :is(.asset-media-definition, .company-workbench-notice textarea, .character-idea-assistant textarea) {
  background: #fff;
  color: #0b1c30;
  border: 1px solid #c7c4d8;
  border-radius: 8px;
  font-family: inherit;
}
.fynix2-company-editor :is(.asset-definition-form, .asset-generate-fields) :is(input:not([type=checkbox]), select) { min-height: 38px; }
.fynix2-company-editor :is(.asset-type-rules, .asset-media-tools > section, .asset-media-list > header, .asset-project-references > header,
  .asset-unified-section > h3, .voice-sample-player, .asset-generation-status, .character-idea-assistant, .company-workbench-notice) { background: #eff4ff; border-color: #dce9ff; }
.fynix2-company-editor .asset-type-rules label { background: #fff; }
.fynix2-company-editor .voice-consent-state { color: #006e4b; background: #ecfdf5; border-color: #a7f3d0; }
.fynix2-company-editor .voice-consent-state small { color: #006e4b; }
.fynix2-company-editor :is(.asset-media-tools button, .company-workbench-notice button, .character-idea-assistant button, .voice-sample-player > button) {
  color: #3525cd;
  background: #fff;
  border-color: #c7c4d8;
  border-radius: 8px;
  min-height: 36px;
}
.fynix2-company-editor .asset-media-thumb { background: #eff4ff; }
.fynix2-company-editor .asset-media-row { padding: 12px; }
.fynix2-company-editor .asset-editor-actionbar { min-height: 64px; background: #fff; border-color: #dce9ff; box-shadow: 0 -4px 16px rgba(15,23,42,.04); }
.fynix2-company-editor.character-studio-page .asset-editor-board { display: block; }
.fynix2-company-editor.character-studio-page .asset-editor-summary { display: none; }
.fynix2-company-editor.character-studio-page .company-asset-editor-workspace { padding-bottom: 24px; }
.fynix2-company-editor.character-studio-page .character-studio { grid-template-columns: minmax(280px,34fr) minmax(0,66fr); gap: 16px; background: #f8f9ff; }
.fynix2-company-editor.character-studio-page .asset-editor-canvas { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.fynix2-company-editor.character-studio-page .asset-canvas-heading { border: 1px solid #dce9ff; border-radius: 12px; margin-bottom: 16px; }
.fynix2-company-editor :is(.character-studio-input, .character-studio-results) { padding: 16px; background: #fff; border: 1px solid #dce9ff; border-radius: 12px; min-width: 0; }
.fynix2-company-editor .character-studio-results { position: sticky; top: 76px; max-height: calc(100dvh - 164px); }
.fynix2-company-editor :is(.character-facts, .character-history, .character-publish-check) { border-color: #dce9ff; border-radius: 10px; background: #fff; }
.fynix2-company-editor .character-studio-input .asset-definition-form { grid-template-columns: 1fr; }
.fynix2-company-editor .character-studio-input .asset-definition-form > * { grid-column: 1; }
.fynix2-company-editor .character-studio-input .image2-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.fynix2-company-editor .character-studio-input #generateAssetMedia { color: #fff; background: #4f46e5; border-color: #4f46e5; }
.fynix2-company-editor .company-task-active { background: #eff4ff; border-left-color: #4f46e5; }
.fynix2-company-editor .character-studio-results .company-candidate-previews { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
.fynix2-company-editor .character-studio-results .company-candidate-previews :is(img, video) { aspect-ratio: 9/16; height: auto; max-height: 520px; background: #eff4ff; border: 1px solid #dce9ff; border-radius: 12px; }
.fynix2-company-editor .character-studio-results #assetMediaRows { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; }
.fynix2-company-editor .character-studio-results .asset-media-row { border-color: #dce9ff; border-radius: 10px; }
.fynix2-company-editor .character-studio-results .asset-media-thumb { height: auto; aspect-ratio: 3/4; background: #eff4ff; border-radius: 8px; }
.fynix2-company-editor .character-studio-results .asset-media-empty { min-height: 380px; border-color: #c7c4d8; background: #f8f9ff; border-radius: 12px; }
.fynix2-company-editor.character-studio-page .asset-editor-actionbar { bottom: 0; z-index: 25; border: 1px solid #dce9ff; border-radius: 12px; padding: 12px 16px; }

/* P20: account card at right; chart and usage rows form a vertical reading path. */
.fynix2-account .customer-settings-workspace { display: block; height: auto; min-height: calc(100dvh - var(--topbar)); overflow: visible; max-width: 1488px; margin-right: auto; padding: 24px; }
.fynix2-account .customer-settings-heading { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #dce9ff; }
.fynix2-account .customer-usage-metrics { height: auto; min-height: 138px; margin-bottom: 24px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; border: 0; background: transparent; overflow: visible; }
.fynix2-account .customer-usage-metrics article { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 20px; border: 1px solid #dce9ff; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.fynix2-account .customer-usage-metrics article:last-child { border: 1px solid #dce9ff; }
.fynix2-account .customer-usage-metrics strong { font-family: "JetBrains Mono",monospace; font-size: 26px; font-weight: 600; color: #0b1c30; }
.fynix2-account .customer-usage-metrics article > div { position: static; order: 4; width: 100%; height: 6px; margin: 4px 0 0; background: #e5eeff; }
.fynix2-account .customer-settings-board { grid-template-columns: minmax(0,2.06fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.fynix2-account .customer-primary-panel { height: auto; min-width: 0; overflow: hidden; }
.fynix2-account .customer-panel-toolbar { min-height: 64px; padding: 16px; flex-wrap: wrap; gap: 10px; }
.fynix2-account .customer-panel-toolbar h2 { font-size: 16px; }
.fynix2-account .customer-panel-toolbar :is(select, .customer-usage-search, .invite-member) { min-height: 36px; border-radius: 8px; }
.fynix2-account .customer-settings-side { overflow: visible; display: flex; flex-direction: column; gap: 16px; }
.fynix2-account .customer-account-card { order: -1; }
.fynix2-account .customer-account-card > header { min-height: 88px; padding: 20px; background: linear-gradient(130deg,#fff 60%,#f3f1ff); }
.fynix2-account .customer-account-card > header > div { position: relative; padding-left: 60px; }
.fynix2-account .customer-account-card > header > div::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 10px; background: #4f46e5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center/28px no-repeat; }
.fynix2-account .customer-account-card h2 { font-size: 18px; }
.fynix2-account .customer-account-card dl { padding: 10px 16px; }
.fynix2-account .customer-account-card dl > div { padding: 10px 0; gap: 12px; }
.fynix2-account .customer-account-card dd { text-align: right; overflow-wrap: anywhere; }
.fynix2-account .customer-account-card > footer { padding: 8px 16px 20px; display: grid; gap: 10px; }
.fynix2-account .customer-account-card > footer button { min-height: 38px; border: 1px solid #c7c4d8; border-radius: 8px; background: #eff4ff; color: #3525cd; }
.fynix2-account .customer-account-card > footer .danger-text { background: #fff; border-color: #e7caca; color: #ba1a1a; }
.fynix2-account :is(.customer-access-panel, .customer-settlement-card) > header { padding: 16px; }
.fynix2-account :is(.customer-access-panel, .customer-settlement-card) h2 { font-size: 16px; }
.fynix2-account .customer-access-list { padding: 8px 16px; }
.fynix2-account .customer-access-row { min-height: 64px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; }
.fynix2-account .customer-access-row > span { width: 30px; height: 30px; background: #eeecff; color: #4f46e5; border-radius: 8px; }
.fynix2-account :is(.customer-access-panel, .customer-settlement-card) > footer { padding: 12px 16px; background: #f8f9ff; line-height: 1.6; }
.fynix2-account .customer-primary-panel { min-width: 0; grid-template-columns: minmax(0,1fr); }
.fynix2-account #primaryPanelContent { min-width: 0; }
.fynix2-account .personal-usage-layout { display: flex; flex-direction: column; width: 100%; min-width: 0; height: auto; gap: 0; background: #fff; }
.fynix2-account .personal-usage-chart { display: grid; grid-template-rows: auto 230px; min-height: 300px; padding: 20px; border-bottom: 1px solid #dce9ff; }
.fynix2-account .personal-usage-chart h3 { font-size: 16px; margin-bottom: 6px; }
.fynix2-account .usage-bars { height: 230px; min-height: 230px; padding-top: 24px; gap: 12px; background: repeating-linear-gradient(to top,transparent 0,transparent 55px,#f0f3fa 56px,#f0f3fa 57px); }
.fynix2-account .usage-bars > span { height: 100%; min-width: 0; }
.fynix2-account .usage-bars i { max-width: 28px; background: #c3c0ff; opacity: 1; min-height: 3px; border-radius: 4px 4px 0 0; }
.fynix2-account .usage-bars > span:nth-last-child(2) i { background: #3525cd; }
.fynix2-account .usage-bars small { font: 11px "JetBrains Mono",monospace; }
.fynix2-account .personal-records { padding: 20px; overflow-x: auto; }
.fynix2-account .personal-records h3 { font-size: 16px; }
.fynix2-account .personal-records table { min-width: 440px; margin-top: 20px; }
.fynix2-account .personal-records th { height: 40px; background: #f8f9ff; padding: 8px; }
.fynix2-account .personal-records td { height: 58px; padding: 10px 8px; }
.fynix2-account .customer-member-table-wrap { overflow-x: auto; height: auto; min-height: 300px; }
.fynix2-account .customer-member-table th { height: 40px; background: #f8f9ff; }
.fynix2-account .customer-member-table td { height: 68px; }
.fynix2-account .customer-usage-empty { min-height: 170px; display: grid; place-items: center; color: #777587; padding: 24px; }

/* P22: white administration navigation and the prototype's two-column service cards. */
.fynix2-admin { --rail: 220px; }
.fynix2-admin .app-rail { position: fixed; left: 0; right: auto; bottom: 0; width: 220px; top: 56px; height: calc(100dvh - 56px); background: #fff; color: #464555; border-right: 1px solid #e4e4ee; box-shadow: none; }
.fynix2-admin .system-admin-rail .brand-mark { display: none; }
.fynix2-admin .system-admin-rail .rail-nav::before { content: "平台控制台"; display: block; padding: 14px 12px 12px; color: #777587; font-size: 12px; }
.fynix2-admin .system-admin-rail .rail-link { color: #464555; border-radius: 8px; min-height: 42px; }
.fynix2-admin .system-admin-rail .rail-link.active { background: #ece9fa; color: #3525cd; border-left: 2px solid #3525cd; }
.fynix2-admin .system-admin-rail .rail-link:hover { background: #eff4ff; color: #3525cd; }
.fynix2-admin .system-admin-rail .rail-link svg { color: currentColor; }
.fynix2-admin .system-admin-topbar { left: 0; grid-column: 1 / -1; grid-row: 1; height: 56px; background: #fff; border-bottom: 1px solid #dce9ff; padding: 0 24px; }
.fynix2-admin .system-admin-topbar .product-wordmark { min-width: 200px; }
.fynix2-admin .system-admin-workspace { display: block; height: auto; min-height: calc(100dvh - 56px); padding: 24px; overflow: visible; }
.fynix2-admin #adminOverviewView { height: auto; max-width: 1520px; margin: 0 auto; display: grid; grid-template-rows: auto auto auto; gap: 24px; }
.fynix2-admin #adminOverviewView[hidden] { display: none; }
.fynix2-admin .system-admin-heading { min-height: 76px; padding: 16px; border: 1px solid #e4e4ee; border-radius: 12px; background: #fff; }
.fynix2-admin .admin-boundary-note { background: #eff4ff; border-color: #dce9ff; border-radius: 8px; }
.fynix2-admin .system-admin-metrics { height: auto; min-height: 104px; border-color: #dce9ff; border-radius: 12px; }
.fynix2-admin .system-admin-metrics article { padding: 16px; gap: 8px; }
.fynix2-admin .system-admin-metrics strong { font: 600 26px "JetBrains Mono",monospace; }
.fynix2-admin .system-admin-board { grid-template-columns: minmax(0,1fr) 330px; gap: 16px; min-height: 500px; }
.fynix2-admin .admin-panel-toolbar { padding: 16px; min-height: 64px; flex-wrap: wrap; }
.fynix2-admin .admin-panel-toolbar h2 { font-size: 16px; }
.fynix2-admin .admin-panel-toolbar :is(label, select, button) { min-height: 36px; border-radius: 8px; }
.fynix2-admin .admin-company-table th { height: 40px; background: #f8f9ff; }
.fynix2-admin .admin-company-table td { height: 70px; }
.fynix2-admin .admin-company-table-wrap { min-height: 320px; }
.fynix2-admin .admin-api-panel > header { padding: 16px; min-height: 64px; }
.fynix2-admin .admin-api-panel h2 { font-size: 16px; }
.fynix2-admin .admin-api-panel > footer { padding: 14px 16px; background: #f8f9ff; gap: 16px; }
.fynix2-admin .admin-api-panel > footer button { min-height: 36px; padding: 0 12px; border: 1px solid #c7c4d8; border-radius: 8px; background: #fff; white-space: nowrap; }
.fynix2-admin .admin-api-row { min-height: 72px; gap: 10px; }
.fynix2-admin .admin-api-row > span { width: 32px; height: 32px; border: 1px solid #d8d5f5; border-radius: 8px; color: #3525cd; background: #eeecff; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .system-admin-board { min-height: 0; grid-template-columns: 1fr; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-panel { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-panel > header { padding: 0 0 16px; background: transparent; border: 0; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0; overflow: visible; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row { position: relative; grid-template-columns: 40px minmax(0,1fr) auto; grid-template-rows: auto auto; align-content: start; align-items: start; min-height: 178px; padding: 20px 16px 50px; gap: 12px; background: #fff; border: 1px solid #e4e4ee; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row:hover { border-color: #a9a3ec; background: #fff; box-shadow: 0 4px 12px rgba(53,37,205,.07); }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row > span { width: 38px; height: 38px; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row strong { font-size: 16px; line-height: 22px; color: #0b1c30; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row small { white-space: normal; line-height: 20px; margin-top: 10px; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row > b { padding: 5px 8px; border: 1px solid #a7f3d0; border-radius: 999px; background: #ecfdf5; font-size: 11px; white-space: nowrap; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row.missing > b { background: #fffbeb; border-color: #fde68a; color: #a35d08; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row.optional > b { color: #777587; background: #f8f9ff; border-color: #e4e4ee; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row > em { position: absolute; right: 16px; bottom: 15px; color: #3525cd; font-size: 20px; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-row::after { content: "查看服务配置"; position: absolute; bottom: 18px; left: 16px; right: 42px; padding-top: 12px; border-top: 1px solid #edf0f6; font-size: 12px; color: #3525cd; }
.fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-panel > footer { margin-top: 16px; border: 1px solid #dce9ff; border-radius: 12px; background: #fff; }
.fynix2-admin :is(.seedance-model-card, .admin-credential-group, .admin-api-optional, .admin-api-state, .admin-clear-secret, .reconciliation-detail-grid > div) { background: #eff4ff; border-color: #dce9ff; border-radius: 10px; }
.fynix2-admin .seedance-model-card.primary { background: #eeecff; border-color: #c3c0ff; }
.fynix2-admin .admin-credential-group { padding: 16px; gap: 12px; }
.fynix2-admin .admin-credential-group > header strong { font-size: 14px; }
.fynix2-admin :is(.admin-credential-group, .admin-api-optional) :is(input, select, textarea) { background: #fff; }
.fynix2-admin :is(.billing-tabs, .pricing-version-list, .transfer-queue, .audit-anomalies) { background: #f8f9ff; }
.fynix2-admin :is(.billing-tabs button.active, .pricing-version-list button.active) { color: #3525cd; background: #eeecff; }
.fynix2-admin .admin-drawer { width: min(620px,100vw); }
.fynix2-admin .admin-drawer-body { padding: 20px; }
.fynix2-admin .admin-drawer-body > label { margin-bottom: 16px; }
.fynix2-admin .admin-drawer :is(header, footer) { background: #fff; border-color: #dce9ff; }
.fynix2-admin .live-commercial-boundary { border-color: #4f46e5; background: #eff4ff; padding: 12px; border-radius: 0 8px 8px 0; }
@media (min-width: 981px) {
  .fynix2-admin .system-admin-rail .brand-mark { display: flex; position: fixed; top: 4px; left: 16px; z-index: 60; width: 204px; height: 48px; padding: 0; color: #0b1c30; }
  .fynix2-admin .system-admin-rail .brand-mark > svg { background: #4f46e5; color: #fff; }
  .fynix2-admin .system-admin-rail .fynix-brand-copy small { color: #777587; }
  .fynix2-admin .system-admin-topbar .product-wordmark { visibility: hidden; }
}

@media (max-width: 1200px) {
  .fynix2-account .customer-settings-board { grid-template-columns: minmax(0,1fr) 290px; gap: 16px; }
  .fynix2-account .customer-usage-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fynix2-admin .system-admin-board { grid-template-columns: minmax(0,1fr); }
  .fynix2-admin .admin-api-panel { min-height: 320px; }
  .fynix2-admin .admin-boundary-note { display: none; }
}
@media (max-width: 1000px) {
  .fynix2-company-editor.character-studio-page .character-studio { grid-template-columns: minmax(260px,1fr) minmax(0,1.3fr); }
  .fynix2-company-editor :is(.character-studio-input, .character-studio-results) { padding: 12px; }
  .fynix2-admin #adminOverviewView[data-admin-section="apis"] .admin-api-list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .fynix2-account .customer-settings-board { grid-template-columns: 1fr; }
  .fynix2-account .customer-settings-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fynix2-company-editor .asset-editor-board { grid-template-columns: 1fr; grid-template-areas: "summary" "canvas" "readiness"; }
  .fynix2-company-editor .asset-editor-summary { display: grid; }
  .fynix2-company-editor .asset-editor-preview:not(.voice):not(.empty) { max-height: 280px; }
  .fynix2-company-editor .asset-editor-canvas { min-height: 0; }
  .fynix2-company-editor.character-studio-page .character-studio { grid-template-columns: 1fr; }
  .fynix2-company-editor .character-studio-results { position: static; max-height: none; }
  .fynix2-admin .system-admin-topbar .command-search { display: none; }
  .fynix2-admin .system-admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .fynix2-admin { --rail: 0px; }
  .fynix2-admin .app-rail { position: fixed; inset: auto 0 0; width: 100%; height: 64px; padding: 5px 8px; z-index: 45; border-top: 1px solid #dce9ff; border-right: 0; }
  .fynix2-admin .system-admin-rail .rail-nav::before { display: none; }
  .fynix2-admin .system-admin-rail .rail-nav { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: row; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; gap: 4px; margin: 0; scrollbar-width: thin; }
  .fynix2-admin .system-admin-rail .rail-link { flex: 0 0 68px; min-width: 68px; width: 68px; max-width: none; height: 48px; min-height: 48px; padding: 4px; gap: 2px; flex-direction: column; white-space: nowrap; border-left: 0; }
  .fynix2-admin .system-admin-rail .rail-link span { font-size: 10px; line-height: 16px; }
  .fynix2-admin .system-admin-rail .rail-link.active { border-left: 0; box-shadow: inset 0 -2px #3525cd; }
  .fynix2-admin .system-admin-rail .rail-bottom { display: none; }
  .fynix2-admin .system-admin-workspace { grid-column: 1; margin-left: 0; padding-bottom: 96px; }
  .fynix2-admin .system-admin-topbar { grid-column: 1; }
}
@media (max-width: 700px) {
  .fynix2-admin { --rail: 0px; }
  .fynix2-admin .app-rail { width: 100%; height: 64px; top: auto; bottom: 0; z-index: 45; }
  .fynix2-admin .system-admin-rail .rail-nav::before { display: none; }
  .fynix2-admin .system-admin-rail .rail-nav { display: flex; overflow-x: auto; }
  .fynix2-admin .system-admin-rail .rail-link { flex: 0 0 68px; min-width: 68px; }
  .fynix2-admin .system-admin-workspace { margin-left: 0; padding: 16px 16px 90px; }
  .fynix2-admin .system-admin-topbar { padding: 0 16px; }
  .fynix2-admin .system-admin-topbar .system-environment { display: none; }
  .fynix2-account .customer-settings-workspace, .fynix2-company-editor .company-asset-editor-workspace { padding: 16px 16px 100px; }
  .fynix2-account .customer-settings-side { display: flex; }
  .fynix2-account .customer-usage-metrics { gap: 12px; }
  .fynix2-account .customer-usage-metrics article { padding: 14px; }
  .fynix2-account .customer-usage-metrics strong { font-size: 22px; }
  .fynix2-account .usage-bars { gap: 5px; }
  .fynix2-account .customer-panel-toolbar > div:first-child { width: 100%; }
  .fynix2-company-editor .asset-editor-heading { align-items: flex-start; }
  .fynix2-company-editor .asset-canvas-heading { flex-wrap: wrap; }
  .fynix2-company-editor .asset-editor-actionbar { flex-wrap: wrap; gap: 10px; }
  .fynix2-company-editor .asset-editor-actionbar .action-readiness { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fynix2-management *, .fynix2-management *::before, .fynix2-management *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.fynix2-company-editor .asset-generation-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid #dce9ff; border-radius: 8px; background: #fff; }
.fynix2-company-editor .asset-generation-switch button { min-height: 32px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #777587; white-space: nowrap; }
.fynix2-company-editor .asset-generation-switch button.active { border-color: #d8d4ff; background: #eeecff; color: #3525cd; }
.fynix2-company-editor .asset-generation-switch button:hover { color: #3525cd; background: #f8f9ff; }
