/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-strong: #eef7f4;
  --surface-muted: #f0f4f2;
  --text: #14201f;
  --muted: #657370;
  --line: #d8e2de;
  --accent: #0d9b86;
  --accent-strong: #087463;
  --accent-2: #d58a1f;
  --success: #16845f;
  --danger: #c63d35;
  --sidebar: #edf4f1;
  --shadow: 0 14px 36px rgba(25, 42, 38, 0.08);
}

body.theme-studio,
html.theme-studio body {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-strong: #eef7f4;
  --surface-muted: #f0f4f2;
  --text: #14201f;
  --muted: #657370;
  --line: #d8e2de;
  --accent: #0d9b86;
  --accent-strong: #087463;
  --accent-2: #d58a1f;
  --sidebar: #edf4f1;
  --shadow: 0 14px 36px rgba(25, 42, 38, 0.08);
}

body.theme-graphite,
html.theme-graphite body {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-strong: #eef1f5;
  --surface-muted: #f0f2f5;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-2: #a16207;
  --sidebar: #eef1f5;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body.theme-midnight,
html.theme-midnight body {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0b1220;
  --panel-strong: #111827;
  --surface-muted: #111a2c;
  --text: #e5edf6;
  --muted: #8ea1b8;
  --line: #1f2a3d;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-2: #22c55e;
  --success: #22c55e;
  --danger: #fb7185;
  --sidebar: #050b16;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

html.theme-midnight,
html:has(body.theme-midnight) {
  background: #020617;
  color-scheme: dark;
}

body.theme-ocean,
html.theme-ocean body {
  --bg: #eef6f8;
  --panel: #ffffff;
  --panel-strong: #e4f2f7;
  --surface-muted: #edf6f9;
  --text: #102a33;
  --muted: #58717b;
  --line: #cfe0e6;
  --accent: #0e7490;
  --accent-strong: #155e75;
  --accent-2: #b45309;
  --sidebar: #e6f2f6;
  --shadow: 0 14px 34px rgba(14, 116, 144, 0.11);
}

body.theme-paper,
html.theme-paper body {
  --bg: #f8f8f5;
  --panel: #ffffff;
  --panel-strong: #f2f4ee;
  --surface-muted: #f2f3ef;
  --text: #1f2933;
  --muted: #6a716d;
  --line: #deded7;
  --accent: #3f7f6f;
  --accent-strong: #2f6659;
  --accent-2: #8a5a18;
  --sidebar: #f0f2ec;
  --shadow: 0 12px 28px rgba(48, 53, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(13, 155, 134, 0.28);
  border-radius: 8px;
  background: #e2f5ef;
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links .nav-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.nav-links .nav-action-button:hover {
  color: var(--accent-strong);
}

.nav-links .nav-action-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nav-links a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 800;
}

.theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.theme-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 8px;
  cursor: pointer;
  list-style: none;
}

.theme-switcher summary::-webkit-details-marker {
  display: none;
}

.theme-switcher summary strong {
  color: var(--text);
  font-size: 13px;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  width: 280px;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px;
  box-shadow: var(--shadow);
}

.theme-switcher:not([open]) .theme-menu {
  display: none;
}

.theme-menu button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-gap: 9px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.theme-menu button:hover,
.theme-menu button.active {
  border-color: var(--line);
  background: var(--surface-muted);
}

.theme-swatches {
  display: flex;
  overflow: hidden;
  width: 44px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.theme-swatches i {
  flex: 1 1;
}

.theme-menu button strong,
.theme-menu button small {
  display: block;
}

.theme-menu button strong {
  font-size: 13px;
}

.theme-menu button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  grid-gap: 42px;
  gap: 42px;
  align-items: center;
  padding: 72px 0 40px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(20, 32, 31, 0.04);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
}

.button.ghost {
  background: #ffffff;
  color: var(--text);
}

.notice-box {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid rgba(13, 155, 134, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  background: #eef8f4;
  color: var(--text);
}

.notice-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

body.theme-midnight .page .nav {
  border-bottom-color: rgba(56, 189, 248, 0.16);
  background: rgba(2, 6, 23, 0.88);
}

body.theme-midnight .page .brand-mark {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
}

body.theme-midnight .page .nav-links a:hover,
body.theme-midnight .page .nav-links a[aria-current="page"] {
  background: rgba(56, 189, 248, 0.14);
  color: #f8fafc;
}

body.theme-midnight .page .button.primary {
  border-color: rgba(125, 211, 252, 0.46);
  background: #075985;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.24);
}

body.theme-midnight .page .button.primary:hover {
  border-color: rgba(125, 211, 252, 0.62);
  background: #0c4a6e;
  color: #ffffff;
}

body.theme-midnight .page .notice-box {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.88);
  color: #e5edf6;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.theme-midnight .page .notice-box :is(strong, p) {
  color: #e5edf6;
}

body.theme-midnight .page .button:not(.primary) {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.84);
  color: #dbeafe;
}

body.theme-midnight .page .button:not(.primary):hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 165, 233, 0.14);
  color: #f8fafc;
}

body.theme-midnight .page :is(.auth-card, .feature-card, .pricing-plan, .tile, .workflow-step, .scenario-card, .console, .table-shell, .shot, .result-tile) {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
  color: #e5edf6;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.theme-midnight .page :is(.auth-card, .feature-card, .pricing-plan, .tile, .workflow-step, .scenario-card, .console, .table-shell, .shot, .result-tile) :is(h2, h3, strong, th, td, label) {
  color: #e5edf6;
}

body.theme-midnight .page :is(.auth-page p, .auth-switch, .feature-card p, .pricing-plan p, .pricing-plan span, .tile p, .workflow-step p, .workflow-step span, .scenario-card p, .scenario-card span, .console-head, .table-shell th, .table-shell td span, .shot span) {
  color: #9fb2c8;
}

body.theme-midnight .page :is(input, textarea, select) {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #e5edf6;
}

body.theme-midnight .page :is(input, textarea, select):focus {
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

body.theme-midnight .page .code-block {
  border-color: rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.36);
  color: #bae6fd;
}

body.theme-midnight .page .button.ghost {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.84);
  color: #dbeafe;
}

