﻿:root {
  --sw-navy-950: #031b36;
  --sw-navy-900: #06284f;
  --sw-navy-850: #0a315f;
  --sw-navy-800: #0d3a70;
  --sw-blue-600: #1769aa;
  --sw-blue-100: #e7f3fb;
  --sw-blue-050: #f3f9fd;
  --sw-orange-700: #d96d11;
  --sw-orange-600: #f58220;
  --sw-orange-500: #ff932f;
  --sw-red: #d71920;
  --sw-dark: #031b36;
  --sw-ink: #172033;
  --sw-muted: #64748b;
  --sw-line: #e2e8f0;
  --sw-bg: #f3f9fd;
  --sw-card: #ffffff;
  --sw-green: #12805c;
  --sw-amber: #a65f00;
  --sw-font-sans: "Montserrat", "Aptos Display", "Segoe UI", Arial, sans-serif;
  --sw-font-body: "Inter", "Aptos", "Segoe UI", Arial, sans-serif;
  --sw-focus-ring: 0 0 0 3px rgba(245, 130, 32, .28);
  --shadow: 0 18px 50px rgba(15, 23, 42, .16);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sw-font-body);
  color: var(--sw-ink);
  background: radial-gradient(circle at top left, rgba(35,132,198,.13), transparent 34rem), linear-gradient(180deg, var(--sw-blue-050), #fff 30rem);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  height: 236px;
  background: radial-gradient(circle at 88% 12%, rgba(245,130,32,.28), transparent 24rem), linear-gradient(135deg, rgba(3,27,54,.98), rgba(13,58,112,.94));
  border-bottom: 4px solid var(--sw-orange-600);
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 236px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 36%), radial-gradient(circle at 18% 20%, rgba(255,255,255,.08), transparent 18rem);
  opacity: .75;
  z-index: -1;
}

.sw-page {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 20px 14px 36px;
}

.sw-card {
  background: rgba(255,255,255,.97);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 24px);
  margin: 0 0 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, .92);
}

.hero-card {
  margin-top: 6px;
  overflow: hidden;
}

.sw-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, .86);
}

