:root {
  color-scheme: light;
  --ink: #1d1c1d;
  --muted: #616061;
  --line: #d7d4d8;
  --panel: #ffffff;
  --page: #f6f4f1;
  --green: #007a5a;
  --green-dark: #00664f;
  --blue: #1264a3;
  --gold: #e8a700;
  --rose: #d92d62;
  font-family: Arial, "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 40px;
  background: #3f0e40;
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: #f4c430;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.panel,
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 28px;
  margin-bottom: 18px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #8d8d8d;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost {
  color: var(--blue);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 14px;
}

.status {
  min-width: 132px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.status.ok {
  background: #def7ec;
  color: #03543f;
}

.status.warn {
  background: #fff8db;
  color: #7c5b00;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.step {
  min-height: 190px;
  padding: 20px;
}

.step span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #e8f5ff;
  color: var(--blue);
  font-weight: 800;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.deadline {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff8db;
  color: #7c5b00;
  font-size: 14px;
  font-weight: 800;
}

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

.handoff-item {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
}

.handoff-item.active {
  border-color: #e8a700;
  background: #fffdf0;
}

.handoff-item strong,
.handoff-item span {
  display: block;
}

.handoff-item strong {
  margin-bottom: 8px;
}

.handoff-item span {
  color: var(--muted);
  line-height: 1.5;
}

.settings-list {
  display: grid;
  gap: 12px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row strong {
  margin-bottom: 6px;
}

.setting-row span {
  color: var(--muted);
  line-height: 1.45;
}

code {
  display: block;
  padding: 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #f6f8fa;
  color: #24292f;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.item {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
}

.item strong,
.item span {
  display: block;
}

.item strong {
  margin-bottom: 8px;
}

.item span {
  color: var(--muted);
  line-height: 1.5;
}

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

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

th {
  color: #454245;
  font-size: 14px;
}

td {
  color: var(--muted);
  line-height: 1.5;
}

td:first-child {
  color: var(--ink);
  font-weight: 700;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 880px) {
  .topbar,
  .intro,
  .section-head {
    display: block;
  }

  .status {
    margin-top: 16px;
  }

  .actions {
    justify-content: flex-start;
  }

  .steps,
  .grid,
  .handoff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .setting-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 22px 18px;
  }

  .layout {
    padding: 18px 12px 36px;
  }

  h1 {
    font-size: 28px;
  }

  .panel {
    padding: 20px;
  }

  .steps,
  .grid,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  dl div {
    grid-template-columns: 1fr;
  }
}
