/* ============================================================
   AXIS-5 Assessment
   Design: maximum signal, minimum noise.
   Typography leads. No decoration.
   ============================================================ */

/* ----------------------------------------------------------
   Shell & Layout
   ---------------------------------------------------------- */
.ax-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ax-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.ax-logo {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  transition: color 0.12s;
}
.ax-logo:hover { color: #161a1d; }

.ax-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ax-header-count {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.ax-header-link {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.12s;
}
.ax-header-link:hover { color: #161a1d; }

.ax-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 0 40px;
  width: 100%;
}

/* ----------------------------------------------------------
   Progress bar — thin line at top, below header
   ---------------------------------------------------------- */
.ax-progress-bar {
  height: 2px;
  background: rgba(0,0,0,0.07);
  position: relative;
  margin-bottom: 40px;
}
.ax-progress-bar__fill {
  height: 100%;
  background: #161a1d;
  transition: width 0.4s ease;
  min-width: 2px;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.ax-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  padding: 11px 22px;
  transition: background 0.12s, opacity 0.12s;
  text-decoration: none;
}

.ax-btn--primary {
  background: #161a1d;
  color: #fff;
}
.ax-btn--primary:hover { background: #2a3035; }
.ax-btn--primary:disabled { opacity: 0.35; cursor: not-allowed; }

.ax-btn--secondary {
  background: transparent;
  color: #161a1d;
  border: 0.5px solid rgba(0,0,0,0.3);
}
.ax-btn--secondary:hover { background: rgba(0,0,0,0.04); }

.ax-btn--wide { width: 100%; justify-content: center; }

/* ----------------------------------------------------------
   Form inputs
   ---------------------------------------------------------- */
.ax-input {
  font-family: inherit;
  font-size: 15px;
  color: #161a1d;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.12s;
  appearance: none;
}
.ax-input:focus {
  outline: none;
  border-color: rgba(0,0,0,0.5);
}

.ax-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 6px;
}

.ax-field-note {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin: 0 0 10px;
}

.ax-field-error {
  font-size: 13px;
  color: #c4635b;
  margin: 0 0 8px;
}

/* ----------------------------------------------------------
   Start page
   ---------------------------------------------------------- */
.ax-start {
  max-width: 600px;
}

.ax-start__eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 12px;
}

.ax-start__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #161a1d;
  margin: 0 0 20px;
}

.ax-start__lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(0,0,0,0.7);
  margin: 0 0 24px;
}

.ax-start__meta {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.ax-start__dot { color: rgba(0,0,0,0.25); }

.ax-start__dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.ax-dim-pill {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  border: 0.5px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  padding: 4px 10px;
}

.ax-rule {
  border: none;
  border-top: 0.5px solid rgba(0,0,0,0.12);
  margin: 0 0 32px;
}

.ax-start__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ax-start__form .ax-input { margin-bottom: 14px; }

.ax-start__disclaimer {
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  line-height: 1.6;
  margin-top: 28px;
}

.ax-start__footnote {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  margin-top: 16px;
  font-style: italic;
}

.ax-start__section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(0,0,0,0.75);
  margin: 0 0 20px;
}

.ax-start__sample {
  border-left: 2px solid rgba(0,0,0,0.12);
  margin: 0 0 28px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.025);
  border-radius: 0 4px 4px 0;
}
.ax-start__sample p {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
  margin: 0 0 8px;
  font-style: italic;
}
.ax-start__sample p:last-child { margin-bottom: 0; }

.ax-start__radar-wrap {
  margin: 0 0 32px;
}

.ax-start__radar-caption {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  margin-top: 4px;
  font-style: italic;
  text-align: center;
}

.ax-start__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.ax-start__form-field { display: flex; flex-direction: column; }
.ax-start__form-field .ax-input { margin-bottom: 0; }
.ax-start__form-field .ax-label { margin-bottom: 4px; }

