:root {
  --navy: #17365d;
  --navy-soft: #274c77;
  --blue: #4b91cf;
  --blue-soft: #eaf4fb;
  --cream: #fbfaf7;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #d9e3ed;
  --yellow: #fff4ce;
  --green: #16815d;
  --green-soft: #e4f5ee;
  --red: #b42318;
  --red-soft: #fff0ee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; }
.topbar {
  height: 76px;
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: var(--navy);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: #f2c879; font-weight: 800; letter-spacing: -0.04em; }
.brand-name { font-weight: 750; letter-spacing: -0.02em; }
.brand-subtitle { color: #c9d9e9; font-size: 12px; margin-top: 2px; }
.pilot-badge { padding: 7px 11px; border: 1px solid #6f97bc; border-radius: 999px; color: #d9eaf7; font-size: 11px; font-weight: 750; letter-spacing: .08em; }

.layout { max-width: 1380px; min-height: calc(100vh - 76px); margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { padding: 36px 25px; border-right: 1px solid var(--line); background: #f3f7fa; }
.sidebar-heading { margin-bottom: 20px; color: var(--navy); font-weight: 760; font-size: 14px; }
.step-nav { display: grid; gap: 8px; }
.step-button { width: 100%; padding: 11px 12px; display: flex; gap: 10px; align-items: center; border: 0; border-radius: 12px; color: var(--muted); background: transparent; text-align: left; }
.step-button:hover { background: #e6f0f7; }
.step-button.active { color: var(--navy); background: white; box-shadow: 0 4px 16px rgba(23,54,93,.08); font-weight: 720; }
.step-button.complete .step-number { color: white; background: var(--green); }
.step-number { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; border-radius: 50%; color: var(--navy); background: #d9e7f1; font-size: 12px; font-weight: 800; }
.step-label { font-size: 13px; }
.security-note { display: flex; gap: 9px; margin-top: 48px; padding: 13px; border: 1px solid #cbe4d8; border-radius: 14px; color: #235842; background: var(--green-soft); font-size: 12px; line-height: 1.4; }
.security-note strong { font-size: 12px; }
.security-note p { margin: 4px 0 0; color: #48745f; }
.security-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; border-radius: 50%; color: white; background: var(--green); font-size: 12px; font-weight: 800; }

.content { position: relative; padding: 42px clamp(24px, 5vw, 76px); }
.content-inner { max-width: 850px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 9px 0 9px; color: var(--navy); font-size: clamp(26px, 3vw, 38px); line-height: 1.06; letter-spacing: -.04em; }
.lead { max-width: 650px; margin: 0 0 30px; color: var(--muted); line-height: 1.6; }
.card { margin-bottom: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 30px rgba(22, 52, 80, .05); }
.card-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 17px; }
.card-title h2 { margin: 0; color: var(--navy); font-size: 17px; letter-spacing: -.02em; }
.card-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hint { padding: 13px 15px; border-left: 3px solid #f0bc54; border-radius: 8px; color: #6d561d; background: var(--yellow); font-size: 13px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { color: #334155; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd8e4; border-radius: 10px; color: var(--ink); outline: 0; background: white; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,145,207,.14); }
input[readonly] { color: var(--muted); background: #f5f7f9; }
textarea { min-height: 90px; resize: vertical; }
.field-error { min-height: 16px; color: var(--red); font-size: 11px; }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 19px 0; }
.metric { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfd; }
.metric strong { display: block; color: var(--navy); font-size: 21px; }
.metric span { color: var(--muted); font-size: 11px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.data-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 10px; color: var(--navy); background: #edf5fa; text-align: left; font-size: 11px; white-space: nowrap; }
.data-table td { padding: 9px 10px; border-top: 1px solid #e7edf2; vertical-align: top; }
.data-table td input, .data-table td select { min-width: 120px; padding: 8px; border-radius: 8px; font-size: 12px; }
.data-table .compact { min-width: 82px; width: 82px; }
.row-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.text-button { padding: 7px 9px; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 750; }
.text-button:hover { color: var(--navy); background: var(--blue-soft); border-radius: 8px; }
.empty-state { padding: 22px; color: var(--muted); text-align: center; font-size: 13px; }

.upload-zone { padding: 27px; border: 1.5px dashed #a9c4d9; border-radius: 14px; color: var(--muted); background: #f7fbfe; text-align: center; }
.upload-zone strong { display: block; margin-bottom: 5px; color: var(--navy); }
.upload-zone input { max-width: 300px; margin-top: 14px; padding: 8px; border: 0; background: transparent; }
.file-list { display: grid; gap: 8px; margin-top: 14px; }
.file-item { padding: 9px 11px; display: flex; justify-content: space-between; gap: 12px; border-radius: 8px; color: #31536f; background: var(--blue-soft); font-size: 12px; }

.review-list { display: grid; gap: 10px; }
.review-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #e7edf2; font-size: 13px; }
.review-row:last-child { border-bottom: 0; }
.review-label { color: var(--muted); }
.review-value { color: var(--navy); font-weight: 720; text-align: right; }
.status-banner { padding: 15px; border-radius: 12px; color: #31536f; background: var(--blue-soft); font-size: 13px; line-height: 1.5; }
.status-banner.success { color: #235842; background: var(--green-soft); }

.form-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.button-group { display: flex; gap: 10px; }
.button { padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 760; }
.button.primary { color: white; background: var(--navy); }
.button.primary:hover { background: var(--navy-soft); }
.button.secondary { color: var(--navy); border-color: #bfd0df; background: white; }
.button.secondary:hover { background: var(--blue-soft); }
.button.success { color: white; background: var(--green); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.toast { position: fixed; z-index: 5; top: 92px; right: 28px; max-width: 340px; padding: 12px 15px; transform: translateY(-12px); border: 1px solid #cbe4d8; border-radius: 10px; color: #235842; background: var(--green-soft); box-shadow: 0 12px 28px rgba(22, 52, 80, .15); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 12px; }
.toast.show { transform: translateY(0); opacity: 1; }
.demo-link { margin-left: 8px; color: var(--blue); font-size: 12px; font-weight: 750; }

@media (max-width: 850px) {
  .topbar { height: auto; padding: 17px 20px; }
  .layout { display: block; }
  .sidebar { padding: 15px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading { display: none; }
  .step-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .step-button { justify-content: center; padding: 7px 3px; }
  .step-label { display: none; }
  .security-note { display: none; }
  .content { padding: 28px 20px; }
}
@media (max-width: 580px) {
  .pilot-badge { display: none; }
  .grid, .grid.three, .summary-strip { grid-template-columns: 1fr; }
  .card { padding: 17px; border-radius: 14px; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .button-group { width: 100%; }
  .button-group .button { flex: 1; }
  h1 { font-size: 29px; }
}
