:root {
  --navy-950: #0e1238; --navy-900: #171a55; --navy-800: #24266f;
  --cyan-500: #10cde0; --violet-500: #7955df; --violet-600: #6542c7;
  --ink: #20213c; --muted: #666a82; --border: #dfe2ed; --surface: #fff;
  --background: #f5f6fb; --danger: #a1324a; --shadow: 0 14px 38px rgba(17, 21, 63, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 92% 2%, rgba(121, 85, 223, .08), transparent 28rem), var(--background); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: #5740b5; }
button, input, select, textarea { font: inherit; }
.app-header { color: #fff; background: radial-gradient(circle at 82% 10%, rgba(121, 85, 223, .46), transparent 28%), linear-gradient(115deg, var(--navy-950), var(--navy-800)); border-bottom: 3px solid var(--cyan-500); box-shadow: 0 8px 24px rgba(17, 21, 63, .16); }
.app-header__inner, .page-shell, .app-footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.app-header__inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 7px 22px rgba(4,8,39,.3), 0 0 0 3px rgba(16,205,224,.18); }
.brand span { display: grid; line-height: 1.12; }
.brand strong { font-size: 1.16rem; }
.brand small { margin-top: 5px; color: #cceff3; font-size: .78rem; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a, .nav-button { padding: 9px 11px; border: 0; border-radius: 8px; color: #fff; background: transparent; text-decoration: none; font-size: .82rem; font-weight: 650; cursor: pointer; }
.top-nav a:hover, .nav-button:hover { background: rgba(255,255,255,.11); }
.top-nav form { margin: 0; }
.page-shell { padding-block: 38px 52px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.eyebrow { margin: 0 0 8px; color: var(--violet-600); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy-950); font-size: clamp(1.8rem,3vw,2.45rem); letter-spacing: -.035em; line-height: 1.1; }
h2 { margin: 0; color: var(--navy-950); font-size: 1.08rem; letter-spacing: -.012em; }
.intro { max-width: 720px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.actions, .inline-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-actions { margin-top: 18px; }
.button, button.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; color: #fff; background: var(--violet-500); box-shadow: 0 6px 16px rgba(101,66,199,.17); text-decoration: none; font-weight: 750; cursor: pointer; }
.button:hover { background: var(--violet-600); }
.button--secondary { background: var(--navy-900); box-shadow: 0 6px 16px rgba(17,21,63,.15); }
.button--secondary:hover { background: var(--navy-800); }
.button--ghost { border-color: #ccd1e1; color: var(--navy-900); background: #fff; box-shadow: none; }
.button--ghost:hover { background: #f4f2fc; }
.button--danger { background: var(--danger); }
.button:disabled, button.button:disabled { opacity: .45; cursor: not-allowed; }
.notice { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #bdebf0; border-radius: 10px; color: #155663; background: #e8fbfd; }
.notice--error { color: #852b3d; border-color: #efc1ca; background: #fff0f2; }
.notice--warning { color: #825d13; border-color: #eedba8; background: #fff5dc; }
.safety-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 13px 15px; border: 1px solid #eedba8; border-radius: 11px; color: #715516; background: #fff7df; }
.safety-banner::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #e5a21a; box-shadow: 0 0 0 4px rgba(229,162,26,.14); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.kpi { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(17,21,63,.05); }
.kpi strong, .kpi span { display: block; }
.kpi strong { color: var(--navy-950); font-size: 1.65rem; line-height: 1; }
.kpi span { margin-top: 7px; color: var(--muted); font-size: .77rem; }
.card { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px; border-bottom: 1px solid #e9ebf3; }
.card__body { padding: 21px; }
.card + .card { margin-top: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 17px; border-bottom: 1px solid #eaecf3; text-align: left; vertical-align: middle; }
th { color: var(--navy-950); background: #eef9fb; font-size: .72rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
tbody tr:hover { background: #fbfaff; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }
.empty-state { padding: 44px 24px; text-align: center; }
.empty-state h2 { margin-bottom: 7px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: #5540ad; background: #ece8fb; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.badge--safe, .badge--completed, .badge--delivered { color: #176046; background: #e6f7ef; }
.badge--failed, .badge--uncertain { color: #8d2f44; background: #fdecef; }
.badge--queued, .badge--running, .badge--accepted, .badge--submitting { color: #175f6c; background: #e4f8fb; }
.badge--paused { color: #775710; background: #fff2ce; }
.two-column { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.7fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.form-card { max-width: 880px; padding: 25px; }
label { display: block; margin: 16px 0 7px; color: var(--navy-950); font-size: .85rem; font-weight: 750; }
input[type="text"], input[type="email"], input[type="file"], select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cdd2e1; border-radius: 9px; color: var(--ink); background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(121,85,223,.14); }
.helptext, .help { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.errorlist { margin: 7px 0 0; padding: 10px 13px 10px 30px; border-radius: 9px; color: #852b3d; background: #fff0f2; }
.back-link { display: inline-flex; margin-bottom: 18px; color: #5740b5; text-decoration: none; font-weight: 700; }
.step-list { display: grid; }
.step { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; padding: 20px 0; border-bottom: 1px solid #eceef4; }
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; border-bottom: 0; }
.step__number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-900); font-size: .78rem; font-weight: 800; }
.step h3 { margin: 5px 0 7px; color: var(--navy-950); font-size: .96rem; }
.step p { margin: 0 0 12px; }
.inline-form { display: grid; gap: 10px; }
.detail-list { display: grid; gap: 13px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.detail-list dt { color: var(--muted); font-size: .8rem; }
.detail-list dd { margin: 0; font-weight: 650; word-break: break-word; }
.progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e8eaf2; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan-500),var(--violet-500)); }
.progress-copy { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .76rem; }
.preview-frame { display: block; width: 100%; min-height: 420px; border: 0; background: #fff; }
.error-box { margin-top: 16px; padding: 13px; border: 1px solid #efc1ca; border-radius: 10px; color: #852b3d; background: #fff0f2; white-space: pre-wrap; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
code { padding: 2px 5px; border-radius: 5px; color: var(--navy-900); background: #f0f1f7; }
@media (max-width: 880px) { .two-column { grid-template-columns: 1fr; } .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .page-heading { align-items: start; flex-direction: column; } }
@media (max-width: 680px) { .app-header__inner,.page-shell,.app-footer { width: min(100% - 28px,1160px); } .app-header__inner { min-height: 74px; } .brand img { width: 48px; height: 48px; } .brand small { display: none; } .top-nav a { display: none; } .page-shell { padding-top: 27px; } .kpi { padding: 15px; } .card__header,.card__body { padding: 17px; } th,td { padding: 12px 14px; } .detail-list div { grid-template-columns: 1fr; gap: 3px; } .app-footer { flex-direction: column; gap: 5px; } }