.secret-token {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.settings-switches {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.canvas-preset-editor {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.canvas-preset-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.canvas-preset-editor-head > div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.canvas-preset-editor-head strong {
  color: var(--text);
  font-size: 14px;
}

.canvas-preset-editor-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.canvas-preset-editor-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.canvas-preset-editor-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.canvas-preset-editor-row .check-row {
  min-height: 42px;
  padding: 9px 10px;
}

.canvas-preset-editor-row textarea,
.canvas-preset-node-types,
.canvas-preset-json-preview,
.canvas-preset-editor-row .button.danger {
  grid-column: 1 / -1;
}

.canvas-preset-node-types {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.canvas-preset-node-types > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.canvas-preset-node-types > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.canvas-preset-json-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.canvas-preset-json-preview summary {
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.canvas-preset-json-preview textarea {
  margin-top: 10px;
  width: 100%;
}

.settings-preview {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-preview article {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.settings-preview span {
  color: var(--muted);
  font-size: 13px;
}

.console {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

.shot-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 16px;
}

.shot {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 12px;
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 155, 134, 0.34), rgba(213, 138, 31, 0.2)),
    #dce9e5;
}

.shot strong {
  display: block;
  margin-bottom: 4px;
}

.shot span,
.status {
  color: var(--muted);
  font-size: 13px;
}

.status {
  color: var(--accent-2);
}

.section {
  padding: 34px 0;
}

.page-header {
  padding: 54px 0 20px;
}

.page-header h1,
.workspace-topbar h1 {
  margin: 8px 0 12px;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.page-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.section-copy {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  grid-gap: 22px;
  gap: 22px;
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.tile {
  min-height: 142px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-strip,
.pricing-grid,
.metric-grid,
.dashboard-grid,
.result-grid,
.shot-board {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.workflow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.scenario-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(25, 42, 38, 0.04);
}

.scenario-card:hover {
  border-color: rgba(13, 155, 134, 0.34);
  background: var(--panel-strong);
}

.scenario-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.scenario-card span {
  align-self: end;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.page .nav-inner {
  min-height: 58px;
}

.page .brand {
  font-size: 14px;
}

.page .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.page .nav-links {
  gap: 10px;
  font-size: 12px;
}

.page .nav-links a {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 7px;
}

.page .nav-links .nav-action-button {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 7px;
}

.page .nav-links a:hover,
.page .nav-links a[aria-current="page"],
.page .nav-links .nav-action-button:hover {
  background: var(--surface-muted);
}

.page .theme-switcher summary {
  min-height: 30px;
  border-radius: 7px;
}

.page .hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  padding: 46px 0 24px;
}

.page .hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
}

.page .hero p {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.58;
}

.page .actions {
  gap: 9px;
  margin-top: 18px;
}

.page .button {
  min-height: 36px;
  border-radius: 7px;
  padding: 0 13px;
  font-size: 13px;
}

.page .console {
  box-shadow: none;
}

.page .landing-console {
  align-self: stretch;
}

.page .console-head {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.page .shot-list {
  gap: 6px;
  padding: 8px;
}

.page .shot {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 48px;
  gap: 8px;
  padding: 7px;
}

.page .thumb {
  width: 38px;
  height: 28px;
  border-radius: 6px;
}

.page .shot strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page .shot span {
  font-size: 11px;
}

.page .section {
  padding: 28px 0;
}

.page .section h2,
.page .page-header h1 {
  font-size: clamp(22px, 3vw, 34px);
}

.page .section-copy,
.page .page-header p {
  font-size: 13px;
  line-height: 1.55;
}

.page .scenario-grid,
.page .grid,
.page .workflow-strip,
.page .pricing-grid {
  gap: 10px;
}

.page .scenario-card,
.page .tile,
.page .workflow-step,
.page .pricing-plan {
  min-height: auto;
  border-radius: 8px;
  padding: 12px;
  box-shadow: none;
}

.page .scenario-card strong,
.page .tile h3,
.page .workflow-step strong {
  font-size: 14px;
}

.page .scenario-card p,
.page .tile p,
.page .workflow-step p,
.page .pricing-plan p {
  font-size: 12px;
  line-height: 1.48;
}

.page .scenario-card span,
.page .workflow-step span,
.page .pricing-plan span {
  font-size: 11px;
}

.page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.page .feature-card {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  box-shadow: none;
}

.page .feature-card span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.page .feature-card h3 {
  margin: 0;
  font-size: 14px;
}

.page .feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.page .code-block {
  max-height: 220px;
  border-top: 1px solid var(--line);
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.page .console .code-block:first-of-type {
  border-top: 0;
}

.page .table-shell th,
.page .table-shell td {
  padding: 8px 10px;
  font-size: 12px;
}

.workflow-step,
.pricing-plan,
.metric,
.panel,
.result-tile,
.shot-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(25, 42, 38, 0.05);
}

.workflow-step span,
.metric span,
.pricing-plan span,
.workspace-rail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.workflow-step strong,
.pricing-plan strong,
.metric strong {
  display: block;
  margin-top: 8px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-plan h2,
.panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.pricing-plan strong {
  font-size: 34px;
}

.pricing-plan p,
.metric p,
.shot-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.shot-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.plan-feature-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.plan-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.plan-feature-list.compact {
  margin-top: 10px;
}

.plan-limit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.plan-limit-list span {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  padding: 5px 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.plan-summary-box {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.plan-summary-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.table-shell.compact {
  border: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

caption {
  padding: 14px 16px;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  background: var(--surface-muted);
}

td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.code-block {
  margin: 0;
  overflow: auto;
  padding: 16px;
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.workspace-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  padding: 18px;
}

.workspace-brand {
  min-height: 44px;
}

.workspace-nav,
.workspace-rail,
.workspace-rail-links {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 24px;
}

.workspace-rail-links {
  margin-top: 10px;
}

.workspace-nav a,
.workspace-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
}

.workspace-nav a:hover,
.workspace-rail a:hover {
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.workspace-nav a[aria-current="page"],
.workspace-rail a[aria-current="page"] {
  border-color: rgba(13, 155, 134, 0.28);
  background: #ffffff;
  color: var(--accent-strong);
  font-weight: 800;
}

.workspace-rail {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.workspace-rail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
}

.workspace-rail summary::-webkit-details-marker {
  display: none;
}

.workspace-rail summary svg {
  color: var(--muted);
  transition: transform 0.16s ease;
}

.workspace-rail:not([open]) summary svg {
  transform: rotate(-90deg);
}

.admin-nav-groups {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 14px;
}

.admin-nav-group {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
  padding: 0 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary svg {
  transition: transform 0.16s ease;
}

.admin-nav-group:not([open]) summary svg {
  transform: rotate(-90deg);
}

.admin-nav-group .workspace-nav {
  gap: 2px;
  margin-top: 2px;
}

.workspace-main {
  min-width: 0;
  padding: 24px;
}

.workspace-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.workspace-topbar h1 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.metric strong {
  color: var(--accent);
  font-size: 28px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.creator-dashboard {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-gap: 14px;
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
  box-shadow: none;
  background: var(--panel);
}

.creator-hero h2 {
  max-width: 720px;
  margin: 6px 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

.creator-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.hero-kicker {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.production-card {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 11px;
}

.production-card > span,
.production-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.production-card > strong {
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1.15;
}

.production-card p,
.production-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.production-card dl,
.project-row dl {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  margin: 6px 0 0;
}

.production-card dl div,
.project-row dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.production-card dt,
.project-row dt {
  color: var(--muted);
  font-size: 12px;
}

.production-card dd,
.project-row dd {
  margin: 0;
  font-weight: 800;
}

.delivery-ops-queue {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.delivery-ops-queue > div:first-child {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.delivery-ops-queue strong,
.delivery-ops-ready span,
.delivery-ops-item span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.delivery-ops-queue p,
.delivery-ops-ready p,
.delivery-ops-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.delivery-ops-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.delivery-ops-item,
.delivery-ops-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 9px;
}

.delivery-ops-item.regeneration {
  border-color: rgba(220, 38, 38, 0.22);
}

.delivery-ops-item.pending-review {
  border-color: rgba(245, 158, 11, 0.24);
}

.delivery-ops-item.missing-shot {
  border-color: rgba(14, 165, 233, 0.26);
}

.delivery-ops-item > div,
.delivery-ops-ready {
  min-width: 0;
}

.delivery-ops-item .shot-asset-review {
  justify-items: end;
  margin: 0;
}

.delivery-ops-item .shot-asset-review small {
  max-width: 220px;
  text-align: right;
}

.delivery-handoff-package {
  gap: 10px;
}

.delivery-handoff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.delivery-handoff-block {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.delivery-handoff-block strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.delivery-handoff-block span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.delivery-handoff-block .ready {
  color: var(--success);
}

.delivery-handoff-text {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
  resize: vertical;
}

body.theme-midnight .delivery-handoff-package,
body.theme-midnight .delivery-handoff-block,
body.theme-midnight .delivery-handoff-text {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(15, 23, 42, 0.84);
  color: #e5edf6;
}

.delivery-handoff-package .shot-asset-links {
  flex-wrap: wrap;
}

.delivery-handoff-package .button {
  min-width: 0;
}

.delivery-release-package {
  gap: 10px;
}

.delivery-release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.delivery-release-block {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.delivery-release-block strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.delivery-release-block span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.delivery-release-block .ready {
  color: var(--success);
}

.delivery-release-block .blocked {
  color: var(--danger);
}

.delivery-release-text {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
  resize: vertical;
}

.delivery-release-package .shot-asset-links {
  flex-wrap: wrap;
}

.delivery-release-package .button {
  min-width: 0;
}

.delivery-client-approval {
  gap: 10px;
}

.delivery-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.delivery-client-block {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.delivery-client-block strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.delivery-client-block span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.delivery-client-block .ready {
  color: var(--success);
}

.delivery-client-block .blocked {
  color: var(--danger);
}

.delivery-client-text {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
  resize: vertical;
}

.delivery-client-approval .shot-asset-links {
  flex-wrap: wrap;
}

.delivery-client-approval .button {
  min-width: 0;
}

.delivery-client-record {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.delivery-client-record-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.delivery-client-record-form label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.delivery-client-record-form .wide {
  grid-column: span 2;
}

.delivery-client-record-form :is(input, select, textarea) {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
}

.delivery-client-record-form textarea {
  resize: vertical;
}

.delivery-client-record-form .button {
  align-self: end;
}

body.theme-midnight .delivery-handoff-block strong {
  color: #e5edf6;
}

body.theme-midnight .delivery-handoff-block span {
  color: #9fb2c8;
}

body.theme-midnight .delivery-handoff-block .ready {
  color: #86efac;
}

body.theme-midnight .delivery-release-package,
body.theme-midnight .delivery-release-block,
body.theme-midnight .delivery-release-text {
  border-color: rgba(34, 197, 94, 0.16);
  background: rgba(15, 23, 42, 0.84);
  color: #e5edf6;
}

body.theme-midnight .delivery-release-block strong {
  color: #e5edf6;
}

body.theme-midnight .delivery-release-block span {
  color: #9fb2c8;
}

body.theme-midnight .delivery-release-block .ready {
  color: #86efac;
}

body.theme-midnight .delivery-release-block .blocked {
  color: #fca5a5;
}

body.theme-midnight .delivery-release-text {
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.theme-midnight .delivery-client-approval,
body.theme-midnight .delivery-client-block,
body.theme-midnight .delivery-client-text {
  border-color: rgba(14, 165, 233, 0.18);
  background: rgba(15, 23, 42, 0.84);
  color: #e5edf6;
}

body.theme-midnight .delivery-client-block strong {
  color: #e5edf6;
}

body.theme-midnight .delivery-client-block span {
  color: #9fb2c8;
}

body.theme-midnight .delivery-client-block .ready {
  color: #86efac;
}

body.theme-midnight .delivery-client-block .blocked {
  color: #fca5a5;
}

body.theme-midnight .delivery-client-text {
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.theme-midnight .delivery-client-record-form {
  border-color: rgba(14, 165, 233, 0.18);
  background: rgba(15, 23, 42, 0.84);
}

body.theme-midnight .delivery-client-record-form label {
  color: #9fb2c8;
}

body.theme-midnight .delivery-client-record-form :is(input, select, textarea) {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(2, 6, 23, 0.72);
  color: #e5edf6;
}

body.theme-midnight .delivery-ops-queue,
body.theme-midnight .delivery-ops-item,
body.theme-midnight .delivery-ops-ready {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(15, 23, 42, 0.78);
}

body.theme-midnight .delivery-ops-item.regeneration {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.18);
}

body.theme-midnight .delivery-ops-item.pending-review {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(120, 53, 15, 0.18);
}

body.theme-midnight .delivery-ops-item.missing-shot {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(8, 47, 73, 0.22);
}

body.theme-midnight .delivery-ops-queue strong,
body.theme-midnight .delivery-ops-ready span,
body.theme-midnight .delivery-ops-item span {
  color: #e5edf6;
}

body.theme-midnight .delivery-ops-queue p,
body.theme-midnight .delivery-ops-ready p,
body.theme-midnight .delivery-ops-item p {
  color: #9fb2c8;
}

body.theme-midnight .delivery-handoff-text {
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

@media (max-width: 760px) {
  .delivery-handoff-grid,
  .delivery-release-grid,
  .delivery-client-grid {
    grid-template-columns: 1fr;
  }

  .delivery-client-record-form {
    grid-template-columns: 1fr;
  }

  .delivery-client-record-form .wide {
    grid-column: auto;
  }
}

.compact-metrics {
  margin-bottom: 0;
}

.compact-metrics .metric {
  min-height: 110px;
  padding: 11px;
}

.compact-metrics .metric strong {
  font-size: 20px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.quick-action-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
  grid-gap: 0;
  gap: 0;
}

.quick-action-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  background: #ffffff;
  align-items: center;
  padding: 6px 9px;
}

.quick-action-card:last-child {
  border-bottom: 0;
}

.quick-action-card.primary {
  background: var(--dash-soft);
}

.quick-action-card:hover,
.activity-row:hover,
.asset-mini-card:hover,
.project-row.compact:hover {
  border-color: #cbd5e1;
  background: var(--dash-hover);
}

.quick-action-card span,
.quick-action-card strong {
  font-weight: 760;
}

.quick-action-card span {
  font-size: 13px;
}

.quick-action-card p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.35;
}

.professional-dashboard .quick-action-card {
  min-width: 0;
}

.professional-dashboard .quick-action-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action-card strong {
  align-self: center;
  color: var(--dash-accent);
  font-size: 12px;
  white-space: nowrap;
}

.activity-list,
.project-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.activity-row,
.project-row,
.asset-mini-card {
  border: 1px solid var(--dash-line, var(--line));
  border-radius: 8px;
  background: #ffffff;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.activity-row strong,
.project-row strong,
.asset-mini-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.activity-row span,
.project-row span,
.asset-mini-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.activity-meta {
  display: grid;
  justify-items: end;
  grid-gap: 6px;
  gap: 6px;
}

.activity-meta small {
  color: var(--muted);
  font-size: 12px;
}

.asset-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.asset-mini-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.asset-mini-card .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.asset-mini-preview {
  width: 76px;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  object-fit: cover;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.project-row dl {
  margin: 0;
}

.project-row dl div {
  padding-top: 5px;
}

.project-row dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.production-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
  box-shadow: none;
}

.production-summary strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.user-workspace {
  grid-template-columns: 228px minmax(0, 1fr);
  font-size: 13px;
  --dash-line: #dfe5ea;
  --dash-muted: #64748b;
  --dash-soft: #f7f9fb;
  --dash-hover: #f3f6f8;
  --dash-text: #111827;
  --dash-accent: #0f766e;
}

.user-workspace .workspace-main {
  padding: 18px 22px 26px;
}

body.theme-midnight .user-workspace .workspace-main {
  background:
    radial-gradient(circle at 16% 0%, rgba(56, 189, 248, 0.13), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(34, 197, 94, 0.1), transparent 26%),
    linear-gradient(180deg, #020617 0%, #050b16 100%);
}

.user-workspace .workspace-sidebar {
  padding: 14px;
  font-size: 12px;
}

body.theme-midnight .user-workspace .workspace-sidebar {
  border-right-color: rgba(56, 189, 248, 0.16);
  background: rgba(2, 6, 23, 0.92);
}

.user-workspace .workspace-brand {
  min-height: 36px;
  gap: 8px;
  font-size: 13px;
}

.user-workspace .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 12px;
}

.user-workspace .workspace-mobile-menu {
  display: none;
}

.user-workspace .workspace-mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--dash-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--dash-text);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 720;
}

.user-workspace .workspace-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.user-workspace .workspace-mobile-nav-panel {
  display: none;
}

.user-workspace .workspace-mobile-menu[open] .workspace-mobile-nav-panel {
  display: block;
}

.user-workspace .workspace-nav,
.user-workspace .workspace-rail,
.user-workspace .workspace-rail-links {
  gap: 4px;
  margin-top: 14px;
}

.user-workspace .workspace-nav-groups {
  gap: 12px;
}

.user-workspace .workspace-nav-group {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.user-workspace .workspace-nav-group > span {
  color: var(--dash-muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
}

.user-workspace .workspace-nav-group > div {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.user-workspace .workspace-rail {
  padding-top: 12px;
}

.user-workspace .workspace-rail-links {
  margin-top: 6px;
}

.user-workspace .workspace-rail summary {
  min-height: 32px;
}

.user-workspace .workspace-rail summary span {
  font-size: 11px;
  font-weight: 650;
}

.user-workspace .workspace-nav svg,
.user-workspace .workspace-rail svg {
  width: 14px;
  height: 14px;
}

.user-workspace .workspace-nav a,
.user-workspace .workspace-rail a {
  gap: 8px;
  min-height: 32px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.user-workspace .workspace-nav-group + .workspace-nav-group {
  border-top: 1px solid var(--dash-line);
  padding-top: 10px;
}

body.theme-midnight .user-workspace .workspace-nav-group + .workspace-nav-group {
  border-top-color: rgba(56, 189, 248, 0.14);
}

.user-workspace .workspace-nav a[aria-current="page"],
.user-workspace .workspace-rail a[aria-current="page"] {
  font-weight: 720;
}

.user-workspace .workspace-topbar {
  align-items: center;
  min-height: 52px;
  margin-bottom: 10px;
}

.user-workspace .workspace-topbar h1 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}

.user-workspace .eyebrow {
  font-size: 11px;
  font-weight: 700;
}

.user-workspace .topbar-actions {
  gap: 7px;
  padding-top: 0;
}

.user-workspace .button {
  min-height: 32px;
  border-color: var(--dash-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--dash-text);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

body.theme-midnight .user-workspace .button {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
}

.user-workspace .button.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

body.theme-midnight .user-workspace .button.primary {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
}

.user-workspace .button:hover {
  border-color: #cbd5e1;
  background: var(--dash-hover);
}

.user-workspace .button.primary:hover {
  border-color: #115e59;
  background: #115e59;
  color: #ffffff;
}

.user-workspace .button.small {
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.user-workspace .panel,
.user-workspace .metric,
.user-workspace .result-tile,
.user-workspace .shot-card {
  border-color: var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  box-shadow: none;
}

body.theme-midnight .user-workspace .panel,
body.theme-midnight .user-workspace .metric,
body.theme-midnight .user-workspace .result-tile,
body.theme-midnight .user-workspace .shot-card,
body.theme-midnight .user-workspace .tool-card,
body.theme-midnight .user-workspace .model-item,
body.theme-midnight .user-workspace .asset-card {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.user-workspace .panel h2,
.user-workspace .panel-head h2 {
  color: var(--dash-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.user-workspace .panel-head {
  margin-bottom: 8px;
}

.user-workspace .panel-head p,
.user-workspace .metric p,
.user-workspace .shot-card p {
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.35;
}

.user-workspace .metric-grid,
.user-workspace .dashboard-grid,
.user-workspace .tool-grid,
.user-workspace .result-grid {
  gap: 8px;
  margin-bottom: 8px;
}

.user-workspace .metric {
  min-height: 66px;
  padding: 8px 10px;
}

.user-workspace .metric span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 650;
}

.user-workspace .metric strong {
  color: var(--dash-text);
  margin-top: 4px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.15;
}

.user-workspace .table-shell th,
.user-workspace .table-shell td {
  padding: 8px 10px;
  font-size: 12px;
}

.user-workspace input,
.user-workspace textarea,
.user-workspace select {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.35;
}

.user-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.user-workspace select {
  height: 34px;
}

.user-workspace label {
  gap: 5px;
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 650;
}

.user-workspace textarea {
  min-height: 112px;
  line-height: 1.45;
}

.user-workspace .studio-layout .form-panel textarea {
  height: 76px;
  min-height: 76px;
}

.user-workspace .studio-layout .form-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-workspace .studio-layout .form-panel h2,
.user-workspace .studio-layout .form-panel .form-row,
.user-workspace .studio-layout .form-panel label:has(textarea),
.user-workspace .studio-layout .form-panel .button,
.user-workspace .studio-layout .form-panel .form-status {
  grid-column: 1 / -1;
}

.user-workspace .studio-layout .form-panel label:has(select) {
  grid-column: 1 / -1;
}

.user-workspace .studio-layout .form-panel .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-workspace .form-panel {
  gap: 10px;
}

.user-workspace .form-panel h2 {
  margin-bottom: 0;
}

.user-workspace .form-panel p,
.user-workspace .form-status,
.user-workspace .billing-note p,
.user-workspace .payment-box p,
.user-workspace .payment-box span {
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.4;
}

.user-workspace .form-row {
  gap: 8px;
}

.user-workspace .prompt-template-panel,
.user-workspace .reference-upload-box,
.user-workspace .payment-box,
.user-workspace .billing-note,
.user-workspace .plan-summary-box {
  border-color: var(--dash-line);
  border-radius: 8px;
  background: var(--dash-soft);
  padding: 8px;
}

.user-workspace .prompt-template-panel {
  gap: 7px;
}

.user-workspace .prompt-template-panel > span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
}

.user-workspace .prompt-template-list,
.user-workspace .tool-tags,
.user-workspace .plan-limit-list {
  gap: 5px;
}

.user-workspace .tool-tags span,
.user-workspace .plan-limit-list span {
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 650;
}

.user-workspace .reference-preview {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  border-color: var(--dash-line);
  padding: 7px;
}

.user-workspace .reference-preview img {
  width: 74px;
  border-radius: 6px;
}

.user-workspace .reference-preview span {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-workspace .generation-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  min-width: 0;
}

body.theme-midnight .user-workspace input,
body.theme-midnight .user-workspace textarea,
body.theme-midnight .user-workspace select {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #e5edf6;
}

.user-workspace .dashboard-grid > *,
.user-workspace .generation-form > *,
.user-workspace .generation-form input,
.user-workspace .generation-form select,
.user-workspace .generation-form textarea {
  min-width: 0;
}

.user-workspace .generation-form h2,
.user-workspace .generation-form label:has(textarea[name="prompt"]),
.user-workspace .generation-form .prompt-template-panel,
.user-workspace .generation-form .form-row,
.user-workspace .generation-form .reference-upload-box,
.user-workspace .generation-form .tool-tags,
.user-workspace .generation-form .button,
.user-workspace .generation-form .form-status {
  grid-column: 1 / -1;
}

.user-workspace .generation-form textarea[name="prompt"] {
  height: 98px;
  min-height: 98px;
}

.user-workspace .generation-form .reference-upload-box {
  gap: 6px;
}

.user-workspace .generation-form .reference-upload-box input[type="file"] {
  padding: 6px 8px;
}

.user-workspace .generation-form .reference-preview {
  grid-template-columns: 58px minmax(0, 1fr);
}

.user-workspace .generation-form .reference-preview img {
  width: 58px;
  max-height: 58px;
}

.user-workspace .generation-history-panel .table-shell.compact {
  max-height: 520px;
}

.user-workspace .wallet-action-grid,
.user-workspace .billing-main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: start;
}

.user-workspace .wallet-ledger-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  align-items: start;
}

.user-workspace .recharge-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.user-workspace .recharge-form h2,
.user-workspace .recharge-form .plan-summary-box,
.user-workspace .recharge-form .button,
.user-workspace .recharge-form .form-status,
.user-workspace .recharge-form .payment-box {
  grid-column: 1 / -1;
}

.user-workspace .recharge-form .plan-summary-box {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  max-height: 168px;
  overflow: auto;
}

.user-workspace .recharge-form .plan-feature-list {
  margin: 0;
  padding-left: 16px;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.35;
}

.user-workspace .redeem-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: flex-end;
}

.user-workspace .redeem-form h2,
.user-workspace .redeem-form .form-status {
  grid-column: 1 / -1;
}

.user-workspace .redeem-form .button {
  min-width: 104px;
}

.user-workspace .wallet-orders-panel .table-shell.compact,
.user-workspace .billing-orders-panel .table-shell.compact {
  max-height: 260px;
}

.user-workspace .wallet-ledger-panel .table-shell {
  max-height: 360px;
}

.user-workspace .wallet-rules-panel .table-shell.compact,
.user-workspace .billing-rules-panel .table-shell.compact {
  max-height: 280px;
}

.user-workspace .table-shell {
  border-color: var(--dash-line);
  border-radius: 8px;
  box-shadow: none;
}

.user-workspace .table-shell table {
  min-width: 520px;
}

.user-workspace .table-shell th {
  background: var(--dash-soft);
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
}

.user-workspace .table-shell td {
  color: var(--dash-text);
  line-height: 1.35;
}

.user-workspace .profile-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
}

.user-workspace .profile-list div {
  min-height: 38px;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  background: #ffffff;
  padding: 8px 10px;
}

.user-workspace .profile-list div:last-child {
  border-bottom: 0;
}

.user-workspace .profile-list span {
  color: var(--dash-muted);
  font-size: 11px;
}

.user-workspace .profile-list strong {
  color: var(--dash-text);
  font-size: 12px;
}

.user-workspace .payment-box {
  gap: 8px;
}

.user-workspace .payment-box dl {
  gap: 6px;
}

.user-workspace .payment-box dt,
.user-workspace .payment-box dd {
  font-size: 12px;
}

.user-workspace .tool-grid.compact,
.user-workspace .shot-board {
  gap: 6px;
}

.user-workspace .tool-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.user-workspace .tool-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr) auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;
  min-height: 64px;
  border-color: var(--dash-line);
  border-radius: 8px;
  padding: 9px;
  box-shadow: none;
}

.user-workspace .tool-card-head {
  gap: 7px;
}

.user-workspace .tool-card p,
.user-workspace .tool-card .tool-tags {
  grid-column: 1;
}

.user-workspace .tool-card .tool-tags {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-content: flex-end;
}

.user-workspace .tool-card .button {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  white-space: nowrap;
}

.user-workspace .tool-card-head strong,
.user-workspace .shot-card strong {
  color: var(--dash-text);
  font-size: 13px;
  line-height: 1.3;
}

.user-workspace .tool-card p {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-workspace .shot-card {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  min-height: 48px;
  padding: 8px;
}

.user-workspace .shot-card > span {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 12px;
}

.user-workspace .shot-actions {
  gap: 6px;
  margin-top: 7px;
}

.user-workspace .plan-feature-list {
  gap: 5px;
  margin-top: 8px;
}

.user-workspace .plan-feature-list li {
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.38;
}

.professional-dashboard {
  max-width: 1360px;
  font-size: 13px;
  --dash-line: #dfe5ea;
  --dash-muted: #64748b;
  --dash-soft: #f7f9fb;
  --dash-hover: #f3f6f8;
  --dash-text: #111827;
  --dash-accent: #0f766e;
}

body.theme-midnight .user-workspace {
  --dash-line: #1f2a3d;
  --dash-muted: #8ea1b8;
  --dash-soft: rgba(15, 23, 42, 0.78);
  --dash-hover: rgba(30, 41, 59, 0.72);
  --dash-text: #e5edf6;
  --dash-accent: #38bdf8;
}

body.theme-midnight .professional-dashboard {
  --dash-line: rgba(56, 189, 248, 0.18);
  --dash-muted: #9fb2c8;
  --dash-soft: rgba(15, 23, 42, 0.78);
  --dash-hover: rgba(30, 41, 59, 0.72);
  --dash-text: #e5edf6;
  --dash-accent: #38bdf8;
}

.workspace:has(.professional-dashboard) .workspace-main {
  padding: 18px 22px 26px;
}

.workspace:has(.professional-dashboard) {
  grid-template-columns: 228px minmax(0, 1fr);
}

.workspace:has(.professional-dashboard) .workspace-sidebar {
  padding: 14px;
  font-size: 12px;
}

.workspace:has(.professional-dashboard) .workspace-brand {
  min-height: 36px;
  gap: 8px;
  font-size: 13px;
}

.workspace:has(.professional-dashboard) .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 12px;
}

.workspace:has(.professional-dashboard) .workspace-nav,
.workspace:has(.professional-dashboard) .workspace-rail,
.workspace:has(.professional-dashboard) .workspace-rail-links {
  gap: 4px;
  margin-top: 14px;
}

.workspace:has(.professional-dashboard) .workspace-rail {
  padding-top: 12px;
}

.workspace:has(.professional-dashboard) .workspace-rail-links {
  margin-top: 6px;
}

.workspace:has(.professional-dashboard) .workspace-rail summary {
  min-height: 32px;
}

.workspace:has(.professional-dashboard) .workspace-rail summary span {
  font-size: 11px;
  font-weight: 650;
}

.workspace:has(.professional-dashboard) .workspace-nav svg,
.workspace:has(.professional-dashboard) .workspace-rail svg {
  width: 14px;
  height: 14px;
}

.workspace:has(.professional-dashboard) .workspace-nav a,
.workspace:has(.professional-dashboard) .workspace-rail a {
  gap: 8px;
  min-height: 32px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.workspace:has(.professional-dashboard) .workspace-nav a[aria-current="page"],
.workspace:has(.professional-dashboard) .workspace-rail a[aria-current="page"] {
  font-weight: 720;
}

.workspace:has(.professional-dashboard) .workspace-topbar {
  align-items: center;
  min-height: 52px;
  margin-bottom: 10px;
}

.workspace:has(.professional-dashboard) .workspace-topbar h1 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}

.workspace:has(.professional-dashboard) .eyebrow {
  font-size: 11px;
  font-weight: 700;
}

.workspace:has(.professional-dashboard) .topbar-actions {
  gap: 7px;
  padding-top: 0;
}

.workspace:has(.professional-dashboard) .button {
  border-color: var(--dash-line);
  background: #ffffff;
  color: var(--dash-text);
  min-height: 32px;
  border-radius: 7px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

.workspace:has(.professional-dashboard) .button.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.workspace:has(.professional-dashboard) .button:hover {
  border-color: #cbd5e1;
  background: var(--dash-hover);
}

.workspace:has(.professional-dashboard) .button.primary:hover {
  border-color: #115e59;
  background: #115e59;
  color: #ffffff;
}

.professional-dashboard .panel {
  border-color: var(--dash-line);
  background: #ffffff;
  padding: 10px;
  box-shadow: none;
}

body.theme-midnight .professional-dashboard .panel,
body.theme-midnight .dashboard-kpis,
body.theme-midnight .dashboard-kpis .metric,
body.theme-midnight .production-flow,
body.theme-midnight .production-flow-step,
body.theme-midnight .operator-side .production-card {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(8, 13, 24, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.professional-dashboard .panel-head {
  margin-bottom: 8px;
}

.professional-dashboard .panel-head > div {
  min-width: 0;
}

.professional-dashboard .panel-head p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.professional-dashboard .panel-head h2 {
  color: var(--dash-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.professional-dashboard .panel-head p {
  color: var(--dash-muted);
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  border-color: var(--dash-line);
  background: var(--dash-soft);
  box-shadow: none;
  min-height: 48px;
  padding: 6px 10px;
}

.professional-dashboard .dashboard-command {
  position: relative;
  overflow: hidden;
  border-color: rgba(13, 155, 134, 0.18);
  background:
    linear-gradient(120deg, rgba(13, 155, 134, 0.1), transparent 34%),
    linear-gradient(90deg, var(--dash-soft), #ffffff);
  padding: 10px 12px;
}

.professional-dashboard .dashboard-command {
  grid-template-columns: minmax(0, 1fr) auto 320px;
}

.professional-dashboard .dashboard-command::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(13, 155, 134, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.12) 0 1px, transparent 1px 56px);
  opacity: 0.5;
  transform: translateX(-18%);
  animation: dashboard-scan 9s linear infinite;
}

.professional-dashboard .dashboard-command > * {
  position: relative;
  z-index: 1;
}

body.theme-midnight .professional-dashboard .dashboard-command {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    radial-gradient(circle at 18% 15%, rgba(56, 189, 248, 0.2), transparent 32%),
    radial-gradient(circle at 72% 25%, rgba(34, 197, 94, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(8, 13, 24, 0.96), rgba(15, 23, 42, 0.88));
}

body.theme-midnight .professional-dashboard .dashboard-command::before {
  background:
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.18), transparent),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.13) 0 1px, transparent 1px 64px);
}

@keyframes dashboard-scan {
  from {
    transform: translateX(-24%);
  }

  to {
    transform: translateX(24%);
  }
}

.dashboard-command > div:first-child {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.dashboard-command h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-command p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-command .hero-kicker {
  border-right: 1px solid var(--dash-line);
  color: var(--dash-muted);
  padding-right: 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.command-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: end;
  grid-gap: 8px;
  gap: 8px;
  min-height: 34px;
}

.command-visual span {
  display: inline-grid;
  min-width: 42px;
  min-height: 26px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--dash-text);
  font-size: 11px;
  font-weight: 760;
}

.command-visual i {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.22);
}

.command-visual i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: var(--dash-accent);
  animation: pipeline-pulse 1.8s ease-in-out infinite;
}

body.theme-midnight .command-visual span {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.74);
  color: #e0f2fe;
}

body.theme-midnight .command-visual i {
  background: rgba(56, 189, 248, 0.18);
}

@keyframes pipeline-pulse {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(240%);
  }
}

.dashboard-live-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 220px;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-live-strip article {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-height: 72px;
  border-right: 1px solid var(--dash-line);
  padding: 8px 10px;
}

.dashboard-live-strip article:last-child {
  border-right: 0;
}

.dashboard-live-strip span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 700;
}

.pipeline-stage div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-stage em {
  display: inline-grid;
  min-height: 20px;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-live-strip strong {
  color: var(--dash-text);
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-live-strip p {
  overflow: hidden;
  color: var(--dash-muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.pipeline-stage.watch em {
  background: #fff7ed;
  color: #9a3412;
}

.pipeline-stage.blocked em {
  background: #fef2f2;
  color: #b91c1c;
}

.pipeline-actions {
  display: grid;
  align-content: center;
  grid-gap: 4px;
  gap: 4px;
  padding: 8px 10px;
  background: var(--dash-soft);
}

.pipeline-actions strong {
  color: var(--dash-text);
  font-size: 13px;
}

.pipeline-actions span {
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.35;
}

body.theme-midnight .dashboard-live-strip {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(8, 13, 24, 0.84);
}

body.theme-midnight .dashboard-live-strip article {
  border-right-color: rgba(56, 189, 248, 0.14);
}

body.theme-midnight .dashboard-live-strip span,
body.theme-midnight .dashboard-live-strip p,
body.theme-midnight .pipeline-actions span {
  color: #9fb2c8;
}

body.theme-midnight .pipeline-stage em {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

body.theme-midnight .pipeline-stage.watch em {
  background: rgba(251, 146, 60, 0.14);
  color: #fdba74;
}

body.theme-midnight .pipeline-stage.blocked em {
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}

body.theme-midnight .pipeline-actions {
  background: rgba(14, 165, 233, 0.1);
}

body.theme-midnight .user-workspace,
body.theme-midnight .user-workspace .workspace-topbar,
body.theme-midnight .user-workspace .workspace-sidebar {
  color: #e5edf6;
}

body.theme-midnight .user-workspace .workspace-brand,
body.theme-midnight .user-workspace .workspace-nav a,
body.theme-midnight .user-workspace .workspace-nav a span,
body.theme-midnight .user-workspace .panel h2,
body.theme-midnight .user-workspace .panel-head h2,
body.theme-midnight .user-workspace .metric strong,
body.theme-midnight .user-workspace .quick-action-card span,
body.theme-midnight .user-workspace .quick-action-card strong,
body.theme-midnight .user-workspace .activity-row strong,
body.theme-midnight .user-workspace .project-row strong,
body.theme-midnight .user-workspace .asset-mini-card strong,
body.theme-midnight .user-workspace .table-shell td,
body.theme-midnight .user-workspace .profile-list strong,
body.theme-midnight .user-workspace label {
  color: #e5edf6;
}

body.theme-midnight .user-workspace .eyebrow,
body.theme-midnight .user-workspace .workspace-nav-group > span,
body.theme-midnight .user-workspace .panel-head p,
body.theme-midnight .user-workspace .metric span,
body.theme-midnight .user-workspace .metric p,
body.theme-midnight .user-workspace .quick-action-card p,
body.theme-midnight .user-workspace .activity-row span,
body.theme-midnight .user-workspace .project-row span,
body.theme-midnight .user-workspace .asset-mini-card span,
body.theme-midnight .user-workspace .activity-meta small,
body.theme-midnight .user-workspace .table-shell th,
body.theme-midnight .user-workspace .profile-list span,
body.theme-midnight .user-workspace .profile-list small,
body.theme-midnight .user-workspace .empty-state p {
  color: #9fb2c8;
}

body.theme-midnight .user-workspace .workspace-nav a[aria-current="page"],
body.theme-midnight .user-workspace .workspace-nav a:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #f8fafc;
}

body.theme-midnight .user-workspace .workspace-mobile-menu summary,
body.theme-midnight .user-workspace .workspace-mobile-nav-panel {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.96);
  color: #e5edf6;
}

body.theme-midnight .user-workspace .quick-action-list,
body.theme-midnight .user-workspace .quick-action-card,
body.theme-midnight .user-workspace .quick-action-card.primary,
body.theme-midnight .user-workspace .activity-row,
body.theme-midnight .user-workspace .project-row,
body.theme-midnight .user-workspace .asset-mini-card,
body.theme-midnight .user-workspace .profile-list,
body.theme-midnight .user-workspace .profile-list div,
body.theme-midnight .user-workspace .table-shell,
body.theme-midnight .user-workspace .table-shell th,
body.theme-midnight .user-workspace .table-shell td,
body.theme-midnight .user-workspace .model-select-button,
body.theme-midnight .user-workspace .selected-model-summary,
body.theme-midnight .user-workspace .announcement,
body.theme-midnight .user-workspace .payment-box,
body.theme-midnight .user-workspace .billing-note,
body.theme-midnight .user-workspace .prompt-template-panel,
body.theme-midnight .user-workspace .reference-upload-box,
body.theme-midnight .user-workspace .plan-summary-box {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .user-workspace .quick-action-card:hover,
body.theme-midnight .user-workspace .activity-row:hover,
body.theme-midnight .user-workspace .asset-mini-card:hover,
body.theme-midnight .user-workspace .project-row.compact:hover,
body.theme-midnight .user-workspace .model-select-button:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 165, 233, 0.12);
}

body.theme-midnight .user-workspace .button,
body.theme-midnight .workspace:has(.professional-dashboard) .button {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.84);
  color: #dbeafe;
}

body.theme-midnight .user-workspace .button.primary,
body.theme-midnight .workspace:has(.professional-dashboard) .button.primary {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
}

body.theme-midnight .theme-switcher,
body.theme-midnight .theme-switcher summary,
body.theme-midnight .theme-switcher summary strong,
body.theme-midnight .theme-menu button,
body.theme-midnight .theme-menu button strong {
  color: #e5edf6;
}

body.theme-midnight .theme-menu button small {
  color: #9fb2c8;
}

.dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpis {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 0;
}

.dashboard-kpis .metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 2px 10px;
  gap: 2px 10px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  background: #ffffff;
  min-height: 54px;
  padding: 7px 10px;
  box-shadow: none;
}

.dashboard-kpis .metric:last-child {
  border-right: 0;
}

.dashboard-kpis .metric span {
  grid-column: 1;
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 650;
}

.dashboard-kpis .metric strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--dash-text);
  margin-top: 0;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.15;
}

.dashboard-kpis .metric p {
  grid-column: 1;
  color: var(--dash-muted);
  margin-top: 0;
  font-size: 11px;
  line-height: 1.35;
}

.production-flow-panel {
  box-shadow: none;
  padding: 9px 10px;
}

.professional-dashboard .production-flow-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
}

.production-flow-panel .panel-head {
  margin-bottom: 6px;
}

.professional-dashboard .production-flow-panel .panel-head {
  display: contents;
  margin: 0;
}

.professional-dashboard .production-flow-panel .panel-head > div {
  grid-column: 1;
  grid-row: 1;
  min-width: 70px;
}

.professional-dashboard .production-flow-panel .panel-head .button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.professional-dashboard .production-flow-panel .panel-head h2 {
  white-space: nowrap;
}

.production-flow-panel .panel-head p {
  display: none;
}

.production-flow {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
}

.production-flow-step {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  background: #ffffff;
  padding: 6px 9px;
}

body.theme-midnight .production-flow-step:hover {
  background: rgba(14, 165, 233, 0.12);
}

.production-flow-step:last-child {
  border-right: 0;
}

.production-flow-step:hover {
  background: var(--dash-hover);
}

.production-flow-step span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 800;
}

.production-flow-step strong {
  color: var(--dash-text);
  font-size: 13px;
  line-height: 1.25;
}

.production-flow-step em {
  margin-left: auto;
  color: var(--dash-accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

body.theme-midnight .workspace:has(.professional-dashboard) .production-flow-step em {
  color: #7dd3fc;
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-gap: 10px;
  gap: 10px;
  align-items: start;
}

.operator-main,
.operator-side {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.professional-dashboard .activity-list {
  gap: 6px;
}

.professional-dashboard .activity-row {
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 7px;
  min-height: 50px;
  padding: 7px 9px;
}

.professional-dashboard .activity-row > div:first-child {
  min-width: 0;
}

.professional-dashboard .activity-row strong,
.professional-dashboard .asset-mini-card strong {
  color: var(--dash-text);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
}

.professional-dashboard .activity-row span,
.professional-dashboard .asset-mini-card span {
  color: var(--dash-muted);
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.professional-dashboard .activity-row strong,
.professional-dashboard .activity-row > div:first-child > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.professional-dashboard :is(.activity-row strong, .activity-row > div:first-child > span) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.professional-dashboard .activity-meta {
  gap: 3px;
  justify-items: end;
}

.professional-dashboard .activity-meta small {
  color: var(--dash-muted);
  font-size: 10px;
}

.professional-dashboard .activity-meta .status-badge {
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
}

.professional-dashboard .status-badge {
  background: #f1f5f9;
  color: #475569;
}

body.theme-midnight .professional-dashboard .status-badge {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

body.theme-midnight .professional-dashboard .status-badge.pending {
  background: rgba(251, 146, 60, 0.14);
  color: #fdba74;
}

body.theme-midnight .professional-dashboard .status-badge.running {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

body.theme-midnight .professional-dashboard .status-badge.succeeded {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

body.theme-midnight .professional-dashboard .status-badge.failed,
body.theme-midnight .professional-dashboard .status-badge.canceled {
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}

.professional-dashboard .status-badge.pending {
  background: #fff7ed;
  color: #9a3412;
}

.professional-dashboard .status-badge.running {
  background: #eff6ff;
  color: #1d4ed8;
}

.professional-dashboard .status-badge.succeeded {
  background: #ecfdf5;
  color: #047857;
}

.professional-dashboard .status-badge.failed,
.professional-dashboard .status-badge.canceled {
  background: #fef2f2;
  color: #b91c1c;
}

.professional-dashboard .asset-mini-grid {
  gap: 8px;
}

.professional-dashboard .asset-mini-card {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 7px;
}

.professional-dashboard .asset-mini-card > div {
  min-width: 0;
}

.professional-dashboard .asset-mini-card strong,
.professional-dashboard .asset-mini-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.professional-dashboard .asset-mini-card .button {
  grid-column: auto;
  justify-self: end;
}

.professional-dashboard .asset-mini-preview {
  width: 56px;
  border-radius: 7px;
}

.professional-dashboard .button.small {
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.operator-side {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}

.operator-side .production-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 9px;
  border-color: var(--dash-line);
  background: #ffffff;
}

.ops-todo-panel {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.ops-todo-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.ops-todo-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 8px;
}

.ops-todo-item > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}

.ops-todo-item.priority-high > span {
  background: #fef2f2;
  color: #b91c1c;
}

.ops-todo-item.priority-low > span {
  background: #f1f5f9;
  color: #475569;
}

.ops-todo-item strong {
  display: block;
  color: var(--dash-text);
  font-size: 13px;
  line-height: 1.3;
}

.ops-todo-item p {
  overflow: hidden;
  color: var(--dash-muted);
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-todo-item:hover {
  border-color: #cbd5e1;
  background: var(--dash-hover);
}

body.theme-midnight .ops-todo-item {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .ops-todo-item:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 165, 233, 0.12);
}

body.theme-midnight .ops-todo-item > span {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

body.theme-midnight .ops-todo-item.priority-high > span {
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}

body.theme-midnight .ops-todo-item.priority-low > span {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.operator-side .production-card > span {
  grid-column: 1;
}

.operator-side .production-card > strong {
  color: var(--dash-text);
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  font-size: 18px;
  font-weight: 760;
}

.operator-side .production-card p {
  grid-column: 1;
  grid-row: 2;
}

.operator-side .production-card dl {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 4px;
}

.operator-side .production-card dl div {
  display: grid;
  justify-content: start;
  grid-gap: 2px;
  gap: 2px;
  border-color: var(--dash-line);
  padding-top: 5px;
}

.operator-side .production-card dt {
  color: var(--dash-muted);
  font-size: 10px;
}

.operator-side .production-card dd {
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 720;
}

.operator-side .production-card .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 1px;
}

.operator-side .panel {
  padding: 9px 10px;
}

.operator-side .panel-head {
  margin-bottom: 8px;
}

.project-list.compact {
  gap: 6px;
}

.project-progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #ffffff;
}

.project-progress-strip span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-right: 1px solid var(--dash-line);
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 780;
}

.project-progress-strip span:last-child {
  border-right: 0;
}

body.theme-midnight .project-progress-strip {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .project-progress-strip span {
  border-right-color: rgba(56, 189, 248, 0.14);
  color: #9fb2c8;
}

.scene-plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
  padding: 9px 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.scene-plan-strip div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.scene-plan-strip strong {
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 760;
}

.scene-plan-strip span {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-plan-strip .status-badge {
  flex: 0 0 auto;
}

body.theme-midnight .scene-plan-strip {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .scene-plan-strip strong {
  color: #e5edf6;
}

body.theme-midnight .scene-plan-strip span {
  color: #9fb2c8;
}

.script-storyboard-preview {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.script-storyboard-preview .panel-head {
  margin-bottom: 0;
}

.script-storyboard-preview .panel-head > strong {
  align-self: start;
}

.script-plan-meta {
  margin-top: 0;
}

.script-shot-draft-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.script-shot-draft {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.script-shot-draft > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 820;
}

.script-shot-draft div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.script-shot-draft strong {
  color: var(--dash-text);
  font-size: 13px;
  font-weight: 760;
}

.script-shot-draft p,
.script-shot-draft small {
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-shot-draft em {
  justify-self: end;
  white-space: nowrap;
}

.director-package-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.director-package-panel .panel-head {
  margin-bottom: 0;
}

.director-package-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.director-brief-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-gap: 8px;
  gap: 8px;
}

.director-brief-grid article {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
}

.director-brief-grid span,
.director-shot-blockers {
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.45;
}

.director-brief-grid strong {
  color: var(--dash-text);
  font-size: 13px;
  font-weight: 760;
}

.director-brief-grid p {
  overflow: hidden;
  margin: 0;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.director-shot-draft {
  grid-template-columns: 34px minmax(0, 1fr) 92px;
}

.director-shot-blockers {
  color: #a16207;
}

body.theme-midnight .script-shot-draft {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .director-brief-grid article {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .director-brief-grid strong {
  color: #e5edf6;
}

body.theme-midnight .director-brief-grid span,
body.theme-midnight .director-brief-grid p {
  color: #9fb2c8;
}

body.theme-midnight .director-shot-blockers {
  color: #fde68a;
}

body.theme-midnight .script-shot-draft > span {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(20, 184, 166, 0.13);
  color: #99f6e4;
}

body.theme-midnight .script-shot-draft strong {
  color: #e5edf6;
}

body.theme-midnight .script-shot-draft p,
body.theme-midnight .script-shot-draft small {
  color: #9fb2c8;
}

.reference-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}

.reference-diagnostic-grid > div {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.reference-diagnostic-grid strong {
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 760;
}

.reference-diagnostic-grid span {
  display: block;
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-diagnostic-grid span.ready {
  color: #0f766e;
}

.reference-diagnostic-grid span.pending {
  color: #92400e;
}

body.theme-midnight .reference-diagnostic-grid > div {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.86);
}

body.theme-midnight .reference-diagnostic-grid strong {
  color: #e5edf6;
}

body.theme-midnight .reference-diagnostic-grid span {
  color: #9fb2c8;
}

body.theme-midnight .reference-diagnostic-grid span.ready {
  color: #86efac;
}

body.theme-midnight .reference-diagnostic-grid span.pending {
  color: #fbbf24;
}

.generation-package-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.generation-package-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.9);
  color: #0f766e;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

body.theme-midnight .generation-package-strip span {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(20, 83, 45, 0.22);
  color: #bbf7d0;
}

.model-route-panel {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.86);
}

.model-route-panel strong {
  color: #0f766e;
  font-size: 12px;
  font-weight: 760;
}

.model-route-panel span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.model-route-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.model-route-panel button {
  min-height: 24px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.model-route-panel button.active {
  border-color: rgba(15, 118, 110, 0.35);
  background: #0f766e;
  color: #ffffff;
}

body.theme-midnight .model-route-panel {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(20, 83, 45, 0.2);
}

body.theme-midnight .model-route-panel strong {
  color: #bbf7d0;
}

body.theme-midnight .model-route-panel span {
  color: #9fb2c8;
}

body.theme-midnight .model-route-panel button {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(15, 23, 42, 0.86);
  color: #bbf7d0;
}

body.theme-midnight .model-route-panel button.active {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.18);
  color: #f0fdf4;
}

.batch-preflight-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  margin-top: 10px;
}

.batch-preflight-list span {
  display: block;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.82);
  color: #92400e;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-midnight .batch-preflight-list span {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(120, 53, 15, 0.22);
  color: #fcd34d;
}

.project-row.compact {
  grid-template-columns: minmax(0, 1fr) 118px auto;
  gap: 7px;
  align-items: center;
  min-height: 56px;
  padding: 6px 8px;
}

.project-row.compact > div {
  min-width: 0;
}

.project-row.compact strong {
  color: var(--dash-text);
  font-size: 13px;
  font-weight: 720;
}

.project-row.compact strong,
.project-row.compact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row.compact span {
  color: var(--dash-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.project-row.compact dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.project-row.compact dl div {
  display: grid;
  justify-items: start;
  border-top: 0;
  border-left: 1px solid var(--dash-line);
  padding: 0 0 0 6px;
}

.project-row.compact dl div:first-child {
  border-left: 0;
  padding-left: 0;
}

.project-row.compact dt {
  color: var(--dash-muted);
  font-size: 10px;
}

.project-row.compact dd {
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 720;
}

.project-row.compact > em {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--dash-accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

body.theme-midnight .project-row.compact > em {
  border-color: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.tool-group-list {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.tool-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-card-head strong {
  font-size: 16px;
}

.tool-card-head span,
.tool-status {
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tool-status.building {
  background: #fff3db;
  color: #9a620f;
}

.admin-workspace {
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f8fb;
  font-size: 13px;
}

.admin-workspace .workspace-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #dfe5ee;
  background: #ffffff;
  padding: 12px;
  overflow-y: auto;
}

.admin-workspace .workspace-brand {
  min-height: 42px;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 12px;
  font-size: 13px;
}

.admin-workspace .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-workspace .workspace-brand span:last-child {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.admin-workspace .workspace-brand strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.1;
}

.admin-workspace .workspace-brand small {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.admin-workspace .workspace-nav a,
.admin-workspace .workspace-rail a {
  min-height: 32px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 13px;
  color: #475569;
}

.admin-workspace .workspace-nav a:hover,
.admin-workspace .workspace-rail a:hover {
  border-color: #dbe3ee;
  background: #f4f7fb;
  color: #0f172a;
}

.admin-workspace .workspace-nav a[aria-current="page"],
.admin-workspace .workspace-rail a[aria-current="page"] {
  border-color: #cbd5e1;
  background: #eef4ff;
  color: #0f172a;
  font-weight: 800;
}

.admin-workspace .workspace-rail {
  gap: 5px;
  margin-top: 14px;
  padding-top: 14px;
}

.admin-workspace .workspace-main {
  padding: 18px 22px 28px;
}

.admin-workspace .workspace-topbar {
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #e4eaf2;
  margin: -18px -22px 18px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.admin-workspace .workspace-topbar h1 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.admin-workspace .eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.admin-workspace .metric-grid,
.admin-workspace .dashboard-grid,
.admin-workspace .tool-grid,
.admin-workspace .workflow-strip,
.admin-workspace .shot-board {
  gap: 10px;
}

.admin-workspace .metric,
.admin-workspace .panel,
.admin-workspace .tool-card,
.admin-workspace .workflow-step,
.admin-workspace .shot-card {
  border-color: #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  padding: 12px;
}

.admin-workspace .metric strong {
  color: #0f766e;
  font-size: 20px;
}

.admin-workspace .metric p,
.admin-workspace .panel-head p,
.admin-workspace .tool-card p,
.admin-workspace .workflow-step p,
.admin-workspace .shot-card p {
  color: #64748b;
  font-size: 13px;
}

.admin-workspace .panel h2,
.admin-workspace .panel-head h2 {
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
}

.admin-workspace .tool-card {
  min-height: 154px;
  gap: 9px;
}

.admin-workspace .tool-card-head strong {
  font-size: 14px;
}

.admin-workspace th,
.admin-workspace td {
  padding: 8px 10px;
  font-size: 13px;
}

.admin-workspace th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.admin-workspace td span {
  color: #64748b;
  font-size: 12px;
}

.admin-workspace input,
.admin-workspace textarea,
.admin-workspace select {
  min-height: 34px;
  border-color: #d9e1ec;
  background: #ffffff;
  font-size: 13px;
}

.admin-workspace .button {
  min-height: 32px;
  border-radius: 6px;
  padding: 0 11px;
  font-size: 13px;
}

.admin-workspace {
  --admin-line: #dfe6ef;
  --admin-muted: #64748b;
  --admin-text: #111827;
  --admin-soft: #f8fafc;
  --admin-hover: #f4f7fb;
  --admin-accent: #0f766e;
  grid-template-columns: 224px minmax(0, 1fr);
  font-size: 12px;
}

.admin-workspace .workspace-main {
  padding: 14px 18px 24px;
}

.admin-workspace .workspace-sidebar {
  padding: 10px;
}

.admin-workspace .workspace-brand {
  min-height: 36px;
  padding-bottom: 10px;
  font-size: 12px;
}

.admin-workspace .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.admin-workspace .workspace-brand strong {
  font-size: 13px;
}

.admin-workspace .workspace-brand small {
  font-size: 10px;
}

.admin-workspace .admin-nav-groups {
  gap: 5px;
  margin-top: 10px;
}

.admin-workspace .admin-nav-group summary {
  min-height: 32px;
  padding: 0 6px;
  font-size: 10px;
}

.admin-workspace .admin-nav-group .workspace-nav {
  gap: 2px;
}

.admin-workspace .workspace-nav a,
.admin-workspace .workspace-rail a {
  min-height: 32px;
  gap: 7px;
  padding: 0 8px;
  font-size: 12px;
}

.admin-workspace .workspace-nav svg,
.admin-workspace .workspace-rail svg {
  width: 14px;
  height: 14px;
}

.admin-workspace .workspace-rail {
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
}

.admin-workspace .workspace-rail > span {
  font-size: 10px;
}

.admin-workspace .workspace-topbar {
  min-height: 48px;
  margin: -14px -18px 14px;
  padding: 8px 18px;
}

.admin-workspace .workspace-topbar h1 {
  font-size: 20px;
}

.admin-workspace .eyebrow {
  font-size: 11px;
}

.admin-workspace .topbar-actions {
  gap: 7px;
  padding-top: 0;
}

.admin-workspace .metric-grid,
.admin-workspace .dashboard-grid,
.admin-workspace .tool-grid,
.admin-workspace .workflow-strip,
.admin-workspace .shot-board {
  gap: 8px;
  margin-bottom: 8px;
}

.admin-workspace .metric,
.admin-workspace .panel,
.admin-workspace .tool-card,
.admin-workspace .workflow-step,
.admin-workspace .shot-card {
  border-color: var(--admin-line);
  padding: 9px;
}

.admin-workspace .metric {
  min-height: 64px;
}

.admin-workspace .metric span {
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-workspace .metric strong {
  margin-top: 4px;
  color: var(--admin-text);
  font-size: 18px;
  line-height: 1.15;
}

.admin-workspace .metric p,
.admin-workspace .panel-head p,
.admin-workspace .tool-card p,
.admin-workspace .workflow-step p,
.admin-workspace .shot-card p,
.admin-workspace .form-status {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.38;
}

.admin-workspace .panel h2,
.admin-workspace .panel-head h2 {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 750;
}

.admin-workspace .panel-head {
  margin-bottom: 8px;
}

.admin-workspace label {
  gap: 5px;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 650;
}

.admin-workspace input,
.admin-workspace textarea,
.admin-workspace select {
  min-height: 32px;
  border-color: #d9e1ec;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-workspace input:not([type="checkbox"]):not([type="radio"]),
.admin-workspace select {
  height: 34px;
}

.admin-workspace textarea {
  min-height: 96px;
  line-height: 1.45;
}

.admin-workspace .form-panel {
  gap: 9px;
}

.admin-workspace .form-row {
  gap: 8px;
}

.admin-workspace .button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-workspace .button.small {
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-workspace .table-shell {
  border-color: var(--admin-line);
  border-radius: 8px;
}

.admin-workspace table {
  min-width: 640px;
}

.admin-workspace th,
.admin-workspace td {
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-workspace th {
  background: var(--admin-soft);
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-workspace td span,
.admin-workspace td small {
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-workspace td {
  max-width: 260px;
}

.admin-workspace td strong,
.admin-workspace td span,
.admin-workspace td a {
  max-width: 100%;
}

.admin-workspace td strong,
.admin-workspace td span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-workspace td span {
  white-space: nowrap;
}

.admin-workspace td strong {
  white-space: nowrap;
}

.admin-workspace .admin-task-table td {
  vertical-align: middle;
}

.admin-workspace .admin-task-table table {
  min-width: 1160px;
}

.admin-workspace .admin-task-table td:nth-child(6) {
  min-width: 230px;
  max-width: 280px;
}

.admin-workspace .admin-task-table td:nth-child(6) span,
.admin-workspace .admin-task-table td:nth-child(6) strong,
.admin-workspace .admin-task-table td:nth-child(6) a {
  display: inline-block;
  max-width: 100%;
  margin-right: 5px;
  vertical-align: middle;
}

.admin-workspace .admin-task-table td:nth-child(6) strong {
  max-width: 78px;
}

.admin-workspace .admin-task-table td:nth-child(6) span:nth-of-type(n + 2) {
  max-width: 72px;
}

.admin-workspace .admin-task-table .row-actions {
  flex-wrap: nowrap;
}

.admin-workspace .toolbar,
.admin-workspace .row-actions,
.admin-workspace .tag-list {
  gap: 5px;
}

.admin-workspace .status-badge,
.admin-workspace .tool-status,
.admin-workspace .priority-badge {
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 750;
}

.admin-workspace .tool-grid {
  grid-template-columns: 1fr;
}

.admin-workspace .tool-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  gap: 6px 10px;
}

.admin-workspace .tool-card-head,
.admin-workspace .tool-card p,
.admin-workspace .tool-card .tag-list,
.admin-workspace .tool-card .tool-tags {
  grid-column: 1;
}

.admin-workspace .tool-card .button,
.admin-workspace .tool-card > a {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
}

.admin-workspace .tool-card-head strong {
  font-size: 13px;
}

.admin-workspace .tool-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace .workflow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-workspace .workflow-step {
  min-height: 74px;
}

.admin-workspace .workflow-step span {
  font-size: 10px;
}

.admin-workspace .workflow-step strong {
  margin-top: 5px;
  font-size: 13px;
}

.admin-overview-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.admin-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
}

.admin-overview-row strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.admin-overview-row p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.priority-高 {
  background: #fef2f2;
  color: #b91c1c;
}

.priority-中 {
  background: #fff7ed;
  color: #c2410c;
}

.priority-低 {
  background: #eef4ff;
  color: #1d4ed8;
}

.admin-alert-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.admin-alert-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
}

.admin-alert-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.admin-alert-row strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.admin-alert-row p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.admin-alert-row.alert-高 > span {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-alert-row.alert-中 > span {
  background: #fff7ed;
  color: #c2410c;
}

.admin-alert-row.alert-低 > span {
  background: #eef4ff;
  color: #1d4ed8;
}

.admin-workspace .admin-overview-list,
.admin-workspace .admin-alert-list,
.admin-workspace .tool-admin-list {
  gap: 6px;
}

.admin-workspace .admin-overview-row {
  gap: 10px;
  min-height: 58px;
  border-color: var(--admin-line);
  padding: 8px 9px;
}

.admin-workspace .admin-overview-row strong {
  margin-top: 4px;
  font-size: 13px;
}

.admin-workspace .admin-overview-row p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}

.admin-workspace .admin-alert-row {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  min-height: 58px;
  border-color: var(--admin-line);
  padding: 8px 9px;
}

.admin-workspace .admin-alert-row > span {
  min-height: 24px;
  border-radius: 6px;
  font-size: 11px;
}

.admin-workspace .admin-alert-row strong {
  font-size: 13px;
}

.admin-workspace .admin-alert-row p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}

.admin-workspace .tool-admin-group {
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border-color: var(--admin-line);
  background: var(--admin-soft);
  padding: 8px 9px;
}

.admin-workspace .tool-admin-group p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.admin-workspace .tool-admin-group span {
  padding: 3px 7px;
  font-size: 11px;
}

.admin-workspace .payment-channel-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}

.admin-workspace .payment-channel-form h2,
.admin-workspace .payment-channel-form .button {
  grid-column: 1 / -1;
}

.admin-workspace .payment-admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  align-items: start;
}

.admin-workspace .payment-manual-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.admin-workspace .payment-manual-form h2,
.admin-workspace .payment-manual-form .form-row,
.admin-workspace .payment-manual-form label:has(textarea),
.admin-workspace .payment-manual-form .button {
  grid-column: 1 / -1;
}

.admin-workspace .payment-manual-form .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-workspace .payment-manual-form textarea {
  height: 70px;
  min-height: 70px;
}

.admin-workspace .payment-channel-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border-color: var(--admin-line);
  border-radius: 8px;
  padding: 8px;
}

.admin-workspace .payment-channel-card .check-row,
.admin-workspace .payment-channel-card .form-row,
.admin-workspace .payment-channel-card label:has(textarea) {
  grid-column: 1 / -1;
}

.admin-workspace .payment-channel-card .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-workspace .payment-channel-card textarea {
  height: 58px;
  min-height: 58px;
}

.admin-workspace .payment-status-panel .table-shell.compact {
  max-height: 320px;
}

.admin-workspace .payment-status-panel td {
  vertical-align: top;
}

.admin-workspace .payment-status-panel td span {
  display: inline-flex;
  max-width: 100%;
}

.admin-workspace .prompt-template-panel,
.admin-workspace .payment-box,
.admin-workspace .billing-note,
.admin-workspace .plan-summary-box {
  border-color: var(--admin-line);
  background: var(--admin-soft);
  padding: 8px;
}

.admin-workspace .prompt-template-panel > span {
  font-size: 11px;
}

.admin-workspace .check-row {
  min-height: 34px;
  gap: 7px;
  border-color: var(--admin-line);
  border-radius: 7px;
  background: var(--admin-soft);
  padding: 7px 9px;
  font-size: 12px;
}

.admin-workspace .check-row input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
}

.admin-workspace .inline-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  font-size: 11px;
  white-space: nowrap;
}

.admin-workspace .inline-field input,
.admin-workspace .inline-field select {
  width: auto;
  min-width: 138px;
  height: 30px;
}

.admin-workspace .settings-preview {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.admin-workspace .settings-preview article {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-bottom: 1px solid var(--admin-line);
  padding: 6px 8px;
}

.admin-workspace .settings-preview article > * {
  min-width: 0;
}

.admin-workspace .settings-preview article:last-child {
  border-bottom: 0;
}

.admin-workspace .settings-preview span {
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-workspace .settings-preview strong {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace .settings-preview p {
  grid-column: 2;
  overflow: hidden;
  margin: -2px 0 0;
  color: var(--admin-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace .notice-box {
  gap: 5px;
  border-color: var(--admin-line);
  background: var(--admin-soft);
  padding: 8px 9px;
}

.admin-workspace .notice-box.success {
  border-color: rgba(13, 155, 134, 0.28);
  background: #eef8f4;
}

.admin-workspace .notice-box.error {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff1f2;
}

.admin-workspace .notice-box strong {
  font-size: 12px;
}

.admin-workspace .notice-box p {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.4;
}

.admin-workspace .settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.admin-workspace .settings-form h2,
.admin-workspace .settings-form .form-row,
.admin-workspace .settings-form label:has(textarea),
.admin-workspace .settings-form .settings-switches,
.admin-workspace .settings-form .button {
  grid-column: 1 / -1;
}

.admin-workspace .settings-form h2 {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--admin-line);
}

.admin-workspace .settings-form h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-workspace .settings-form .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-workspace .settings-form .settings-switches {
  gap: 6px;
}

.admin-workspace .settings-form textarea {
  height: 68px;
  min-height: 68px;
}

.admin-workspace .settings-form label:has(textarea[name="homepageSubheading"]),
.admin-workspace .settings-form label:has(textarea[name="loginNotice"]),
.admin-workspace .settings-form label:has(textarea[name="seoDescription"]) {
  grid-column: auto;
}

.admin-workspace .settings-form textarea[name="analyticsScript"],
.admin-workspace .settings-form textarea[name="redeemCodes"] {
  height: 88px;
  min-height: 88px;
}

.admin-workspace .config-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.admin-workspace .config-form h2,
.admin-workspace .config-form .form-row,
.admin-workspace .config-form label:has(textarea),
.admin-workspace .config-form .check-row,
.admin-workspace .config-form .notice-box,
.admin-workspace .config-form .button {
  grid-column: 1 / -1;
}

.admin-workspace .config-form .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-workspace .config-form textarea {
  height: 76px;
  min-height: 76px;
}

.admin-workspace .config-form textarea[name="capabilities"],
.admin-workspace .config-form textarea[name="defaultParams"],
.admin-workspace .config-form textarea[name="features"],
.admin-workspace .config-form textarea[name="limits"],
.admin-workspace .config-form textarea[name="credentials"],
.admin-workspace .config-form textarea[name="settings"],
.admin-workspace .config-form textarea[name="rateLimit"] {
  height: 92px;
  min-height: 92px;
}

.admin-workspace .model-config-form textarea[name="description"] {
  height: 60px;
  min-height: 60px;
}

.admin-workspace .model-config-form textarea[name="capabilities"],
.admin-workspace .model-config-form textarea[name="defaultParams"] {
  height: 78px;
  min-height: 78px;
}

.admin-workspace .model-catalog-panel .table-shell.compact {
  max-height: 560px;
}

.admin-workspace .tools-admin-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  align-items: start;
}

.admin-workspace .tools-config-form textarea[name="groups"] {
  height: 340px;
  min-height: 340px;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 11px;
  line-height: 1.35;
}

.admin-workspace .tools-preview-panel .panel-head {
  gap: 8px;
  margin-bottom: 8px;
}

.admin-workspace .tools-preview-panel .panel-head p {
  max-width: 520px;
}

.admin-workspace .tools-preview-panel .tool-admin-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-workspace .tools-preview-panel .tool-admin-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 72px;
}

.admin-workspace .tools-preview-panel .tool-admin-group span {
  justify-self: start;
}

.admin-workspace .tools-list-panel .panel-head {
  margin-bottom: 8px;
}

.admin-workspace .tools-list-panel .table-shell.compact {
  max-height: 440px;
}

.admin-workspace .admin-users-grid {
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
}

.admin-workspace .dashboard-grid > *,
.admin-workspace .admin-users-grid > *,
.admin-workspace .admin-orders-action-grid > *,
.admin-workspace .user-edit-form > *,
.admin-workspace .order-confirm-form > *,
.admin-workspace .credit-adjust-form > * {
  min-width: 0;
}

.admin-workspace .user-edit-form textarea[name="metadata"] {
  height: 76px;
  min-height: 76px;
}

.admin-workspace .user-list-panel .toolbar {
  gap: 6px;
  margin-bottom: 8px;
}

.admin-workspace .user-list-panel .table-shell {
  max-height: 520px;
}

.admin-workspace .admin-orders-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-workspace .order-confirm-form,
.admin-workspace .credit-adjust-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.admin-workspace .order-confirm-form h2,
.admin-workspace .order-confirm-form > label,
.admin-workspace .order-confirm-form .form-row,
.admin-workspace .order-confirm-form .button,
.admin-workspace .order-confirm-form .form-status,
.admin-workspace .credit-adjust-form h2,
.admin-workspace .credit-adjust-form > label,
.admin-workspace .credit-adjust-form .form-row,
.admin-workspace .credit-adjust-form .button {
  grid-column: 1 / -1;
}

.admin-workspace .credit-adjust-form textarea[name="description"] {
  height: 66px;
  min-height: 66px;
}

.admin-workspace .order-list-panel .toolbar {
  gap: 5px;
  margin-bottom: 7px;
}

.admin-workspace .order-list-panel .table-shell.compact {
  max-height: 460px;
}

.admin-workspace .ledger-recent-panel .table-shell.compact {
  max-height: 320px;
}

.admin-workspace .api-log-filter-panel .shot-actions,
.admin-workspace .ledger-filter-panel .row-actions {
  gap: 5px;
}

.admin-workspace .api-log-filter-panel .form-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: flex-end;
}

.admin-workspace .api-log-filter-panel .form-row .button {
  min-width: 104px;
}

.admin-workspace .api-log-table-panel .table-shell,
.admin-workspace .ledger-detail-panel .table-shell,
.admin-workspace .api-key-list-panel .table-shell {
  max-height: 560px;
}

.admin-workspace .ledger-filter-panel .toolbar {
  gap: 5px;
  margin-bottom: 7px;
}

.admin-workspace .ledger-summary-grid {
  align-items: start;
}

.admin-workspace .ledger-summary-panel .table-shell.compact {
  max-height: 260px;
}

.admin-workspace .api-key-create-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: start;
}

.admin-workspace .api-key-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.admin-workspace .api-key-create-form h2,
.admin-workspace .api-key-create-form label:first-of-type,
.admin-workspace .api-key-create-form .button {
  grid-column: 1 / -1;
}

.admin-workspace .api-key-rule-panel .tool-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-workspace .api-key-rule-panel .tool-card {
  min-height: 96px;
}

.admin-workspace .admin-asset-panel .toolbar {
  gap: 5px;
}

.admin-workspace .admin-asset-panel .table-shell {
  max-height: 560px;
}

.admin-workspace .admin-asset-panel .table-shell td :is(strong, span) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-workspace .admin-plans-grid,
.admin-workspace .admin-providers-grid,
.admin-workspace .admin-prompts-grid {
  align-items: start;
}

.admin-workspace .plan-config-form textarea[name="description"] {
  height: 58px;
  min-height: 58px;
}

.admin-workspace .plan-config-form textarea[name="features"],
.admin-workspace .plan-config-form textarea[name="limits"] {
  height: 74px;
  min-height: 74px;
}

.admin-workspace .plan-list-panel .toolbar {
  gap: 5px;
  margin-bottom: 7px;
}

.admin-workspace .plan-list-panel .table-shell,
.admin-workspace .provider-health-panel .table-shell.compact,
.admin-workspace .prompt-list-panel .table-shell.compact {
  max-height: 520px;
}

.admin-workspace .provider-config-form textarea[name="encryptedConfig"],
.admin-workspace .provider-config-form textarea[name="settings"],
.admin-workspace .provider-config-form textarea[name="rateLimit"] {
  height: 76px;
  min-height: 76px;
}

.admin-workspace .provider-health-panel .health-inline {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: #0f766e;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-workspace .provider-health-panel .health-inline.warning,
.admin-workspace .provider-health-panel .health-inline.inactive {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.admin-workspace .provider-health-panel .health-inline.unknown {
  border-color: rgba(100, 116, 139, 0.18);
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.admin-workspace .log-payload {
  min-width: 150px;
}

.admin-workspace .log-payload summary {
  cursor: pointer;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.admin-workspace .log-payload strong {
  display: block;
  margin-top: 8px;
  font-size: 11px;
}

.admin-workspace .log-payload pre {
  width: min(360px, 54vw);
  max-height: 180px;
  overflow: auto;
  margin: 5px 0 0;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-workspace .prompt-config-form textarea[name="templates"] {
  height: 340px;
  min-height: 340px;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 11px;
  line-height: 1.35;
}

.admin-workspace .prompt-usage-panel .workflow-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-workspace .prompt-usage-panel .workflow-step {
  min-height: 96px;
}

.admin-workspace .workflow-config-grid,
.admin-workspace .inspiration-config-grid,
.admin-workspace .queue-status-grid {
  align-items: start;
}

.admin-workspace .workflow-config-form textarea[name="templates"],
.admin-workspace .inspiration-config-form textarea[name="items"] {
  height: 340px;
  min-height: 340px;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 11px;
  line-height: 1.35;
}

.admin-workspace .workflow-template-panel .workflow-strip,
.admin-workspace .inspiration-preview-panel .tool-grid {
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.admin-workspace .workflow-template-panel .workflow-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-workspace .workflow-template-panel .workflow-step,
.admin-workspace .workflow-automation-panel .shot-card {
  min-height: 86px;
}

.admin-workspace .workflow-automation-panel .shot-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-workspace .inspiration-preview-panel .tool-card {
  min-height: 112px;
}

.admin-workspace .queue-count-panel .settings-preview,
.admin-workspace .queue-task-panel .settings-preview {
  max-height: 320px;
  overflow: auto;
}

.admin-workspace .queue-issue-panel .table-shell.compact {
  max-height: 360px;
  overflow: auto;
}

.admin-workspace .queue-issue-panel td {
  vertical-align: top;
}

.admin-workspace .queue-issue-panel td strong,
.admin-workspace .queue-issue-panel td span {
  display: block;
}

.admin-workspace .queue-issue-panel td strong {
  font-size: 12px;
}

.admin-workspace .queue-issue-panel td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-workspace .queue-issue-panel .row-actions {
  justify-content: flex-start;
}

.admin-workspace .status-badge.queue-priority-1 {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.admin-workspace .status-badge.queue-priority-2 {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.admin-workspace .status-badge.queue-priority-3 {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.admin-workspace .queue-advice-panel .tool-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-workspace .queue-advice-panel .tool-card {
  min-height: 128px;
}

.admin-workspace .order-detail-grid,
.admin-workspace .user-detail-info-grid,
.admin-workspace .user-detail-action-grid,
.admin-workspace .user-activity-grid,
.admin-workspace .task-detail-summary-grid,
.admin-workspace .task-json-grid,
.admin-workspace .task-result-grid {
  align-items: start;
}

.admin-workspace .order-status-action-form textarea[name="note"],
.admin-workspace .user-credit-adjust-form textarea[name="description"] {
  height: 66px;
  min-height: 66px;
}

.admin-workspace .order-ledger-panel .table-shell.compact,
.admin-workspace .order-history-panel .table-shell.compact,
.admin-workspace .order-callback-panel .table-shell.compact,
.admin-workspace .user-orders-panel .table-shell.compact,
.admin-workspace .user-ledger-panel .table-shell.compact,
.admin-workspace .user-tasks-panel .table-shell.compact,
.admin-workspace .user-api-keys-panel .table-shell.compact,
.admin-workspace .task-call-log-panel .table-shell.compact,
.admin-workspace .task-ledger-panel .table-shell.compact,
.admin-workspace .task-assets-panel .table-shell.compact {
  max-height: 340px;
}

.admin-workspace .user-detail-note-panel .code-block,
.admin-workspace .task-input-panel .code-block,
.admin-workspace .task-output-panel .code-block {
  max-height: 260px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-soft);
  padding: 9px;
  color: var(--admin-text);
  font-size: 11px;
  line-height: 1.45;
}

.admin-workspace .task-action-panel .row-actions,
.admin-workspace .user-risk-panel .row-actions {
  gap: 6px;
}

.toolbar,
.row-actions,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions form {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.pending {
  background: #fff3db;
  color: #9a620f;
}

.status-badge.running {
  background: #e7f1ff;
  color: #2465b6;
}

.status-badge.succeeded {
  background: #e8f6ef;
  color: var(--success);
}

.status-badge.failed,
.status-badge.canceled {
  background: #fdeceb;
  color: var(--danger);
}

.danger-text {
  color: var(--danger);
}

.muted-text {
  color: var(--muted);
}

.generation-live-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  font-size: 12px;
}

.generation-live-strip span {
  color: var(--muted);
}

.generation-live-strip strong {
  color: #1d4ed8;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  flex: 0 0 auto;
  animation: livePulse 1.4s ease-out infinite;
}

.task-row-active td {
  background: rgba(37, 99, 235, 0.04);
}

.generation-history-panel td strong,
.generation-history-panel td small {
  display: block;
}

.generation-history-panel td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

body.theme-midnight .generation-live-strip {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(14, 165, 233, 0.1);
  color: var(--text);
}

body.theme-midnight .generation-live-strip strong {
  color: #7dd3fc;
}

body.theme-midnight .task-row-active td {
  background: rgba(14, 165, 233, 0.08);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.tool-status.planned {
  background: var(--surface-muted);
  color: var(--muted);
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tool-admin-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tool-admin-group {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.tool-admin-group p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tool-admin-group span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--panel);
  padding: 4px 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.prompt-template-panel {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.prompt-template-panel > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.prompt-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-channel-form {
  gap: 16px;
}

.payment-channel-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
}

.payment-channel-card legend {
  padding: 0 6px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}

.tool-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}

.model-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
}

.model-hub-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
}

.user-workspace .model-hub-layout {
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 8px;
}

.user-workspace .model-filter-panel,
.user-workspace .creator-side-panel {
  top: 12px;
}

.user-workspace .model-filter-panel {
  padding: 9px;
}

.user-workspace .model-filter-panel .billing-note {
  margin-top: 8px;
  padding-top: 8px;
}

.user-workspace .category-tabs.vertical {
  gap: 5px;
  margin: 8px 0 0;
}

.user-workspace .category-tabs.vertical button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
}

.model-filter-panel,
.creator-side-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 700;
}

.category-tabs button.active,
.category-tabs button:hover {
  border-color: rgba(13, 155, 134, 0.35);
  background: var(--panel-strong);
  color: var(--accent-strong);
}

.category-tabs.vertical {
  display: grid;
  margin: 12px 0 0;
}

.category-tabs.vertical button {
  justify-content: space-between;
  width: 100%;
}

.category-tabs.vertical span {
  color: var(--muted);
  font-size: 12px;
}

.model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.model-list.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-workspace .model-list,
.user-workspace .model-list.large {
  gap: 8px;
}

.user-workspace .model-list.large {
  grid-template-columns: 1fr;
  max-height: 680px;
  overflow: auto;
  padding-right: 2px;
}

.model-item {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.user-workspace .model-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 86px;
  border-color: var(--dash-line);
  padding: 9px;
  box-shadow: none;
}

.user-workspace .model-item .model-select-button {
  grid-column: 1;
}

.user-workspace .model-item .tool-tags {
  grid-column: 1;
}

.user-workspace .model-item .shot-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-content: flex-end;
  max-width: 116px;
}

.model-item.selected {
  border-color: rgba(13, 155, 134, 0.56);
  background: #f6fffb;
  box-shadow: 0 0 0 3px rgba(13, 155, 134, 0.1);
}

.user-workspace .model-item.selected {
  border-color: #9ccfc7;
  background: var(--dash-soft);
  box-shadow: none;
}

.model-select-button {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.user-workspace .model-select-button {
  gap: 6px;
}

.model-item > div:first-child,
.model-select-button > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-item strong {
  overflow-wrap: anywhere;
}

.user-workspace .model-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.model-item > div:first-child span,
.model-select-button > div:first-child span {
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.user-workspace .model-item > div:first-child span,
.user-workspace .model-select-button > div:first-child span {
  background: #eef2f7;
  color: #475569;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}

.model-item p,
.announcement p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.user-workspace .model-item p,
.user-workspace .announcement p,
.user-workspace .selected-model-summary p {
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.4;
}

.selected-model-summary {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  border: 1px solid rgba(13, 155, 134, 0.28);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 12px;
  margin-bottom: 14px;
}

.user-workspace .selected-model-summary {
  gap: 5px;
  border-color: var(--dash-line);
  background: var(--dash-soft);
  padding: 9px;
  margin-bottom: 8px;
}

.user-workspace .creator-side-panel .form-panel {
  gap: 8px;
}

.user-workspace .creator-side-panel textarea {
  height: 72px;
  min-height: 72px;
}

.user-workspace .creator-side-panel .announcement-stack {
  max-height: 220px;
  margin-top: 8px;
  overflow: auto;
}

.user-workspace .creator-side-panel .announcement {
  gap: 4px;
  padding: 8px 0;
}

.selected-model-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.selected-model-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 20px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.announcement-panel {
  align-self: start;
}

.announcement-stack {
  margin-top: 14px;
}

.announcement {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.announcement:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.announcement span {
  color: var(--muted);
  font-size: 12px;
}

.form-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(13, 155, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 155, 134, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.form-status {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: var(--danger);
}

.reference-upload-box {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.reference-upload-box input[type="file"] {
  padding: 10px;
}

.reference-preview {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.reference-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.reference-preview span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.payment-box {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 14px;
}

.payment-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin: 0;
}

.payment-box dt {
  color: var(--muted);
  font-size: 12px;
}

.payment-box dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-box p,
.payment-box span,
.billing-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.payment-box span {
  overflow-wrap: anywhere;
}

.billing-note {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.profile-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.profile-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
}

.profile-list span {
  color: var(--muted);
  font-size: 13px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.55fr);
  grid-gap: 28px;
  gap: 28px;
  align-items: start;
  padding: 72px 0;
}

.auth-page h1 {
  margin: 10px 0 14px;
}

.auth-page p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.page .auth-page {
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.5fr);
  gap: 22px;
  padding: 48px 0;
}

.page .auth-page h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.page .auth-page p {
  font-size: 13px;
  line-height: 1.55;
}

.page .auth-card {
  border-radius: 8px;
  padding: 16px;
  box-shadow: none;
}

.page .auth-form {
  gap: 10px;
}

.page .auth-form label {
  gap: 5px;
  font-size: 12px;
}

.page .auth-form input {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}

.page .auth-switch {
  margin-top: 12px;
  font-size: 12px;
}

.page .api-docs-section {
  align-items: start;
}

.page .api-console {
  max-height: 520px;
  overflow: auto;
}

.page .api-console .code-block {
  font-size: 12px;
  line-height: 1.45;
}

.page .api-endpoint-table {
  max-height: 520px;
}

.page .api-guide-grid .feature-card {
  min-height: 188px;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-tile {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.user-workspace .asset-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.user-workspace .asset-library-panel .asset-grid {
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.user-workspace .asset-task-panel .table-shell.compact {
  max-height: 520px;
}

.user-workspace .account-profile-grid,
.user-workspace .account-security-grid,
.user-workspace .account-activity-grid,
.user-workspace .account-api-key-grid {
  align-items: start;
}

.user-workspace .notice-box.success {
  border-color: rgba(13, 155, 134, 0.28);
  background: #eef8f4;
}

.user-workspace .notice-box.error {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff1f2;
}

.user-workspace .account-profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-workspace .account-profile-form h2,
.user-workspace .account-profile-form label:first-of-type,
.user-workspace .account-profile-form .form-row,
.user-workspace .account-profile-form .button {
  grid-column: 1 / -1;
}

.user-workspace .account-projects-panel .table-shell.compact,
.user-workspace .account-api-panel .table-shell.compact,
.user-workspace .account-tasks-panel .table-shell.compact,
.user-workspace .account-api-key-list-panel .table-shell {
  max-height: 340px;
}

.user-workspace .account-api-key-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-workspace .account-api-key-form h2,
.user-workspace .account-api-key-form label:first-of-type,
.user-workspace .account-api-key-form .button {
  grid-column: 1 / -1;
}

.user-workspace .account-api-help-panel .profile-list div {
  min-height: 34px;
}

.asset-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.user-workspace .asset-card {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-color: var(--dash-line);
  min-height: 72px;
  padding: 8px;
  box-shadow: none;
}

.user-workspace .asset-card > div {
  min-width: 0;
}

.user-workspace .asset-card .shot-actions {
  justify-content: flex-end;
  min-width: 118px;
}

.asset-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.user-workspace .asset-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
}

.asset-card span {
  color: var(--muted);
  font-size: 12px;
}

.user-workspace .asset-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dash-muted);
  font-size: 11px;
}

.asset-source-link {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-source-link:hover {
  text-decoration: underline;
}

body.theme-midnight .asset-source-link {
  color: #7dd3fc;
}

.user-workspace .asset-preview {
  width: 96px;
  border-radius: 7px;
}

.asset-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  object-fit: cover;
}

.asset-preview-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 800;
}

.shot-board {
  gap: 10px;
}

.shot-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.shot-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent-2);
  font-weight: 800;
}

.shot-card > span img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.shot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shot-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shot-render-plan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.shot-render-plan > span {
  padding: 3px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}

.shot-render-plan > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-render-plan > small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.shot-render-plan.blocked {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
}

.shot-review-item,
.shot-asset-review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.shot-review-item {
  padding: 6px 0;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.shot-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shot-status.success {
  color: var(--success);
}

.shot-status.error {
  color: var(--danger);
}

.workspace-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.admin-workspace .table-shell td a:not(.button),
.user-workspace :is(.table-shell td a:not(.button), .form-panel p a:not(.button), .project-row p a, .production-card p a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 6px;
  padding: 0 7px;
}

.admin-workspace .table-shell td a:not(.button) {
  color: var(--admin-accent);
  font-weight: 750;
}

.user-workspace :is(.table-shell td a:not(.button), .form-panel p a:not(.button), .project-row p a, .production-card p a) {
  color: var(--dash-accent);
  font-weight: 750;
}

.user-workspace :is(.dashboard-command p, .ops-todo-item p, .production-card .pending, .scene-plan-strip span, .tool-card p, .asset-card strong, .asset-card span, .project-row.compact strong, .project-row.compact span, .activity-row strong, .activity-row span, .asset-mini-card strong, .asset-mini-card span) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guide-page {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  max-width: 1120px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 18px;
  gap: 18px;
  padding: 24px;
}

.guide-hero h2 {
  max-width: 820px;
  margin: 8px 0 8px;
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  letter-spacing: 0;
}

.guide-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.guide-downloads {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.guide-kpis article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
}

.guide-kpis span,
.guide-kpis p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.guide-kpis strong {
  display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.guide-kpis p {
  margin: 0;
}

.guide-doc {
  display: grid;
  grid-gap: 0;
  gap: 0;
  max-width: 980px;
  padding: 26px;
}

.guide-doc h1,
.guide-doc h2,
.guide-doc h3,
.guide-doc p,
.guide-doc li {
  overflow-wrap: anywhere;
}

.guide-doc h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.3;
}

.guide-doc h2 {
  margin: 24px 0 10px;
  padding-top: 2px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.guide-doc h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.guide-doc p,
.guide-doc li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}

.guide-doc p {
  margin: 0 0 10px;
}

.guide-doc ul,
.guide-doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.guide-doc li + li {
  margin-top: 4px;
}

.guide-doc pre {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

body.theme-midnight .user-workspace :is(.guide-hero, .guide-doc, .guide-kpis article) {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.88);
}

body.theme-midnight .user-workspace :is(.guide-hero h2, .guide-doc h1, .guide-doc h2, .guide-doc h3, .guide-kpis strong) {
  color: #e5edf6;
}

body.theme-midnight .user-workspace :is(.guide-hero p, .guide-doc p, .guide-doc li, .guide-kpis span, .guide-kpis p) {
  color: #9fb2c8;
}

body.theme-midnight .user-workspace .guide-doc pre {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(2, 6, 23, 0.86);
  color: #dbeafe;
}

@media (max-width: 860px) {
  .guide-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .guide-downloads {
    justify-content: flex-start;
  }

  .guide-kpis {
    grid-template-columns: 1fr;
  }

  .guide-doc {
    padding: 18px;
  }
}

@media (max-width: 860px) {
  .nav-inner,
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 42px;
  }

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

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .split-section,
  .pricing-grid,
  .metric-grid,
  .dashboard-grid,
  .creator-hero,
  .dashboard-command,
  .dashboard-kpis,
  .operator-grid,
  .production-flow,
  .model-workbench,
  .model-hub-layout,
  .workspace,
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .director-package-metrics,
  .director-brief-grid {
    grid-template-columns: 1fr;
  }

  .model-filter-panel,
  .creator-side-panel,
  .operator-side {
    position: relative;
    top: auto;
  }

  .workspace-sidebar {
    position: relative;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-main {
    padding: 18px;
  }

  .workspace-topbar {
    display: grid;
  }

  .form-row,
  .tool-grid,
  .model-list,
  .model-list.large,
  .asset-grid,
  .asset-mini-grid,
  .quick-action-grid,
  .production-summary,
  .result-grid,
  .payment-box dl {
    grid-template-columns: 1fr;
  }

  .activity-row,
  .asset-mini-card,
  .admin-alert-row,
  .admin-overview-row,
  .quick-action-card,
  .project-row {
    grid-template-columns: 1fr;
  }

  .activity-meta {
    justify-items: start;
  }

  .command-actions {
    justify-content: flex-start;
  }

  .tool-card-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .page .nav-inner {
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    min-height: auto;
    padding: 10px 0;
  }

  .page .nav-links {
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 2px;
  }

  .page .nav-links a,
  .page .theme-switcher {
    flex: 0 0 auto;
  }

  .theme-menu {
    right: auto;
    left: 0;
    width: min(280px, calc(100vw - 20px));
  }

  .page .hero,
  .page .auth-page {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 18px;
  }

  .page .hero h1,
  .page .auth-page h1 {
    font-size: clamp(26px, 9vw, 36px);
  }

  .page .landing-console {
    min-width: 0;
  }

  .page .scenario-grid,
  .page .workflow-strip,
  .page .pricing-grid,
  .page .grid,
  .page .feature-grid {
    grid-template-columns: 1fr;
  }

  .page .table-shell table {
    min-width: 720px;
  }

  .workspace.user-workspace,
  .workspace.admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-workspace .workspace-sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .user-workspace .workspace-sidebar {
    display: none;
  }

  .admin-workspace .workspace-sidebar {
    max-height: 360px;
    overflow-y: auto;
  }

  .user-workspace .workspace-main,
  .admin-workspace .workspace-main {
    padding: 12px;
  }

  .user-workspace .workspace-topbar,
  .admin-workspace .workspace-topbar {
    display: grid;
    grid-gap: 8px;
    gap: 8px;
    min-height: auto;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
  }

  .user-workspace .workspace-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 40;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    background: var(--bg);
  }

  body.theme-midnight .user-workspace .workspace-topbar {
    background: rgba(2, 6, 23, 0.96);
  }

  .user-workspace .workspace-topbar > div:first-of-type {
    min-width: 0;
  }

  .user-workspace .workspace-mobile-menu {
    display: block;
    position: relative;
    z-index: 45;
  }

  .user-workspace .workspace-mobile-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(288px, calc(100vw - 20px));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  }

  .user-workspace .workspace-mobile-nav-panel .workspace-nav {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .user-workspace .workspace-mobile-nav-panel .workspace-nav-group > div {
    grid-template-columns: 1fr;
  }

  .user-workspace .workspace-nav,
  .admin-workspace .workspace-nav,
  .admin-workspace .admin-nav-group .workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace .admin-nav-groups {
    gap: 6px;
  }

  .user-workspace .workspace-rail,
  .admin-workspace .workspace-rail {
    display: none;
  }

  .user-workspace .metric-grid,
  .admin-workspace .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-workspace .dashboard-grid,
  .admin-workspace .dashboard-grid,
  .user-workspace .operator-grid,
  .professional-dashboard .operator-grid,
  .admin-workspace .workflow-strip {
    grid-template-columns: 1fr;
  }

  .user-workspace .model-hub-layout {
    grid-template-columns: 1fr;
  }

  .user-workspace .model-item,
  .user-workspace .asset-card,
  .user-workspace .tool-card,
  .admin-workspace .tool-card {
    grid-template-columns: 1fr;
  }

  .user-workspace .model-item .shot-actions,
  .user-workspace .asset-card .shot-actions,
  .user-workspace .tool-card .button,
  .admin-workspace .tool-card .button,
  .admin-workspace .tool-card > a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    max-width: none;
  }

  .user-workspace .asset-preview {
    width: 100%;
    max-height: 180px;
  }

  .admin-workspace .settings-form,
  .admin-workspace .config-form,
  .admin-workspace .payment-channel-form,
  .admin-workspace .payment-manual-form,
  .admin-workspace .order-confirm-form,
  .admin-workspace .credit-adjust-form,
  .admin-workspace .api-key-create-form,
  .admin-workspace .api-log-filter-panel .form-row,
  .user-workspace .generation-form,
  .user-workspace .recharge-form,
  .user-workspace .redeem-form,
  .user-workspace .account-profile-form,
  .user-workspace .account-api-key-form {
    grid-template-columns: 1fr;
  }

  .admin-workspace .settings-form .form-row,
  .admin-workspace .config-form .form-row,
  .admin-workspace .payment-channel-card,
  .admin-workspace .payment-channel-card .form-row,
  .admin-workspace .payment-manual-form .form-row {
    grid-template-columns: 1fr;
  }

  .admin-workspace .settings-preview article {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-workspace .tools-preview-panel .tool-admin-list {
    grid-template-columns: 1fr;
  }

  .admin-workspace .api-key-rule-panel .tool-grid.compact {
    grid-template-columns: 1fr;
  }

  .admin-workspace .prompt-usage-panel .workflow-strip {
    grid-template-columns: 1fr;
  }

  .admin-workspace .workflow-template-panel .workflow-strip,
  .admin-workspace .workflow-automation-panel .shot-board,
  .admin-workspace .queue-advice-panel .tool-grid.compact {
    grid-template-columns: 1fr;
  }

  .admin-workspace table,
  .user-workspace table {
    min-width: 760px;
  }

  .user-workspace :is(.account-projects-panel, .account-api-panel, .account-tasks-panel) table {
    min-width: 560px;
  }

  .admin-workspace .admin-task-table table {
    min-width: 1120px;
  }
}

@media (max-width: 520px) {
  .page .brand span:last-child {
    overflow: hidden;
    max-width: 220px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page .actions,
  .topbar-actions,
  .row-actions,
  .toolbar,
  .shot-actions {
    align-items: stretch;
  }

  .page .actions .button,
  .auth-card .button,
  .user-workspace .topbar-actions .button,
  .admin-workspace .topbar-actions .button {
    width: 100%;
  }

  .user-workspace .metric-grid,
  .admin-workspace .metric-grid {
    grid-template-columns: 1fr;
  }

  .user-workspace .workspace-topbar {
    grid-template-columns: 1fr;
  }

  .user-workspace .workspace-mobile-menu {
    justify-self: start;
  }

  .user-workspace .workspace-mobile-nav-panel {
    width: min(300px, calc(100vw - 24px));
  }

  .user-workspace .workspace-nav,
  .admin-workspace .workspace-nav,
  .admin-workspace .admin-nav-group .workspace-nav {
    grid-template-columns: 1fr;
  }

  .user-workspace :is(.account-projects-panel, .account-api-panel, .account-tasks-panel) table {
    min-width: 480px;
  }

  .admin-workspace .workspace-nav a,
  .admin-workspace .workspace-rail a {
    min-height: 32px;
  }

  .admin-workspace .button.small {
    min-height: 32px;
  }

  .quick-action-card,
  .production-summary,
  .activity-row,
  .project-row,
  .asset-mini-card,
  .director-shot-draft {
    grid-template-columns: 1fr;
  }

  .admin-workspace .table-shell td a:not(.button),
  .user-workspace :is(.table-shell td a:not(.button), .form-panel p a:not(.button), .project-row p a, .production-card p a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 6px;
    padding: 0 7px;
  }

  .admin-workspace .table-shell td a:not(.button) {
    color: var(--admin-accent);
    font-weight: 750;
  }

  .user-workspace :is(.table-shell td a:not(.button), .form-panel p a:not(.button), .project-row p a, .production-card p a) {
    color: var(--dash-accent);
    font-weight: 750;
  }

  .user-workspace :is(.tool-card p, .asset-card strong, .asset-card span, .project-row.compact strong, .project-row.compact span, .activity-row strong, .activity-row span, .asset-mini-card strong, .asset-mini-card span) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .user-workspace :is(.form-panel, .studio-layout .form-panel) {
    grid-template-columns: 1fr;
  }

  .user-workspace :is(.form-row, .studio-layout .form-panel .form-row) {
    grid-template-columns: 1fr;
  }

  .user-workspace :is(.field-grid, .studio-layout .form-panel .field-grid) {
    grid-template-columns: 1fr;
  }

  .user-workspace .form-panel :is(input, textarea, select) {
    width: 100%;
    min-width: 0;
  }

  .user-workspace :is(.dashboard-command p, .ops-todo-item p, .production-card .pending, .scene-plan-strip span) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .user-workspace :is(.batch-preflight-list span, .shot-render-plan > strong) {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .professional-dashboard .dashboard-command {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-actions,
  .command-visual {
    justify-content: start;
  }

  .dashboard-live-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .command-visual {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .command-visual i {
    display: none;
  }

  .command-visual span {
    min-width: 0;
  }

  .dashboard-live-strip {
    grid-template-columns: 1fr;
  }
}

body.theme-midnight .user-workspace :is(h1, h2, h3, strong, label, td, dd) {
  color: #e5edf6;
}

body.theme-midnight .user-workspace :is(p, small, dt, th),
body.theme-midnight .user-workspace :is(.panel-head p, .activity-row span, .project-row span, .asset-mini-card span, .metric span, .metric p) {
  color: #9fb2c8;
}

body.theme-midnight .user-workspace :is(.quick-action-list, .quick-action-card, .activity-row, .project-row, .asset-mini-card, .profile-list, .profile-list div, .table-shell, .table-shell th, .table-shell td, .model-select-button, .selected-model-summary, .announcement, .payment-box, .billing-note, .prompt-template-panel, .reference-upload-box, .plan-summary-box, .notice-box) {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.88);
}

body.theme-midnight .user-workspace .notice-box {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(8, 13, 24, 0.92);
  color: #dbeafe;
}

body.theme-midnight .user-workspace .notice-box strong {
  color: #e5edf6;
}

body.theme-midnight .user-workspace .notice-box p {
  color: #9fb2c8;
}

body.theme-midnight .user-workspace .notice-box.success {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(20, 83, 45, 0.26);
}

body.theme-midnight .user-workspace .notice-box.success strong {
  color: #86efac;
}

body.theme-midnight .user-workspace .notice-box.error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.26);
}

body.theme-midnight .user-workspace .notice-box.error strong {
  color: #fecaca;
}

body.theme-midnight .user-workspace .brand-mark,
body.theme-midnight .workspace:has(.professional-dashboard) .brand-mark {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
}

body.theme-midnight .user-workspace :is(.button, .topbar-actions .button),
body.theme-midnight .workspace:has(.professional-dashboard) .button {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.84);
  color: #dbeafe;
}

body.theme-midnight .user-workspace :is(.button.primary, .topbar-actions .button.primary),
body.theme-midnight .workspace:has(.professional-dashboard) .button.primary {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
}

body.theme-midnight .user-workspace :is(.status-badge, .tool-tags span, .plan-limit-list span) {
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
}

body.theme-midnight .user-workspace :is(.status-badge.pending, .status-badge.running, .status-badge.succeeded, .status-badge.failed, .status-badge.canceled) {
  border: 1px solid rgba(125, 211, 252, 0.16);
}

body.theme-midnight .user-workspace .status-badge.pending {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(146, 64, 14, 0.24);
  color: #fde68a;
}

body.theme-midnight .user-workspace .status-badge.running {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(8, 47, 73, 0.92);
  color: #e0f2fe;
}

body.theme-midnight .user-workspace .status-badge.succeeded {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(22, 101, 52, 0.28);
  color: #dcfce7;
}

body.theme-midnight .user-workspace :is(.status-badge.failed, .status-badge.canceled) {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(159, 18, 57, 0.24);
  color: #fecdd3;
}

body.theme-midnight .user-workspace .category-tabs button {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(15, 23, 42, 0.82);
  color: #dbeafe;
}

body.theme-midnight .user-workspace .category-tabs button:hover,
body.theme-midnight .user-workspace .category-tabs button.active {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 165, 233, 0.16);
  color: #f8fafc;
}

body.theme-midnight .user-workspace .category-tabs button span {
  color: #9fb2c8;
}

body.theme-midnight .user-workspace .category-tabs button:hover span,
body.theme-midnight .user-workspace .category-tabs button.active span {
  color: #e0f2fe;
}

body.theme-midnight .user-workspace .model-select-button > div:first-child span,
body.theme-midnight .user-workspace .model-item > div:first-child span {
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
}

body.theme-midnight .theme-switcher :is(summary, summary strong, button, button strong) {
  color: #e5edf6;
}

body.theme-midnight .theme-switcher button small {
  color: #9fb2c8;
}

body.theme-midnight .admin-workspace :is(h1, h2, h3, strong, label, td, dd) {
  color: #e5edf6;
}

body.theme-midnight .admin-workspace :is(p, small, dt, th, .eyebrow, .panel-head p, .metric span, .metric p) {
  color: #9fb2c8;
}

body.theme-midnight .admin-workspace :is(.panel, .metric, .table-shell, .table-shell th, .table-shell td, .settings-preview article, .tool-card, .payment-channel-card, .workflow-strip article, .shot-card, .admin-alert-row, .admin-overview-row) {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.88);
}

body.theme-midnight .admin-workspace :is(input, textarea, select) {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #e5edf6;
}

body.theme-midnight .admin-workspace :is(.button, .topbar-actions .button) {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.84);
  color: #dbeafe;
}

body.theme-midnight .admin-workspace :is(.button.primary, .topbar-actions .button.primary) {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
}

body.theme-midnight .admin-workspace :is(.admin-alert-row, .admin-overview-row) {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.88);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.theme-midnight .admin-workspace :is(.admin-alert-row, .admin-overview-row):hover {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.94);
}

body.theme-midnight .admin-workspace :is(.admin-alert-row, .admin-overview-row) strong {
  color: #e5edf6;
}

body.theme-midnight .admin-workspace :is(.admin-alert-row, .admin-overview-row) p {
  color: #9fb2c8;
}

body.theme-midnight .admin-workspace .admin-alert-row > span,
body.theme-midnight .admin-workspace .priority-badge {
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(15, 23, 42, 0.92);
  color: #dbeafe;
}

body.theme-midnight .admin-workspace :is(.admin-alert-row.alert-高 > span, .priority-高) {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(159, 18, 57, 0.26);
  color: #fecdd3;
}

body.theme-midnight .admin-workspace :is(.admin-alert-row.alert-中 > span, .priority-中) {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(146, 64, 14, 0.26);
  color: #fde68a;
}

body.theme-midnight .admin-workspace :is(.admin-alert-row.alert-低 > span, .priority-低) {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(30, 64, 175, 0.24);
  color: #bfdbfe;
}

body.theme-midnight .admin-workspace .provider-health-panel .health-inline {
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(20, 184, 166, 0.14);
  color: #99f6e4;
}

body.theme-midnight .admin-workspace .provider-health-panel .health-inline.warning,
body.theme-midnight .admin-workspace .provider-health-panel .health-inline.inactive {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(146, 64, 14, 0.22);
  color: #fde68a;
}

body.theme-midnight .admin-workspace .provider-health-panel .health-inline.unknown {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
}

body.theme-midnight .admin-workspace .log-payload summary {
  color: #99f6e4;
}

body.theme-midnight .admin-workspace .log-payload pre {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(2, 6, 23, 0.86);
  color: #dbeafe;
}

body.theme-midnight .admin-workspace {
  --admin-line: rgba(125, 211, 252, 0.16);
  --admin-muted: #9fb2c8;
  --admin-text: #e5edf6;
  --admin-soft: rgba(15, 23, 42, 0.72);
  --admin-hover: rgba(30, 41, 59, 0.78);
  --admin-accent: #38bdf8;
  background: #050814;
  color: var(--admin-text);
}

body.theme-midnight .admin-workspace .workspace-main {
  background: #050814;
}

body.theme-midnight .admin-workspace .workspace-sidebar {
  border-right-color: rgba(125, 211, 252, 0.14);
  background: #070d18;
  color: #dbeafe;
  box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.92);
}

body.theme-midnight .admin-workspace .workspace-topbar {
  border-bottom-color: rgba(125, 211, 252, 0.14);
  background: rgba(7, 13, 24, 0.94);
  color: #e5edf6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

body.theme-midnight .admin-workspace .workspace-brand {
  border-bottom-color: rgba(125, 211, 252, 0.12);
}

body.theme-midnight .admin-workspace .brand-mark {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
}

body.theme-midnight .admin-workspace .workspace-brand strong,
body.theme-midnight .admin-workspace .workspace-topbar h1 {
  color: #f8fafc;
}

body.theme-midnight .admin-workspace .workspace-brand small,
body.theme-midnight .admin-workspace .workspace-rail > span {
  color: #8ea1b8;
}

body.theme-midnight .admin-workspace .admin-nav-group summary {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #9fb2c8;
}

body.theme-midnight .admin-workspace .admin-nav-group[open] summary {
  color: #dbeafe;
}

body.theme-midnight .admin-workspace .admin-nav-group summary:hover {
  border-color: rgba(125, 211, 252, 0.12);
  background: rgba(15, 23, 42, 0.72);
}

body.theme-midnight .admin-workspace .workspace-nav a,
body.theme-midnight .admin-workspace .workspace-rail a {
  border-color: transparent;
  color: #b6c6da;
}

body.theme-midnight .admin-workspace .workspace-nav a:hover,
body.theme-midnight .admin-workspace .workspace-rail a:hover {
  border-color: rgba(125, 211, 252, 0.18);
  background: #101827;
  color: #f8fafc;
}

body.theme-midnight .admin-workspace .workspace-nav a[aria-current="page"],
body.theme-midnight .admin-workspace .workspace-rail a[aria-current="page"] {
  border-color: rgba(56, 189, 248, 0.34);
  background: #0f2638;
  color: #f8fafc;
}

body.theme-midnight .admin-workspace .workspace-rail {
  border-top-color: rgba(125, 211, 252, 0.12);
}

body.theme-midnight .admin-workspace :is(.table-shell th, th) {
  background: rgba(15, 23, 42, 0.92);
  color: #b6c6da;
}

body.theme-midnight .admin-workspace :is(td span, td small, .settings-preview span, .settings-preview p, .form-status) {
  color: #9fb2c8;
}

body.theme-midnight .admin-workspace :is(.toolbar, .check-row, .notice-box, .payment-box, .billing-note, .plan-summary-box, .prompt-template-panel, .code-block) {
  border-color: rgba(125, 211, 252, 0.14);
  background: rgba(8, 13, 24, 0.78);
  color: #e5edf6;
}

body.theme-midnight .admin-workspace .theme-switcher summary,
body.theme-midnight .admin-workspace .theme-menu {
  border-color: rgba(125, 211, 252, 0.16);
  background: rgba(8, 13, 24, 0.98);
  color: #e5edf6;
}

body.theme-midnight .admin-workspace .theme-menu button:hover,
body.theme-midnight .admin-workspace .theme-menu button.active {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.92);
}

body.theme-midnight .admin-workspace :is(.status-badge, .tool-status, .priority-badge) {
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
}

body.theme-midnight .admin-workspace :is(.status-badge.pending, .tool-status.building) {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(146, 64, 14, 0.22);
  color: #fde68a;
}

body.theme-midnight .admin-workspace .status-badge.running {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(8, 47, 73, 0.92);
  color: #e0f2fe;
}

body.theme-midnight .admin-workspace .status-badge.succeeded {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(22, 101, 52, 0.24);
  color: #bbf7d0;
}

body.theme-midnight .admin-workspace :is(.status-badge.failed, .status-badge.canceled) {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(159, 18, 57, 0.24);
  color: #fecdd3;
}

.cinema-home {
  --home-bg: #02040a;
  --home-panel: rgba(7, 12, 24, 0.88);
  --home-panel-strong: rgba(10, 18, 34, 0.96);
  --home-line: rgba(125, 211, 252, 0.18);
  --home-line-strong: rgba(125, 211, 252, 0.34);
  --home-text: #f8fafc;
  --home-muted: #9fb2c8;
  --home-soft: #c7d2fe;
  --home-cyan: #38bdf8;
  --home-green: #34d399;
  --home-amber: #f59e0b;
  --home-rose: #fb7185;
  --home-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(56, 189, 248, 0.16), transparent 30%),
    radial-gradient(circle at 16% 18%, rgba(52, 211, 153, 0.1), transparent 28%),
    linear-gradient(180deg, #02040a 0%, #050814 46%, #02040a 100%);
  color: var(--home-text);
}

.cinema-home::before,
.cinema-home::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.cinema-home::before {
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.cinema-home::after {
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(56, 189, 248, 0.08) 26%, transparent 46%),
    linear-gradient(245deg, transparent 4%, rgba(52, 211, 153, 0.06) 34%, transparent 58%);
  animation: homeAmbientSweep 16s ease-in-out infinite alternate;
}

.cinema-home .nav {
  border-bottom-color: rgba(125, 211, 252, 0.14);
  background: rgba(2, 6, 18, 0.82);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.cinema-home .brand,
.cinema-home .nav-links a,
.cinema-home .nav-links .nav-action-button,
.cinema-home .theme-switcher {
  color: #dbeafe;
}

.cinema-home .brand-mark {
  border-color: rgba(56, 189, 248, 0.36);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(52, 211, 153, 0.16)),
    rgba(15, 23, 42, 0.9);
  color: #e0f2fe;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
}

.cinema-home .nav-links a:hover,
.cinema-home .nav-links a[aria-current="page"],
.cinema-home .nav-links .nav-action-button:hover {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
}

.cinema-home .theme-switcher summary,
.cinema-home .theme-menu {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(7, 12, 24, 0.98);
  color: #dbeafe;
}

.cinema-home .theme-switcher summary strong,
.cinema-home .theme-menu button,
.cinema-home .theme-menu button strong {
  color: #f8fafc;
}

.cinema-home .theme-menu button small {
  color: var(--home-muted);
}

.cinema-home .theme-menu button:hover,
.cinema-home .theme-menu button.active {
  border-color: rgba(56, 189, 248, 0.26);
  background: rgba(15, 23, 42, 0.94);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 34px;
}

.home-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.home-orbit span {
  position: absolute;
  right: 2%;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.28), transparent);
  transform: rotate(-18deg);
  animation: homeSignalLine 9s linear infinite;
}

.home-orbit span:nth-child(1) {
  top: 20%;
}

.home-orbit span:nth-child(2) {
  top: 48%;
  animation-delay: -3s;
}

.home-orbit span:nth-child(3) {
  top: 72%;
  animation-delay: -6s;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  grid-gap: 34px;
  gap: 34px;
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  padding: 0 12px;
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.cinema-home .home-hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.cinema-home .home-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.72;
}

.cinema-home .button {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(15, 23, 42, 0.86);
  color: #dbeafe;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cinema-home .button:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(14, 165, 233, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.cinema-home .button.primary,
.cinema-home .home-primary-action {
  border-color: rgba(56, 189, 248, 0.56);
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.28);
}

.cinema-home .button.primary:hover {
  border-color: rgba(186, 230, 253, 0.72);
  background: linear-gradient(135deg, #0ea5e9, #0d9488);
  color: #ffffff;
}

body.theme-midnight .cinema-home .button:not(.primary) {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(15, 23, 42, 0.86);
  color: #dbeafe;
}

body.theme-midnight .cinema-home .button:not(.primary):hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(14, 165, 233, 0.16);
  color: #ffffff;
}

body.theme-midnight .cinema-home .button.primary,
body.theme-midnight .cinema-home .home-primary-action {
  border-color: rgba(56, 189, 248, 0.56);
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.28);
}

body.theme-midnight .cinema-home .button.primary:hover,
body.theme-midnight .cinema-home .home-primary-action:hover {
  border-color: rgba(186, 230, 253, 0.72);
  background: linear-gradient(135deg, #0ea5e9, #0d9488);
  color: #ffffff;
}

.home-actions {
  margin-top: 24px;
}

.home-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-top: 28px;
}

.home-stat {
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(7, 12, 24, 0.74);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-stat strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.home-stat span {
  display: block;
  margin-top: 8px;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
}

.home-stat p {
  margin: 5px 0 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 18, 0.96)),
    var(--home-panel);
  padding: 14px;
  box-shadow: var(--home-shadow);
}

.home-stage::before {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(125, 211, 252, 0.18) 34%, transparent 58%);
  opacity: 0.78;
  transform: translateX(-68%);
  animation: homePanelSheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.home-stage > * {
  position: relative;
  z-index: 1;
}

.home-stage-top,
.home-queue-head,
.home-live-grid,
.home-render-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-stage-top {
  min-height: 46px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  margin: -2px 0 12px;
  padding-bottom: 12px;
}

.home-stage-top span,
.home-queue-head,
.home-live-metric span {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-stage-top strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 16px;
}

.home-stage-top em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.12);
  padding: 0 9px;
  color: #99f6e4;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.home-stage-top em::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--home-green);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.72);
  content: "";
  animation: homeStatusPulse 1.9s ease-in-out infinite;
}

.home-render-window {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 18, 0.9);
}

.home-render-toolbar {
  justify-content: flex-start;
  gap: 6px;
  height: 34px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  padding: 0 12px;
}

.home-render-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.home-render-toolbar span:nth-child(1) {
  background: var(--home-rose);
}

.home-render-toolbar span:nth-child(2) {
  background: var(--home-amber);
}

.home-render-toolbar span:nth-child(3) {
  background: var(--home-green);
}

.home-render-canvas {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 24%, rgba(14, 165, 233, 0.2), transparent 32%),
    linear-gradient(135deg, #08111f, #030712 62%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  animation: homeGridFlow 18s linear infinite;
}

.home-render-canvas::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 18, 0.2) 46%, rgba(2, 6, 18, 0.76));
  content: "";
  pointer-events: none;
}

.home-preview-frame {
  position: absolute;
  z-index: 1;
  display: grid;
  align-content: end;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 18, 0.82) 100%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(20, 184, 166, 0.26));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  animation: homeFrameFloat 7s ease-in-out infinite;
}

.home-preview-frame::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 38%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  content: "";
  opacity: 0.5;
}

.home-preview-frame span,
.home-preview-frame strong {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-preview-frame span {
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
}

.home-preview-frame strong {
  margin-top: 5px;
  font-size: 15px;
}

.frame-a {
  top: 28px;
  left: 24px;
  width: 54%;
  height: 54%;
}

.frame-b {
  right: 28px;
  bottom: 34px;
  width: 48%;
  height: 50%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 18, 0.82) 100%),
    linear-gradient(135deg, rgba(250, 204, 21, 0.34), rgba(251, 113, 133, 0.32));
  animation-delay: -2s;
}

.frame-c {
  right: 60px;
  top: 52px;
  width: 32%;
  height: 34%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 18, 0.82) 100%),
    linear-gradient(135deg, rgba(52, 211, 153, 0.4), rgba(59, 130, 246, 0.28));
  animation-delay: -4s;
}

.home-scanline {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.9), transparent);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.52);
  animation: homeScanline 3.4s ease-in-out infinite;
}

.home-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}

.home-live-metric {
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px;
}

.home-live-metric strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.home-queue {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  margin-top: 10px;
  background: rgba(2, 6, 18, 0.48);
}

.home-queue-head {
  min-height: 36px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  padding: 0 10px;
}

.home-shot-list {
  gap: 7px;
  padding: 8px;
}

.home-shot {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 54px;
  border-color: rgba(125, 211, 252, 0.13);
  background: rgba(15, 23, 42, 0.74);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.home-shot:hover {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.94);
  transform: translateY(-1px);
}

.home-shot strong {
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shot span {
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.35;
}

.home-shot .status {
  color: #fde68a;
  font-weight: 800;
}

.home-thumb {
  width: 44px;
  height: 32px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(52, 211, 153, 0.28)),
    #0f172a;
}

.home-thumb.tone-2 {
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.5), rgba(250, 204, 21, 0.3)),
    #0f172a;
}

.home-thumb.tone-3 {
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.48), rgba(59, 130, 246, 0.32)),
    #0f172a;
}