@media (max-width: 560px) {
  .ax-start__form-row { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Item page
   ---------------------------------------------------------- */

.ax-error {
  background: rgba(196, 99, 91, 0.08);
  border-left: 2px solid #c4635b;
  color: #c4635b;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 0 2px 2px 0;
}

.ax-stem {
  font-size: 18px;
  line-height: 1.6;
  color: #161a1d;
  margin: 0 0 28px;
  font-weight: 400;
}

.ax-preamble {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.03);
  border-left: 2px solid rgba(0,0,0,0.15);
  padding: 10px 14px;
  margin: 0 0 24px;
  border-radius: 0 2px 2px 0;
}

.ax-item__actions {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Choices box */
.ax-choices-box {
  margin-top: 20px;
  background: transparent;
  border-radius: 4px;
  padding: 0;
}

/* ----------------------------------------------------------
   MC / radio options
   ---------------------------------------------------------- */
.ax-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ax-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
  background: transparent;
}
.ax-option:hover { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.22); }
.ax-option:has(input:checked) { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.35); }

.ax-option input[type="radio"],
.ax-option input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #161a1d;
}

.ax-option__text {
  font-size: 15px;
  line-height: 1.55;
  color: #161a1d;
}

.ax-option--check { align-items: flex-start; }

.ax-select-all-note {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin: -12px 0 12px;
  font-style: italic;
}

/* MC multi-part */
.ax-mc-part {
  margin-bottom: 32px;
}
.ax-part-stem {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,0,0.7);
  margin: 0 0 12px;
  font-style: italic;
}

/* ----------------------------------------------------------
   Scope grid
   ---------------------------------------------------------- */
.ax-grid { margin-top: 8px; }

.ax-grid__header {
  display: grid;
  grid-template-columns: 1fr repeat(3, 100px);
  gap: 0;
  padding: 0 0 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.12);
  margin-bottom: 4px;
}
.ax-grid__col-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  text-align: center;
}

.ax-grid__row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 100px);
  align-items: center;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  gap: 0;
}
.ax-grid__row:last-child { border-bottom: none; }

.ax-grid__row-text {
  font-size: 15px;
  line-height: 1.5;
  color: #161a1d;
  margin: 0;
  padding-right: 16px;
}

.ax-grid__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
}
.ax-grid__cell input[type="radio"] { accent-color: #161a1d; }
.ax-grid__choice-label { font-size: 11px; color: rgba(0,0,0,0.4); }

/* ----------------------------------------------------------
   Allocate
   ---------------------------------------------------------- */
.ax-alloc-instruction {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  margin: -12px 0 20px;
}

.ax-alloc-grid { display: flex; flex-direction: column; gap: 12px; }

.ax-alloc-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}

.ax-alloc-label {
  font-size: 15px;
  line-height: 1.5;
  color: #161a1d;
}

.ax-alloc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-alloc-slider {
  flex: 1;
  accent-color: #161a1d;
  cursor: pointer;
}

.ax-alloc-val {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
  color: #161a1d;
}

.ax-alloc-total-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}

.ax-alloc-sum {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #161a1d;
  min-width: 32px;
}
.ax-alloc-sum--ok { color: #5aab8c; }
.ax-alloc-sum--err { color: #c4635b; }

/* ----------------------------------------------------------
   Calibration block
   ---------------------------------------------------------- */
.ax-cal-instructions {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,0.6);
  margin-bottom: 28px;
  padding: 14px 16px;
  border-left: 2px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.025);
}

.ax-cal-header {
  display: grid;
  grid-template-columns: 1fr 160px 150px;
  gap: 24px;
  padding: 0 0 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.12);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
}

.ax-cal-row {
  display: grid;
  grid-template-columns: 1fr 160px 150px;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.ax-cal-row:last-child { border-bottom: none; }

.ax-cal-row__stmt {
  font-size: 14px;
  line-height: 1.55;
  color: #161a1d;
  margin: 0;
}

.ax-cal-row__tf {
  display: flex;
  gap: 8px;
}
.ax-tf-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  cursor: pointer;
  padding: 6px 10px;
  border: 0.5px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  transition: background 0.1s;
  white-space: nowrap;
}
.ax-tf-label:hover { background: rgba(0,0,0,0.04); }
.ax-tf-label input { accent-color: #161a1d; }

.ax-cal-row__conf {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ax-conf-slider {
  flex: 1;
  cursor: pointer;
  accent-color: #161a1d;
}

.ax-conf-val {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(0,0,0,0.5);
  min-width: 32px;
}

/* ----------------------------------------------------------
   Two-step
   ---------------------------------------------------------- */
.ax-step {
  margin-bottom: 32px;
}

.ax-step__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin: 0 0 10px;
}

.ax-step-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.ax-step-btn {
  margin-top: 12px;
  white-space: nowrap;
}

.ax-step-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.ax-step-slider {
  flex: 1;
  accent-color: #161a1d;
}

.ax-step-slider-val {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #161a1d;
  min-width: 3.5ch;
  text-align: right;
}

.ax-step-input {
  width: 100px;
  text-align: right;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.ax-step-unit {
  font-size: 18px;
  color: rgba(0,0,0,0.4);
}

.ax-step-locked-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.03);
  border-radius: 2px;
  font-size: 15px;
}
.ax-step-locked-label { color: rgba(0,0,0,0.45); }

