:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.94);
  --line: #d2c4b2;
  --text: #1f2933;
  --muted: #5f6b76;
  --accent: #0f766e;
  --accent-soft: #d8f1ee;
  --ok: #2f855a;
  --fail: #c2410c;
  --pending: #8a6d1f;
  --running: #1d4ed8;
  --shadow: 0 20px 50px rgba(59, 41, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2 {
  margin-top: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

code,
pre {
  font-family: "Fira Code", "SFMono-Regular", monospace;
}

.shell {
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.menu,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.menu a,
.actions a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: var(--shadow);
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(210, 196, 178, 0.7);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.9);
}

.notice.success {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(216, 241, 238, 0.65);
  color: #0f5e59;
}

.notice.error {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(255, 237, 213, 0.75);
  color: #9a3412;
}

.running-emphasis {
  margin-top: 0;
  margin-bottom: 20px;
  border-color: rgba(29, 78, 216, 0.28);
  background: rgba(219, 234, 254, 0.8);
  color: #1e40af;
  font-weight: 700;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.running-row {
  background: rgba(219, 234, 254, 0.35);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
}

.status-pill.pending {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(161, 98, 7, 0.2);
  color: var(--pending);
}

.status-pill.running {
  background: rgba(191, 219, 254, 0.55);
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--running);
}

.status-pill.completed {
  background: rgba(187, 247, 208, 0.45);
  border-color: rgba(34, 197, 94, 0.22);
  color: var(--ok);
}

.status-pill.failed {
  background: rgba(254, 215, 170, 0.45);
  border-color: rgba(234, 88, 12, 0.22);
  color: var(--fail);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  font-size: 13px;
}

code {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
}

.inline-form,
.task-form {
  margin: 0;
}

.priority-value {
  display: inline-flex;
  min-width: 32px;
  justify-content: center;
  font-weight: 700;
}

.task-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.task-search-input {
  flex: 1 1 280px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
}

.task-search-input::placeholder {
  color: #8b98a5;
}

.task-search-input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

.task-search-button,
.task-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 252, 247, 0.88);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.task-search-button:hover,
.task-search-clear:hover {
  color: var(--accent);
}

.priority-actions {
  display: inline-flex;
  gap: 8px;
}

.priority-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.priority-button:hover {
  background: rgba(255, 247, 237, 0.98);
}

.priority-button.increase {
  color: #166534;
}

.priority-button.decrease {
  color: #9a3412;
}

.danger-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #b45309;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:hover {
  background: #92400e;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.list-meta {
  margin: 0 0 16px;
  font-size: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.pagination a,
.pagination .disabled,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.pagination .disabled,
.pagination .current {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 720px) {
  .shell {
    padding: 28px 14px 40px;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .pagination {
    justify-content: center;
  }
}
