:root {
  color-scheme: light;
  --ink: #14231f;
  --muted: #5b6f68;
  --line: #cfd8d5;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --accent: #1c6b5a;
  --accent-strong: #0d4f42;
  --warn: #8d2e1f;
  --wash: #eef7f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
}

button.secondary {
  color: var(--accent-strong);
  background: #ffffff;
}

button.primary {
  background: var(--accent-strong);
}

button.danger {
  border-color: var(--warn);
  background: var(--warn);
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-tabs,
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  min-width: 88px;
  color: var(--accent-strong);
  background: #ffffff;
}

.tab.active {
  color: #ffffff;
  background: var(--accent-strong);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.notice-grid p,
.status,
.policy-alert,
.boundary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--wash);
}

.status.ok {
  border-color: #87b79d;
}

.status.bad,
.policy-alert {
  border-color: #d19a8f;
  color: var(--warn);
  background: #fff4f1;
}

.grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}

.card-head {
  margin-bottom: 12px;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

legend {
  padding: 0 6px;
  color: var(--accent-strong);
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.helper {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checks input {
  width: auto;
}

dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.tasks {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.tasks li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tasks span {
  display: block;
  margin-top: 4px;
}

.section-card {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

.incident {
  margin-top: 14px;
}

.export-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.lifecycle-controls {
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lifecycle-controls .actions {
  margin-bottom: 8px;
}

.package-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.package-options {
  display: grid;
  gap: 8px;
}

.package-option {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--wash);
}

.payment-proof-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.readiness-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.readiness-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.readiness-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--warn);
  background: #fff4f1;
  font-size: 0.78rem;
  font-weight: 800;
}

.readiness-badge.ready {
  color: var(--accent-strong);
  background: var(--wash);
}

.readiness-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}

.readiness-list span {
  grid-row: span 2;
  align-self: start;
  justify-self: center;
  min-width: 28px;
  border-radius: 999px;
  padding: 3px 5px;
  color: #ffffff;
  background: var(--warn);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.readiness-list [data-readiness-status="complete"] span {
  background: var(--accent-strong);
}

.readiness-list strong {
  font-size: 0.9rem;
}

.readiness-list small {
  color: var(--muted);
  line-height: 1.35;
}

.evidence {
  min-height: 84px;
}

@media (max-width: 760px) {
  .topbar,
  .grid.two,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    align-items: start;
  }
}