/* ----------------------------------------------------------
   Open text
   ---------------------------------------------------------- */
.ax-textarea {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
  color: #161a1d;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.12s;
}
.ax-textarea:focus { outline: none; border-color: rgba(0,0,0,0.5); }

.ax-open-text__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.ax-word-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(0,0,0,0.4);
  transition: color 0.15s;
}
.ax-word-count--ok { color: #5aab8c; }
.ax-word-count--low { color: rgba(0,0,0,0.4); }
.ax-word-count--high { color: #c4635b; }

.ax-word-count-hint {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
}

/* ----------------------------------------------------------
   Results dashboard
   ---------------------------------------------------------- */
.ax-dashboard {
  padding: 40px 0 80px;
}

/* Header */
.ax-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ax-dash-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin: 0 0 6px;
}

.ax-dash-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.ax-dash-meta {
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  margin: 0 0 6px;
  text-align: right;
}

.ax-dash-flags {
  margin: 0;
  text-align: right;
}

.ax-flag {
  display: inline-block;
  background: rgba(196,99,91,0.1);
  color: #c4635b;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 4px;
  letter-spacing: 0.03em;
}

/* Sections */
.ax-results-section {
  padding: 32px 0 0;
  margin-bottom: 40px;
  border-top: 0.5px solid rgba(0,0,0,0.1);
}

.ax-results-section__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65);
  margin: 0 0 16px;
}

.ax-results-section__sub {
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  margin: -8px 0 20px;
}

