:root {
  color-scheme: light;
  --ink: #111513;
  --muted: #747b77;
  --line: #e3e7e5;
  --soft: #f5f7f6;
  --surface: #ffffff;
  --green: #52f238;
  --green-dark: #158f35;
  --cyan: #19b9ce;
  --amber: #d5a52d;
  --danger: #d95050;
  --studio: #0b0d0c;
  --studio-panel: #101312;
  --studio-line: #292d2b;
}
/* 管理端复用 CRM 的轻量卡片体系，避免普通工作区出现 Prompt 内容。 */
.prompt-version-item,
.style-candidate-item,
.audit-item {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.prompt-version-item strong,
.style-candidate-item strong,
.audit-item strong {
  display: block;
  margin-bottom: 5px;
}
.prompt-version-item small,
.style-candidate-item small,
.audit-item small {
  display: block;
  color: var(--muted, #9ba1b1);
  margin-bottom: 8px;
}
.prompt-version-item .content-actions,
.style-candidate-item .content-actions {
  margin-top: 8px;
}
.field-hint {
  display: block;
  margin-top: 5px;
  color: #8b938e;
  font-size: 10px;
  line-height: 1.45;
}
.safe-admin-note {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #cce9c5;
  border-radius: 999px;
  color: #39792f;
  background: #f5fff2;
  font-size: 10px;
  font-weight: 750;
}
.prompt-baseline-field {
  grid-column: 1 / -1;
}
.prompt-baseline-field input[readonly] {
  color: #53605a;
  background: #f7f9f7;
}
.prompt-baseline-field input.immutable,
.prompt-editor-locked select:disabled,
.prompt-editor-locked input:disabled,
.prompt-editor-locked textarea:disabled {
  color: #69746d;
  background: #eef2ef;
  border-color: #d4ddd7;
  cursor: not-allowed;
  opacity: .9;
}
.prompt-editor-locked #promptScope,
.prompt-editor-locked #promptCategory,
.prompt-editor-locked #promptStreamer {
  box-shadow: inset 3px 0 0 #aab8ae;
}
.admin-category-settings {
  margin-bottom: 12px;
}
.admin-category-form {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(320px, 1.8fr) minmax(180px, .8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px 16px;
}
.admin-category-form label > span,
.prompt-debug-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #737b76;
  font-size: 10px;
  font-weight: 700;
}
.admin-category-form input,
.admin-category-form textarea,
.admin-category-form select,
.prompt-history-filters select,
.prompt-debug-form input,
.prompt-debug-form select,
.prompt-debug-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 11px;
}
.admin-category-form input,
.admin-category-form select,
.prompt-history-filters select,
.prompt-debug-form input,
.prompt-debug-form select {
  height: 36px;
  padding: 0 9px;
}
.admin-category-form input:focus,
.admin-category-form textarea:focus,
.admin-category-form select:focus,
.prompt-history-filters select:focus,
.prompt-debug-form input:focus,
.prompt-debug-form select:focus,
.prompt-debug-form textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(82, 242, 56, 0.13);
}
.admin-category-form textarea {
  min-height: 112px;
  padding: 9px;
  resize: vertical;
  line-height: 1.55;
}
.admin-category-actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
}
.admin-category-actions button {
  height: 36px;
}
.admin-category-list {
  padding: 0 16px;
}
.admin-category-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(210px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.admin-category-row strong,
.admin-category-row small {
  display: block;
}
.admin-category-row strong {
  font-size: 12px;
}
.admin-category-row small {
  margin-top: 4px;
  color: #858c88;
  font-size: 10px;
  line-height: 1.45;
}
.admin-category-row .content-actions {
  justify-content: flex-end;
}
.category-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  margin-left: 5px;
  border-radius: 999px;
  color: #347c2c;
  background: #f1fbef;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.category-status.inactive {
  color: #8b651b;
  background: #fff9e9;
}
.prompt-history-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.prompt-history-filters select {
  width: auto;
  min-width: 90px;
  height: 30px;
  padding: 0 7px;
  font-size: 10px;
}
.prompt-version-item {
  background: #fff;
}
.prompt-version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: #758078;
  font-size: 10px;
  line-height: 1.45;
}
.prompt-version-meta code,
.debug-result-summary code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.prompt-impact-note {
  margin-top: 5px;
  color: #8a651b;
  font-size: 10px;
  line-height: 1.45;
}
.prompt-debug-settings {
  margin-top: 12px;
}
.debug-safety-warning {
  color: #8b651b !important;
}
.prompt-debug-form {
  padding: 0 16px 16px;
}
.prompt-debug-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.prompt-debug-form legend {
  padding: 0 5px;
  color: #737b76;
  font-size: 10px;
  font-weight: 800;
}
.prompt-debug-form label {
  min-width: 0;
}
.prompt-debug-form textarea {
  min-height: 112px;
  padding: 9px;
  resize: vertical;
  line-height: 1.5;
}
.prompt-debug-form select[multiple] {
  height: auto;
  min-height: 98px;
  padding: 5px;
}
.debug-wide {
  grid-column: 1 / -1;
}
.prompt-debug-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt-debug-actions button {
  min-height: 34px;
}
.debug-run-status {
  min-height: 20px;
  color: #69746e;
  font-size: 10px;
}
.prompt-debug-layout {
  display: grid;
  grid-template-columns: minmax(220px, .4fr) minmax(0, 1.6fr);
  gap: 12px;
  padding: 0 16px 16px;
}
.debug-run-history,
.debug-results {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.debug-run-history .panel-header,
.debug-results .panel-header {
  padding: 12px;
}
.debug-run-item {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.debug-run-item:hover,
.debug-run-item.active {
  background: #f5fff2;
}
.debug-run-item strong,
.debug-run-item small {
  display: block;
}
.debug-run-item strong {
  font-size: 11px;
}
.debug-run-item small {
  margin-top: 4px;
  color: #818a84;
  font-size: 10px;
}
.debug-result-summary {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: #606b64;
  font-size: 11px;
  line-height: 1.5;
}
.debug-variant-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 12px;
}
.debug-variant-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfb;
}
.debug-variant-card.failed {
  border-color: #f2c1c1;
  background: #fff8f8;
}
.debug-variant-card h4 {
  margin: 0 0 7px;
  font-size: 12px;
}
.debug-variant-card p,
.debug-variant-card li {
  color: #67726b;
  font-size: 10px;
  line-height: 1.5;
}
.debug-variant-card ul {
  max-height: 210px;
  margin: 8px 0;
  padding-left: 17px;
  overflow: auto;
}
.debug-variant-card details {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
.debug-variant-card details summary {
  color: #4f6757;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.debug-raw-output {
  max-height: 220px;
  margin: 7px 0 0;
  padding: 8px;
  overflow: auto;
  border-radius: 3px;
  color: #d7e4db;
  background: #17201a;
  font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.debug-comparison {
  margin: 0 12px 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #667169;
  font-size: 10px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
html,
body {
  min-width: 320px;
  min-height: 100%;
}
body {
  margin: 0;
  background: #f8f9f8;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.workspace-bootstrap {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  background: #080b09;
  color: #f2f5f2;
  text-align: center;
}
.workspace-bootstrap-logo {
  width: 144px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 18px rgba(82, 242, 56, 0.16));
}
.workspace-bootstrap strong {
  font-size: 18px;
}
.workspace-bootstrap span {
  color: #929b96;
  font-size: 12px;
}
.brand {
  color: #1f2a25;
  display: inline-flex;
  align-items: center;
  font-size: 27px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}
.brand-logo {
  width: 128px;
  height: auto;
  display: block;
  filter: none;
}
.overline {
  margin: 0 0 7px;
  color: #929995;
  font-size: 10px;
  font-weight: 800;
}

/* 登录与首次安全设置：沿用剪辑专员工作区的浅色画布、绿色强调和圆角卡片规范。 */
.login-screen {
  min-height: 100vh;
  padding: 24px;
  background: #f6faf7;
  color: #2b333e;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  position: absolute;
  inset: 0 48% 0 0;
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(151, 242, 117, .34), transparent 36%),
    linear-gradient(145deg, #effff3 0%, #e9f9ed 54%, #f6faf7 100%);
  pointer-events: none;
}

.auth-page-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  width: min(1440px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e1ebe3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(35, 82, 48, .08);
}

.auth-visual-panel {
  position: relative;
  min-width: 0;
  padding: 34px 48px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(198, 255, 164, .78), transparent 26%),
    linear-gradient(135deg, #f4fff7 0%, #effcf1 48%, #e5f8de 100%);
}

.auth-visual-panel::after {
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(78, 190, 79, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(78, 190, 79, .06), 0 0 0 56px rgba(78, 190, 79, .04);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 2;
}

.login-brand .brand-logo { width: 148px; }

.login-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: clamp(72px, 13vh, 156px);
}
.login-copy span {
  color: #4c8c5e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.login-copy h1 {
  margin: 14px 0 18px;
  color: #123821;
  font-size: clamp(38px, 4vw, 68px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.login-copy h1 em {
  color: #1f9d4d;
  font-style: normal;
}
.login-copy p {
  max-width: 520px;
  margin: 0;
  color: #648070;
  font-size: 14px;
  line-height: 1.8;
}

.auth-preview-placeholder {
  position: absolute;
  right: clamp(36px, 8vw, 118px);
  bottom: 48px;
  z-index: 2;
  width: min(56%, 520px);
  overflow: hidden;
  border: 1px solid rgba(108, 181, 116, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 40px rgba(58, 129, 73, .12);
  backdrop-filter: blur(10px);
}

.auth-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid #e1efe2;
  color: #87a28d;
  font-size: 10px;
}

.auth-preview-toolbar span { width: 6px; height: 6px; border-radius: 50%; background: #a9db9e; }
.auth-preview-toolbar span:nth-child(2) { background: #c5e7a5; }
.auth-preview-toolbar span:nth-child(3) { background: #dbeec0; }
.auth-preview-toolbar strong { margin-left: 6px; font-weight: 600; }

.auth-preview-body { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 164px; }
.auth-preview-sidebar { padding: 16px 12px; background: rgba(239, 251, 239, .8); }
.auth-preview-sidebar i { display: block; height: 9px; margin-bottom: 13px; border-radius: 4px; background: #cde9cf; }
.auth-preview-sidebar i:first-child { width: 42px; background: #79d77d; }
.auth-preview-content { padding: 18px 20px; }
.auth-preview-line { display: block; width: 44%; height: 9px; margin-bottom: 8px; border-radius: 5px; background: #d5e8d8; }
.auth-preview-line-wide { width: 70%; height: 13px; background: #a9dca5; }
.auth-preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 14px; }
.auth-preview-cards i { height: 44px; border: 1px solid #d9ebdc; border-radius: 8px; background: #fbfffb; }
.auth-preview-cards i:first-child { background: linear-gradient(145deg, #d9f6d9, #f8fff8); }
.auth-preview-table { display: grid; gap: 7px; }
.auth-preview-table i { display: block; height: 7px; border-radius: 4px; background: #e1eee2; }
.auth-preview-table i:nth-child(2) { width: 82%; }
.auth-preview-table i:nth-child(3) { width: 64%; }

.auth-security-placeholder {
  position: absolute;
  right: clamp(36px, 8vw, 118px);
  bottom: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(56%, 520px);
  padding: 18px;
  border: 1px solid #cce8cf;
  border-radius: 15px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 30px rgba(58, 129, 73, .1);
}

.auth-security-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #daf6d8;
  color: #249642;
  font-size: 18px;
  font-weight: 800;
}

.auth-security-placeholder div { display: grid; gap: 3px; min-width: 0; }
.auth-security-placeholder strong { color: #244d31; font-size: 13px; }
.auth-security-placeholder small { color: #78917f; font-size: 11px; }
.auth-security-status { margin-left: auto; color: #2c9c4d; font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.login-side {
  display: flex;
  align-items: center;
  width: auto;
  min-height: 100%;
  padding: clamp(38px, 6vw, 76px);
  background: #fff;
}

.login-form { width: 100%; max-width: 364px; margin: 0 auto; }
.login-logo { display: none; margin-bottom: 42px; }
.login-logo .brand-logo { width: 148px; }

.login-form h2 {
  margin: 0;
  color: #202a35;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -.02em;
}
.form-intro {
  margin: 10px 0 30px;
  color: #8d98a6;
  font-size: 13px;
  line-height: 1.7;
}

.login-form label { display: block; margin-top: 18px; }
.login-form label span { display: block; margin-bottom: 8px; color: #566171; font-size: 12px; font-weight: 600; }

.login-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #e1e7eb;
  border-radius: 9px;
  outline: none;
  background: #fbfcfd;
  color: #202a35;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-form input::placeholder { color: #b6bec8; }
.login-form input:focus { border-color: #54c966; background: #fff; box-shadow: 0 0 0 3px rgba(84, 201, 102, .14); }

.login-button {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border: 0;
  border-radius: 9px;
  background: #1e252d;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 5px 12px rgba(30, 37, 45, .12);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.login-button:hover:not(:disabled) { background: #2d3944; box-shadow: 0 7px 16px rgba(30, 37, 45, .16); transform: translateY(-1px); }
.login-button:active:not(:disabled) { transform: translateY(0); }
.login-button:disabled { opacity: .65; cursor: wait; }

.auth-switch { width: 100%; margin-top: 12px; border: 0; background: transparent; color: #2eaa4f; font-size: 12px; text-decoration: none; }
.auth-switch:hover { text-decoration: underline; }

.form-error { margin: 13px 0 0; color: #b42318; font-size: 12px; line-height: 1.5; }

.login-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e6edf0;
  border-radius: 10px;
  background: #f8fafb;
  color: #8b96a3;
  font-size: 11px;
  line-height: 1.55;
}

.login-note strong { color: #536171; font-weight: 600; }

/* 应用框架 */
.app-shell {
  min-height: 100vh;
}
.app-header {
  height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand-button {
  padding: 0;
  border: 0;
  background: transparent;
}
.brand-button .brand-logo {
  width: 118px;
}
.brand-subtitle {
  margin-left: 10px;
  color: #777e7a;
  font-size: 11px;
}
.app-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-header nav button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #626966;
  font-size: 12px;
}
.app-header nav button.active {
  border-color: var(--line);
  color: var(--ink);
}
.app-header nav .import-button {
  border-color: #171a19;
  background: #171a19;
  color: white;
  font-weight: 700;
}
.app-header nav .avatar-button {
  width: 34px;
  padding: 0;
  border-radius: 50%;
  background: #f3f5f4;
  color: #3f4642;
  font-weight: 800;
}
.streamer-switch {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8a918d;
  font-size: 10px;
}
.streamer-switch select {
  max-width: 120px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}
.app-main {
  min-height: calc(100vh - 52px);
}
.app-screen {
  min-height: calc(100vh - 52px);
}
.dashboard-screen,
.library-screen {
  padding: 18px 24px 24px;
  background: #fbfcfb;
}
.streamers-screen {
  min-height: calc(100vh - 52px);
  padding: 18px 24px 28px;
  background: #fbfcfb;
}
.streamer-layout {
  min-height: calc(100vh - 178px);
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: 12px;
}
.streamer-list-panel,
.streamer-editor-panel {
  padding: 16px;
}
.streamer-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.streamer-list button {
  width: 100%;
  min-height: 72px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.streamer-list button:hover,
.streamer-list button.active {
  background: #f3fbf1;
}
.streamer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dff5d9;
  color: #138b34;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.streamer-list strong,
.streamer-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.streamer-list strong {
  display: block;
  font-size: 13px;
}
.streamer-list small {
  display: block;
  margin-top: 4px;
  color: #858c88;
  font-size: 10px;
}
.streamer-list em {
  color: #7e8681;
  font-size: 9px;
  font-style: normal;
}
.streamer-form-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.streamer-form-grid label,
.knowledge-form label {
  min-width: 0;
}
.streamer-form-grid label > span,
.knowledge-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #77807b;
  font-size: 10px;
  font-weight: 750;
}
.streamer-form-grid input,
.streamer-form-grid textarea,
.knowledge-form input,
.knowledge-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 12px;
}
.streamer-form-grid input,
.knowledge-form input {
  height: 38px;
  padding: 0 10px;
}
.streamer-form-grid textarea,
.knowledge-form textarea {
  min-height: 82px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}
.streamer-form-grid input:focus,
.streamer-form-grid textarea:focus,
.knowledge-form input:focus,
.knowledge-form textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(82, 242, 56, 0.13);
}
.voice-section,
.knowledge-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.voice-sample-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.voice-sample-item {
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.voice-sample-item strong,
.voice-sample-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-sample-item strong {
  font-size: 12px;
}
.voice-sample-item small {
  margin-top: 4px;
  color: #858c88;
  font-size: 10px;
}
.voice-sample-item button {
  height: 27px;
  border: 1px solid #efc6c6;
  border-radius: 4px;
  background: #fff7f7;
  color: #bf4545;
  font-size: 10px;
}
.knowledge-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.knowledge-form .knowledge-content {
  grid-column: 1 / -1;
}
.knowledge-form button {
  height: 38px;
  white-space: nowrap;
}
.knowledge-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.knowledge-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.knowledge-item p {
  margin: 7px 0 0;
  color: #626966;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.knowledge-item .knowledge-meta {
  color: #858c88;
  font-size: 10px;
}
.knowledge-item button {
  height: 27px;
  border: 1px solid #efc6c6;
  border-radius: 4px;
  background: #fff7f7;
  color: #bf4545;
  font-size: 10px;
}
.welcome-row {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.welcome-row h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}
.welcome-row > div > p:last-child {
  margin: 7px 0 0;
  color: #8b928e;
  font-size: 12px;
}
.top-stats {
  display: flex;
  gap: 28px;
}
.top-stats div {
  min-width: 62px;
  text-align: right;
}
.top-stats span {
  display: block;
  color: #9aa09d;
  font-size: 10px;
}
.top-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}
.dashboard-grid {
  min-height: calc(100vh - 178px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  gap: 12px;
}
.workspace-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.panel-header {
  min-height: 94px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.panel-header.compact {
  min-height: 94px;
}
.panel-header h2 {
  margin: 0;
  font-size: 20px;
}
.panel-header p:last-child {
  margin: 7px 0 0;
  color: #969c99;
  font-size: 11px;
}
.panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-tools > select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #5f6863;
  font-size: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-api-settings,
.admin-feature-settings,
.admin-llm-settings,
.admin-image-settings {
  margin-bottom: 12px;
}
.admin-feature-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}
.admin-feature-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
.admin-feature-form > small {
  margin: 0;
  color: #737b76;
  font-size: 11px;
  line-height: 1.55;
}
.admin-feature-actions {
  display: flex;
  gap: 8px;
}
.admin-feature-actions button {
  height: 34px;
}
.admin-llm-provider-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 0;
}
.admin-llm-provider-card {
  min-height: 78px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
  background: #fbfcfb;
  color: var(--ink);
  cursor: pointer;
}
.admin-llm-provider-card:hover {
  border-color: #b9c2bc;
}
.admin-llm-provider-card.selected {
  border-color: var(--green-dark);
  background: #f4fff2;
  box-shadow: 0 0 0 2px rgba(82, 242, 56, 0.11);
}
.admin-llm-provider-card > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}
.admin-llm-provider-card small {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #858c88;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-llm-provider-card em {
  color: #327b27;
  font-size: 9px;
  font-style: normal;
}
.admin-llm-provider-form {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(250px, 1.2fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px 16px;
}
.admin-llm-provider-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #737b76;
  font-size: 10px;
  font-weight: 700;
}
.admin-llm-provider-form input[type="text"],
.admin-llm-provider-form input[type="url"],
.admin-llm-provider-form input[type="password"],
.admin-llm-provider-form input:not([type]) {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 12px;
}
.admin-llm-provider-form input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(82, 242, 56, 0.13);
}
.admin-llm-thinking {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
}
.admin-llm-thinking > span {
  margin: 0 !important;
}
.admin-llm-provider-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-llm-provider-actions button {
  height: 34px;
}
.api-key-master-status,
.api-key-source {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #e2e6e3;
  border-radius: 999px;
  color: #7b837f;
  background: #f8faf8;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.api-key-master-status.ready,
.api-key-source.managed {
  border-color: #bde9b5;
  color: #327b27;
  background: #f2fbef;
}
.api-key-source.environment {
  border-color: #d8e3f3;
  color: #46709f;
  background: #f5f8fc;
}
.admin-api-key-notice.error {
  border-color: #e6a9a9;
  color: #9b3b3b;
  background: #fff6f6;
}
.admin-api-key-notice {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid #f0d49a;
  border-radius: 4px;
  color: #8c6515;
  background: #fffaf0;
  font-size: 11px;
  line-height: 1.5;
}
.admin-api-key-list {
  padding: 0 16px;
}
.admin-api-key-row {
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
}
.admin-api-key-row:last-child {
  border-bottom: 0;
}
.admin-api-key-info > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-api-key-info strong {
  font-size: 12px;
}
.admin-api-key-info small {
  display: block;
  margin-top: 5px;
  color: #858c88;
  font-size: 10px;
  line-height: 1.4;
}
.admin-api-key-input input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 12px;
}
.admin-api-key-input input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(82, 242, 56, 0.13);
}
.admin-api-key-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.admin-api-key-actions button {
  height: 34px;
  white-space: nowrap;
}
.subtle-button {
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #69716c;
  font-size: 10px;
}
.subtle-button:hover {
  border-color: #bbc4be;
  color: var(--ink);
}
.search-box {
  width: 265px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a1a7a4;
}
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 11px;
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  font-size: 20px;
}
.dark-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #171a19;
  border-radius: 4px;
  background: #171a19;
  color: white;
  font-size: 11px;
  font-weight: 750;
}
.dark-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.section-tabs,
.content-tabs {
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.section-tabs span {
  flex: 1;
}
.section-tabs button,
.content-tabs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9f9c;
  font-size: 11px;
}
.section-tabs button.active,
.content-tabs button.active {
  color: var(--ink);
  font-weight: 800;
}
.session-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  align-content: start;
  gap: 10px;
}
.session-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.deleted-task-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8d9490;
  font-size: 12px;
  background: repeating-linear-gradient(135deg, #eef1ef 0 10px, #e5e9e7 10px 20px);
}
.session-card.selected {
  border-color: #1f2522;
  box-shadow: 0 0 0 1px #1f2522;
}
.session-media {
  height: 105px;
  background: #e9edeb;
  position: relative;
  overflow: hidden;
}
.session-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.status-chip {
  padding: 4px 7px;
  border-radius: 4px;
  background: #eff1f0;
  color: #6d7470;
  font-size: 9px;
  font-weight: 750;
}
.session-media .status-chip {
  position: absolute;
  top: 7px;
  right: 7px;
}
.status-chip.completed {
  background: #eef8f0;
  color: var(--green-dark);
}
.status-chip.processing {
  background: #fff7e1;
  color: #a16d00;
}
.status-chip.failed {
  background: #fff0f0;
  color: var(--danger);
}
.session-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.session-body span,
.session-body small {
  color: #949a97;
  font-size: 9px;
}
.task-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.task-card-actions button,
.task-progress-actions button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid #d8dedb;
  border-radius: 4px;
  background: #f8faf9;
  color: #56605b;
  font-size: 9px;
}
.task-card-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.load-more-button {
  display: block;
  min-height: 34px;
  margin: 0 auto 16px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #56605b;
}
.current-preview {
  padding: 16px;
}
.task-center {
  display: grid;
  gap: 7px;
  margin: 0 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.task-center-heading,
.task-progress-row {
  display: grid;
  gap: 3px;
}
.task-center-heading small,
.task-progress-row span,
.task-progress-row em {
  color: #87908b;
  font-size: 9px;
  font-style: normal;
}
.task-progress-row {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fafbfa;
}
.task-progress-row strong {
  font-size: 10px;
}
.task-progress-actions {
  margin-top: 4px;
}
.current-preview > video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  background: #111;
  object-fit: contain;
}
.preview-placeholder {
  min-height: 260px;
  border: 1px dashed var(--line);
  color: #a0a6a3;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.preview-summary {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.preview-summary span,
.preview-summary p {
  color: #929995;
  font-size: 10px;
}
.preview-summary h3 {
  margin: 6px 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.preview-summary p {
  margin: 0;
}
.preview-metrics {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.preview-metrics div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.preview-metrics div:first-child {
  padding-left: 0;
  border-left: 0;
}
.preview-metrics span {
  display: block;
  color: #9a9f9c;
  font-size: 9px;
}
.preview-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}
.empty-state {
  min-height: 280px;
  color: #9aa09d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
}
.empty-state strong {
  color: var(--ink);
  font-size: 15px;
}
.empty-state .dark-button {
  margin-top: 7px;
}
/* 深色工作台 */
body[data-screen="studio"] .app-header {
  border-color: #222624;
  background: #0d0f0e;
}
body[data-screen="studio"] .brand-subtitle,
body[data-screen="studio"] .app-header nav button {
  color: #8b918e;
}
body[data-screen="studio"] .app-header nav button.active {
  border-color: #303432;
  color: white;
}
body[data-screen="studio"] .app-header nav .import-button {
  border-color: var(--green);
  background: var(--green);
  color: #071006;
}
body[data-screen="studio"] .avatar-button {
  background: #1b1e1c !important;
}
.studio-screen {
  background: #080a09;
  color: #f5f6f5;
}
.studio-titlebar {
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid #222624;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.studio-titlebar > div {
  text-align: center;
}
.studio-titlebar span {
  display: block;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}
.studio-titlebar small {
  color: #666d69;
  font-size: 9px;
}
.studio-titlebar button {
  position: absolute;
  right: 16px;
  height: 30px;
  border: 1px solid #303432;
  border-radius: 4px;
  background: #111412;
  color: #b5bbb8;
  font-size: 10px;
}
.studio-layout {
  height: calc(100vh - 102px);
  min-height: 580px;
  padding: 10px;
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr) 320px;
  gap: 8px;
}
.studio-panel {
  min-width: 0;
  border: 1px solid #252927;
  border-radius: 5px;
  background: var(--studio-panel);
}
.parameter-panel > * {
  flex: 0 0 auto;
  scroll-margin-block: 16px 76px;
}
.dark-panel-heading {
  min-height: 65px;
  padding: 13px;
  border-bottom: 1px solid #252927;
}
.dark-panel-heading.horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dark-panel-heading p {
  margin: 0 0 5px;
  color: #69706c;
  font-size: 9px;
  font-weight: 800;
}
.dark-panel-heading h2 {
  margin: 0;
  font-size: 16px;
}
.dark-panel-heading > span {
  color: #79807c;
  font-size: 10px;
}
.aicut-editor-bootstrap-error {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px;
  color: #f2f5f2;
  background: #101311;
  text-align: center;
}
.frontend-startup-error {
  min-height: calc(100vh - 52px);
  place-content: center;
}
.frontend-startup-error-message {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid #252927;
  border-radius: 5px;
}
.aicut-editor-bootstrap-error strong {
  font-size: 18px;
}
.aicut-editor-bootstrap-error span {
  color: #9ca49f;
  font-size: 12px;
}
.aicut-bootstrap-refresh {
  justify-self: center;
  margin-top: 6px;
}
.asset-source div {
  min-width: 0;
}
.asset-source strong,
.asset-source small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-source strong {
  font-size: 11px;
}
.asset-source small {
  margin-top: 4px;
  color: #68706b;
  font-size: 9px;
}
.studio-stages > div {
  min-height: 59px;
  margin-bottom: 7px;
  padding: 9px;
  border: 1px dashed #303532;
  border-radius: 4px;
  color: #696f6c;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
}
.studio-stages span {
  grid-row: 1 / 3;
  font-size: 9px;
}
.studio-stages strong {
  font-size: 10px;
}
.studio-stages small {
  font-size: 8px;
}
.studio-stages > div.active {
  border-style: solid;
  border-color: var(--green);
  background: #152119;
  color: var(--green);
}
.studio-stages > div.done {
  border-style: solid;
  border-color: #235d30;
  color: #6faf79;
}
.asset-panel.ready .studio-stages > div {
  min-height: 28px;
  margin: 0;
  padding: 5px 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
}
.asset-panel.ready .studio-stages span {
  grid-row: auto;
}
.asset-panel.ready .studio-stages strong,
.asset-panel.ready .studio-stages small {
  display: none;
}
.candidate-toolbar span {
  display: block;
  margin-bottom: 3px;
  color: #656c68;
  font-size: 8px;
  font-weight: 800;
}
.candidate-toolbar strong {
  color: #d8ddda;
  font-size: 11px;
}
.candidate-toolbar button,
.selected-order button {
  border: 1px solid #2d3230;
  border-radius: 4px;
  background: #151817;
  color: #8b918e;
  font-size: 9px;
}
.candidate-toolbar button {
  height: 28px;
  padding: 0 9px;
}
.candidate-toolbar button:disabled {
  opacity: 0.45;
}
.candidate-filters button {
  min-height: 27px;
  border: 1px solid #303733;
  border-radius: 4px;
  background: #141816;
  color: #757d78;
  font-size: 9px;
}
.candidate-filters button.active {
  border-color: #3c7747;
  color: #8de299;
}
.candidate-virtual-content {
  position: relative;
  min-height: 0;
  width: 100%;
}
.candidate-virtual-card {
  position: absolute;
  inset-inline: 0;
  min-height: 80px;
}
.candidate-virtual-card > .candidate-card {
  margin-bottom: 0;
}
.candidate-thumb {
  min-width: 0;
  height: 78px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(33, 255, 17, 0.16), rgba(38, 186, 196, 0.08)),
    #090b0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.candidate-thumb strong {
  color: var(--green);
  font-size: 13px;
}
.candidate-thumb span {
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: #cfd6d2;
  font-size: 8px;
}
.candidate-main {
  min-width: 0;
}
.candidate-main h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.candidate-main p {
  height: 32px;
  margin: 6px 0;
  overflow: hidden;
  color: #949b97;
  font-size: 9px;
  line-height: 1.55;
}
.candidate-meta span {
  padding: 3px 5px;
  border-radius: 3px;
  background: #1b211e;
  color: #8e9692;
  font-size: 8px;
}
.candidate-meta span:first-child {
  color: #83d98b;
}
.candidate-check {
  display: flex;
  justify-content: flex-end;
}
.candidate-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.preview-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow-x: hidden;
}
.studio-status {
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #252927;
  color: #929995;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}
.studio-status strong {
  color: var(--green);
}
.studio-canvas video {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* 工作台预览与导出器一样，使用中心裁剪后的竖屏成片画布。 */
  object-fit: cover;
}
.subtitle-layer {
  position: absolute;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  max-width: 92%;
  min-width: 32px;
  min-height: 24px;
  padding: .12em .22em;
  color: #fff;
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.subtitle-layer.editable {
  cursor: move;
  pointer-events: auto;
  touch-action: none;
}
.subtitle-layer.selected,
.subtitle-layer.editable:focus-visible {
  outline: 1px solid #78f68d;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .72), 0 0 13px rgba(91, 242, 112, .38);
}
.subtitle-layer-text {
  max-width: 100%;
  pointer-events: none;
}
.subtitle-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 78%;
  padding: 7px 10px;
  border: 1px dashed rgba(181, 213, 191, .52);
  border-radius: 4px;
  background: rgba(9, 13, 10, .62);
  color: rgba(217, 231, 220, .74);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.subtitle-resize-handle {
  position: absolute;
  right: -22px;
  bottom: -22px;
  z-index: 3;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: nwse-resize;
  touch-action: none;
}
.subtitle-resize-handle::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 12px;
  height: 12px;
  border: 1px solid #d6ffe0;
  border-radius: 50%;
  background: #268e39;
}
.subtitle-canvas-layer.is-readonly .subtitle-layer {
  pointer-events: none;
}
.subtitle-canvas-layer.is-readonly .subtitle-resize-handle {
  display: none;
}
.safe-zone-guide {
  position: absolute;
  pointer-events: none;
  color: rgba(163, 213, 171, 0.76);
  font-size: 8px;
  letter-spacing: .04em;
}
.safe-zone-guide.top { top: 3%; left: 12%; }
.safe-zone-guide.right { top: 23%; right: 2%; writing-mode: vertical-rl; }
.safe-zone-guide.bottom { bottom: 5%; left: 12%; }
.effect-layer {
  position: absolute;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  cursor: move;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}
.effect-layer.selected {
  outline: 1px solid #78f68d;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .72), 0 0 13px rgba(91, 242, 112, .38);
}
.effect-layer-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .12em .2em;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  white-space: pre-wrap;
}
.effect-layer.selected .effect-layer-text { pointer-events: none; }
.effect-handle {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #d6ffe0;
  border-radius: 50%;
  background: #268e39;
  cursor: pointer;
}
.effect-handle.nw { top: -5px; left: -5px; cursor: nwse-resize; }
.effect-handle.ne { top: -5px; right: -5px; cursor: nesw-resize; }
.effect-handle.sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.effect-handle.se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.effect-handle.left { top: calc(50% - 5px); left: -5px; cursor: ew-resize; }
.effect-handle.right { top: calc(50% - 5px); right: -5px; cursor: ew-resize; }
.effect-handle.top { top: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.effect-handle.bottom { bottom: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.effect-handle.rotate {
  top: -29px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #1e9fc4;
  cursor: grab;
}
.timeline-toolbar > div { display: flex; align-items: center; gap: 5px; }
.timeline-toolbar button {
  width: 22px;
  height: 20px;
  border: 1px solid #303a34;
  border-radius: 3px;
  background: #171d19;
  color: #c8d5cc;
}
.timeline-tick span { position: absolute; top: -12px; transform: translateX(-50%); }
.effect-editor-heading,
.effect-property-heading,
.effect-layer-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.effect-editor-heading p { margin: 0 0 3px; color: #826a8d; font-size: 8px; font-weight: 800; }
.effect-editor-heading h3 { margin: 0; color: #e5ddeb; font-size: 12px; }
.effect-editor-panel button {
  min-height: 23px;
  border: 1px solid #4b3a55;
  border-radius: 3px;
  background: #211b26;
  color: #c9b8d1;
  font-size: 8px;
}
.effect-editor-panel button:hover:not(:disabled) { color: #f6d9ff; border-color: #9669aa; }
.effect-editor-panel button:disabled { opacity: .42; cursor: not-allowed; }
.safe-zone-toggle input { vertical-align: middle; accent-color: #71d785; }
.highlight-event-card {
  width: 100%;
  padding: 7px;
  border: 1px solid #3e3630;
  border-radius: 4px;
  background: #191714;
  color: #d9d1c4;
  text-align: left;
}
.highlight-event-card.selected { border-color: #dfaa5c; background: #282014; }
.highlight-event-card strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.highlight-event-card small { display: block; margin-top: 3px; color: #a19381; font-size: 8px; }
.editor-empty { padding: 8px; border: 1px dashed #3c3b38; color: #7a7e79; font-size: 8px; text-align: center; }
.highlight-detail p { margin: 0; }
.highlight-detail strong { color: #ead7af; }
.highlight-detail dl { display: grid; grid-template-columns: 45px 1fr; margin: 5px 0; gap: 2px 5px; }
.highlight-detail dt { color: #8e877a; }
.highlight-detail dd { margin: 0; color: #d1c9ba; overflow-wrap: anywhere; }
.highlight-suggestion-editor { display: grid; grid-template-columns: 1fr 1fr; margin-top: 7px; gap: 5px; }
.highlight-suggestion-editor input,
.highlight-suggestion-editor select { min-width: 0; box-sizing: border-box; height: 24px; border: 1px solid #4c4539; border-radius: 3px; background: #151310; color: #e1d9c8; font-size: 8px; }
.image-effect-heading strong { color: #e5d4ef; font-size: 9px; }
.image-effect-heading small { color: #9586a0; font-size: 8px; text-align: right; }
.image-effect-generator > button { margin-top: 6px; padding: 0 8px; }
.expand-list-button {
  width: 100%;
  min-height: 28px;
  border: 1px dashed #4a514d;
  border-radius: 4px;
  background: #151917;
  color: #aeb8b2;
  font-size: 9px;
}
.image-effect-asset img { display: block; width: 42px; height: 42px; object-fit: contain; border-radius: 2px; background: repeating-conic-gradient(#242127 0 25%, #19171c 0 50%) 50% / 8px 8px; }
.image-effect-asset strong, .image-effect-asset small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-effect-asset small { margin-top: 2px; color: #837a8c; }
.image-effect-asset button { min-height: 22px; padding: 0 6px; }
.image-effect-preview { pointer-events: none; object-fit: contain; width: 100%; height: 100%; }
.effect-property-heading strong { overflow: hidden; color: #dfd1e8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.effect-property-heading > div { display: flex; gap: 4px; }
.effect-text-field span,
.effect-field-grid label span { color: #92889b; font-size: 8px; }
.effect-text-field textarea,
.effect-field-grid input,
.effect-field-grid select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #42384a;
  border-radius: 3px;
  background: #151217;
  color: #dfd9e3;
  font: inherit;
  font-size: 9px;
}
.effect-text-field textarea { min-height: 39px; padding: 4px; resize: vertical; }
.effect-field-grid label { display: grid; gap: 3px; min-width: 0; }
.effect-field-grid input,
.effect-field-grid select { height: 24px; padding: 0 4px; }
.effect-field-grid input[type="color"] { padding: 2px; }
.effect-layer-actions { margin-top: 8px; justify-content: flex-end; }
.canvas-placeholder strong {
  color: #b7bcb9;
  font-size: 12px;
}
.canvas-placeholder small {
  font-size: 9px;
}
.timeline-track span {
  border-right: 1px solid #29302d;
  background: repeating-linear-gradient(
    90deg,
    #1d2721 0,
    #1d2721 8px,
    #18201b 8px,
    #18201b 16px
  );
}
.timeline-meta button {
  height: 25px;
  border: 0;
  border-radius: 3px;
  background: white;
  color: #121513;
  font-size: 9px;
}
.timeline-meta button:disabled {
  opacity: 0.4;
}
.studio-error {
  padding: 8px 11px;
  border-top: 1px solid #5b2929;
  background: #261414;
  color: #ee7a7a;
  font-size: 10px;
}
.composition-workbench-heading,
.composition-current,
.composition-card-head,
.composition-card-meta,
.composition-actions {
  display: flex;
  align-items: center;
}
.composition-workbench-heading p {
  margin: 0 0 3px;
  color: #656c68;
  font-size: 8px;
  font-weight: 800;
}
.composition-workbench h3 {
  margin: 0;
  color: #dce2df;
  font-size: 12px;
}
.composition-workbench button {
  min-height: 26px;
  border: 1px solid #2d3932;
  border-radius: 4px;
  background: #151d18;
  color: #a3b7a6;
  font-size: 9px;
}
.composition-workbench button:hover:not(:disabled) {
  border-color: #4b7453;
  color: var(--green);
}
.composition-workbench button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.composition-current strong {
  min-width: 0;
  overflow: hidden;
  color: #e2e8e4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composition-save-state button {
  min-height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  font-size: 8px;
}
.composition-empty {
  padding: 9px;
  border: 1px dashed #303532;
  border-radius: 4px;
  color: #747b77;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
.composition-card {
  padding: 8px;
  border: 1px solid #29312d;
  border-radius: 5px;
  background: #111513;
}
.composition-card.current {
  border-color: #348748;
  box-shadow: inset 0 0 0 1px rgba(82, 242, 56, 0.12);
}
.composition-card.archived { opacity: 0.62; }
.composition-card.deleted { opacity: .58; border-style: dashed; }
.composition-card-head {
  justify-content: space-between;
  gap: 7px;
}
.composition-switch {
  min-width: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #dbe2dd !important;
  font-size: 10px !important;
  font-weight: 800;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composition-card-meta {
  flex-wrap: wrap;
  margin-top: 5px;
  gap: 4px;
  color: #727a75;
  font-size: 8px;
}
.composition-card-meta em {
  padding: 2px 4px;
  border-radius: 3px;
  background: #202721;
  color: #afbbaf;
  font-style: normal;
}
.composition-card-meta em.warning { background: #372b1a; color: #e5bf74; }
.composition-card-meta em.exported { background: #29213b; color: #c7a8e6; }
.composition-card-meta em.creative-difference { font-style: normal; }
.composition-card-meta em.difference-low { background: #372b1a; color: #e5bf74; }
.composition-card-meta em.difference-medium { background: #1f3440; color: #90d5eb; }
.composition-card-meta em.difference-high { background: #1d3928; color: #8ed79c; }
.composition-card-meta em.difference-none { background: #303634; color: #a0a9a3; }
.creative-difference-detail {
  display: grid;
  gap: 3px;
  margin: 0 0 11px;
  padding: 8px 9px;
  border-left: 2px solid #426a70;
  background: rgba(22, 34, 31, .48);
}
.creative-difference-detail small { color: #b4c2b9; font-size: 11px; line-height: 1.35; }
.composition-actions {
  flex-wrap: wrap;
  margin-top: 7px;
  gap: 4px;
}
.composition-actions button {
  min-height: 22px;
  padding: 0 6px;
  font-size: 8px;
}
.parameter-group > span {
  display: block;
  margin-bottom: 6px;
  color: #656c68;
  font-size: 8px;
  font-weight: 800;
}
.parameter-group > strong {
  font-size: 11px;
}
.selection-summary strong {
  font-size: 12px;
}
.selection-summary small {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}
.mode-switch button {
  min-height: 38px;
  border: 1px solid #2d3230;
  border-radius: 4px;
  background: #151817;
  color: #727975;
  font-size: 9px;
}
.mode-switch button:disabled {
  opacity: 0.45;
}
.export-title-field span {
  display: block;
  margin-bottom: 6px;
  color: #656c68;
  font-size: 8px;
  font-weight: 800;
}
.export-title-field input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #2d3230;
  border-radius: 4px;
  background: #151817;
  color: #e8ecea;
  font-size: 10px;
  outline: none;
}
.export-title-field input:focus {
  border-color: #2f8185;
}
.selected-grip {
  display: grid;
  gap: 3px;
  justify-items: center;
}
.selected-grip i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4a524d;
}
.selected-preview {
  width: 54px;
  height: 58px;
  padding: 0;
  border: 1px solid #27302c;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(33, 255, 17, 0.16), rgba(38, 186, 196, 0.09)),
    #080a09;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}
.selected-preview span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1c241f;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.selected-preview strong {
  color: #cfd6d2;
  font-size: 8px;
}
.selected-info {
  min-width: 0;
}
.selected-info strong,
.selected-info small,
.selected-info p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-info strong {
  font-size: 10px;
}
.selected-info small {
  margin-top: 3px;
  color: #7c8580;
  font-size: 8px;
}
.selected-info p {
  margin: 5px 0 0;
  color: #6f7772;
  font-size: 8px;
}
.selected-remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #2b312e;
  border-radius: 4px;
  background: #171b19;
  color: #8b938f;
  font-size: 14px;
  line-height: 1;
}
.selected-remove:hover {
  border-color: #5b302f;
  color: #ff8d8d;
}
.mode-switch button.active {
  border-color: #2f8185;
  background: #132326;
  color: #79ced4;
}
.setting-row {
  min-height: 43px;
  border-bottom: 1px solid #262a28;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting-row strong {
  font-size: 10px;
}
.setting-row small {
  color: #7f8682;
  font-size: 9px;
}
.pipeline-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 250ms ease;
}
.upload-controls button {
  border: 1px solid #38413c;
  border-radius: 5px;
  padding: 6px 10px;
  background: #171b19;
  color: #aeb7b1;
  font-size: 10px;
  cursor: pointer;
}
.parameter-group p {
  margin: 0;
  color: #727975;
  font-size: 9px;
  line-height: 1.5;
}
.export-result-card strong,
.export-result-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.export-result-card strong {
  font-size: 10px;
}
.export-result-card small {
  margin-top: 4px;
  color: #7d8580;
  font-size: 8px;
}
.export-result-card button {
  min-height: 26px;
  width: 100%;
  margin-top: 7px;
  border: 0;
  border-radius: 4px;
  background: #e9f0ec;
  color: #111513;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.export-result-card button:disabled {
  opacity: 0.65;
}
/* 内容管理 */
.content-panel {
  min-height: calc(100vh - 178px);
}
.content-tabs {
  justify-content: center;
}
.content-tabs button.active {
  padding-bottom: 11px;
  border-bottom: 2px solid var(--ink);
}
.content-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  align-content: start;
  gap: 13px;
}
.content-card {
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}
.content-media {
  height: 220px;
  background: #eef0ef;
  position: relative;
}
.content-media video {
  width: 100%;
  height: 100%;
  background: #111;
  object-fit: contain;
}
.content-media > span {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #111;
  color: white;
  font-size: 9px;
}
.content-body {
  padding: 13px;
}
.content-body > small {
  color: #89908c;
  font-size: 9px;
}
.content-body h3 {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.35;
}
.content-body > p {
  margin: 0;
  color: #858c88;
  font-size: 10px;
}
.content-meta {
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #747b77;
  font-size: 9px;
}
.quality-line {
  height: 5px;
  margin: 11px 0;
  border-radius: 3px;
  overflow: hidden;
  background: #edf0ee;
}
.quality-line i {
  display: block;
  height: 100%;
  background: #23b359;
}
.content-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.content-actions a,
.content-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f6f7f6;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 10px;
}
.content-actions button[data-source] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: white;
}
.content-actions button:disabled {
  opacity: 0.65;
}
/* 来源弹窗 */
.source-dialog {
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.source-dialog::backdrop {
  background: rgba(5, 8, 6, 0.75);
}
.dialog-header {
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-header h2 {
  margin: 0;
  font-size: 18px;
}
.dialog-header button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 20px;
}
.dialog-layout {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 18px;
}
.dialog-layout video {
  width: 100%;
  max-height: 620px;
  background: #111;
}
.source-dialog-name {
  margin: 0 0 12px;
  color: #757c78;
  font-size: 11px;
}
.source-list {
  border-top: 1px solid var(--line);
}
.source-list button {
  width: 100%;
  min-height: 50px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.source-list button span,
.source-list button small {
  color: #8a918d;
  font-size: 9px;
}
.source-list button strong {
  font-size: 11px;
}
.source-list button:hover strong {
  color: var(--green-dark);
}
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    min-height: 420px;
  }

  .studio-layout {
    grid-template-columns: 205px minmax(340px, 1fr) 230px;
  }

  .streamer-layout {
    grid-template-columns: 1fr;
  }

  .admin-api-key-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .admin-api-key-actions {
    justify-content: flex-start;
  }

  .admin-llm-provider-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-llm-provider-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-llm-provider-form label:last-of-type {
    grid-column: 1 / -1;
  }

  .admin-category-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-category-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .prompt-debug-form fieldset {
    grid-template-columns: 1fr 1fr;
  }

  .prompt-debug-layout {
    grid-template-columns: 1fr;
  }

  .app-header nav > button:not(.import-button):not(.avatar-button) {
    display: none;
  }
}
@media (max-width: 760px) {
  .login-screen {
    padding: 12px;
  }

  .auth-page-frame {
    display: block;
    min-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .auth-visual-panel {
    min-height: 220px;
    padding: 24px 24px 28px;
  }

  .auth-visual-panel::after,
  .auth-preview-placeholder,
  .auth-security-placeholder {
    display: none;
  }

  .login-copy {
    display: block;
    max-width: 440px;
    margin-top: 54px;
  }

  .login-copy h1 {
    margin: 10px 0 8px;
    font-size: 31px;
  }

  .login-copy p {
    max-width: 400px;
    font-size: 12px;
  }

  .login-side {
    min-height: 0;
    padding: 34px 24px 30px;
  }

  .login-logo { display: block; }
  .login-form { max-width: none; }

  .app-header {
    padding: 0 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .app-header nav .import-button {
    max-width: 145px;
    overflow: hidden;
    white-space: nowrap;
  }

  .dashboard-screen,
  .library-screen,
  .streamers-screen {
    padding: 14px 12px;
  }

  .welcome-row {
    display: block;
  }

  .top-stats {
    margin-top: 18px;
    justify-content: flex-start;
  }

  .top-stats div {
    text-align: left;
  }

  .dashboard-grid {
    margin-top: 18px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-tools,
  .search-box {
    width: 100%;
  }

  .session-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .admin-llm-provider-cards,
  .admin-llm-provider-form {
    grid-template-columns: 1fr;
  }

  .admin-llm-provider-form label,
  .admin-llm-provider-form label:last-of-type {
    grid-column: auto;
  }

  .admin-category-form,
  .prompt-debug-form fieldset {
    grid-template-columns: 1fr;
  }

  .admin-category-actions,
  .prompt-debug-actions {
    grid-column: auto;
    width: 100%;
  }

  .admin-category-actions button,
  .prompt-debug-actions button {
    flex: 1;
  }

  .admin-category-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .admin-category-row .content-actions {
    justify-content: flex-start;
  }

  .prompt-history-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .prompt-history-filters select {
    flex: 1 1 130px;
  }

  .debug-wide {
    grid-column: auto;
  }

  .streamer-form-grid,
  .knowledge-form {
    grid-template-columns: 1fr;
  }

  .knowledge-form .knowledge-content {
    grid-column: auto;
  }

  .streamer-switch span {
    display: none;
  }

  .content-card {
    max-width: none;
  }

  .studio-layout {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .asset-panel,
  .parameter-panel {
    min-height: 360px;
  }

  .parameter-panel {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .preview-workspace {
    min-height: 640px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }
}
/* Workspace IA: compact plan switcher, classified candidates and real settings. */
.mobile-menu-button,
.mobile-nav-menu {
  display: none;
}
.composition-plan-item {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px !important;
  display: grid;
  grid-template-columns: auto 8px;
  align-content: center;
  justify-content: start;
  padding: 5px 8px;
  gap: 2px 6px;
  scroll-snap-align: start;
  text-align: left;
}
.composition-plan-item strong {
  color: #e2e8e4;
  font-size: 11px;
}
.composition-plan-item small {
  grid-column: 1 / -1;
  color: #7f8982;
  font-size: 8px;
  white-space: nowrap;
}
.composition-plan-item.current {
  border-color: var(--green);
  background: #1d2b20;
  box-shadow: inset 0 -2px 0 var(--green);
}
.plan-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69716c;
}
.plan-status-dot.status-draft { background: #74c984; }
.plan-status-dot.status-confirmed { background: #70c7d1; }
.plan-status-dot.status-rendering { background: #efc366; }
.plan-status-dot.status-exported { background: #c697e4; }
.plan-status-dot.status-failed { background: #e77c7c; }
.plan-status-dot.status-archived { background: #747b77; }
.candidate-group-heading span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.candidate-group-heading strong { font-size: 11px; }
.candidate-group-heading small { color: #768078; font-size: 8px; }
.candidate-group-heading b { color: var(--green); font-size: 15px; }
.candidate-subgroup-heading small {
  color: #69736c;
}
.setting-control {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.setting-control > div,
.setting-control > span,
.setting-switch-row > label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.setting-control strong,
.setting-control small {
  display: block;
}
.setting-control strong { color: #d7dfda; font-size: 9px; }
.setting-control small { color: #747e77; font-size: 8px; }
.setting-control select,
.setting-control input,
.setting-fields-grid select,
.setting-fields-grid input,
.image-effect-template-row select {
  min-width: 0;
  box-sizing: border-box;
  height: 28px;
  border: 1px solid #364039;
  border-radius: 4px;
  background: #121714;
  color: #cbd4ce;
  font-size: 9px;
}
.setting-control select { max-width: 145px; }
.setting-switch-row > input[type="number"] { width: 66px; padding: 0 5px; }
.setting-switch-row input[type="checkbox"] { accent-color: var(--green); }
.setting-state { color: #80c98b; font-size: 8px; white-space: nowrap; }
.setting-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.setting-fields-grid label {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: #869089;
  font-size: 8px;
}
.setting-fields-grid input,
.setting-fields-grid select { width: 100%; padding: 0 4px; }
.setting-fields-grid input[type="color"] { padding: 2px; }
.caption-position-controls label,
.caption-font-stepper {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: #869089;
  font-size: 8px;
}
.caption-position-controls input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 28px;
  padding: 0 4px;
  border: 1px solid #364039;
  border-radius: 4px;
  background: #121714;
  color: #cbd4ce;
  font-size: 9px;
}
.caption-font-stepper > div {
  display: flex;
  gap: 5px;
}
.caption-font-stepper button,
.caption-reset-position {
  min-height: 28px;
  border: 1px solid #364039;
  border-radius: 4px;
  background: #17201a;
  color: #cbd4ce;
  font-size: 11px;
}
.caption-font-stepper button {
  flex: 1;
  min-width: 0;
}
.caption-font-stepper button:hover:not(:disabled),
.caption-reset-position:hover:not(:disabled) {
  border-color: var(--green);
  color: #ecffef;
}
.caption-font-stepper button:disabled,
.caption-reset-position:disabled {
  cursor: not-allowed;
  opacity: .46;
}
.image-effect-template-row label {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  color: #9586a0;
  font-size: 8px;
}
.legacy-effect-properties textarea,
.legacy-effect-properties input,
.legacy-effect-properties select { opacity: .62; }
.library-feedback {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  color: #747c77;
  font-size: 11px;
}
.library-feedback.error {
  border-color: #d7a2a2;
  background: #fff5f5;
  color: #a03939;
}
.content-status-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #667069;
  text-align: center;
}
.content-status-placeholder strong { font-size: 15px; }
.content-status-placeholder span { color: #3d8f4c; font-size: 22px; font-weight: 800; }
.content-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(18, 22, 19, .82);
  color: white;
  font-size: 9px;
}
.content-safe-message {
  overflow-wrap: anywhere;
  color: #777f7a !important;
}
@media (max-width: 1100px) {
  .mobile-menu-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid #2d3430;
    border-radius: 4px;
    background: #171a19;
    color: white;
  }

  .mobile-nav-menu:not(.hidden) {
    position: absolute;
    z-index: 50;
    top: 58px;
    right: 12px;
    width: min(260px, calc(100vw - 24px));
    display: grid;
    padding: 8px;
    gap: 4px;
    border: 1px solid #303632;
    border-radius: 6px;
    background: #151917;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  }

  .mobile-nav-menu button {
    min-height: 38px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #dbe1dd;
    text-align: left;
  }
}
@media (max-width: 900px) {
  .studio-layout {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .asset-panel,
  .parameter-panel { min-height: 420px; }
  .parameter-panel { max-height: none; overflow: visible; }
  .preview-workspace { min-height: 620px; }
}
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .app-header nav .streamer-switch { display: none; }
  .app-header nav .import-button { max-width: 112px; }
  .content-tabs { justify-content: flex-start; overflow-x: auto; }
  .content-tabs button { flex: 0 0 auto; min-height: 42px; }
  .composition-workbench,
  .parameter-group,
  .effect-editor-panel { padding-left: 10px; padding-right: 10px; }
  .setting-fields-grid { grid-template-columns: 1fr; }
  .image-effect-template-row { align-items: stretch; flex-direction: column; }
  .image-effect-template-row button { min-height: 34px; }
}
/* Cut Go editor-project shell: reuse the authenticated app header and let Vue
   own the project context below it. This is deliberately scoped away from
   legacy, admin, and role-workspace screens. */
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header {
  height: 56px;
  min-height: 56px;
  padding: 0 18px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .brand-subtitle {
  color: #b5bbb8;
  font-size: 11px;
  font-weight: 650;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-titlebar {
  display: none;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout {
  height: calc(100dvh - 56px);
  min-height: 560px;
  padding: 0;
  gap: 0;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #vueEditorIsland {
  overflow: hidden;
  border: 0;
  border-radius: 0;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #mobileMenuButton,
body[data-screen="studio"][data-cutgo-project-mode="true"] #mobileNavMenu {
  display: none;
}
@media (max-width: 900px) {
  body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout {
    height: auto;
    min-height: calc(100dvh - 56px);
  }
}
/*
 * Cutting Go fixed editor canvas.
 *
 * The UI kit defines one 1920 x 1112 CSS-pixel desktop canvas. The existing
 * authenticated header remains the first 56px of its 96px top bar; Vue owns
 * the remaining 40px. Narrow viewports scroll this canvas and never reflow or
 * scale it. Keep this block after the legacy responsive rules so they cannot
 * change the editor-project geometry.
 */
.cutgo-fixed-topbar-shell {
  display: none;
}
.cutgo-editor-project-name,
.cutgo-editor-header-context,
.cutgo-editor-header-tools,
.cutgo-editor-account-role {
  display: none;
}
.cutgo-beta-badge { display: none; }
body[data-screen="studio"][data-cutgo-project-mode="true"] {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: #181818;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #appShell {
  position: relative;
  isolation: isolate;
  width: 1920px;
  min-width: 1920px;
  max-width: 1920px;
  height: 1112px;
  min-height: 1112px;
  max-height: 1112px;
  overflow: hidden;
  background: #181818;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-fixed-topbar-shell {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 1920px;
  height: 96px;
  border-bottom: 1px solid #3a3a3a;
  background: #1f1f1f;
  pointer-events: none;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  width: 1920px;
  min-width: 1920px;
  max-width: 1920px;
  height: 56px;
  min-height: 56px;
  padding: 0 18px;
  border-color: #3a3a3a;
  background: #1f1f1f;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .brand-button {
  width: 112px;
  min-width: 112px;
  height: 28px;
  overflow: hidden;
  background: transparent;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .brand-button .brand-logo {
  width: 112px;
  height: 28px;
  object-fit: contain;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .brand-subtitle {
  margin-left: 13px;
  color: #9ba1ab;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-beta-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid rgba(198, 242, 78, .62);
  border-radius: 999px;
  color: #c6f24e;
  background: rgba(198, 242, 78, .1);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-project-name {
  display: flex;
  min-width: 0;
  flex: 0 1 240px;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
  color: #70757d;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-project-name > span {
  width: 1px;
  height: 22px;
  background: #3a3a3a;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-project-name strong {
  max-width: 260px;
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-header-context {
  position: static;
  display: block;
  flex: 1 1 180px;
  min-width: 0;
  margin: 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9ba1ab;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-header-context > span + span::before {
  content: " · ";
  margin: 0 8px;
  color: #6b7078;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-header-context i {
  color: #6b7078;
  font-style: normal;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: #9ba1ab;
}
.cutgo-editor-upcoming {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
  cursor: default;
}
.app-header .cutgo-editor-exit { display: none; }
body[data-screen="studio"] .app-header .cutgo-editor-exit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  color: #eee;
  background: #292929;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
body[data-screen="studio"] .app-header .cutgo-editor-exit:focus-visible {
  outline: 2px solid #c6f24e;
  outline-offset: 3px;
}
body[data-screen="studio"] .app-header .cutgo-editor-exit:disabled { opacity: .5; cursor: wait; }
/* Keep the editor exit action immediately before the current project label. */
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header .cutgo-editor-exit {
  order: 2;
  margin-left: 18px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header .cutgo-editor-project-name {
  order: 3;
  margin-left: 12px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header .cutgo-editor-header-context {
  order: 4;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header .cutgo-editor-header-tools {
  order: 5;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header > nav {
  order: 6;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header .cutgo-editor-account-role {
  order: 7;
  margin-left: 8px;
}
.cutgo-editor-upcoming:focus-visible {
  outline: 1px solid #c6f24e;
  outline-offset: 5px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-help {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #9ba1ab;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-bell {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid #9ba1ab;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-bell::after {
  position: absolute;
  bottom: -4px;
  left: 3px;
  width: 6px;
  height: 1px;
  background: #9ba1ab;
  content: "";
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header nav {
  margin-left: 20px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header nav > :not(.avatar-button) {
  display: none !important;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header nav .avatar-button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: #151812;
  background: #c6f24e !important;
  font-size: 11px;
  line-height: 28px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-account-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 9px;
  color: #9ba1ab;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-editor-account-role-chevron {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #legacyAppMain {
  position: absolute;
  z-index: 10;
  top: 56px;
  left: 0;
  width: 1920px;
  min-width: 1920px;
  max-width: 1920px;
  height: 1056px;
  min-height: 1056px;
  max-height: 1056px;
  overflow: hidden;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-screen,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout,
body[data-screen="studio"][data-cutgo-project-mode="true"] #vueEditorIsland {
  width: 1920px;
  min-width: 1920px;
  max-width: 1920px;
  height: 1056px;
  min-height: 1056px;
  max-height: 1056px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-screen,
body[data-screen="studio"][data-cutgo-project-mode="true"] #vueEditorIsland {
  overflow: hidden;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout.vue-editor-active {
  display: grid;
  grid-template-columns: 1920px;
  grid-template-rows: 1056px;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
/* design (3).html — elastic editor shell. The editor reference uses a
   viewport-width canvas (minimum 1280px), not a permanently locked 1920px
   artboard. Keep this last among the project-shell rules. */
body[data-screen="studio"][data-cutgo-project-mode="true"] {
  min-width: 1280px;
  width: 100%;
  height: 100dvh;
  overflow: hidden !important;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #appShell,
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header,
body[data-screen="studio"][data-cutgo-project-mode="true"] .cutgo-fixed-topbar-shell,
body[data-screen="studio"][data-cutgo-project-mode="true"] #legacyAppMain,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-screen,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout,
body[data-screen="studio"][data-cutgo-project-mode="true"] #vueEditorIsland {
  width: 100% !important;
  min-width: 1280px !important;
  max-width: none !important;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #appShell {
  height: 100dvh;
  min-height: 720px;
  max-height: none;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .app-header {
  height: 56px;
  min-height: 56px;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] #legacyAppMain,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-screen,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout,
body[data-screen="studio"][data-cutgo-project-mode="true"] #vueEditorIsland {
  height: calc(100dvh - 56px) !important;
  min-height: 664px !important;
  max-height: none !important;
}
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout,
body[data-screen="studio"][data-cutgo-project-mode="true"] .studio-layout.vue-editor-active {
  grid-template-columns: minmax(1280px, 100%);
  grid-template-rows: calc(100dvh - 56px);
}
/* Cut Go 1+1 Prompt governance.  These selectors stay inside the role
   workspace so the historical admin Prompt screen keeps its own layout. */
.cg-notification-dot {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 7px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.cg-notification-dot-inline {
  margin-left: auto;
}
.cg-prompt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cg-prompt-card-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}
.cg-prompt-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cg-prompt-card-suggestion {
  padding: 14px 0;
  border-top: 1px solid var(--border, #e3e8e5);
}
.cg-prompt-card-suggestion:first-of-type {
  border-top: 0;
}
.cg-prompt-card-editor textarea,
.cg-system-template-editor textarea,
.cg-system-prompt-content {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.55;
}
.cg-project-prompt-card-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.cg-project-prompt-card-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border, #d9dfdc);
  border-radius: 12px;
  background: var(--surface, #fff);
  cursor: pointer;
}
.cg-project-prompt-card-option:hover {
  border-color: #7a9789;
}
.cg-project-prompt-card-option.is-selected {
  border-color: #176b4d;
  box-shadow: 0 0 0 2px rgb(23 107 77 / 14%);
}
.cg-project-prompt-card-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: .72;
}
.cg-project-prompt-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.cg-system-prompt-editor textarea {
  min-height: 320px;
}
@media (max-width: 700px) {
  .cg-prompt-card-grid,
  .cg-project-prompt-card-options {
    grid-template-columns: 1fr;
  }
}
/* SaaS smart assembly governance uses the same panel rhythm as provider settings. */
.aicut-assembly-admin { padding: 20px; }
.aicut-assembly-admin .panel-header { padding: 0 0 16px; }
.aicut-assembly-admin #assemblyForm { display: block; margin: 16px 0; }
.aicut-assembly-admin fieldset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; border: 0; padding: 0; min-width: 0; }
.aicut-assembly-admin label { display: flex; flex-direction: column; gap: 7px; color: #374151; font-size: 13px; }
.aicut-assembly-admin input:not([type="checkbox"]), .aicut-assembly-admin select, .aicut-assembly-admin textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9dee7; border-radius: 8px; background: #fff; color: #17212e; font: inherit; }
.aicut-assembly-admin textarea { min-height: 84px; resize: vertical; line-height: 1.65; }
.aicut-assembly-admin textarea[name$="_prompt"] { min-height: 190px; }
.aicut-assembly-admin label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
.aicut-assembly-admin .admin-category-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.aicut-assembly-admin #assemblySelect { width: min(420px, 100%); }
.aicut-assembly-admin button { padding: 9px 14px; border: 1px solid #d9dee7; border-radius: 8px; background: #fff; color: #17212e; cursor: pointer; }
.aicut-assembly-admin #assemblySave, .aicut-assembly-admin #assemblySaveAsConfirm { background: #17212e; color: #fff; }
.aicut-assembly-admin button:disabled { opacity: .5; cursor: default; }
.aicut-assembly-admin #assemblySaveAsRow:not([hidden]) { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding: 14px; border-radius: 8px; background: #f4f7fa; }
.aicut-assembly-admin #assemblyNotice { font-size: 13px; line-height: 1.7; }
.aicut-assembly-admin details { margin-top: 12px; padding: 12px; border: 1px solid #e5e9ef; border-radius: 8px; }
.aicut-assembly-admin summary { cursor: pointer; font-weight: 600; }
.aicut-assembly-admin pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; max-height: 420px; overflow: auto; }
@media (max-width: 760px) { .aicut-assembly-admin fieldset { grid-template-columns: minmax(0, 1fr); } }
.cg-live-composition-options { display: grid; gap: 10px; }
.cg-live-composition-options .cg-field { display: grid; gap: 6px; }