:root {
  --ulti-teal: #106A64;
  --ulti-teal-light: #1A9A90;
  --ulti-teal-dark: #0B514D;
  --ulti-bg: #070B0F;
  --ulti-panel: #0E1419;
  --ulti-panel-light: #151C23;
  --ulti-border: #24303A;
  --ulti-border-strong: #334450;
  --ulti-text: #F2F5F6;
  --ulti-muted: #8B98A4;
  --ulti-warn: #E8C46A;
  --ulti-warn-bg: rgba(138, 109, 31, 0.14);
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ulti-bg);
  color: var(--ulti-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse 70% 45% at 12% -10%, rgba(16, 106, 100, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 35% at 92% 8%, rgba(26, 154, 144, 0.08), transparent 50%),
    var(--ulti-bg);
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1800px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4.5rem;
}

a { color: var(--ulti-teal-light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.ulti-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  animation: fade-up 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ulti-logo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(16, 106, 100, 0.12),
    0 12px 36px rgba(0, 0, 0, 0.4);
}
.ulti-brand-name {
  color: var(--ulti-teal-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.ulti-product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.ulti-product-description {
  color: var(--ulti-muted);
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0.55rem 0 0;
  white-space: nowrap;
}

/* Nav */
.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--ulti-border);
  margin-bottom: 1.75rem;
}
.nav a {
  color: var(--ulti-muted);
  padding: 0.85rem 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ulti-text); text-decoration: none; }
.nav a.active {
  color: #fff;
  border-bottom-color: var(--ulti-teal-light);
}
.nav-spacer { flex: 1; }
.nav-user {
  color: var(--ulti-muted);
  font-size: 0.85rem;
  padding: 0 0.5rem;
}

/* Sections */
.section-block { margin-bottom: 1.75rem; }
.section-head { margin-bottom: 0.9rem; }
.section-kicker {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  color: #fff;
}
.section-lede {
  margin: 0;
  color: var(--ulti-muted);
  font-size: 0.92rem;
}

.hero-strip { margin: 0.35rem 0 1.5rem; }

.subtabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem;
  background: var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.subtab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ulti-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none;
  min-height: auto;
}
.subtab:hover {
  color: var(--ulti-text);
  background: rgba(255, 255, 255, 0.04);
  transform: none;
  filter: none;
}
.subtab.active {
  background: linear-gradient(180deg, rgba(26, 154, 144, 0.35), rgba(16, 106, 100, 0.25));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 154, 144, 0.45);
}
.subtab-panel { display: none; }
.subtab-panel.active { display: block; animation: fade-up 320ms ease both; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(21, 28, 35, 0.9), rgba(14, 20, 25, 0.95));
  border: 1px solid var(--ulti-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  color: var(--ulti-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: fade-up 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.step:nth-child(2) { animation-delay: 60ms; }
.step:nth-child(3) { animation-delay: 120ms; }
.step:hover {
  border-color: rgba(26, 154, 144, 0.45);
  transform: translateY(-2px);
}
.step b {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.step span { display: block; }
.step-n {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ulti-teal-light), var(--ulti-teal-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(16, 106, 100, 0.35);
}

/* Samples */
.samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.sample-card {
  background: var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sample-card:hover {
  border-color: rgba(26, 154, 144, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.sample-card form { margin: 0; }
.sample-btn {
  width: 100%;
  justify-content: flex-start;
  background: transparent !important;
  border: 1px solid var(--ulti-border-strong) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  min-height: 46px;
}
.sample-btn:hover {
  border-color: var(--ulti-teal-light) !important;
  background: rgba(16, 106, 100, 0.12) !important;
  color: #fff !important;
}
.sample-play {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(16, 106, 100, 0.25);
  color: var(--ulti-teal-light);
  font-size: 0.7rem;
  margin-right: 0.15rem;
}
.sample-label { font-weight: 700; }
.sample-card .cap {
  color: var(--ulti-muted);
  font-size: 0.8rem;
  margin: 0.7rem 0 0;
  line-height: 1.4;
}

/* Panels / upload */
.panel {
  background:
    linear-gradient(165deg, rgba(16, 106, 100, 0.06), transparent 40%),
    var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: 20px;
  padding: 1.4rem 1.45rem 1.5rem;
  margin: 0.9rem 0;
  box-shadow: var(--shadow);
}
.upload-shell { margin-top: 0.5rem; }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem;
  margin: 1rem 0 1.25rem;
  border: 1.5px dashed var(--ulti-border-strong);
  border-radius: 14px;
  background: rgba(8, 13, 17, 0.55);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-drag {
  border-color: var(--ulti-teal-light);
  background: rgba(16, 106, 100, 0.1);
  box-shadow: inset 0 0 0 1px rgba(26, 154, 144, 0.2);
  outline: none;
}
.dropzone.has-files {
  border-style: solid;
  border-color: rgba(26, 154, 144, 0.45);
}
.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.dropzone-visual {
  color: var(--ulti-teal-light);
  opacity: 0.9;
}
.dropzone-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  pointer-events: none;
}
.dropzone-copy strong {
  font-size: 1.05rem;
  color: #fff;
}
.dropzone-copy span {
  color: var(--ulti-muted);
  font-size: 0.85rem;
}
.dropzone-files {
  width: 100%;
  max-width: 420px;
  text-align: left;
  margin-top: 0.35rem;
  z-index: 3;
  pointer-events: none;
}
.dropzone-files:not([hidden]) { display: block; }
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  margin-top: 0.35rem;
  border-radius: 8px;
  background: var(--ulti-panel-light);
  border: 1px solid var(--ulti-border);
  font-size: 0.82rem;
  color: var(--ulti-text);
}
.file-chip .size { color: var(--ulti-muted); white-space: nowrap; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.form-grid-inline {
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.7fr) minmax(0, 1.4fr);
  align-items: end;
}
.field-span { grid-column: 1 / -1; }
.field label,
label {
  display: block;
  color: var(--ulti-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.field label em,
label em {
  font-style: normal;
  font-weight: 500;
  color: #5f6d78;
  margin-left: 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: var(--ulti-panel-light);
  border: 1px solid var(--ulti-border);
  border-radius: 11px;
  color: var(--ulti-text);
  padding: 0.7rem 0.85rem;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--ulti-teal-light);
  box-shadow: 0 0 0 3px rgba(16, 106, 100, 0.22);
}
textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 12px 0;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ulti-muted);
  margin: 0.35rem 0 1.1rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--ulti-teal-light);
  flex-shrink: 0;
}

/* Buttons */
.btn, button, .button, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #1A9A90, var(--ulti-teal));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(16, 106, 100, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.btn:hover, button:hover, .button:hover, .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(16, 106, 100, 0.38);
  color: #fff;
  text-decoration: none;
}
.btn.secondary, button.secondary {
  background: transparent;
  color: var(--ulti-text);
  border-color: var(--ulti-border-strong);
  box-shadow: none;
}
.btn.secondary:hover, button.secondary:hover {
  border-color: var(--ulti-teal-light);
  color: var(--ulti-teal-light);
  filter: none;
  background: rgba(16, 106, 100, 0.08);
  box-shadow: none;
}
.btn.danger { background: #7a2e2e; border-color: #7a2e2e; box-shadow: none; }
.btn.block, button.block, .btn-primary.block { width: 100%; }
.btn:disabled, button:disabled, .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* Alerts */
.alert {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin: 0.85rem 0;
  border: 1px solid var(--ulti-border);
  background: var(--ulti-panel-light);
  color: var(--ulti-text);
  line-height: 1.45;
}
.alert p { margin: 0.2rem 0 0; color: inherit; opacity: 0.92; font-size: 0.9rem; }
.alert-icon {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(232, 196, 106, 0.18);
  color: var(--ulti-warn);
}
.setup-banner {
  background: var(--ulti-warn-bg);
  border-color: rgba(232, 196, 106, 0.35);
  color: #f0d9a0;
  margin-bottom: 1.25rem;
}
.alert.error { border-color: #7a2e2e; color: #e58b8b; }
.alert.warn { border-color: rgba(232, 196, 106, 0.35); color: #e8c46a; }
.alert.ok { border-color: rgba(26, 154, 144, 0.45); color: #7fd1c8; display: block; }
.alert.info { border-color: #2a4a66; color: #9ec0e0; }
.score-results .alert { display: block; }

/* Metrics / tables / score cards */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  background: var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: 14px;
  padding: 16px;
}
.metric .label {
  color: var(--ulti-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.metric .value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin-top: 6px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: 14px;
  overflow: hidden;
}
table.data th, table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ulti-border);
  font-size: 0.9rem;
}
table.data th {
  color: var(--ulti-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--ulti-panel-light);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(16, 106, 100, 0.08); }

.overall-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 106, 100, 0.2), rgba(16, 106, 100, 0.03) 45%, rgba(255, 255, 255, 0.015)),
    var(--ulti-panel);
  border: 1px solid rgba(16, 106, 100, 0.55);
  border-radius: 20px;
  padding: 42px 30px;
  margin: 10px 0 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.overall-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--ulti-teal-dark), var(--ulti-teal-light));
}
.overall-label {
  color: var(--ulti-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.overall-score {
  font-family: var(--font-display);
  color: var(--ulti-teal-light);
  font-size: 5rem;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 14px;
}
.overall-score-scale { color: #687580; font-size: 1.35rem; font-weight: 500; margin-left: 5px; font-family: var(--font-body); }
.overall-rating {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.overall-description, .verdict {
  color: var(--ulti-muted);
  font-size: 0.95rem;
  max-width: 760px;
  margin: 6px auto 10px;
  line-height: 1.55;
}
.verdict { color: var(--ulti-text); }

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 14px 0 24px;
}
.score-card {
  background: var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: 14px;
  padding: 22px;
  min-height: 140px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.score-card:hover {
  border-color: rgba(16, 106, 100, 0.65);
  transform: translateY(-2px);
}
.score-card-title { color: var(--ulti-muted); font-size: 0.8rem; margin-bottom: 12px; }
.score-card-value {
  font-family: var(--font-display);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 400;
}
.score-card-scale { color: #687580; font-size: 0.88rem; margin-left: 4px; font-family: var(--font-body); }
.score-card-na { color: #687580; font-size: 1.4rem; font-weight: 700; }
.score-card-weight { color: #687580; font-size: 0.72rem; margin-top: 10px; }
.score-bar-container {
  width: 100%; height: 5px; background: #202A32; border-radius: 999px; overflow: hidden; margin-top: 18px;
}
.score-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ulti-teal-dark), var(--ulti-teal-light));
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.muted { color: var(--ulti-muted); }
.section-title {
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}
details.expander {
  background: var(--ulti-panel);
  border: 1px solid var(--ulti-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0;
}
details.expander summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}
details.expander[open] summary { margin-bottom: 10px; }

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.status-dot.on { background: var(--ulti-teal-light); box-shadow: 0 0 10px rgba(23,132,124,0.45); }
.status-dot.off { background: #3A4752; }

.status-badges-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}
.status-badge {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem;
  background: var(--ulti-panel-light);
  border: 1px solid var(--ulti-border);
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  min-width: 0;
}
.status-badge-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.status-badge .status-dot { margin-right: 0.05rem; flex-shrink: 0; }
.status-badge-label { font-weight: 700; color: var(--ulti-text); font-size: 0.88rem; line-height: 1.25; }
.status-badge-meta { color: var(--ulti-muted); font-weight: 500; font-size: 0.78rem; }
.status-badge-detail {
  margin: 0;
  color: var(--ulti-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.status-badge-detail code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  word-break: break-all;
}

.input-password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.input-password-wrap input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  min-height: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ulti-muted);
  box-shadow: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.password-toggle:hover {
  color: var(--ulti-teal-light);
  background: rgba(16, 106, 100, 0.12);
  transform: translateY(-50%);
  filter: none;
  box-shadow: none;
}
.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 106, 100, 0.45);
}
.password-toggle svg { display: block; }

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.panel-head-row h3 { margin: 0; }
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  position: relative;
  width: 2.5rem;
  height: 1.35rem;
  flex-shrink: 0;
  background: #3a4752;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--ulti-teal-light);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(1.15rem);
}
.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(16, 106, 100, 0.35);
}
.toggle-switch .toggle-text {
  color: var(--ulti-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 2rem 1.4rem;
  margin: 1rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 106, 100, 0.18), transparent 55%),
    var(--ulti-panel);
  border: 1px solid rgba(16, 106, 100, 0.4);
  border-radius: 16px;
}
.loader.show { display: flex; }
.loader-title { font-weight: 700; font-size: 1.05rem; }
.spinner {
  width: 42px; height: 42px;
  border: 3px solid rgba(23, 132, 124, 0.18);
  border-top-color: var(--ulti-teal-light);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card { width: min(420px, 100%); }
.login-card .ulti-logo { display: block; margin-bottom: 1rem; }

.audit-panel { margin-bottom: 22px; }
.audit-panel p {
  margin: 6px 0;
  color: var(--ulti-muted);
  font-size: 0.92rem;
}
.audit-panel strong { color: var(--ulti-text); }

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 0.75rem;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .status-badges-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .steps, .samples, .form-grid, .form-grid-inline { grid-template-columns: 1fr; }
  .status-badges-panel { grid-template-columns: 1fr; }
  .container { padding: 1.15rem 1rem 3rem; }
  .ulti-header { align-items: flex-start; }
  .ulti-product-description { white-space: normal; }
  .overall-score { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ulti-header, .step, .spinner { animation: none !important; }
  .step:hover, .score-card:hover, button:hover { transform: none; }
}
