:root {
  --bg: #f6f8fb;
  --ink: #172033;
  --muted: #657086;
  --line: #d9e1ea;
  --panel: #ffffff;
  --blue: #2458d3;
  --blue-dark: #163f9f;
  --green: #0f8f62;
  --red: #b42318;
  --amber: #9a5b00;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.status-pill {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.status-pill.ready {
  color: var(--green);
  border-color: rgba(15, 143, 98, 0.35);
}

.notice,
.success-panel,
.form-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice,
.success-panel {
  padding: 28px;
}

.notice p,
.success-panel p,
.submit-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice.error {
  border-color: rgba(180, 35, 24, 0.35);
  color: var(--red);
}

.summary-band,
.limits-band,
.submit-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-band > div,
.limits-band > div,
.submit-band > div {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-band strong,
.limits-band strong {
  display: block;
  overflow-wrap: anywhere;
}

.form-section {
  margin-bottom: 18px;
  padding: 22px;
}

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

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfe;
}

input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(36, 88, 211, 0.16);
}

input[type="file"] {
  padding: 9px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

button.secondary,
button.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

button.secondary:hover,
button.icon-button:hover {
  background: #eef3fb;
}

.people-list {
  display: grid;
  gap: 16px;
}

.person-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfe;
}

.person-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.submit-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.submit-band button {
  min-width: 180px;
  height: 100%;
  min-height: 78px;
  border-radius: 0;
}

.message {
  margin-top: 14px;
  border: 1px solid rgba(154, 91, 0, 0.32);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--amber);
  background: #fff8eb;
  font-weight: 700;
}

.success-panel {
  border-color: rgba(15, 143, 98, 0.35);
}

.submission-id {
  margin-top: 18px;
  border: 1px dashed rgba(15, 143, 98, 0.5);
  border-radius: 8px;
  padding: 14px;
  color: var(--green);
  background: #effaf5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .topbar,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-band,
  .limits-band,
  .submit-band,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .submit-band button {
    min-height: 56px;
    border-radius: 0 0 8px 8px;
  }
}
