:root {
  --bg: #111318;
  --panel: #1b1f27;
  --panel2: #232936;
  --line: #343b4c;
  --text: #f4f7fb;
  --muted: #aab3c2;
  --gold: #f1b84b;
  --blue: #5aa9ff;
  --green: #38d996;
  --red: #ff6b6b;
  --shadow: rgba(0, 0, 0, .22);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 218px; flex: 0 0 218px; display: flex; flex-direction: column; padding: 24px 14px 16px; background: #0b0d11; border-right: 1px solid #1e2430; }
.brand { display: grid; gap: 2px; padding: 2px 14px 26px; color: var(--gold); font-size: 22px; line-height: 1.05; letter-spacing: 0; font-weight: 800; }
.brand strong { font-size: 24px; }
.nav { display: grid; gap: 6px; }
.nav-item, .button { border: 1px solid transparent; border-radius: 4px; min-height: 42px; padding: 9px 13px; color: var(--text); background: var(--panel); font-weight: 700; text-align: left; transition: background .14s ease, border-color .14s ease, transform .14s ease; }
.nav-item:hover, .button:hover { background: #2a3140; }
.nav-item:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-item.active { color: #07101b; background: var(--blue); }
.sidebar-bottom { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line); }
.full { width: 100%; text-align: center; }
.connection { padding: 14px 3px 0; color: var(--green); font-size: 12px; font-weight: 700; }
.main { min-width: 0; height: 100vh; flex: 1; padding: 26px 34px 38px; overflow-x: hidden; overflow-y: auto; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
#eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 32px; line-height: 1.15; }
h2 { margin-bottom: 6px; font-size: 20px; }
h3 { margin-bottom: 4px; font-size: 15px; }
.top-status { white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--panel); font-size: 13px; font-weight: 700; }
.view { max-width: 1600px; animation: fade-in .16s ease both; }
@keyframes fade-in { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.card, .stat, .machine-card { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); box-shadow: 0 8px 24px var(--shadow); }
.card { padding: 18px; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { min-height: 102px; display: grid; align-content: center; gap: 8px; padding: 14px; text-align: center; }
.stat label { color: var(--muted); font-size: 11px; font-weight: 800; }
.stat b { color: var(--blue); font-size: 29px; line-height: 1; }
.stat.warning b { color: var(--gold); } .stat.danger b { color: var(--red); } .stat.success b { color: var(--green); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.muted, .subtle { color: var(--muted); }
.small { font-size: 12px; }
.action-list { display: grid; gap: 8px; }
.action-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-top: 1px solid var(--line); }
.action-row:first-child { border-top: 0; padding-top: 0; }
.action-copy { min-width: 0; flex: 1; }
.action-copy strong, .action-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-copy span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.button { min-height: 38px; text-align: center; }
.button.primary { color: #07101b; background: var(--blue); }
.button.gold { color: #191204; background: var(--gold); }
.button.success { color: #06150f; background: var(--green); }
.button.danger { color: #21070a; background: var(--red); }
.button.subtle { color: var(--text); background: var(--panel2); }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { padding: 17px; min-width: 0; }
.project-card .project-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.project-card .project-title h3 { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; color: var(--muted); font-size: 13px; }
.project-meta strong { color: var(--text); display: block; margin-top: 2px; }
.project-card footer { display: flex; gap: 8px; margin-top: 15px; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 3px; background: var(--panel2); color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge.ready, .badge.complete, .badge.completed { color: var(--green); background: rgba(56,217,150,.11); }
.badge.running, .badge.processing { color: var(--blue); background: rgba(90,169,255,.12); }
.badge.review, .badge.waiting-review, .badge.pending, .badge.approved { color: var(--gold); background: rgba(241,184,75,.12); }
.badge.failed, .badge.blocked { color: var(--red); background: rgba(255,107,107,.12); }
.machines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.machine-card { min-height: 232px; display: flex; flex-direction: column; padding: 16px; }
.machine-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.machine-code { margin: 0 0 5px; color: var(--gold); font-size: 22px; font-weight: 800; }
.machine-card h3 { font-size: 16px; }
.machine-card p { min-height: 55px; margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.machine-card footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.queue-count { color: var(--green); font-size: 12px; font-weight: 800; }
.empty { border: 1px dashed var(--line); padding: 24px; color: var(--muted); text-align: center; }
.workspace-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.machine-tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 14px; }
.machine-tab { min-height: 40px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: var(--panel2); font-weight: 800; }
.machine-tab.active { color: #161002; background: var(--gold); border-color: var(--gold); }
.mode-switch { display: inline-flex; gap: 4px; padding: 4px; background: #0e1117; border: 1px solid var(--line); border-radius: 4px; }
.mode-switch button { border: 0; min-height: 34px; padding: 7px 11px; color: var(--muted); background: transparent; font-weight: 800; }
.mode-switch button.active { color: #081018; background: var(--blue); border-radius: 2px; }
.workflow-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.step { padding: 7px 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); border-radius: 3px; font-size: 12px; font-weight: 800; }
.step.current { color: #06150f; background: var(--green); border-color: var(--green); }
.step.complete { color: var(--green); }.step.failed { color: var(--red); }.arrow { color: var(--muted); }
.input-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--muted); font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #0f1218; }
.field textarea { min-height: 86px; resize: vertical; }
.field input[readonly] { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field.check { display: flex; align-items: center; gap: 8px; padding-top: 26px; }.field.check input { width: 17px; min-height: 17px; }
.field.check label { color: var(--text); }
.queue-list { display: grid; gap: 8px; }
.queue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); background: var(--panel2); }
.queue-item.selected { border-color: var(--blue); background: rgba(90,169,255,.11); }
.queue-item strong, .queue-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.run-panel { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 15px; padding: 12px 14px; border: 1px solid var(--line); background: #151923; box-shadow: 0 9px 28px rgba(0,0,0,.32); }
.run-status { min-width: 0; }.run-status strong, .run-status span { display: block; }.run-status span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.progress { height: 5px; overflow: hidden; margin-top: 8px; border-radius: 5px; background: var(--panel2); }.progress b { display: block; width: 45%; height: 100%; background: var(--blue); animation: progress 1.15s ease-in-out infinite alternate; }.progress.done b { width: 100%; background: var(--green); animation: none; }.progress.failed b { width: 100%; background: var(--red); animation: none; }
@keyframes progress { from { transform: translateX(-50%); } to { transform: translateX(180%); } }
.table-wrap { overflow: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; } th { position: sticky; top: 0; background: var(--panel2); color: var(--muted); font-size: 11px; } td.path { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); } tr.clickable:hover td { background: rgba(90,169,255,.07); }
.details-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 2fr); gap: 14px; }.info-list { display: grid; gap: 8px; }.info-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 13px; }.info-list label { color: var(--muted); }.info-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }.timeline .step { text-transform: uppercase; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 26px; background: rgba(5,7,10,.66); }.modal[hidden] { display: none; }.modal-card { position: relative; width: min(1080px, 96vw); max-height: 90vh; overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); box-shadow: 0 20px 80px rgba(0,0,0,.5); }.icon-button.close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 3px; color: var(--muted); background: var(--panel2); font-size: 18px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 22px; max-width: 430px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--panel2); box-shadow: 0 12px 32px rgba(0,0,0,.4); }.toast.error { border-color: var(--red); }.toast.success { border-color: var(--green); }
.range-editor { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }.range-list { display: grid; gap: 6px; }.range-list div { display: flex; justify-content: space-between; gap: 8px; padding: 8px; background: var(--panel2); color: var(--muted); font-size: 13px; }
@media (max-width: 1240px) { .main { padding: 22px; }.machines { grid-template-columns: repeat(3, minmax(0, 1fr)); }.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Control-room visual hierarchy. The work surface remains intentionally quiet. */
:root { --bg: #0d1117; --panel: #151c25; --panel2: #1d2733; --line: #2c3a4c; --text: #f2f6fb; --muted: #aebacc; --blue: #61a8ff; --green: #36d69a; --gold: #f4bd4f; --red: #ff746d; --shadow: rgba(0,0,0,.18); }
body { background: var(--bg); }
.sidebar { width: 232px; flex-basis: 232px; padding: 26px 16px 17px; background: #090d12; border-right-color: #202b38; }
.brand { padding: 5px 13px 29px; font-size: 14px; line-height: 1.15; letter-spacing: .8px; }
.brand strong { color: var(--text); font-size: 24px; letter-spacing: 0; }
.nav { gap: 5px; }
.nav-item { position: relative; min-height: 44px; padding: 10px 13px 10px 16px; color: #d3ddea; background: transparent; border-color: transparent; }
.nav-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: transparent; border-radius: 2px; }
.nav-item:hover { color: var(--text); background: #131b25; border-color: #202d3c; transform: none; }
.nav-item.active { color: var(--text); background: #1b3148; border-color: #315578; }
.nav-item.active::before { background: var(--blue); }
.sidebar-bottom { margin: auto 5px 0; padding: 18px 0 0; }
.sidebar-bottom .button { min-height: 44px; }
.main { padding: 30px 38px 44px; }
.topbar { align-items: center; padding-bottom: 20px; border-bottom: 1px solid #202b38; }
#eyebrow { color: #8391a5; letter-spacing: .7px; }
h1 { font-size: 31px; font-weight: 750; }
.top-status { min-width: 96px; color: #b9c8d8; background: #111924; border-color: #29394b; text-align: center; }
.card, .stat, .machine-card { border-color: var(--line); border-radius: 6px; box-shadow: none; }
.card { background: #141b24; }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { font-size: 19px; }
.section-kicker, .eyebrow-accent { margin: 0 0 5px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.command-hero { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 5px 0 22px; border-bottom: 1px solid var(--line); }
.command-hero h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: 0; }
.command-hero p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.quick-actions .button { min-width: 126px; }
.stats { gap: 11px; margin: 20px 0 16px; }
.stat { position: relative; min-height: 110px; overflow: hidden; padding: 16px; background: #121923; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue); }
.stat.warning::before { background: var(--gold); }.stat.danger::before { background: var(--red); }.stat.success::before { background: var(--green); }
.stat label { font-size: 11px; letter-spacing: .3px; }.stat b { font-size: 31px; }
.stack { gap: 16px; }
.attention-card { border-left: 3px solid var(--gold); }
.action-list { gap: 0; }
.action-row { min-height: 66px; padding: 11px 2px; transition: background .14s ease; }
.action-row:hover { background: #182231; }.action-row:first-child { padding-top: 5px; }
.action-copy strong { font-size: 14px; }.action-copy span { margin-top: 4px; font-size: 12px; }
.priority-failed .action-copy strong, .priority-blocked .action-copy strong { color: #ffc0bc; }
.complete-empty { color: #8edbbd; border-color: #285e4a; background: #10251f; }
.button { min-height: 38px; border-color: #2b3a4d; background: #202a38; transition: background .13s ease, border-color .13s ease, color .13s ease, transform .13s ease; }
.button:hover:not([disabled]) { border-color: #4d6480; background: #2a3748; transform: translateY(-1px); }
.button.primary { background: #4e9bf1; border-color: #69abf4; }.button.primary:hover:not([disabled]) { background: #69abf4; }
.button.gold { background: #eeb748; border-color: #f5c864; }.button.gold:hover:not([disabled]) { background: #f5c864; }
.button.success { background: #32c98f; border-color: #4bdbab; }.button.success:hover:not([disabled]) { background: #4bdbab; }
.button.danger { background: #e25f5c; border-color: #f17b76; }.button.danger:hover:not([disabled]) { background: #f17b76; }
.button.subtle { background: #202a38; }.button[disabled] { transform: none; }
.badge { min-height: 23px; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px; letter-spacing: .15px; }
.badge.ready, .badge.complete, .badge.completed { border-color: rgba(54,214,154,.28); }.badge.running, .badge.processing { border-color: rgba(97,168,255,.3); }.badge.review, .badge.waiting-review, .badge.pending, .badge.approved { border-color: rgba(244,189,79,.3); }.badge.failed, .badge.blocked { border-color: rgba(255,116,109,.3); }
.project-grid { gap: 12px; }.project-card { position: relative; overflow: hidden; padding: 18px; background: #151e29; }.project-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #3a4c62; }.project-card:has(.badge.review)::before { background: var(--gold); }.project-card:has(.badge.failed)::before, .project-card:has(.badge.blocked)::before { background: var(--red); }.project-card:has(.badge.running)::before, .project-card:has(.badge.processing)::before { background: var(--blue); }
.project-card:hover { border-color: #48617d; }.project-title h3 { font-size: 18px; }.project-meta { grid-template-columns: 1.15fr .85fr; gap: 11px 16px; }.project-meta strong { line-height: 1.3; }.project-card footer { padding-top: 2px; }
.machines { gap: 12px; }.machine-card { min-height: 238px; padding: 18px; background: #151e29; }.machine-card:hover { border-color: #4b6280; }.machine-code { color: var(--gold); font-size: 20px; }.machine-card h3 { margin: 0; }.machine-card p { min-height: 59px; color: #b5c2d3; }.queue-count { color: #70dcb4; }
.machine-tabs { position: sticky; z-index: 4; top: -30px; padding: 11px 0; background: var(--bg); border-bottom: 1px solid #263344; }.machine-tab { min-height: 42px; color: #c9d5e3; background: #192331; border-color: #2b3a4d; }.machine-tab:hover { background: #25354a; }.machine-tab.active { color: #161002; background: var(--gold); border-color: var(--gold); }
.workspace-head { align-items: center; }.workspace-head h2 { margin-bottom: 4px; }.mode-switch { background: #0c1117; border-color: #2b3a4c; }.mode-switch button.active { background: #4e9bf1; }
.workflow-line { padding: 11px 12px; border: 1px solid #2a3747; background: #111822; }.step { border-radius: 3px; }.step.current { background: #32c98f; border-color: #32c98f; }
.input-panel { padding: 12px; border: 1px dashed #3a4a5e; background: #101720; }.field label { color: #b7c5d6; }.field input, .field select, .field textarea { border-color: #324155; background: #0b1016; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #5b9ee9; outline: 0; }
.queue-item { border-radius: 4px; background: #182230; }.queue-item:hover { border-color: #51709a; }.queue-item.selected { border-color: #61a8ff; background: #17314e; }
.run-panel { border-radius: 6px; background: #101821; }.progress { background: #263545; }.progress b { background: #61a8ff; }
.table-wrap { border-radius: 5px; border-color: #2b3a4d; }th { background: #1d2936; }td { border-bottom-color: #263344; }tr.clickable:hover td { background: #182b41; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 13px; }.filter { min-height: 30px; padding: 5px 9px; border: 1px solid #344559; border-radius: 999px; color: var(--muted); background: #101720; font-size: 11px; font-weight: 800; }.filter:hover { color: var(--text); border-color: #54759c; }.filter.active { color: #081018; border-color: var(--blue); background: var(--blue); }
.modal-card { background: #101720; border-color: #3c516c; }.toast { background: #182332; border-color: #4a6484; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.machine-brief { display: grid; gap: 6px; margin: -2px 0 14px; padding: 9px 10px; border-left: 2px solid #416b96; background: #111924; color: #aebfd1; font-size: 12px; line-height: 1.35; }
.machine-brief span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.machine-brief b { display: inline-block; min-width: 62px; color: var(--gold); }
.input-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 9px 12px; border: 1px solid #29394b; background: #111924; color: #aebfd1; font-size: 12px; }
.input-summary strong, .input-summary span { display: block; }.input-summary strong { color: var(--text); }.input-summary span { margin-top: 3px; }.empty-compact { color: var(--muted); }
.folder-grid, .folder-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.folder-summary { min-width: 0; display: grid; gap: 4px; padding: 11px; border: 1px solid #2c3c50; background: #111924; }
.folder-summary strong { color: var(--text); }.folder-summary span { overflow: hidden; color: #b6c4d5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.folder-summary small { color: var(--green); font-size: 11px; font-weight: 700; }
.folder-card { padding: 17px; border: 1px solid #304259; border-radius: 5px; background: #151e29; }.folder-card h3 { margin-bottom: 12px; font-size: 17px; }.folder-card .folder-summary { margin-bottom: 13px; }
@media (max-width: 1120px) { .folder-grid, .folder-strip { grid-template-columns: 1fr; }.machine-brief span { white-space: normal; } }
.machine-directory { display: grid; gap: 7px; }
.machine-directory-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 92px 70px; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 14px; border: 1px solid #2c3a4c; border-radius: 4px; color: var(--text); background: #151e29; text-align: left; }
.machine-directory-row:hover { border-color: #5c83af; background: #19283a; }.directory-code { color: var(--gold); font-size: 17px; font-weight: 800; }.directory-main { min-width: 0; }.directory-main strong, .directory-main small { display: block; }.directory-main small { overflow: hidden; margin-top: 3px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }.directory-services { color: #8fdabc; font-size: 12px; font-weight: 700; text-align: center; }.directory-open { color: #0b1520; background: var(--blue); padding: 8px 10px; border-radius: 3px; font-size: 12px; font-weight: 800; text-align: center; }
.guided-workspace { display: grid; gap: 14px; }.guided-top { padding: 16px 18px; }.guided-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; }.guided-title h2 { margin-bottom: 4px; }.guided-title .subtle { margin: 0; }.machine-switch-field { width: min(360px, 42%); }
.service-layout { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); align-items: start; gap: 14px; }.service-nav { position: sticky; top: 15px; display: grid; gap: 6px; max-height: calc(100vh - 66px); overflow: auto; padding: 10px; border: 1px solid #304054; border-radius: 6px; background: #101720; }.service-nav-heading { display: grid; gap: 3px; padding: 6px 7px 10px; border-bottom: 1px solid #29394c; }.service-nav-heading strong { color: var(--gold); }.service-nav-heading span { color: var(--muted); font-size: 12px; }.service-choice { display: grid; gap: 4px; padding: 10px; border: 1px solid transparent; border-radius: 4px; color: var(--text); background: transparent; text-align: left; }.service-choice:hover { background: #192535; }.service-choice.selected { border-color: #426e9d; background: #1b3551; }.service-choice strong { font-size: 13px; }.service-choice small { color: var(--muted); line-height: 1.3; }
.service-work { display: grid; gap: 12px; min-width: 0; }.service-intro { padding: 17px 18px; border-left: 3px solid var(--gold); }.service-intro h2 { margin-bottom: 7px; }.service-intro p:not(.section-kicker) { margin: 0; color: var(--muted); }.service-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; color: #9cb5cf; font-size: 12px; font-weight: 800; }.service-flow span { padding: 5px 8px; border: 1px solid #334357; background: #101822; }.service-flow b { color: var(--gold); }
.step-card { padding: 16px 18px; }.step-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }.step-heading > span { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; color: #0a131e; background: var(--blue); font-size: 13px; font-weight: 900; }.step-heading h3 { margin: 2px 0 3px; font-size: 16px; }.step-heading p { margin: 0; color: var(--muted); font-size: 12px; }.guided-selected { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 9px 11px; border: 1px solid #2a3b50; background: #101821; color: #aebfd1; font-size: 12px; }.guided-selected strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }.guided-selected span { flex: 1; color: var(--green); }.project-picker { display: grid; gap: 7px; }.project-picker > label { color: var(--muted); font-size: 12px; font-weight: 800; }
.output-choice { display: grid; grid-template-columns: minmax(210px, 290px) auto minmax(0, 1fr); align-items: center; gap: 9px; }.output-choice select { min-height: 39px; padding: 8px; border: 1px solid #34475d; border-radius: 3px; color: var(--text); background: #0c1117; }.output-choice span { overflow: hidden; color: #aebfd1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.preflight { padding: 12px; border: 1px solid #335474; background: #101b27; color: #bdd0e5; font-size: 13px; }.preflight > strong { display: block; margin: 8px 0 3px; color: var(--text); }.preflight p { margin: 8px 0 0; }.preflight ul { margin: 9px 0 0; padding-left: 18px; }.preflight.ready { border-color: #2c7658; background: #10261f; }.preflight.problem { border-color: #9e4d50; background: #2b161a; }.preflight.neutral { color: var(--muted); border-color: #364457; background: #111821; }
.review-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-left: 3px solid var(--green); }.review-card h3 { margin: 0; }.process-bar { position: sticky; z-index: 3; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid #3b5776; border-radius: 6px; background: #101a25; box-shadow: 0 12px 25px rgba(0,0,0,.33); }.process-bar p { margin: 0 0 3px; }.process-bar strong, .process-bar span { display: block; }.process-bar span { margin-top: 3px; color: var(--muted); font-size: 13px; }.live-progress { display: block; margin-top: 5px; color: #8bd5b3; font-weight: 700; }
@media (max-width: 1080px) { .service-layout { grid-template-columns: 1fr; }.service-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }.service-nav-heading { grid-column: 1 / -1; }.guided-title { align-items: flex-start; }.machine-switch-field { width: 300px; }.machine-directory-row { grid-template-columns: 62px minmax(0, 1fr) 70px; }.directory-services { display: none; } }
.profile-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.profile-card { border:1px solid #304054; background:#101720; padding:15px; border-radius:5px; display:grid; gap:12px; }
.profile-card > div { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }.profile-card h3 { margin:0; font-size:16px; }
.profile-card dl { margin:0; display:grid; gap:7px; }.profile-card dl div { display:grid; grid-template-columns:104px 1fr; gap:8px; }.profile-card dt { color:var(--muted); font-size:12px; }.profile-card dd { margin:0; overflow-wrap:anywhere; font-size:13px; }
.service-tools { margin-top:14px; }
.media-preview { display:block; width:100%; max-height:72vh; object-fit:contain; background:#080b10; }.audio-preview { width:100%; margin-top:14px; }
.sidebar { overflow-y: auto; }
.delivery-summary .button-row { margin-bottom: 10px; }
.delivery-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.delivery-credentials { display: grid; gap: 12px; }
.delivery-help { padding: 12px 0; color: var(--muted); font-size: 13px; }
.delivery-help summary { cursor: pointer; color: var(--blue); }
.delivery-help p { margin: 10px 0; line-height: 1.6; }
.delivery-help a { color: var(--blue); }
.delivery-detail { max-width: 360px; white-space: normal; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); }
.delivery-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; line-height: 1.5; }
.delivery-consent input { flex: 0 0 18px; width: 18px; height: 18px; }
.delivery-form-error { color: var(--red); margin: 12px 0 0; }
.delivery-account-card { align-content: start; min-width: 0; }
.m09-accounts, .m09-accounts > section, .m09-accounts .profile-grid { min-width: 0; }
.m09-accounts .section-heading { flex-wrap: wrap; }
.m09-accounts .table-wrap { max-width: 100%; }
@media (max-width: 650px) {
  .app-shell:has(.m09-accounts) { display: block; overflow: auto; }
  .app-shell:has(.m09-accounts) .sidebar { position: sticky; z-index: 5; width: 100%; height: auto; padding: 8px; }
  .app-shell:has(.m09-accounts) .brand, .app-shell:has(.m09-accounts) .sidebar-bottom { display: none; }
  .app-shell:has(.m09-accounts) .nav { display: flex; overflow-x: auto; }
  .app-shell:has(.m09-accounts) .nav-item { flex: 0 0 auto; }
  .app-shell:has(.m09-accounts) .main { height: auto; padding: 14px; overflow: visible; }
  .app-shell:has(.m09-accounts) .topbar { gap: 8px; }
  .app-shell:has(.m09-accounts) h1 { font-size: 24px; }
}
.delivery-account-card h3 { overflow-wrap: anywhere; }
.delivery-account-card > .delivery-counts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 10px 0; border-top: 1px solid #304054; border-bottom: 1px solid #304054; }
.delivery-counts span { color: var(--muted); font-size: 12px; }
.delivery-counts b { display: block; color: var(--text); font-size: 20px; margin-bottom: 3px; }
.delivery-progress { display: block; width: 100%; height: 8px; margin: 8px 0; accent-color: var(--green); }
.saved-credential { color: var(--green); font-size: 12px; }
.delivery-video-list, .delivery-plan-times, .delivery-schedule-list { max-height: 280px; overflow: auto; margin: 14px 0; }
.delivery-video-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #304054; }
.delivery-video-row label { overflow-wrap: anywhere; }
.delivery-video-row input[data-plan-title] { min-width: 0; width: 100%; padding: 8px; background: var(--bg); color: var(--text); border: 1px solid #304054; }
.delivery-plan-times > div { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #304054; overflow-wrap: anywhere; }
.delivery-plan-times time { color: var(--green); }
@media (max-width: 600px) { .delivery-video-row { grid-template-columns: 1fr; } }
.profile-card .button-row { flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 900px) { .delivery-form { grid-template-columns: 1fr; } .delivery-summary .section-heading { flex-wrap: wrap; } .profile-grid { grid-template-columns: 1fr; } }