.home-notice {
  margin-top: 18px;
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(7, 12, 24, 0.86);
  color: #e5edf6;
}

.home-notice p,
.home-notice strong {
  color: #e5edf6;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.cinema-home .section {
  padding: 34px 0;
}

.cinema-home .section h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
}

.cinema-home .section-copy {
  max-width: 520px;
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.68;
}

.home-workflow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-workflow-step,
.home-tool-step,
.home-scenario-card,
.home-capability-card {
  border-color: rgba(125, 211, 252, 0.15);
  background: rgba(7, 12, 24, 0.78);
  color: #e5edf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-workflow-step {
  position: relative;
  overflow: hidden;
  min-height: 116px;
}

.home-workflow-step span {
  color: #7dd3fc;
}

.home-workflow-step strong,
.home-tool-step strong,
.home-scenario-card strong,
.home-capability-card h3 {
  color: #f8fafc;
}

.home-workflow-step i {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.14);
}

.home-workflow-step i::before {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-cyan), var(--home-green));
  content: "";
  animation: homeProgressRun 3.2s ease-in-out infinite;
}

.home-scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-scenario-card {
  position: relative;
  min-height: 206px;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.home-scenario-card::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-cyan), transparent);
  content: "";
  opacity: 0.78;
}

.home-scenario-card svg,
.home-tool-step svg,
.home-capability-card svg {
  color: #7dd3fc;
}

