:root {
  color-scheme: light;
  --ink: #16211f;
  --muted: #5f6f6b;
  --line: #dbe6e1;
  --surface: #f7faf8;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --warn: #9f4f16;
  --danger: #b42318;
  --soft: #e8f4f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
.button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--brand-strong);
}

.button.secondary {
  background: #edf5f2;
  color: var(--brand-strong);
  border: 1px solid var(--line);
}

.cancel-shell {
  min-height: 100vh;
}

.cancel-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

nav a[aria-current="page"] {
  color: var(--brand-strong);
}

.login-band,
.hero-band,
.control-band,
.content-grid,
.locked-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.login-band,
.locked-band {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
}

.login-panel,
.panel,
.locked-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 47, 41, 0.08);
}

.login-panel {
  width: min(460px, 100%);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.hero-band {
  padding: 36px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.hero-band h1,
.login-panel h1,
.locked-band h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-band p,
.login-panel p,
.locked-band p {
  color: var(--muted);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.hero-actions,
.tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.control-band {
  padding-bottom: 18px;
}

.scenario-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 18px;
  justify-content: start;
  padding-bottom: 48px;
}

.panel {
  padding: 20px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.cancellation-form-panel {
  width: 100%;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.status-strip,
.policy-grid,
.export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-strip div,
.policy-card,
.scope-card,
.offer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.status-strip span,
.policy-card span,
.scope-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 6px;
}

.status-strip strong,
.policy-card strong,
.scope-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.cancel-form {
  display: grid;
  gap: 14px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.offer-list {
  display: grid;
  gap: 10px;
}

.offer-card strong {
  display: block;
  margin-bottom: 6px;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 12px;
}

.pill.warn {
  background: #fff4e5;
  color: var(--warn);
}

.status {
  margin: 0;
  color: var(--muted);
  min-height: 20px;
}

.status.error {
  color: var(--danger);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .cancel-topbar,
  .hero-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .scenario-form,
  .content-grid,
  .status-strip,
  .policy-grid,
  .export-grid {
    grid-template-columns: 1fr;
  }
}