/* Calibration */
.ax-cal-verdict-badge {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ax-cal-verdict-badge--overconfident { color: #c4635b; }
.ax-cal-verdict-badge--underconfident { color: #5b8ec4; }
.ax-cal-verdict-badge--calibrated { color: #5a9a6a; }

.ax-cal-dash__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
  margin: 0 0 20px;
}

.ax-cal-chart-note {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Full-width calibration chart (Chart.js handles square via aspectRatio: 1) */
.ax-cal-chart {
  display: block;
  width: 100% !important;
  margin-top: 20px;
}

/* Radar overview chart */
.ax-radar-title {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #161a1d;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.ax-radar-sub {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  line-height: 1.6;
  margin: 0 0 14px;
}

.ax-radar-wrap {
  margin: 0 0 24px;
}

/* Dimension charts */
.ax-dim-chart-wrap {
  margin: 10px 0 12px;
}


/* Dimension blocks */
.ax-dim-block {
  padding: 36px 0 4px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.ax-dim-block:first-of-type { border-top: none; padding-top: 20px; }

.ax-dim-block__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.ax-dim-block__name {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #161a1d;
  letter-spacing: -0.01em;
}

.ax-dim-block__direction {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  margin: 0 0 10px;
}

.ax-dim-blurb {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(0,0,0,0.55);
  margin: 8px 0 16px;
}

/* Calibration stat line */
.ax-cal-stat-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

.ax-cal-stat-num {
  font-size: 20px;
  font-weight: 500;
  color: #161a1d;
  letter-spacing: -0.02em;
}

.ax-cal-stat-label {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}

.ax-cal-stat-arrow {
  font-size: 13px;
  color: rgba(0,0,0,0.25);
  margin: 0 2px;
}

.ax-cal-stat-sep {
  color: rgba(0,0,0,0.2);
  margin: 0 2px;
}

.ax-cal-stat-gap {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ax-cal-stat-gap--overconfident  { color: #c4635b; }
.ax-cal-stat-gap--underconfident { color: #5b8ec4; }
.ax-cal-stat-gap--calibrated     { color: #5a9a6a; }

/* Band legend — used under each dimension chart */
.ax-band-legend {
  display: flex;
  gap: 14px;
  margin: 8px 0 0;
  flex-wrap: wrap;
}

.ax-bl-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(0,0,0,0.45);
}

.ax-bl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ax-bl-dot--misaligned { background: #c4635b; }
.ax-bl-dot--emerging   { background: #c8943a; }
.ax-bl-dot--aligned    { background: #5b8ec4; }
.ax-bl-dot--robust     { background: #5a9a6a; }

/* Per-dimension pole action note */
.ax-dim-pole-note {
  font-size: 12px;
  font-style: italic;
  color: rgba(0,0,0,0.45);
  margin: 2px 0 10px;
}

.ax-dim-band {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ax-dim-band--misaligned { color: #c4635b; }
.ax-dim-band--emerging   { color: #b08040; }
.ax-dim-band--aligned    { color: #5b8ec4; }
.ax-dim-band--robust     { color: #5a9a6a; }

/* Most notable pattern */
.ax-pattern-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,0.7);
  margin: 0;
}

/* Honest limits */
.ax-honest-limits {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  line-height: 1.6;
  padding: 20px 0;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  margin-bottom: 28px;
  font-style: italic;
}

/* Actions */
.ax-dash-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.ax-results__save-note {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  margin: 0;
}

.ax-muted {
  color: rgba(0,0,0,0.4);
  font-size: 14px;
}

/* ----------------------------------------------------------
   Auth pages (signup / login)
   ---------------------------------------------------------- */
.ax-auth {
  max-width: 400px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.ax-auth__title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.ax-auth__lead {
  font-size: 15px;
  color: rgba(0,0,0,0.5);
  margin: 0 0 32px;
  line-height: 1.55;
}

.ax-auth__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.ax-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ax-field__error {
  font-size: 12px;
  color: #c4635b;
}

.ax-error--block {
  background: rgba(196,99,91,0.08);
  border: 1px solid rgba(196,99,91,0.25);
  color: #c4635b;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 4px;
}

.ax-auth__switch {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin: 0;
}

.ax-auth__switch a {
  color: inherit;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Staff: item statistics page
   ---------------------------------------------------------- */
.ax-staff {
  padding: 40px 32px 80px;
}

.ax-staff__header {
  margin-bottom: 28px;
}

.ax-staff__title {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 6px;
}

.ax-staff__meta {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  margin: 0;
}

.ax-staff__legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ax-staff__legend-item {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
}

.ax-staff__flag--high { color: #5a9a6a; }
.ax-staff__flag--low  { color: #c4635b; }
.ax-staff__flag--fast { color: #b08040; }

.ax-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ax-stats-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  white-space: nowrap;
}

.ax-th-num { text-align: right; }

.ax-stats-table td {
  padding: 7px 12px 7px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}

.ax-td-num { text-align: right; font-variant-numeric: tabular-nums; }
.ax-td-id  { font-weight: 500; white-space: nowrap; }
.ax-td-fmt { color: rgba(0,0,0,0.5); font-size: 12px; }

.ax-td-top { color: #5a9a6a; font-weight: 500; }
.ax-td-bot { color: #c4635b; font-weight: 500; }

.ax-opt-chip {
  display: inline-block;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.ax-row--high td { background: rgba(90,154,106,0.05); }
.ax-row--low  td { background: rgba(196,99,91,0.06); }
.ax-row--fast td { background: rgba(176,128,64,0.05); }

/* ----------------------------------------------------------
   Utility pages
   ---------------------------------------------------------- */
.ax-message h1,
.ax-results-stub h1 {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 16px;
}
.ax-message p,
.ax-results-stub p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,0.6);
  margin: 0 0 24px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .ax-main { padding: 4px 0 40px; }
  .ax-header { padding: 16px 20px; }
  .ax-start__title { font-size: 36px; }
  .ax-stem { font-size: 16px; }
  .ax-cal-header,
  .ax-cal-row { grid-template-columns: 1fr; gap: 8px; }
  .ax-cal-header { display: none; }
  .ax-grid__header,
  .ax-grid__row { grid-template-columns: 1fr repeat(3, 72px); }
  .ax-alloc-row { grid-template-columns: 1fr; }
  .ax-alloc-slider-wrap { flex-direction: row; }
  /* Dashboard */
  .ax-dashboard { padding: 24px 16px 60px; }
  .ax-dash-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ax-dash-meta, .ax-dash-flags { text-align: left; }
  .ax-dash-grid { grid-template-columns: 1fr; }
  .ax-dash-card--cal, .ax-dash-card--dims, .ax-dash-card--pattern { grid-column: 1; }
  .ax-dash-actions { flex-direction: column; }
}