.home-scenario-card p,
.home-capability-card p {
  color: var(--home-muted);
}

.home-scenario-card span {
  color: #99f6e4;
}

.home-scenario-card:hover {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(15, 23, 42, 0.92);
  transform: translateY(-3px);
}

.home-tool-strip {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.home-tool-step {
  display: grid;
  min-height: 98px;
  place-items: center;
  grid-gap: 9px;
  gap: 9px;
  text-align: center;
}

.home-tool-step strong {
  margin: 0;
  font-size: 13px;
}

.home-capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-capability-card {
  min-height: 188px;
  border-radius: 8px;
  padding: 18px;
}

.home-capability-card h3 {
  margin-top: 14px;
}

.home-small-action {
  flex: 0 0 auto;
}

body.theme-midnight .cinema-home :is(.home-workflow-step, .home-tool-step, .home-scenario-card, .home-capability-card, .home-shot) {
  border-color: rgba(125, 211, 252, 0.15);
  background: rgba(7, 12, 24, 0.78);
  color: #e5edf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-midnight .cinema-home :is(.home-workflow-step strong, .home-tool-step strong, .home-scenario-card strong, .home-capability-card h3, .home-shot strong) {
  color: #f8fafc;
}

body.theme-midnight .cinema-home :is(.home-workflow-step p, .home-tool-step p, .home-scenario-card p, .home-capability-card p, .home-shot span) {
  color: var(--home-muted);
}

body.theme-midnight .cinema-home .home-workflow-step span,
body.theme-midnight .cinema-home .home-scenario-card svg,
body.theme-midnight .cinema-home .home-tool-step svg,
body.theme-midnight .cinema-home .home-capability-card svg {
  color: #7dd3fc;
}

body.theme-midnight .cinema-home .home-scenario-card span {
  color: #99f6e4;
}

body.theme-midnight .cinema-home .home-shot .status {
  color: #fde68a;
}

@keyframes homeAmbientSweep {
  from {
    transform: translate3d(-2%, 0, 0);
    opacity: 0.62;
  }

  to {
    transform: translate3d(3%, -1%, 0);
    opacity: 0.92;
  }
}

@keyframes homeSignalLine {
  from {
    transform: translateX(0) rotate(-18deg);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  to {
    transform: translateX(-180%) rotate(-18deg);
    opacity: 0;
  }
}

@keyframes homePanelSheen {
  0%,
  42% {
    transform: translateX(-72%);
  }

  78%,
  100% {
    transform: translateX(72%);
  }
}

@keyframes homeStatusPulse {
  0%,
  100% {
    transform: scale(0.84);
    opacity: 0.68;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes homeGridFlow {
  from {
    background-position: 0 0, 0 0, center, center;
  }

  to {
    background-position: 56px 56px, 56px 56px, center, center;
  }
}

@keyframes homeFrameFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes homeScanline {
  from {
    top: 8%;
    opacity: 0;
  }

  18%,
  72% {
    opacity: 1;
  }

  to {
    top: 92%;
    opacity: 0;
  }
}

@keyframes homeProgressRun {
  0% {
    transform: translateX(-115%);
  }

  55%,
  100% {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-home *,
  .cinema-home *::before,
  .cinema-home *::after {
    scroll-behavior: auto;
    animation-duration: 1ms;
    animation-iteration-count: 1;
    transition-duration: 1ms;
  }
}

@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cinema-home .home-hero-copy h1 {
    max-width: 860px;
    font-size: 46px;
  }

  .home-stage {
    max-width: 760px;
  }

  .home-tool-strip,
  .home-capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-hero {
    padding: 28px 0 24px;
  }

  .cinema-home .home-hero-copy h1 {
    font-size: 38px;
  }

  .cinema-home .home-hero-copy p {
    font-size: 14px;
  }

  .home-workflow-strip,
  .home-scenario-grid,
  .home-capability-grid {
    grid-template-columns: 1fr;
  }

  .home-tool-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-section-head {
    display: grid;
    align-items: start;
    grid-gap: 10px;
    gap: 10px;
  }

  .cinema-home .section h2 {
    font-size: 26px;
  }

  .home-render-canvas {
    min-height: 230px;
  }

  .home-stage {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .cinema-home .home-hero-copy h1 {
    font-size: 32px;
  }

  .home-eyebrow {
    align-items: flex-start;
    height: auto;
    min-height: 34px;
    padding: 8px 10px;
    line-height: 1.35;
  }

  .home-stage {
    padding: 10px;
  }

  .home-stat-strip {
    gap: 7px;
  }

  .home-stat {
    padding: 10px 8px;
  }

  .home-stat strong {
    font-size: 22px;
  }

  .home-stat span {
    font-size: 11px;
  }

  .home-stat p {
    font-size: 10px;
    line-height: 1.38;
  }

  .home-stage-top {
    display: flex;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .home-queue-head {
    display: flex;
    gap: 8px;
    min-height: 32px;
    padding: 0 8px;
  }

  .home-stage-top em {
    flex: 0 0 auto;
  }

  .home-render-toolbar {
    height: 28px;
    padding: 0 9px;
  }

  .home-render-canvas {
    min-height: 190px;
  }

  .home-preview-frame {
    padding: 8px;
  }

  .home-preview-frame span {
    font-size: 10px;
  }

  .home-preview-frame strong {
    font-size: 12px;
  }

  .frame-a {
    left: 12px;
    width: 62%;
  }

  .frame-b {
    right: 12px;
    width: 58%;
  }

  .frame-c {
    top: 46px;
    right: 28px;
    width: 42%;
  }

  .home-live-grid {
    gap: 6px;
  }

  .home-live-metric {
    padding: 8px 7px;
  }

  .home-live-metric span {
    font-size: 10px;
  }

  .home-live-metric strong {
    font-size: 16px;
  }

  .home-shot-list {
    gap: 6px;
    padding: 7px;
  }

  .home-shot {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 46px;
    gap: 8px;
    padding: 7px;
  }

  .home-thumb {
    width: 36px;
    height: 28px;
  }

  .home-shot .status {
    grid-column: auto;
    font-size: 10px;
  }

  .home-tool-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tool-step {
    min-height: 78px;
    gap: 6px;
    padding: 10px;
  }
}

.creative-canvas-workbench {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  min-height: calc(100vh - 150px);
}

.creative-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  box-shadow: var(--shadow);
}

.creative-canvas-toolbar > div:first-child {
  display: grid;
  min-width: 0;
  grid-gap: 3px;
  gap: 3px;
}

.canvas-title-block small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creative-canvas-toolbar span,
.canvas-panel-head span,
.canvas-save-status span,
.canvas-muted-note,
.canvas-inspector-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.creative-canvas-toolbar strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creative-canvas-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.canvas-run-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  grid-gap: 7px;
  gap: 7px;
  min-width: min(520px, 42vw);
}

.canvas-run-strip article {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 6px;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 0 9px;
}

.canvas-run-strip article svg {
  color: var(--accent);
}

.canvas-run-strip article span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-run-strip article strong {
  color: var(--text);
  font-size: 13px;
}

.canvas-zoom-value {
  display: inline-grid;
  min-width: 48px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.creative-canvas-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 320px;
  grid-gap: 12px;
  gap: 12px;
  min-height: 680px;
}

.creative-canvas-palette,
.creative-canvas-inspector {
  display: grid;
  align-content: start;
  grid-gap: 12px;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  box-shadow: var(--shadow);
}

.canvas-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.canvas-panel-head strong {
  color: var(--text);
  font-size: 13px;
}

.canvas-operator-panel {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    var(--surface-muted);
  padding: 10px;
}

.canvas-operator-panel > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.canvas-operator-panel strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.canvas-operator-panel small,
.canvas-node-section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.canvas-readiness-card {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.canvas-readiness-card.ready {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.canvas-readiness-card.warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.canvas-readiness-card.danger {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
}

.canvas-readiness-card > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 7px;
  gap: 7px;
}

.canvas-readiness-card svg {
  color: var(--accent);
}

.canvas-readiness-card span,
.canvas-readiness-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.canvas-readiness-card strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1;
}

.canvas-node-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  grid-gap: 7px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 0 9px;
}

.canvas-node-search input {
  min-height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 12px;
  outline: 0;
}

.canvas-node-search svg {
  color: var(--muted);
}

.canvas-search-results {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.canvas-search-results button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-gap: 7px;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 0 8px;
  text-align: left;
  cursor: pointer;
}

.canvas-search-results button:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted));
}

