:root {
  color-scheme: light;
  --bg: #f5f6fb;
  --panel: rgba(255,255,255,.94);
  --ink: #202235;
  --muted: #777b91;
  --line: #e7e8f1;
  --brand: #6d5ce7;
  --brand-dark: #5142c7;
  --soft: #efedff;
  --success: #16815b;
  --danger: #c33e50;
  --shadow: 0 18px 50px rgba(41, 36, 86, .09);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 10% 0%, #ece8ff 0, transparent 34%), var(--bg); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
.page-shell { min-height: 100vh; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px)/2)); background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(220,221,234,.8); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; font-weight: 800; background: linear-gradient(145deg, #8b7cf5, #5543d1); box-shadow: 0 8px 22px rgba(91,73,210,.28); }
.brand strong, .brand small { display: block; }.brand small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.content { width: min(1160px, calc(100% - 32px)); margin: 32px auto 64px; }
.hero { display: flex; align-items: center; justify-content: space-between; padding: 24px 4px 30px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.hero h1 { margin: 7px 0 5px; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.04em; }.hero p { margin: 0; color: var(--muted); }
.run-state { display: flex; align-items: center; gap: 9px; border-radius: 999px; padding: 9px 14px; font-weight: 700; background: white; border: 1px solid var(--line); }.run-state span { width: 9px; height: 9px; border-radius: 50%; }.run-state.on span { background: #26b47e; box-shadow: 0 0 0 5px #dff8ee; }.run-state.off span { background: #aaaec0; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }.metric-card, .panel, .control-panel { background: var(--panel); border: 1px solid rgba(224,225,237,.95); border-radius: 20px; box-shadow: var(--shadow); }.metric-card { padding: 21px; }.metric-card small, .metric-card strong, .metric-card span { display: block; }.metric-card small { color: var(--muted); }.metric-card strong { font-size: 23px; margin: 5px 0 2px; }.metric-card span { color: var(--muted); font-size: 12px; }
.panel-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 18px; }.panel { padding: 23px; margin-bottom: 18px; }.panel-heading, .control-panel > div { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }.panel-heading h2, .control-panel h2 { margin: 0; font-size: 18px; }.panel-heading p, .control-panel p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }.step { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--soft); font-weight: 800; }
.stack-form { display: grid; gap: 14px; }.stack-form.compact { margin-bottom: 12px; }.stack-form label { color: #55596d; font-size: 13px; font-weight: 700; }.stack-form input, .inline-form input, select { width: 100%; margin-top: 6px; border: 1px solid #dfe1eb; border-radius: 11px; padding: 11px 12px; background: #fbfbfe; outline: none; }.stack-form input:focus, .inline-form input:focus, select:focus { border-color: #9b90ef; box-shadow: 0 0 0 3px #efedff; }.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 10px; }.inline-form input { margin: 0; }
.button { border: 0; border-radius: 11px; padding: 10px 15px; cursor: pointer; font-weight: 750; transition: transform .15s, background .15s; }.button:hover { transform: translateY(-1px); }.button.primary { background: var(--brand); color: white; box-shadow: 0 8px 20px rgba(94,75,218,.22); }.button.primary:hover { background: var(--brand-dark); }.button.secondary { color: var(--brand-dark); background: var(--soft); }.button.ghost { color: #5d6074; background: #f3f3f8; }.button.ghost-dark { background: #303247; color: white; }.button.danger { color: white; background: var(--danger); }.button.wide { width: 100%; }
.notice { border-radius: 13px; padding: 12px 15px; margin-bottom: 16px; font-weight: 650; }.notice.success { color: #126448; background: #e4f7ef; border: 1px solid #bde9d8; }.notice.error { color: #a12d3e; background: #ffedf0; border: 1px solid #f7c8cf; }.complete-box { color: var(--success); padding: 18px; border-radius: 13px; background: #eaf8f3; font-weight: 800; }
.group-columns { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; margin-bottom: 18px; }.group-columns h3 { margin: 0 0 10px; font-size: 13px; color: #65687d; }.group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 320px; overflow: auto; }.group-option { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; }.group-option:has(input:checked) { border-color: #9b90ef; background: #f7f5ff; }.group-option span, .group-option strong, .group-option small { min-width: 0; display: block; }.group-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.group-option small { color: var(--muted); font-size: 10px; }
.control-panel { display: flex; align-items: center; justify-content: space-between; padding: 22px 23px; margin-bottom: 18px; }.control-panel > div { margin: 0; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.status-pill { display: inline-block; padding: 4px 9px; border-radius: 999px; color: #5f6174; background: #eff0f5; font-size: 11px; font-weight: 800; }.status-pill.completed { color: #147050; background: #e1f7ee; }.status-pill.waiting_group { color: #99620e; background: #fff3d9; }.status-pill.failed { color: #a12d3e; background: #ffeaed; }.empty { text-align: center; color: var(--muted); padding: 30px; }
.login-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; }.login-card { width: min(420px, 100%); padding: 34px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }.login-card h1 { margin: 10px 0 2px; }.login-card > p { margin: 0 0 22px; color: var(--muted); }.login-icon { font-size: 32px; }
@media (max-width: 760px) { .status-grid, .panel-grid, .group-columns { grid-template-columns: 1fr; }.group-list { grid-template-columns: 1fr; }.hero { align-items: flex-start; gap: 20px; }.control-panel { align-items: flex-start; gap: 20px; }.topbar { padding: 0 16px; }.content { width: min(100% - 20px, 1160px); margin-top: 18px; } }