.sw-track-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.sw-logo {
  display: block;
  width: clamp(168px, 30vw, 248px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.language-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 0 0 auto;
}

.language-label {
  margin: 0;
  color: var(--sw-navy-900);
  font-family: var(--sw-font-sans);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.language-select {
  width: auto;
  min-width: 220px;
  border: 1px solid var(--sw-line);
  border-radius: 999px;
  padding: 12px 42px 12px 18px;
  font: inherit;
  font-weight: 900;
  background: #fff;
  color: var(--sw-navy-950);
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}

.language-select:focus {
  border-color: var(--sw-orange-600);
  box-shadow: var(--sw-focus-ring);
  outline: none;
}

.sw-header {
  display: block;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -.03em;
  color: var(--sw-navy-950);
  font-family: var(--sw-font-sans);
}

h1 {
  font-size: clamp(2.45rem, 8vw, 4.15rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-weight: 900;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.1;
}

.upload-status-mark {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
}

.upload-status-mark.uploaded { color: var(--sw-green); }
.upload-status-mark.not-uploaded { color: var(--sw-red); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--sw-orange-700);
  font-family: var(--sw-font-sans);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  font-weight: 900;
}

.subhead,
.hint {
  margin: 9px 0 0;
  color: var(--sw-muted);
  line-height: 1.42;
}

.label-form { margin-top: 22px; }

label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--sw-navy-950);
  font-weight: 900;
  font-size: .9rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
textarea,
.form-select {
  width: 100%;
  border: 1px solid var(--sw-line);
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  background: #fff;
  color: var(--sw-ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(15,23,42,.03);
}

input:read-only {
  color: #334155;
  background: #f8fafc;
  border-style: dashed;
}

input:focus,
textarea:focus,
.form-select:focus {
  border-color: var(--sw-orange-600);
  box-shadow: var(--sw-focus-ring);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

button:active { transform: scale(.98); }
button:disabled { opacity: .62; cursor: not-allowed; }

.primary {
  background: var(--sw-orange-600);
  color: white;
  box-shadow: 0 8px 18px rgba(245,130,32,.24);
}

.primary:hover { background: var(--sw-orange-700); }
.secondary { background: var(--sw-navy-950); color: white; }
.secondary.warning { background: #5d2a2a; }
.full { width: 100%; }

.toast {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4e0;
  color: #573500;
  border: 1px solid #ffd798;
  font-weight: 700;
}

.toast.show { display: block; }
.hidden { display: none !important; }

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--sw-navy-900);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.good { background: rgba(18,128,92,.12); color: var(--sw-green); }
.badge.warn { background: rgba(166,95,0,.14); color: var(--sw-amber); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.details-grid div {
  border: 1px solid var(--sw-line);
  border-radius: 16px;
  padding: 12px;
  background: #fbfdff;
}

dt {
  color: var(--sw-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

dd {
  margin: 5px 0 0;
  font-weight: 800;
  word-break: break-word;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.stack-form { display: grid; gap: 10px; margin-top: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.soft-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--sw-line);
  background: #fafafa;
}

.requirements-list { display: grid; gap: 10px; margin-top: 14px; }
.req-item { border: 1px solid var(--sw-line); border-radius: 16px; padding: 13px; display: grid; gap: 5px; }
.req-item strong { color: var(--sw-dark); }
.req-item span { color: var(--sw-muted); font-size: .9rem; }
.req-item.required { border-left: 5px solid var(--sw-orange-600); }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; color: #334155; }

.form-subsection {
  border-top: 1px solid rgba(10, 42, 74, 0.14);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: grid;
  gap: 0.15rem;
}

.form-subsection strong { color: #0a2a4a; letter-spacing: 0.01em; }
.form-subsection span { color: #667085; font-size: 0.9rem; }

.warning-panel {
  color: #7f1d1d;
  border-color: #fca5a5;
  background: #fff1f2;
  font-weight: 800;
}

.track-footer {
  max-width: 1120px;
  margin: 0 auto 32px auto;
  padding: 0 12px;
  color: #5b6472;
  font-size: 0.95rem;
}

.field-label {
  display: block;
  font-weight: 800;
  color: #111827;
  margin-top: 4px;
  margin-bottom: -8px;
}

.form-select {
  min-height: 50px;
  appearance: auto;
}

.form-hint {
  margin-top: -4px;
  font-size: .88rem;
}

.form-subsection.hidden,
.hidden { display: none !important; }

/* Track-adjacent client workspace entry link. */
.sw-track-account-link {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--sw-orange-600);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

.sw-track-account-link:hover { background: var(--sw-orange-700); color: #ffffff; }

.track-footer a {
  color: var(--sw-blue-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.track-footer a:hover { color: var(--sw-orange-700); }

@media (max-width: 640px) {
  body::before,
  body::after { height: 190px; }
  .sw-page { padding: 10px 10px 28px; }
  .sw-card { border-radius: 18px; padding: 16px; }
  .hero-card { margin-top: 6px; }
  .sw-hero-topbar { align-items: flex-start; flex-direction: column; gap: 12px; min-height: 0; margin-bottom: 14px; padding-bottom: 14px; }
  .sw-logo { width: min(220px, 72vw); }
  .language-row { justify-content: flex-start; width: 100%; }
  .language-label { min-width: auto; }
  .language-select { min-width: 0; width: 100%; }
  h1 { font-size: clamp(2.25rem, 13vw, 3.35rem); }
  .input-row, .two-col, .details-grid, .action-grid { grid-template-columns: 1fr; }
  button { width: 100%; }
  .sw-track-account-link { right: 10px; top: 10px; min-height: 34px; padding: 0 12px; font-size: .78rem; }
}

/* Registration result overlay: success, registered/email warning, or failure. */
body.registration-modal-open {
  overflow: hidden;
}

.registration-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 27, 54, .72);
  backdrop-filter: blur(5px);
}

.registration-modal {
  width: min(500px, 100%);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 34px);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .96);
  box-shadow: 0 28px 80px rgba(3, 27, 54, .36);
  text-align: center;
}

.registration-modal-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-family: var(--sw-font-sans);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.registration-modal-overlay.is-success .registration-modal-icon {
  color: var(--sw-green);
  background: rgba(18, 128, 92, .12);
}

.registration-modal-overlay.is-warning .registration-modal-icon {
  color: var(--sw-amber);
  background: rgba(166, 95, 0, .12);
}

.registration-modal-overlay.is-error .registration-modal-icon {
  color: var(--sw-red);
  background: rgba(215, 25, 32, .11);
}

.registration-modal h2 {
  margin-bottom: 12px;
}

.registration-modal p {
  margin: 0 0 22px;
  color: var(--sw-muted);
  line-height: 1.55;
}

.registration-modal .primary {
  min-width: 150px;
}

@media (prefers-reduced-motion: no-preference) {
  .registration-modal-overlay:not(.hidden) .registration-modal {
    animation: registration-modal-enter .16s ease-out;
  }
}

@keyframes registration-modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