.canvas-search-results span,
.canvas-search-results small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.canvas-search-results strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node-type-list,
.canvas-workflow-preset-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.canvas-node-type-list button,
.canvas-workflow-preset-list button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 18px;
  align-items: center;
  grid-gap: 9px;
  gap: 9px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.canvas-node-type-list button:hover,
.canvas-workflow-preset-list button:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted));
}

.canvas-node-type-list i,
.canvas-workflow-preset-list i {
  width: 8px;
  height: 32px;
  border-radius: 999px;
}

.canvas-node-type-list strong,
.canvas-node-type-list small,
.canvas-workflow-preset-list strong,
.canvas-workflow-preset-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node-type-list strong,
.canvas-workflow-preset-list strong {
  font-size: 13px;
}

.canvas-node-type-list small,
.canvas-workflow-preset-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.canvas-save-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 9px;
}

.canvas-save-status.saved {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.canvas-save-status.error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.canvas-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 7px;
  gap: 7px;
}

.canvas-stat-grid article {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 9px;
}

.canvas-stat-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.canvas-stat-grid strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
}

.creative-canvas-stage {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(var(--surface-muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-muted) 1px, transparent 1px),
    var(--panel-strong);
  background-size: 48px 48px;
  cursor: -webkit-grab;
  cursor: grab;
  touch-action: none;
}

