:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --soft: #f6f9ff;
  --text: #18212b;
  --muted: #5c6c7d;
  --line: #d7e0ea;
  --accent: #1e4ed8;
  --accent-strong: #163eb0;
  --warn: #9a5b00;
  --warn-bg: #fff4da;
  --alert: #8c1d18;
  --alert-bg: #fde7e5;
  --shadow: 0 18px 40px rgba(19, 33, 62, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SUIT", "Pretendard", "Noto Sans KR", sans-serif;
  background: radial-gradient(circle at top left, #eef4ff 0, #f3f6fb 42%, #edf2f8 100%);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
.button-link {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 0.78rem 1.08rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

button:hover,
.button-link:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button.secondary,
.button-link.secondary {
  background: #eef3fb;
  color: var(--text);
}

button.secondary:hover,
.button-link.secondary:hover {
  background: #e2ebf8;
}

button.danger,
.button-link.danger {
  background: #b42318;
  color: #fff;
}

button.danger:hover,
.button-link.danger:hover {
  background: #981d14;
}

input,
select {
  width: 100%;
  margin-top: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.82rem 0.95rem;
  font: inherit;
  background: #fff;
}

label > span,
fieldset legend {
  font-weight: 700;
}

.shell-header,
.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
}

.page-shell {
  padding-bottom: 28px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover h1 {
  color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(215, 224, 234, 0.88);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.panel.soft-panel {
  background: var(--soft);
}

.panel.narrow {
  width: min(460px, 100%);
  margin: 64px auto 0;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.08;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.warn,
.alert {
  border-radius: 14px;
  padding: 0.86rem 0.96rem;
}

.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.alert {
  background: var(--alert-bg);
  color: var(--alert);
}

.stack {
  display: grid;
  gap: 12px;
}

.split,
.panel-heading,
.job-card-top,
.job-card-footer,
.stat-row,
.progress-summary-text,
.info-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading.compact {
  margin-bottom: 10px;
}

.inline-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.launch-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.launch-actions {
  align-self: stretch;
  align-items: end;
}

.launch-footnote {
  margin-top: -2px;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 14px;
}

.field-cluster {
  display: grid;
  gap: 12px;
}

.field-cluster.soft {
  padding: 14px;
  border-radius: 18px;
  background: var(--soft);
}

.selection-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 0;
  background: #fff;
}

.selection-box legend {
  padding: 0 6px;
  color: var(--muted);
}

.scope-switch {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px 12px;
  margin: 0;
  background: var(--soft);
}

.scope-switch legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.scope-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scope-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.scope-tab input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.scope-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.choice-pill {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.choice-pill span {
  display: block;
  font-weight: 700;
}

.choice-pill small {
  color: var(--muted);
  font-size: 0.84rem;
}

.course-picker {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.course-picker.compact {
  padding: 12px;
}

.course-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.course-list.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 240px;
}

.course-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.course-item input {
  width: auto;
  margin: 0;
}

.course-index {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.course-copy {
  display: grid;
  gap: 3px;
}

.course-copy strong {
  font-size: 0.98rem;
}

.course-copy small {
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.meta-grid.compact {
  min-width: 360px;
}

.meta-grid div,
.stat-card,
.job-card,
.current-progress-card,
.event-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.meta-grid div {
  padding: 12px 14px;
}

.meta-grid span,
.stat-card span,
.current-progress-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 14px 16px;
}

.stat-card strong,
.current-progress-card strong {
  font-size: 1.55rem;
  line-height: 1.08;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5edf8;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e4ed8 0%, #5c8dff 100%);
}

.progress-summary {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.job-card-grid {
  display: grid;
  gap: 10px;
}

.job-card {
  padding: 16px;
}

.stat-row {
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.stat-row strong {
  font-size: 1rem;
}

.job-message {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 700;
}

.compact-note {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.job-card-footer {
  margin-top: 12px;
  align-items: center;
}

.current-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.current-progress-card {
  padding: 14px 16px;
}

.current-progress-card.wide {
  grid-column: 1 / -1;
}

.current-progress-card.wide strong {
  font-size: 1.06rem;
}

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

.event-item {
  padding: 12px 14px;
}

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

.event-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.table-subtext {
  margin: 6px 0 0;
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.72rem;
  font-size: 0.86rem;
  font-weight: 700;
  background: #eaf1ff;
  color: #284ea6;
}

.status-running {
  background: #fff3d9;
  color: #9b6200;
}

.status-completed {
  background: #def7e7;
  color: #1e7a3e;
}

.status-completed_with_failures,
.status-failed {
  background: #fde7e5;
  color: #8c1d18;
}

.status-stopped {
  background: #e8edf5;
  color: #445468;
}

.log-box {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #101826;
  color: #d9e6ff;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.45;
}

.wrap {
  word-break: break-all;
}

@media (max-width: 800px) {
  .shell-header,
  .page-shell {
    width: min(100% - 18px, 1120px);
  }

  .split,
  .panel-heading,
  .progress-summary-text,
  .job-card-top,
  .job-card-footer,
  .info-line {
    flex-direction: column;
  }

  .launch-top,
  .launch-toolbar,
  .launch-grid,
  .choice-row,
  .course-list.compact-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid.compact {
    min-width: 0;
    width: 100%;
  }
}
