:root {
  color-scheme: dark;
  --bg: #0c1415;
  --sidebar: #0d1716;
  --panel: #15231f;
  --line: #30483c;
  --text: #eef2f1;
  --muted: #94a2a8;
  --accent: #b6f2e2;
  --accent-strong: #64d8bd;
  --danger: #f3aaa7;
  --warning: #eac491;
  --studio-artwork: url("/static/brand/studio-art.png");
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select, textarea { width: 100%; background: #12191c; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px #64d8bd12; }
input::placeholder, textarea::placeholder { color: #6c7b82; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent-strong); }
input[type=number] { font-variant-numeric: tabular-nums; }
label { display: grid; gap: 7px; color: #c2ccd0; font-size: 12px; }
textarea { resize: vertical; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.4vw, 32px); font-weight: 600; line-height: 1.4; letter-spacing: -.5px; margin-bottom: 8px; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error-text { color: var(--danger); font-size: 13px; overflow-wrap: anywhere; }
.warning-text { color: var(--warning); }
.button { min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.button.primary { background: var(--accent); color: #17332b; }
.button.primary:hover:enabled { background: #d1f9ef; }
.button.secondary { background: #222c30; border-color: #3a484e; color: var(--text); }
.button.subtle { min-height: 32px; padding: 5px 10px; background: transparent; border-color: var(--line); color: var(--muted); }
.button.danger { color: var(--danger); border-color: #654348; background: #39272b; }
.button:hover:enabled { filter: brightness(1.1); }
.full { width: 100%; }
.text-button { border: 0; color: var(--muted); background: transparent; padding: 4px; font-size: 12px; }
.text-button:hover, .text-link:hover { color: var(--accent); }
.icon-button { background: transparent; border: 0; color: var(--muted); width: 34px; height: 34px; font-size: 23px; border-radius: 6px; }
.icon-button:hover { color: var(--text); background: #ffffff0c; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(ellipse at 50% 10%, #1a302c, transparent 60%), var(--bg); }
.login-card { max-width: 430px; width: 100%; padding: 38px; border: 1px solid #34443f; border-radius: 18px; background: #151d20; box-shadow: 0 24px 80px #0004; }
.company-logo { display: block; width: 100%; height: auto; }
.login-card > .company-logo { width: 184px; max-width: 100%; margin-bottom: 22px; border-radius: 12px; }
.login-card h1 { font-size: 24px; }
.login-card form { display: grid; gap: 17px; margin-top: 28px; }
#login-status { margin: 22px 0 0; }
.app-shell { min-height: 100dvh; }
.sidebar { width: 208px; position: fixed; inset: 0 auto 0 0; background: var(--sidebar); border-right: 1px solid #222b2f; display: flex; flex-direction: column; padding: 30px 16px 20px; z-index: 10; }
.main-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 44px; }
.nav-item { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 11px 13px; color: #a1adb3; font-size: 13px; }
.nav-item > span { font-size: 21px; line-height: 1; width: 21px; text-align: center; }
.nav-item.active { background: #20302d; color: #c4f4e7; border-color: #30443e; }
.nav-item:hover { background: #1b2427; }
.sidebar-bottom { margin-top: auto; }
.connection-status { font-size: 11px; color: #89a295; padding: 20px 9px 16px; }
.connection-status.offline { color: var(--warning); }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #283134; padding: 15px 9px 0; }
#logout { flex: 0 0 auto; }
.customer-remark { max-width: 24ch; overflow-wrap: anywhere; }
#user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.workspace { margin-left: 208px; min-width: 0; }
.topbar { min-height: 76px; border-bottom: 1px solid #222b2f; padding: 15px 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.balance-pill { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; border: 1px solid #3b5149; background: #1c2b25; color: #bbd4c9; padding: 6px 12px; border-radius: 8px; font-size: 11px; }
.balance-pill strong { color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.divider { height: 13px; width: 1px; background: #446052; align-self: center; margin: 0 3px; }
main { max-width: 1380px; margin: auto; padding: 33px 38px 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading p { margin: 0; font-size: 12px; }
.section-heading.compact { margin-top: 32px; margin-bottom: 16px; }
.text-link { color: var(--muted); font-size: 12px; white-space: nowrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.composer-body { padding: 22px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.field-label { display: block; margin: 24px 0 10px; }
.asset-dropzone { display: flex; align-items: stretch; gap: 10px; padding: 13px; background: #131a1d; border: 1px dashed #36433f; border-radius: 10px; flex-wrap: wrap; }
.asset-dropzone.dragging { border-color: var(--accent); background: #20342d; }
.upload-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; width: 110px; min-height: 108px; border: 1px solid #394e45; border-radius: 7px; background: #1d2a25; color: #c1ded2; font-size: 12px; }
.upload-tile > span:first-child { font-size: 27px; line-height: 1.2; }
.upload-tile small { font-size: 10px; color: #839e90; }
.asset-list { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.asset-card { position: relative; width: 110px; border: 1px solid #344048; background: #20292d; border-radius: 7px; overflow: hidden; }
.asset-preview { width: 100%; height: 77px; border: 0; padding: 0; color: #b6cbc1; background: #14201b; display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.asset-preview img { display: block; width: 100%; height: 77px; object-fit: cover; min-height: 0; }
.asset-caption { display: block; position: relative; background: #20292d; padding: 5px 7px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-remove { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border: 0; border-radius: 4px; background: #111d; color: white; }
.prompt-editor { position: relative; }
#prompt { min-height: 180px; border-radius: 9px; line-height: 1.8; padding: 14px; }
.prompt-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #82958d; margin: 6px 0 0; }
#prompt-count { white-space: nowrap; }
#prompt-warning { margin: 8px 0 0; }
.mention-menu { position: absolute; z-index: 8; left: 10px; right: 10px; top: 85%; max-height: 245px; overflow-y: auto; background: #222e29; border: 1px solid #486455; border-radius: 10px; box-shadow: 0 15px 40px #0007; }
.mention-help { font-size: 11px; color: #99b2a3; padding: 10px 12px; margin: 0; }
.mention-option { display: flex; width: 100%; text-align: left; gap: 12px; align-items: center; border: 0; padding: 10px 12px; background: transparent; color: var(--text); font-size: 12px; }
.mention-option small { color: #99b2a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-option.active, .mention-option:hover { background: #365344; }
.parameter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 23px; align-items: start; }
.archive-details { margin-top: 18px; color: var(--muted); font-size: 12px; }
.archive-details summary { cursor: pointer; padding: 6px 0; }
.archive-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-top: 12px; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border-top: 1px solid var(--line); background: #16211d; border-radius: 0 0 12px 12px; }
.composer-footer p { margin: 0; font-size: 11px; color: #93a99b; }
#quote-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.form-message { margin: 0; padding: 12px 22px; }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.job-cover { width: 100%; height: 0; padding: 0 0 56.25%; position: relative; background: linear-gradient(145deg, #1f332d, #182124); border: 0; color: #a9c4b8; display: block; }
.job-cover > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; font-size: 12px; }
.job-cover .play-symbol { font-size: 32px; line-height: 1.2; color: #d1eddf; }
.job-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #101719; }
.job-cover .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 32px; text-shadow: 0 2px 12px #000; }
.job-body { padding: 13px 14px; }
.job-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 10px; color: #8c9e95; }
.status { color: #aed6c5; background: #253a31; padding: 2px 7px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.status.failed, .status.needs_attention { color: #e3b7ad; background: #402e2a; }
.job-prompt { color: #ced8d3; font-size: 12px; line-height: 1.75; margin: 11px 0 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 63px; overflow-wrap: anywhere; white-space: pre-wrap; }
.job-message { font-size: 10px; color: #9aab9f; margin: 4px 0; overflow-wrap: anywhere; }
.job-retention { font-size: 11px; color: #dfc098; margin: 7px 0 0; line-height: 1.65; overflow-wrap: anywhere; }
.job-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.empty { grid-column: 1 / -1; border: 1px dashed #34423c; border-radius: 10px; padding: 42px 20px; text-align: center; color: #8c9e95; font-size: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 24px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 25px; }
.metric { padding: 23px; display: flex; flex-direction: column; gap: 10px; }
.metric span { font-size: 12px; color: var(--muted); }
.metric strong { font-size: 28px; font-weight: 550; font-variant-numeric: tabular-nums; color: #d9eee2; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; white-space: nowrap; }
th { color: #8fa49a; font-weight: 500; background: #151d1a; }
th, td { padding: 12px 18px; border-bottom: 1px solid #2b3530; }
tbody tr:last-child td { border-bottom: 0; }
td.wrap-cell { white-space: normal; min-width: 150px; max-width: 350px; overflow-wrap: anywhere; }
td .button { margin-right: 6px; }
.positive { color: #91d8b0; }
.negative { color: #e1b1a3; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.admin-tabs button { border: 1px solid #35413b; background: #1a231f; color: #9cac9f; padding: 8px 17px; border-radius: 7px; font-size: 12px; }
.admin-tabs button[aria-selected=true] { background: #2c4639; border-color: #42664f; color: #d7efdf; }
.monitor-bar { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:5px 16px; margin-bottom:14px; font-size:12px; color:var(--muted); }
#monitor-state[data-state=live] { color:var(--accent); }
#monitor-state[data-state=stale] { color:var(--warning); }
.monitor-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:16px; }
.monitor-grid > section { min-width:0; overflow:hidden; }
.monitor-grid .panel-heading { min-height:52px; padding:12px 18px; }
.monitor-wide { grid-column:1/-1; }
.monitor-alerts ul { margin:0; padding:0 18px; list-style:none; max-height:320px; overflow:auto; }
.monitor-alerts li { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; border-bottom:1px solid var(--line); padding:12px 0; }
.monitor-alerts li:last-child { border:0; }
.monitor-alerts .alert-detail { flex-basis:100%; overflow-wrap:anywhere; }
.monitor-alerts .severity { padding:2px 8px; border:1px solid currentColor; border-radius:5px; font-size:11px; }
.monitor-alerts .critical { color:var(--danger); }
.monitor-alerts .warning { color:var(--warning); }
.monitor-alerts .info { color:var(--accent); }
.monitor-alerts time { margin-left:auto; color:var(--muted); font-size:11px; }
.monitor-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:18px; }
.monitor-wide .monitor-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.monitor-metrics dt,.monitor-caption,.monitor-subtitle,#monitor-alert-count { font-size:12px; color:var(--muted); }
.monitor-metrics dd { margin:3px 0 0; font-size:24px; font-weight:600; color:#d7eddf; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.monitor-caption,.monitor-subtitle { margin:8px 18px 14px; line-height:1.7; overflow-wrap:anywhere; }
.monitor-subtitle { margin-top:18px; font-weight:600; color:var(--text); }
.monitor-scroll { max-height:315px; overflow:auto; }
.monitor-grid td,.monitor-grid th,#admin-ledger-body td { padding:10px 14px; vertical-align:top; }
.monitor-secondary { display:block; color:var(--muted); font-size:11px; }
.monitor-channels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; padding:16px 18px; }
.monitor-channels p { margin:4px 0; font-size:12px; overflow-wrap:anywhere; }
#admin-ledger-dialog { width:min(1000px,calc(100vw - 24px)); }
#admin-ledger-search { padding:16px 18px; display:flex; flex-wrap:wrap; gap:8px; align-items:end; }
#admin-ledger-search label { min-width:0; flex:1 1 175px; }
#admin-ledger-dialog .table-scroll { max-height:48vh; }
#admin-ledger-page { font-size:12px; }
.user-actions { display:flex; gap:6px; flex-wrap:wrap; }
.user-actions .button { margin:0; }
.pool-node { border-top:1px solid var(--line); }
.pool-node-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 14px; padding:16px 18px 0; color:var(--muted); }
.pool-node-heading h3 { margin:0; font-size:14px; color:var(--text); overflow-wrap:anywhere; }
@media(max-width:1080px) { .monitor-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { .monitor-wide .monitor-metrics,.monitor-channels { grid-template-columns:repeat(2,minmax(0,1fr)); } .monitor-channels { grid-template-columns:minmax(0,1fr); } .monitor-alerts time { margin-left:0; } }
.notice { border: 1px solid #655441; border-radius: 8px; background: #30281e; color: #e3c8a9; padding: 11px 15px; margin-bottom: 22px; font-size: 12px; }
.error-notice { background: #302023; border-color: #59383c; color: #e0b7bb; }
dialog { width: min(500px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #415249; border-radius: 13px; color: var(--text); background: #19231e; box-shadow: 0 30px 110px #0009; }
dialog::backdrop { background: #06100cce; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #344139; }
.dialog-body { padding: 21px; display: grid; gap: 16px; }
.dialog-body p { font-size: 12px; color: #b2c3b7; margin-bottom: 0; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; border-top: 1px solid #344139; padding: 15px 20px; }
.dialog-message { padding: 0 21px; }
.confirmation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px solid #3a493f; padding: 14px; margin: 3px 21px 20px; border-radius: 8px; }
.confirmation-fields legend { font-size: 11px; color: #95af9e; padding: 0 5px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.media-dialog { width: min(1100px, calc(100vw - 28px)); }
.media-content { display: flex; justify-content: center; align-items: center; background: #080e0b; min-height: 160px; padding: 10px; }
.media-content img, .media-content video { display: block; max-width: 100%; max-height: calc(100dvh - 220px); object-fit: contain; }
.media-content audio { width: min(600px, 100%); margin: 45px 0; }
.media-retention { margin: 0; padding: 10px 20px; font-size: 12px; line-height: 1.65; color: #dfc098; background: #30281e; }
.expired-media { padding: 30px 15px; color: #cfb795; text-align: center; font-size: 14px; line-height: 1.8; }
#video-position { margin-right: auto; }
#node-token { font-family: "Courier New", monospace; font-size: 13px; word-break: break-all; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: min(420px,calc(100vw - 40px)); padding: 12px 18px; border: 1px solid #51765d; border-radius: 9px; background: #243a2e; color: #dcf1e2; box-shadow: 0 10px 40px #0006; font-size: 13px; overflow-wrap: anywhere; }
@media(min-width:1550px) { .job-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:1100px) { .sidebar { width: 185px; } .workspace { margin-left:185px; } main { padding:28px 25px 50px; } .topbar { padding:15px 25px; } .job-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
  .sidebar { position:static; width:auto; padding:14px 18px 0; border-right:0; border-bottom:1px solid #29362d; flex-direction:row; flex-wrap:wrap; align-items:center; gap:16px; }
  .sidebar-bottom { margin-left:auto; margin-top:0; }
  .connection-status { display:none; }
  .user-row { border:0; padding:0; max-width:190px; }
  .main-nav { width:100%; order:3; flex-direction:row; margin:0; gap:5px; padding-bottom:10px; overflow-x:auto; }
  .nav-item { padding:8px 10px; white-space:nowrap; font-size:12px; gap:6px; }
  .nav-item > span { font-size:17px; width:18px; }
  .workspace { margin-left:0; }
  .topbar { padding:12px 18px; min-height:58px; }
  main { padding:25px 18px 45px; }
  .parameter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .section-heading { align-items:flex-start; }
  .section-heading .text-link { margin-top:10px; }
  .composer-body { padding:17px; }
  .composer-footer { padding:17px; }
  .panel-heading { padding:15px 17px; }
  .metric { padding:18px; }
  .metric strong { font-size:23px; }
  .metric-grid { gap:10px; }
  .job-grid { gap:12px; }
}
@media(max-width:480px) {
  .login-card { padding:28px 22px; }
  .sidebar { padding:12px 12px 0; gap:10px; }
  .nav-item { padding:8px; font-size:11px; gap:4px; }
  .nav-item > span { display:none; }
  .topbar { padding:11px 12px; gap:8px; }
  #page-title { display:none; }
  .balance-pill { margin-left:auto; }
  main { padding:22px 12px 40px; }
  .section-heading { gap:8px; }
  .section-heading .text-link { font-size:10px; }
  .composer-footer { flex-direction:column; align-items:stretch; gap:13px; }
  .composer-footer > .button { min-height:44px; }
  .composer-body { padding:14px; }
  .panel-heading { padding:14px; }
  .panel-heading .button { font-size:10px; }
  .asset-dropzone { padding:9px; gap:8px; }
  .asset-list { gap:8px; }
  .upload-tile,.asset-card { width:95px; }
  .upload-tile { min-height:98px; }
  .asset-preview, .asset-preview img { height:67px; }
  .parameter-grid { gap:12px; }
  .archive-grid { grid-template-columns:1fr; }
  .job-grid { grid-template-columns:1fr; }
  .metric-grid { grid-template-columns:1fr; }
  .metric { flex-direction:row; justify-content:space-between; align-items:center; padding:15px 18px; }
  .metric strong { font-size:25px; }
  .prompt-meta { font-size:10px; }
  .confirmation-fields { grid-template-columns:1fr; }
  .dialog-footer { padding:12px; gap:7px; }
  #media-navigation .button { font-size:10px; padding:7px 10px; }
  #video-position { width:100%; order:-1; text-align:center; }
}

/* Shared company identity and the production layout used by the LAN client. */
.sidebar {
  background: linear-gradient(160deg, #12251f, #0b1514 44%, #0d1716);
  border-color: #426e5d3d;
}
.sidebar > .company-brand { display: block; width: 216px; margin: -30px -16px 0; }
.main-nav { margin-top: 16px; }
.nav-item.active { background: linear-gradient(110deg, #7cf3c726, #4bc89f0b); border-color: #82e6c447; box-shadow: inset 2px 0 #9eefd3; }
.topbar { border-color: #426e5d30; background: linear-gradient(95deg, #18372c66, transparent); }
.breadcrumb { display: flex; align-items: center; gap: 15px; }
.breadcrumb #page-title { color: #d3e4db; }
.balance-pill { background: #142623; border-color: #39554a; }
.workspace { background: radial-gradient(ellipse at 90% 0, #214c3f35, transparent 48%), var(--bg); }
main { max-width: 1680px; padding: 30px clamp(24px, 3vw, 56px) 60px; }
.creation-overview { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(380px, 1fr); gap: 18px; margin-bottom: 24px; }
.creation-heading {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 164px;
  padding: 26px 30px;
  border: 1px solid #8ec5a74a;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(112deg, #203d30, #102824 65%, #1a3e36);
  box-shadow: inset 0 1px #d5f6d616, 0 14px 38px #0002;
}
.creation-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 270px;
  right: -20px;
  top: -38px;
  background: var(--studio-artwork) right bottom / 191.743% 123.816% no-repeat;
  opacity: .65;
  mask-image: linear-gradient(90deg, transparent, #000 36%);
  pointer-events: none;
}
.creation-heading::after { content: ""; position: absolute; top: 0; left: 30px; width: 68px; height: 2px; background: #d5dfad; box-shadow: 0 0 24px #b5e8a95c; }
.creation-heading .eyebrow { color: #c6d9b5; font-size: 11px; letter-spacing: .18em; margin-bottom: 7px; }
.creation-heading h1 { font-size: clamp(28px, 2.3vw, 38px); font-weight: 650; letter-spacing: .015em; margin: 0; text-shadow: 0 2px 20px #082019; }
.credit-summary { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 23px 24px 19px; border: 1px solid #48685569; border-radius: 18px; background: linear-gradient(130deg, #21382d99, #152521bb); box-shadow: inset 0 1px #d5f6d60b; }
.credit-metrics { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); align-items: stretch; }
.credit-metrics > div { min-width: 0; padding: 0 14px; border-left: 1px solid #749e852b; }
.credit-metrics > div:first-child { padding-left: 0; border-left: 0; }
.credit-metrics > div:last-child { padding-right: 0; }
.credit-metrics span { display: block; color: #a1b8ac; font-size: 11px; white-space: nowrap; }
.credit-metrics strong { display: block; color: #e4f2e9; font-size: clamp(20px, 1.6vw, 29px); line-height: 1.5; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#create-available { color: #b5f1cf; }
.credit-summary > p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 17px 0 0; color: #91a79b; font-size: 10px; line-height: 1.6; }
#create-capacity { color: #bdd7c5; }
.composer { border: 1px solid #54756380; border-radius: 20px; background: #14201eee; box-shadow: 0 22px 60px #0003, inset 0 1px #c8e8d314; }
.composer > .panel-heading { min-height: 64px; padding: 12px 26px; border-color: #769c8330; border-radius: 19px 19px 0 0; background: linear-gradient(100deg, #25443699, #1a2b24b3 60%, #253a2f85); }
.composer > .panel-heading h2 { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #e1f6e8; }
.composer > .panel-heading h2 > span { font-size: 24px; color: #b2e7c2; }
#clear-composer { color: #9fb4a7; border-color: #6f917a40; font-size: 11px; }
.composer-body { display: grid; grid-template-columns: minmax(190px, .28fr) minmax(0, 1fr); padding: 0; }
.creation-assets { min-width: 0; padding: 26px 22px; border-right: 1px solid #769c8326; background: linear-gradient(155deg, #213c2c70, #12201b50); }
.creation-assets .label-row { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 16px; }
.creation-assets .label-row > label { font-size: 13px; font-weight: 550; color: #cfdfd5; }
#upload-status { font-size: 10px; overflow-wrap: anywhere; }
.asset-dropzone { flex-direction: column; align-items: stretch; gap: 16px; padding: 0; border: 0; background: transparent; }
.asset-dropzone.dragging { outline: 2px dashed var(--accent); outline-offset: 6px; background: #20342d; }
.upload-tile { width: 100%; min-height: 168px; gap: 6px; border: 1px dashed #83ad8f94; border-radius: 13px; background: radial-gradient(ellipse at 50% 0, #6daa8140, transparent 75%), #233b2c85; color: #d9eddf; font-size: 13px; }
.upload-tile:hover { border-color: #c2efcb; background-color: #35584090; }
.upload-tile > span:first-child { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #c7ebc543; border-radius: 12px; color: #c9f4d4; background: #c7e8ba12; margin-bottom: 4px; }
.upload-tile small { font-size: 10px; color: #a1b7a8; }
.drop-hint { color: #92aa9c; text-align: center; font-size: 11px; margin: 16px 0 0; }
.asset-limits { color: #829b8d; line-height: 1.8; font-size: 10px; margin: 17px 0 0; }
#asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 310px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #698d76 #17251d; }
#asset-list:empty { display: none; }
.asset-card { width: auto; min-width: 0; border-color: #668b724d; background: #102219; }
.asset-caption { background: #1a2d23; }
.creation-editor { min-width: 0; padding: 26px 28px 0; }
.creation-editor > .field-label { margin: 0 0 13px; color: #cfdfd5; font-size: 13px; font-weight: 550; }
#prompt { display: block; min-height: 222px; padding: 19px 21px; border: 1px solid #64816e6e; border-radius: 13px; background: linear-gradient(125deg, #0e1b17, #14231e); box-shadow: inset 0 2px 12px #0002; font-size: 14px; line-height: 1.9; color: #ecf3ed; }
#prompt::placeholder { color: #7e9989; }
#prompt:focus { border-color: #a4dbb7; box-shadow: 0 0 0 3px #9ae7ad0d, inset 0 2px 12px #0002; }
.prompt-meta { margin: 10px 2px 23px; color: #93ac9e; font-size: 10px; }
#prompt-count { color: #bdd4c5; font-variant-numeric: tabular-nums; }
.parameter-grid { grid-template-columns: 1.6fr 1.15fr 1fr 1fr; gap: 13px; margin-top: 0; }
.parameter-grid > label { color: #9eb7a8; font-size: 11px; }
.parameter-grid select, .parameter-grid input { height: 44px; border-color: #68816f60; border-radius: 9px; background: #23362b; color: #e3f1e7; font-size: 12px; }
#duration-help { margin-left: 4px; font-size: 10px; }
.input-unit { position: relative; display: block; }
.input-unit input { padding-right: 32px; }
.input-unit > span { position: absolute; right: 12px; top: 12px; color: #a4beae; pointer-events: none; }
.archive-details { border-top: 1px solid #769c832b; margin-top: 24px; padding-bottom: 4px; }
.archive-details summary { padding: 15px 0; color: #c5d9cd; }
.archive-grid { margin: 0 0 18px; }
.composer-footer { padding: 18px 26px; min-height: 98px; border-color: #769c8338; background: linear-gradient(105deg, #1b3224, #233b2d); border-radius: 0 0 19px 19px; }
.composer-footer p { color: #a6bfae; line-height: 1.8; }
#generate-button { min-width: 196px; min-height: 60px; flex-direction: column; gap: 2px; padding: 9px 22px; border: 1px solid #dff2c5; border-radius: 10px; background: linear-gradient(115deg, #d8ebbd, #b6e4c5); color: #1c3425; box-shadow: inset 0 1px #fff8, 0 5px 18px #96c6811a; font-weight: 650; }
#generate-button:hover:enabled { background: linear-gradient(115deg, #e9f7ce, #c9f5d8); }
#generate-label { font-size: 13px; }
#generate-cost { font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.recent-actions { display: flex; align-items: center; gap: 16px; }
#view-create .section-heading.compact { margin: 34px 0 18px; }
#view-create .section-heading h2 { font-size: 18px; color: #dceae0; }
.job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job-card { border-radius: 14px; background: #16241d; border-color: #50705a60; box-shadow: 0 10px 25px #0002; }
.job-cover { background: radial-gradient(ellipse at 50% 0, #2b4733, transparent 80%), #101d16; }
.retention-note { margin-top: 24px; color: #9baa9f; font-size: 11px; }

@media (min-width: 761px) {
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
}
@media (max-width: 1200px) {
  .creation-overview { grid-template-columns: minmax(0, 1fr); }
  .creation-heading { min-height: 143px; padding: 23px 26px; }
  .credit-summary { padding: 19px 24px; }
  .credit-metrics strong { font-size: 27px; }
  .composer-body { grid-template-columns: 190px minmax(0, 1fr); }
  .creation-assets { padding: 23px 18px; }
  .creation-editor { padding: 23px 22px 0; }
  .parameter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .composer-body { grid-template-columns: minmax(0, 1fr); }
  .creation-assets { padding: 21px 24px; border-right: 0; border-bottom: 1px solid #769c8326; }
  .creation-editor { padding: 24px 24px 0; }
  .asset-dropzone { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .upload-tile { width: 154px; min-height: 128px; }
  #asset-list { display: flex; flex: 1 1 180px; flex-wrap: wrap; max-height: 210px; }
  .asset-card { flex: 0 0 94px; }
  .drop-hint { text-align: left; }
}
@media (max-width: 760px) {
  .sidebar > .company-brand { width: 156px; max-width: 100%; margin: 0; }
  .main-nav { margin-top: 0; }
  .sidebar-bottom { max-width: 150px; }
  #logout { flex: 0 0 auto; white-space: nowrap; }
  main { padding: 22px 18px 42px; }
  .creation-overview { gap: 14px; margin-bottom: 18px; }
  .creation-heading { min-height: 140px; padding: 21px 23px; border-radius: 14px; }
  .creation-heading::before { width: 245px; height: 220px; right: -45px; opacity: .5; }
  .creation-heading h1 { font-size: 28px; }
  .credit-summary { padding: 20px; border-radius: 14px; }
  .credit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .credit-metrics > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .credit-metrics > div:nth-child(even) { padding-right: 0; }
  .credit-metrics strong { font-size: 27px; }
  .composer { border-radius: 15px; }
  .composer > .panel-heading { padding: 12px 20px; border-radius: 14px 14px 0 0; }
  .creation-assets { padding: 20px; }
  .creation-editor { padding: 22px 20px 0; }
  #prompt { min-height: 238px; padding: 15px; font-size: 13px; }
  .composer-footer { padding: 17px 20px; flex-direction: column; align-items: stretch; gap: 13px; border-radius: 0 0 14px 14px; }
  #generate-button { width: 100%; min-width: 0; }
}
@media (max-width: 480px) {
  .sidebar-bottom { max-width: 105px; }
  .user-row { gap: 5px; }
  .breadcrumb { display: none; }
  main { padding: 18px 12px 36px; }
  .creation-heading { padding: 22px 19px; }
  .creation-heading h1 { font-size: 25px; }
  .credit-summary { padding: 17px; }
  .composer > .panel-heading { padding: 12px 14px; gap: 10px; }
  .composer > .panel-heading h2 { font-size: 13px; }
  #clear-composer { font-size: 10px; }
  .creation-assets, .creation-editor { padding-left: 15px; padding-right: 15px; }
  .upload-tile { width: 134px; }
  .prompt-meta { gap: 10px; font-size: 10px; }
  .prompt-meta > span:first-child { max-width: 70%; }
  .composer-footer { padding: 15px; }
  .recent-actions { gap: 10px; }
  .recent-actions .text-link { font-size: 10px; }
  .job-grid { grid-template-columns: minmax(0, 1fr); }
}

.announcement-bar {
  display: flex; align-items: center; gap: 16px; padding: 8px clamp(14px, 3vw, 38px);
  background: #172a25; color: #c4eee0; border-bottom: 1px solid #365449; font-size: 13px;
}
.announcement-bar strong, .announcement-bar button { flex: none; }
.announcement-lane { flex: 1; min-width: 0; overflow: hidden; container-type: inline-size; }
.announcement-lane span { display: inline-block; white-space: nowrap; animation: announcement-scroll linear infinite; }
.announcement-bar:hover span, .announcement-bar:focus-within span { animation-play-state: paused; }
@keyframes announcement-scroll {
  from { transform: translateX(100cqw); }
  to { transform: translateX(-100%); }
}
#announcement-dialog { width: min(460px, calc(100% - 32px)); }
#announcement-dialog label, #announcement-error { display: block; margin: 12px 20px 6px; }
#announcement-input { width: calc(100% - 40px); margin: 0 20px 16px; }
@media (prefers-reduced-motion: reduce) {
  .announcement-lane { overflow-x: auto; }
  .announcement-lane span { animation: none; }
}

.admin-tabs button.pool-live { border-color: #73d3ab; color: #dcfff0; background: #1b4936; box-shadow: inset 3px 0 #9ce9c6; }
.admin-tabs [data-admin-tab=pool][aria-selected=true], .admin-tabs [data-admin-tab=dreamina][aria-selected=true] { text-decoration: underline; text-underline-offset: 4px; }
.pool-live-count:not(:empty) { margin-left: 7px; font-size: 10px; }
.pool-route, .pool-node-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 18px; }
.pool-route-active, .job-platform { color: #98e6c2; }
.pool-receipt { margin: 4px 0; }
#pool-list td button + button { margin-left: 4px; }
#action-fields textarea { width: 100%; min-height: 5em; resize: vertical; }


.monitor-task-panel { margin: 0 0 18px; min-width: 0; overflow: hidden; }
.monitor-task-panel .panel-heading { padding: 12px 18px; }
.monitor-task-filters, .monitor-task-footer, .monitor-task-footer > div { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.monitor-task-filters { padding: 0 18px 14px; }
.monitor-task-filters label { min-width: 0; }
.monitor-task-filters label:first-child { flex: 1 1 235px; }
.monitor-task-footer { align-items: center; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--line); }
.monitor-task-footer p { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.monitor-task-footer > div { align-items: center; font-size: 12px; }
.monitor-task-scroll { max-height: 54vh; }
.monitor-task-scroll th, .monitor-task-scroll td { padding: 9px 13px; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.monitor-task-scroll th { white-space: nowrap; }
.monitor-task-scroll td:nth-child(1) { min-width: 85px; max-width: 150px; }
.monitor-task-scroll td:nth-child(2) { min-width: 125px; max-width: 185px; }
.monitor-task-scroll td:nth-child(3) { min-width: 85px; max-width: 155px; }
.monitor-task-scroll td:nth-child(4) { min-width: 83px; }
.monitor-task-scroll td:nth-child(5) { min-width: 150px; max-width: 275px; }
.monitor-task-scroll time { white-space: nowrap; }
.monitor-task-chip { display: inline-block; border-radius: 4px; padding: 2px 7px; white-space: nowrap; background: #25332e; color: #b6c7be; font-size: 11px; }
.monitor-task-chip.active { background: #163e35; color: #afecd3; }
.monitor-task-chip.problem { background: #4b2d27; color: #ffbbaa; }
.monitor-task-chip.wait { background: #3f3623; color: #e4d09f; }
.monitor-task-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#monitor-task-dialog { width: min(720px, calc(100vw - 24px)); }
.monitor-task-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); margin: 14px 20px; gap: 12px 18px; }
.monitor-task-facts > div { min-width: 0; }
.monitor-task-facts dt, .monitor-task-history time { color: var(--muted); font-size: 12px; }
.monitor-task-facts dd { margin: 2px 0; overflow-wrap: anywhere; }
.monitor-task-note, .monitor-task-history { padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.monitor-task-note h3, .monitor-task-history h3 { margin: 0 0 7px; font-size: 14px; }
.monitor-task-note p, .monitor-task-history p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.monitor-task-note.problem { color: #ffc4b6; background: #31211f; }
.monitor-task-history ol { margin: 0; padding: 0; list-style: none; }
.monitor-task-history li { border-left: 2px solid var(--line); padding: 3px 0 12px 13px; overflow-wrap: anywhere; }
.monitor-task-history time { display: inline-block; margin-right: 9px; }
@media(max-width:600px) {
  .monitor-task-filters, .monitor-task-footer { padding-left: 12px; padding-right: 12px; }
  .monitor-task-filters label:first-child { flex-basis: 100%; }
  .monitor-task-filters label:not(:first-child) { flex: 1 1 90px; }
}