.creative-canvas-stage:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.canvas-stage-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: min(520px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: 8px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.canvas-stage-hud > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.canvas-stage-hud span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-stage-hud strong {
  min-height: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.creative-canvas-plane {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.creative-canvas-edges {
  position: absolute;
  top: -5000px;
  left: -5000px;
  width: 10000px;
  height: 10000px;
  overflow: visible;
  pointer-events: none;
}

.creative-canvas-edges path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 56%, var(--line));
  stroke-linecap: round;
  stroke-width: 2.5;
}

.creative-canvas-edges text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--panel-strong);
  stroke-width: 4;
}

.creative-canvas-node {
  position: absolute;
  display: grid;
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--node-accent) 42%, var(--line));
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  color: var(--text);
  cursor: move;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.creative-canvas-node.status-pending,
.creative-canvas-node.status-running {
  animation: canvas-node-pulse 1.8s ease-in-out infinite;
}

.creative-canvas-node::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--node-accent);
  content: "";
}

.canvas-node-port {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--node-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--node-accent) 18%, transparent);
  transform: translateY(-50%);
}

.canvas-node-port.input {
  left: -7px;
}

.canvas-node-port.output {
  right: -7px;
}

.creative-canvas-node.selected {
  outline: 3px solid color-mix(in srgb, var(--node-accent) 24%, transparent);
}

.creative-canvas-node.active {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--node-accent) 42%, transparent),
    0 18px 46px rgba(15, 23, 42, 0.16);
}

.creative-canvas-node[data-selected="true"]::after {
  position: absolute;
  top: 8px;
  right: 44px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--node-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--node-accent) 70%, transparent);
  content: "";
}

.creative-canvas-node.connecting {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node-accent) 22%, transparent);
}

.creative-canvas-node header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.creative-canvas-node header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.creative-canvas-node header span i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--node-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--node-accent) 70%, transparent);
}

.creative-canvas-node.status-succeeded header span i {
  background: #22c55e;
}

.creative-canvas-node.status-failed header span i {
  background: #ef4444;
}

.creative-canvas-node.status-pending header span i,
.creative-canvas-node.status-running header span i {
  background: #f59e0b;
}

.creative-canvas-node header button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
}

.creative-canvas-node strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.creative-canvas-node p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.canvas-node-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 68px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--node-accent) 22%, var(--line));
  border-radius: 7px;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.84)),
    var(--surface-muted);
  background-position: center;
  background-size: cover;
  padding: 8px;
  color: #ffffff;
}

.canvas-node-preview span {
  font-size: 11px;
  font-weight: 850;
}

.creative-canvas-node footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--node-accent) 14%, var(--line));
  padding-top: 8px;
}

.creative-canvas-node footer small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node-task {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 22px;
  border: 1px solid color-mix(in srgb, var(--node-accent) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--node-accent) 10%, transparent);
  color: var(--text);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.canvas-crosshair {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.canvas-minimap {
  position: absolute;
  right: 12px;
  bottom: 56px;
  z-index: 4;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  width: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: 9px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.canvas-minimap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.canvas-minimap-head strong {
  color: var(--text);
  font-size: 11px;
}

.canvas-minimap-plane {
  position: relative;
  overflow: hidden;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--panel-strong) 88%, #000000);
  background-size: 18px 18px;
}

.canvas-minimap-plane i {
  position: absolute;
  min-width: 5px;
  min-height: 5px;
  border-radius: 2px;
  opacity: 0.72;
}

.canvas-minimap-plane i.selected {
  outline: 2px solid #ffffff;
  opacity: 1;
}

.canvas-generation-panel {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.canvas-generation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.canvas-generation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.canvas-generation-status,
.canvas-task-chip,
.canvas-generated-assets {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 9px;
}

.canvas-generation-status span,
.canvas-task-chip span,
.canvas-task-chip small,
.canvas-generated-assets span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.canvas-generation-status.submitted {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.canvas-generation-status.error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
}

.canvas-generation-status small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.canvas-task-chip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-generated-assets a {
  overflow: hidden;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-selected-summary {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 7px;
  gap: 7px;
}

.canvas-selected-summary > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 7px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 8px;
}

.canvas-selected-summary svg {
  color: var(--accent);
}

.canvas-selected-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-selected-summary strong {
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.canvas-node-parameter-panel {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.canvas-node-parameter-panel.status-ready {
  border-color: rgba(34, 197, 94, 0.26);
}

.canvas-node-parameter-panel.status-warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.canvas-node-parameter-panel.status-blocked {
  border-color: rgba(248, 113, 113, 0.3);
}

.canvas-node-parameter-panel p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.canvas-node-preset-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-node-preset-list button {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: 7px;
  text-align: left;
}

.canvas-node-preset-list button:hover,
.canvas-node-preset-list button.active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.canvas-node-preset-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node-preset-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node-parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-node-parameter-grid article {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 7px;
}

.canvas-node-parameter-grid article.status-missing {
  border-color: rgba(248, 113, 113, 0.28);
}

.canvas-node-parameter-grid article.status-warning {
  border-color: rgba(245, 158, 11, 0.28);
}

.canvas-node-parameter-grid span,
.canvas-node-prompt-preview span,
.canvas-node-parameter-issues small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.canvas-node-parameter-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node-prompt-preview {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px;
}

.canvas-node-prompt-preview small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.canvas-node-parameter-issues {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  padding: 8px;
}

.canvas-production-checklist {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.canvas-production-checklist .canvas-panel-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.canvas-batch-preflight {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
    var(--panel);
  padding: 9px;
}

.canvas-batch-preflight > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.canvas-batch-preflight span,
.canvas-batch-preflight small,
.canvas-production-actions span,
.canvas-batch-blockers small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.canvas-batch-preflight strong {
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.canvas-batch-preflight.status-ready {
  border-color: rgba(34, 197, 94, 0.28);
}

.canvas-batch-preflight.status-partial {
  border-color: rgba(245, 158, 11, 0.3);
}

.canvas-batch-preflight.status-blocked,
.canvas-batch-preflight.status-empty {
  border-color: rgba(248, 113, 113, 0.28);
}

.canvas-batch-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-batch-metrics article {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 7px;
}

.canvas-batch-metrics article span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-batch-metrics article strong {
  font-size: 14px;
}

.canvas-batch-blockers {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  padding: 8px;
}

.canvas-batch-blockers small {
  color: #a16207;
}

.canvas-shot-workflow {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 9px;
}

.canvas-shot-workflow p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.canvas-shot-workflow-columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-gap: 4px;
  gap: 4px;
}

.canvas-shot-workflow-columns span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  padding: 5px 4px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-shot-workflow-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.canvas-shot-workflow-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-gap: 2px 8px;
  gap: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.canvas-shot-workflow-list button.status-ready {
  border-color: rgba(34, 197, 94, 0.26);
}

.canvas-shot-workflow-list button.status-running {
  border-color: rgba(14, 165, 233, 0.3);
}

.canvas-shot-workflow-list button.status-blocked {
  border-color: rgba(248, 113, 113, 0.3);
}

.canvas-shot-workflow-list span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.canvas-shot-workflow-list strong {
  color: var(--text);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-shot-workflow-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.canvas-production-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
}

.canvas-production-actions .button {
  min-height: 32px;
  padding-inline: 9px;
}

.canvas-production-actions span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-batch-submit-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  padding: 7px 9px;
}

.canvas-batch-submit-status.submitted {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

.canvas-batch-submit-status.error {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.canvas-batch-production-plan {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), transparent 68%),
    var(--panel);
  padding: 9px;
}

.canvas-batch-production-plan p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.55;
}

.canvas-batch-plan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-batch-plan-metrics article {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 7px;
}

.canvas-batch-plan-metrics span,
.canvas-batch-plan-list small,
.canvas-batch-plan-blockers small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-batch-plan-metrics strong,
.canvas-batch-plan-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-batch-plan-blockers {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  padding: 8px;
}

.canvas-batch-plan-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.canvas-batch-plan-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  grid-gap: 3px 8px;
  gap: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 7px;
  text-align: left;
  cursor: pointer;
}

.canvas-batch-plan-list button:hover,
.canvas-batch-plan-list button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  outline: 0;
}

.canvas-batch-plan-list button > span {
  grid-row: span 2;
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.canvas-batch-plan-handoff {
  min-height: 84px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.55;
}

.canvas-production-package {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%),
    var(--panel);
  padding: 9px;
}

.canvas-production-package p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.55;
}

.canvas-package-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-package-metrics article {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 7px;
}

.canvas-package-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 7px;
  gap: 7px;
}

.canvas-package-actions .button {
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding-inline: 8px;
}

.canvas-package-actions .button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-package-handoff {
  min-height: 96px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.55;
}

.canvas-package-metrics span,
.canvas-package-shot-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-package-metrics strong,
.canvas-package-shot-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-package-shot-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.canvas-package-shot-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  grid-gap: 3px 8px;
  gap: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 7px;
  text-align: left;
  cursor: pointer;
}

.canvas-package-shot-list button:hover,
.canvas-package-shot-list button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  outline: 0;
}

.canvas-package-shot-list button > span {
  grid-row: span 2;
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.canvas-generated-asset-board {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 64%),
    var(--panel);
  padding: 9px;
}

.canvas-generated-asset-board p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.55;
}

.canvas-generated-asset-board-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-generated-asset-board-metrics article {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 7px;
}

.canvas-generated-asset-board-metrics span,
.canvas-generated-asset-meta span,
.canvas-generated-asset-meta small,
.canvas-generated-asset-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-generated-asset-board-metrics strong,
.canvas-generated-asset-main strong,
.canvas-generated-asset-meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-generated-asset-board-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 7px;
  gap: 7px;
}

.canvas-generated-asset-board-actions .button {
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding-inline: 8px;
}

.canvas-generated-asset-board-actions .button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-generated-asset-board-text {
  min-height: 96px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.55;
}

.canvas-generated-asset-board-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.canvas-generated-asset-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 0.62fr);
  grid-gap: 7px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 8px;
}

.canvas-generated-asset-main,
.canvas-generated-asset-meta {
  display: grid;
  align-content: center;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
}

.canvas-generated-asset-kind {
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  color: #0f766e;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 900;
}

.canvas-generated-asset-kind.kind-video {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.1);
  color: #0369a1;
}

.canvas-generated-asset-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.canvas-generated-asset-actions button,
.canvas-generated-asset-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.canvas-generated-asset-actions button:hover,
.canvas-generated-asset-actions button:focus-visible,
.canvas-generated-asset-actions a:hover,
.canvas-generated-asset-actions a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  outline: 0;
}

.canvas-shot-checklist {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.canvas-shot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 8px;
  text-align: left;
}

.canvas-shot-focus {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 72px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.canvas-shot-row:hover,
.canvas-shot-row:focus-within {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  outline: 0;
}

.canvas-shot-order-actions {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.canvas-shot-order-actions button {
  display: inline-grid;
  width: 26px;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
}

.canvas-shot-order-actions button:hover:not(:disabled),
.canvas-shot-order-actions button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  color: var(--accent);
  outline: 0;
}

.canvas-shot-order-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.canvas-shot-index {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.canvas-shot-main {
  display: grid;
  min-width: 0;
  grid-gap: 3px;
  gap: 3px;
}

.canvas-shot-main strong,
.canvas-shot-main small,
.canvas-shot-meta strong,
.canvas-shot-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-shot-main strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.canvas-shot-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.canvas-shot-meta {
  display: grid;
  min-width: 0;
  justify-items: end;
  grid-gap: 3px;
  gap: 3px;
}

.canvas-shot-meta strong {
  color: var(--text);
  font-size: 11px;
}

.canvas-shot-meta small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.canvas-shot-tags {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.canvas-shot-tags em,
.canvas-shot-issue {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.canvas-shot-tags em {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

.canvas-shot-issue {
  grid-column: 1 / -1;
  width: -moz-fit-content;
  width: fit-content;
}

.canvas-shot-issue.ready {
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

.canvas-shot-issue.warning {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: #a16207;
}

.canvas-quick-actions,
.canvas-connection-panel {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.canvas-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 7px;
  gap: 7px;
}

.canvas-action-grid .button {
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding-inline: 8px;
}

.canvas-action-grid .button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-connection-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.canvas-connection-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 7px;
}

.canvas-connection-list article > div {
  min-width: 0;
}

.canvas-connection-list span,
.canvas-empty-copy {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-connection-list strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-connection-list button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface-muted));
  color: var(--danger);
  cursor: pointer;
}

@keyframes canvas-node-pulse {
  0%, 100% {
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  }
  50% {
    box-shadow: 0 18px 42px color-mix(in srgb, var(--node-accent) 28%, rgba(15, 23, 42, 0.18));
  }
}

.creative-canvas-inspector label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.canvas-inspector-row,
.canvas-empty-inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}

.canvas-inspector-row strong,
.canvas-empty-inspector span {
  color: var(--text);
  font-size: 12px;
}

.button.danger {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  color: var(--danger);
}

body.theme-midnight .creative-canvas-toolbar,
body.theme-midnight .creative-canvas-palette,
body.theme-midnight .creative-canvas-inspector,
body.theme-midnight .creative-canvas-node {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.9);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
}

body.theme-midnight .creative-canvas-stage {
  border-color: rgba(56, 189, 248, 0.16);
  background:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    #020617;
  background-size: 48px 48px;
}

body.theme-midnight .canvas-node-type-list button,
body.theme-midnight .canvas-workflow-preset-list button,
body.theme-midnight .canvas-stat-grid article,
body.theme-midnight .canvas-run-strip article,
body.theme-midnight .canvas-operator-panel,
body.theme-midnight .canvas-readiness-card,
body.theme-midnight .canvas-node-search,
body.theme-midnight .canvas-search-results button,
body.theme-midnight .canvas-stage-hud,
body.theme-midnight .canvas-minimap,
body.theme-midnight .canvas-minimap-plane,
body.theme-midnight .canvas-selected-summary > div,
body.theme-midnight .canvas-node-parameter-panel,
body.theme-midnight .canvas-node-preset-list button,
body.theme-midnight .canvas-node-parameter-grid article,
body.theme-midnight .canvas-node-prompt-preview,
body.theme-midnight .canvas-node-parameter-issues,
body.theme-midnight .canvas-production-checklist,
body.theme-midnight .canvas-batch-preflight,
body.theme-midnight .canvas-batch-metrics article,
body.theme-midnight .canvas-shot-workflow,
body.theme-midnight .canvas-shot-workflow-columns span,
body.theme-midnight .canvas-shot-workflow-list button,
body.theme-midnight .canvas-production-package,
body.theme-midnight .canvas-package-metrics article,
body.theme-midnight .canvas-package-shot-list button,
body.theme-midnight .canvas-package-handoff,
body.theme-midnight .canvas-generated-asset-board,
body.theme-midnight .canvas-generated-asset-board-metrics article,
body.theme-midnight .canvas-generated-asset-board-text,
body.theme-midnight .canvas-generated-asset-item,
body.theme-midnight .canvas-generated-asset-actions button,
body.theme-midnight .canvas-generated-asset-actions a,
body.theme-midnight .canvas-shot-row,
body.theme-midnight .canvas-shot-tags em,
body.theme-midnight .canvas-save-status,
body.theme-midnight .canvas-generation-status,
body.theme-midnight .canvas-task-chip,
body.theme-midnight .canvas-generated-assets,
body.theme-midnight .canvas-inspector-row,
body.theme-midnight .canvas-empty-inspector,
body.theme-midnight .canvas-zoom-value,
body.theme-midnight .creative-canvas-node header button {
  border-color: rgba(56, 189, 248, 0.14);
  background: rgba(15, 23, 42, 0.84);
}

body.theme-midnight .canvas-quick-actions,
body.theme-midnight .canvas-connection-panel,
body.theme-midnight .canvas-connection-list article {
  border-color: rgba(56, 189, 248, 0.14);
  background: rgba(15, 23, 42, 0.84);
}

body.theme-midnight .creative-canvas-toolbar strong,
body.theme-midnight .canvas-panel-head strong,
body.theme-midnight .canvas-stat-grid strong,
body.theme-midnight .canvas-title-block small,
body.theme-midnight .canvas-run-strip article strong,
body.theme-midnight .canvas-operator-panel strong,
body.theme-midnight .canvas-readiness-card strong,
body.theme-midnight .canvas-workflow-preset-list strong,
body.theme-midnight .canvas-search-results strong,
body.theme-midnight .canvas-stage-hud strong,
body.theme-midnight .canvas-minimap-head strong,
body.theme-midnight .canvas-selected-summary strong,
body.theme-midnight .canvas-node-parameter-panel p,
body.theme-midnight .canvas-node-preset-list strong,
body.theme-midnight .canvas-node-parameter-grid strong,
body.theme-midnight .canvas-batch-preflight strong,
body.theme-midnight .canvas-batch-metrics article strong,
body.theme-midnight .canvas-shot-workflow-list strong,
body.theme-midnight .canvas-production-package .canvas-panel-head strong,
body.theme-midnight .canvas-package-metrics article strong,
body.theme-midnight .canvas-package-shot-list strong,
body.theme-midnight .canvas-generated-asset-board-metrics strong,
body.theme-midnight .canvas-generated-asset-main strong,
body.theme-midnight .canvas-generated-asset-meta strong,
body.theme-midnight .canvas-generated-asset-actions button,
body.theme-midnight .canvas-generated-asset-actions a,
body.theme-midnight .canvas-shot-main strong,
body.theme-midnight .canvas-shot-meta strong,
body.theme-midnight .creative-canvas-node strong,
body.theme-midnight .canvas-node-task,
body.theme-midnight .canvas-task-chip strong,
body.theme-midnight .canvas-inspector-row strong,
body.theme-midnight .canvas-empty-inspector span {
  color: #e5edf6;
}

body.theme-midnight .creative-canvas-toolbar span,
body.theme-midnight .canvas-panel-head span,
body.theme-midnight .canvas-node-type-list small,
body.theme-midnight .canvas-workflow-preset-list small,
body.theme-midnight .canvas-save-status span,
body.theme-midnight .canvas-run-strip article span,
body.theme-midnight .canvas-operator-panel small,
body.theme-midnight .canvas-readiness-card span,
body.theme-midnight .canvas-readiness-card small,
body.theme-midnight .canvas-search-results span,
body.theme-midnight .canvas-search-results small,
  body.theme-midnight .canvas-node-section-title,
  body.theme-midnight .canvas-stage-hud span,
  body.theme-midnight .canvas-minimap-head,
  body.theme-midnight .canvas-selected-summary span,
  body.theme-midnight .canvas-node-preset-list span,
  body.theme-midnight .canvas-node-parameter-grid span,
  body.theme-midnight .canvas-node-prompt-preview span,
  body.theme-midnight .canvas-node-prompt-preview small,
  body.theme-midnight .canvas-node-parameter-issues small,
  body.theme-midnight .canvas-batch-preflight span,
  body.theme-midnight .canvas-batch-preflight small,
  body.theme-midnight .canvas-batch-metrics article span,
  body.theme-midnight .canvas-shot-workflow p,
  body.theme-midnight .canvas-shot-workflow-columns span,
  body.theme-midnight .canvas-shot-workflow-list small,
  body.theme-midnight .canvas-production-package p,
  body.theme-midnight .canvas-package-metrics article span,
  body.theme-midnight .canvas-package-shot-list small,
  body.theme-midnight .canvas-generated-asset-board p,
  body.theme-midnight .canvas-generated-asset-board-metrics span,
  body.theme-midnight .canvas-generated-asset-main small,
  body.theme-midnight .canvas-generated-asset-meta span,
  body.theme-midnight .canvas-generated-asset-meta small,
  body.theme-midnight .canvas-production-actions span,
  body.theme-midnight .canvas-batch-submit-status,
  body.theme-midnight .canvas-shot-main small,
  body.theme-midnight .canvas-shot-meta small,
  body.theme-midnight .canvas-shot-tags em,
  body.theme-midnight .canvas-connection-list span,
  body.theme-midnight .canvas-empty-copy,
  body.theme-midnight .canvas-generation-status span,
  body.theme-midnight .canvas-generation-status small,
  body.theme-midnight .canvas-task-chip span,
body.theme-midnight .canvas-task-chip small,
body.theme-midnight .canvas-generated-assets span,
body.theme-midnight .canvas-muted-note,
body.theme-midnight .creative-canvas-node p,
body.theme-midnight .creative-canvas-node header span,
body.theme-midnight .canvas-inspector-row span {
  color: #9fb2c8;
}

body.theme-midnight .canvas-connection-list strong {
  color: #e5edf6;
}

body.theme-midnight .canvas-batch-submit-status {
  border-color: rgba(56, 189, 248, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

body.theme-midnight .canvas-batch-submit-status.submitted {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(22, 101, 52, 0.2);
  color: #bbf7d0;
}

body.theme-midnight .canvas-batch-submit-status.error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

body.theme-midnight .canvas-crosshair {
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(8, 13, 24, 0.82);
  color: #bfdbfe;
}

body.theme-midnight .canvas-node-port {
  border-color: #020617;
}

body.theme-midnight .canvas-generated-assets a {
  color: #67e8f9;
}

body.theme-midnight .canvas-generated-asset-kind {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

body.theme-midnight .canvas-generated-asset-kind.kind-video {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

body.theme-midnight .canvas-batch-blockers {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
}

body.theme-midnight .canvas-batch-blockers small {
  color: #fcd34d;
}

body.theme-midnight .canvas-shot-index {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(8, 47, 73, 0.94);
  color: #f0f9ff;
}

body.theme-midnight .canvas-shot-row:hover,
body.theme-midnight .canvas-shot-row:focus-visible {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(14, 165, 233, 0.12);
}

body.theme-midnight .canvas-shot-issue.ready {
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(20, 83, 45, 0.94);
  color: #ecfdf5;
}

body.theme-midnight .canvas-shot-issue.warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

@media (max-width: 1180px) {
  .creative-canvas-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .canvas-run-strip {
    grid-column: 1 / -1;
    order: 3;
    min-width: 100%;
  }

  .creative-canvas-toolbar {
    flex-wrap: wrap;
  }

  .creative-canvas-inspector {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .creative-canvas-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .creative-canvas-toolbar-actions {
    flex-wrap: wrap;
  }

  .creative-canvas-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .creative-canvas-stage {
    min-height: 560px;
  }

  .canvas-run-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas-stage-hud {
    right: 12px;
    min-width: 0;
  }

  .canvas-minimap {
    display: none;
  }

  .canvas-generation-grid {
    grid-template-columns: 1fr;
  }
}

