:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #647084;
  --line: #d9e0e8;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --nav: #142848;
  --nav-soft: #203c68;
  --blue: #0c37f0;
  --brand-red: #e50914;
  --green: #198754;
  --amber: #b7791f;
  --red: #b42318;
  --teal: #0f766e;
  --shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.is-hidden {
  display: none !important;
}

button,
select,
input,
textarea {
  font: inherit;
}

.login-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 460px);
  padding-bottom: 210px;
  overflow: hidden;
  background: #f8fbff;
}

.login-screen::before,
.login-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -2;
}

.login-screen::before {
  background: url("/assets/team-home.jpeg") center / cover no-repeat;
  opacity: 0.72;
}

.login-screen::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74) 52%, rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(12, 55, 240, 0.18), rgba(229, 9, 20, 0.16));
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 76px);
  border-top: 8px solid var(--blue);
  border-bottom: 8px solid var(--brand-red);
}

.logo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.logo-pair img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  color: var(--nav);
}

.login-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.login-panel {
  align-self: center;
  margin: 28px;
  min-width: 0;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

#googleSignInButton {
  max-width: 100%;
  min-height: 44px;
  overflow: hidden;
}

.login-panel .field span {
  color: var(--muted);
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.login-button {
  background: var(--brand-red);
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
  padding-bottom: 34px;
}

.sidebar {
  background: var(--nav);
  color: #f7fbff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: #e8f3fb;
  color: var(--nav);
  font-weight: 800;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p {
  margin: 0;
}

.brand h1 {
  font-size: 1.2rem;
}

.brand p,
.profile-card,
.field span {
  color: #cbd7df;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
}

.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--nav-soft);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.profile-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 8px;
}

.profile-pill span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #aebec9;
}

.profile-pill b {
  color: #fff;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tabs {
  display: grid;
  gap: 8px;
}

.logout-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #fff;
  background: rgba(229, 9, 20, 0.88);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.tab {
  border: 0;
  border-radius: 6px;
  color: #dfe9ef;
  background: transparent;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.tab:hover,
.tab.active {
  color: #fff;
  background: #315666;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow,
.phase-note,
.muted,
.meta {
  color: var(--muted);
}

.eyebrow,
.phase-note {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.phase-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  white-space: nowrap;
}

.topbar h2 {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi,
.panel,
.skill-card,
.svs-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shoutout-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shoutout-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.shoutout-emoji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f7fb;
  font-size: 1.45rem;
}

.shoutout-card p {
  margin: 5px 0 6px;
  color: var(--text);
  line-height: 1.35;
}

.demo-banner,
.demo-pill {
  border-color: #f4bf4f;
  background: #fff7df;
  color: #6c4a00;
}

.review-alert-card {
  width: 100%;
  text-align: left;
  border: 2px solid var(--red);
  background: #fff1f1;
  color: var(--red);
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-alert-card b,
.review-alert-card small {
  display: block;
}

.review-alert-card small {
  margin-top: 3px;
  color: #7a1c1c;
  font-weight: 700;
}

.library-button {
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.flag-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  animation: flagPulse 0.8s infinite;
  flex: 0 0 auto;
}

.flag-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 3px;
  height: 23px;
  border-radius: 2px;
  background: #fff;
}

.flag-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 17px;
  height: 12px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
}

@keyframes flagPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.08); }
}

.employee-progress-grid,
.skill-admin-results,
.skill-picker-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.employee-progress-tile,
.skill-admin-row,
.skill-picker-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.employee-progress-tile {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.employee-tile-head {
  grid-column: 1 / -1;
}

.employee-tile-wheel {
  display: grid;
  place-items: center;
}

.employee-tile-wheel .wheel-wrap,
.employee-tile-wheel .progress-wheel {
  width: 82px;
  height: 82px;
}

.employee-tile-wheel .wheel-center {
  width: 46px;
  height: 46px;
}

.employee-tile-wheel .wheel-center strong {
  font-size: 0.9rem;
}

.employee-tile-wheel .wheel-center span {
  font-size: 0.55rem;
}

.employee-tile-metrics {
  display: grid;
  gap: 6px;
}

.employee-tile-metrics span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
}

.employee-progress-tile strong,
.employee-progress-tile span,
.employee-progress-tile b,
.employee-progress-tile small,
.skill-admin-row strong,
.skill-admin-row span,
.skill-picker-row strong,
.skill-picker-row span {
  display: block;
}

.employee-progress-tile span,
.skill-admin-row span,
.skill-picker-row span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 4px;
}

.employee-progress-tile b {
  margin: 9px 0 8px;
}

.admin-skills-toolbar {
  align-items: end;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
  min-height: 42px;
}

.completed-toggle-button {
  align-self: end;
  min-height: 42px;
  white-space: nowrap;
}

.admin-skill-groups {
  display: grid;
  gap: 14px;
}

.admin-skill-list {
  display: grid;
  gap: 8px;
}

.admin-skill-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.admin-skill-summary {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-skill-summary strong,
.admin-skill-summary small,
.admin-skill-summary b {
  display: block;
}

.admin-skill-summary small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.admin-skill-detail {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  padding: 12px;
}

.kpi {
  padding: 16px;
}

.kpi span {
  color: var(--muted);
  font-size: 0.82rem;
}

.kpi strong {
  display: block;
  font-size: 1.7rem;
  margin-top: 6px;
}

.kpi p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.next-action-card {
  border: 1px solid rgba(12, 55, 240, 0.2);
  border-left: 6px solid var(--brand-red);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 55, 240, 0.08), rgba(229, 9, 20, 0.06), #fff);
  box-shadow: var(--shadow);
  padding: 18px;
}

.next-action-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.next-action-card h3,
.next-action-card p {
  margin: 0;
}

.next-action-card h3 {
  margin-top: 5px;
  font-size: 1.25rem;
}

.next-action-card p {
  margin-top: 5px;
  color: var(--muted);
}

.compact-dashboard-callout {
  padding: 14px 16px;
}

.dashboard-home-shell {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.dashboard-milestone-hero {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(18, 36, 64, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 54%, rgba(12, 55, 240, 0.08) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.milestone-wheel-shell {
  display: grid;
  place-items: center;
  gap: 12px;
}

.milestone-wheel-wrap {
  position: relative;
  width: min(280px, 76vw);
  aspect-ratio: 1;
}

.milestone-wheel {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.milestone-track,
.milestone-ring {
  fill: none;
}

.milestone-track {
  stroke: #e8edf2;
}

.milestone-ring {
  stroke: var(--blue);
  stroke-linecap: round;
  animation: milestone-fill 1.15s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.milestone-center {
  position: absolute;
  inset: 22%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  padding: 16px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(16, 28, 45, 0.08);
}

.milestone-center b {
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  line-height: 1.15;
}

.milestone-center span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-coaching-message {
  width: min(100%, 280px);
  margin: 0;
  color: #425268;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

/* ─── MiVinci RPM Performance Gauge ─────────────────────────────────────────── */

/* My Rewards dashboard */
.rewards-shell {
  display: grid;
  gap: 18px;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.rewards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 62%, rgba(25, 135, 84, 0.1) 100%);
}

.rewards-hero h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.rewards-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.rewards-hero-total {
  display: grid;
  gap: 6px;
  justify-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rewards-hero-total span,
.rewards-metric span,
.rewards-breakdown-row span,
.rewards-progress span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.rewards-hero-total b {
  color: var(--green);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.rewards-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rewards-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.rewards-metric-list {
  display: grid;
  gap: 10px;
}

.rewards-metric {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.rewards-metric:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rewards-metric b {
  color: var(--ink);
  text-align: right;
}

.rewards-progress {
  display: grid;
  gap: 8px;
}

.rewards-quick-view {
  justify-self: start;
}

.rewards-quick-view:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.rewards-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
}

.rewards-table-wrap {
  overflow-x: auto;
}

.rewards-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.rewards-table th,
.rewards-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.rewards-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.rewards-breakdown-list {
  display: grid;
  gap: 13px;
}

.rewards-breakdown-row {
  display: grid;
  gap: 8px;
}

.rewards-breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* HR time off dashboard */
.time-off-shell {
  display: grid;
  gap: 18px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.time-off-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f7fbfb 64%, rgba(14, 116, 144, 0.1) 100%);
}

.time-off-hero h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.time-off-hero p {
  margin: 0;
}

.time-off-summary {
  display: grid;
  gap: 5px;
  justify-items: end;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.time-off-summary span,
.time-off-summary small,
.time-off-metric span,
.time-off-balance-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.time-off-summary b {
  color: var(--green);
  font-size: 1.35rem;
}

.time-off-balance-grid,
.time-off-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.time-off-main-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.time-off-balance-card,
.time-off-profile-card,
.time-off-form-card,
.time-off-history-card,
.time-off-manager-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.time-off-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.time-off-profile-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.time-off-profile-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.time-off-metric-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-off-metric {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.time-off-metric b {
  font-size: 1.35rem;
}

.time-off-request-form,
.time-off-review-form,
.time-off-balance-form {
  display: grid;
  gap: 12px;
}

.time-off-note {
  grid-column: 1 / -1;
}

.time-off-request-list,
.time-off-balance-list {
  display: grid;
  gap: 12px;
}

.time-off-request-card,
.time-off-balance-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.panel-header.compact {
  margin-bottom: 0;
}

.time-off-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-off-balance-form {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.time-off-balance-form > div,
.time-off-balance-form .button {
  grid-column: 1 / -1;
}

.time-off-balance-form .field span {
  font-size: 0.7rem;
}

.time-off-table {
  min-width: 640px;
}

/* RPM performance gauge */
.rpm-card {
  background: linear-gradient(170deg, #06111f 0%, #0a1a2e 55%, #040c18 100%);
  border: 1px solid #1a3555;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(26, 53, 85, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rpm-gauge-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 4px;
  min-height: 0;
  contain: layout;
}

.rpm-gauge-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

#rpm-needle-group {
  /* Rotation applied via SVG transform attribute for cross-browser reliability */
}

/* ── Counter strip ─────────────────────────────────────────────────────────── */

.rpm-counters {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid #0e2035;
  flex-shrink: 0;
  background: #040c18;
}

.rpm-counters-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.rpm-counters-role {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.rpm-counters-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--badge-color, #ef4444);
  color: var(--badge-color, #ef4444);
  font-family: 'Courier New', Courier, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.rpm-counters-level {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.rpm-counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 0;
}

.rpm-counter-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 10px;
  border-right: 1px solid #0e2035;
}

.rpm-counter-stat:last-child,
.rpm-counter-stat:nth-child(even) {
  border-right: none;
  padding-right: 0;
}

.rpm-counter-stat__value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1;
}

.rpm-counter-stat__denom {
  font-size: 0.68rem;
  color: #ffffff;
  font-weight: 400;
}

.rpm-counter-stat__label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
}

/* ── Pulse animations ──────────────────────────────────────────────────────── */

.rpm-arc-red-pulse {
  animation: rpm-arc-pulse-red 2.2s ease-in-out infinite;
}

.rpm-arc-blue-pulse {
  animation: rpm-arc-pulse-blue 2.4s ease-in-out infinite;
}

@keyframes rpm-arc-pulse-red {
  0%, 100% {
    opacity: 0.88;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.45));
  }
  50% {
    opacity: 0.62;
    filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.82));
  }
}

@keyframes rpm-arc-pulse-blue {
  0%, 100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.94));
  }
}

.milestone-copy {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.milestone-copy .eyebrow {
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.milestone-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.milestone-copy p {
  margin: 0;
  color: #3f4c5e;
  font-size: 1rem;
  line-height: 1.45;
}

.milestone-cta {
  width: fit-content;
  margin-top: 8px;
  background: var(--blue);
}

.milestone-cta:disabled {
  background: #8fa0b5;
  cursor: default;
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.status-card > div {
  display: grid;
  gap: 4px;
}

.status-card span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 1.75rem;
  line-height: 1;
}

.status-card .badge {
  width: fit-content;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.status-ready {
  border-color: rgba(22, 124, 74, 0.25);
}

.status-pending {
  border-color: rgba(182, 117, 9, 0.28);
}

.status-locked {
  border-color: rgba(160, 174, 192, 0.5);
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.level-requirements-card {
  display: grid;
  gap: 12px;
}

.level-requirement-list {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.level-requirement-list h3,
.level-requirement-list p {
  margin: 0;
}

@keyframes milestone-fill {
  to {
    stroke-dashoffset: var(--milestone-offset);
  }
}

.progress-wheel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  gap: 14px;
  align-items: start;
}

.progress-wheel-card {
  max-width: 420px;
}

.career-journey-grid {
  grid-template-columns: minmax(280px, 420px);
}

.career-journey-card {
  max-width: none;
}

.career-journey-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.career-stat-list {
  display: grid;
  gap: 12px;
}

.career-stat-row {
  display: grid;
  gap: 6px;
}

.career-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.career-stat-head b {
  color: var(--ink);
  font-size: 0.78rem;
  white-space: nowrap;
}

.career-stat-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}

.career-stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 900ms ease;
}

.career-stat-fill.ring-1 {
  background: var(--blue);
}

.career-stat-fill.ring-2 {
  background: var(--brand-red);
}

.career-stat-fill.ring-3 {
  background: var(--teal);
}

.career-stat-fill.ring-4 {
  background: var(--amber);
}

.wheel-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.wheel-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}

.progress-wheel {
  width: 132px;
  height: 132px;
  transform: rotate(-90deg);
}

.wheel-track,
.wheel-ring {
  fill: none;
}

.wheel-track {
  stroke: #e3e9f0;
}

.wheel-ring {
  stroke-linecap: round;
  transition: stroke-dashoffset 180ms ease;
}

.wheel-ring.ring-1,
.wheel-key.ring-1 {
  stroke: var(--blue);
  background: var(--blue);
}

.wheel-ring.ring-2,
.wheel-key.ring-2 {
  stroke: var(--brand-red);
  background: var(--brand-red);
}

.wheel-ring.ring-3,
.wheel-key.ring-3 {
  stroke: var(--teal);
  background: var(--teal);
}

.wheel-ring.ring-4,
.wheel-key.ring-4 {
  stroke: var(--amber);
  background: var(--amber);
}

.wheel-center {
  position: absolute;
  inset: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.wheel-center strong {
  font-size: 1rem;
  line-height: 1;
}

.wheel-center span {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.wheel-legend {
  display: grid;
  gap: 8px;
}

.wheel-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.wheel-key {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
}

.wheel-legend-item b,
.wheel-legend-item small {
  display: block;
}

.wheel-legend-item b {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-legend-item small {
  color: var(--muted);
  font-size: 0.74rem;
}

.recent-achievements {
  position: absolute;
  left: clamp(18px, 4vw, 64px);
  right: clamp(18px, 4vw, 64px);
  bottom: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(217, 224, 232, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.recent-achievements .panel-header {
  margin-bottom: 10px;
}

.recognition-column {
  min-width: 0;
}

.public-achievement-list,
.earned-badge-list {
  display: grid;
  gap: 10px;
}

.earned-badge-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.public-achievement {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(217, 224, 232, 0.78);
}

.public-achievement.placeholder {
  opacity: 0.88;
}

.shoutout-preview {
  grid-template-columns: 34px minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.public-achievement:first-child {
  border-top: 0;
  padding-top: 0;
}

.public-achievement span,
.public-achievement small {
  display: block;
  text-align: right;
}

.public-achievement span {
  color: var(--nav);
  font-weight: 800;
}

.public-achievement small {
  color: var(--muted);
}

.earned-badge {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(12, 55, 240, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 55, 240, 0.08), rgba(229, 9, 20, 0.05), #fff);
}

.earned-badge-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.public-achievement-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12, 55, 240, 0.1);
  color: var(--blue);
}

.badge-icon {
  width: 24px;
  height: 24px;
}

.badge-icon.small {
  width: 18px;
  height: 18px;
}

.earned-badge h4,
.earned-badge p {
  margin: 0;
}

.earned-badge h4 {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earned-badge p:not(.meta) {
  margin-top: 5px;
  color: var(--ink);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.manual-badge-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 10px;
  align-items: end;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: #e7ecf1;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--pct, 0%);
  background: var(--blue);
}

.progress-fill.ready {
  background: var(--green);
}

.bonus-rules-shell {
  display: grid;
  gap: 16px;
}

.bonus-rules-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bonus-rules-hero h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.bonus-rules-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 150px;
}

.bonus-rules-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bonus-rules-stat {
  display: grid;
  gap: 6px;
}

.bonus-rules-stat span,
.bonus-rule-fields span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.bonus-rules-stat b {
  color: var(--ink);
  font-size: 1.55rem;
}

.bonus-rules-alert-grid {
  display: grid;
  gap: 10px;
}

.bonus-rules-alert {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(183, 121, 31, 0.3);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff8e8;
  color: #6c4a00;
}

.bonus-rules-alert.danger {
  border-color: rgba(180, 35, 24, 0.28);
  border-left-color: var(--red);
  background: #fff1f1;
  color: #7a1c1c;
}

.bonus-rules-table-wrap {
  overflow-x: auto;
}

.bonus-rules-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.bonus-rules-table th,
.bonus-rules-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.bonus-rules-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.bonus-rules-card-list {
  display: none;
}

.bonus-rule-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bonus-rule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bonus-rule-card h4 {
  margin: 0 0 4px;
}

.bonus-rule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bonus-rule-fields div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bonus-rule-fields b {
  overflow-wrap: anywhere;
}

.bonus-rule-errors {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 10px;
  background: #fff1f1;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
}

.bonus-rule-errors p {
  margin: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 10px;
}

.skill-list,
.svs-list {
  display: grid;
  gap: 12px;
}

.skill-card,
.svs-card {
  padding: 15px;
}

.skill-card.compact-skill {
  padding: 0;
  overflow: hidden;
}

.skill-card.skill-target-highlight {
  animation: skillTargetPulse 2.8s ease-out;
  border-color: var(--blue);
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(34, 111, 255, 0.18);
}

@keyframes skillTargetPulse {
  0% {
    background: #dbeafe;
    box-shadow: 0 0 0 5px rgba(34, 111, 255, 0.28);
  }
  60% {
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(34, 111, 255, 0.18);
  }
  100% {
    background: #ffffff;
    box-shadow: 0 0 0 0 rgba(34, 111, 255, 0);
  }
}

.skill-row,
.svs-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.svs-row {
  cursor: pointer;
}

.svs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-skill-row {
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  cursor: pointer;
}

.compact-skill-row:hover {
  background: #f8fafc;
}

.skill-title,
.svs-title {
  margin: 0 0 5px;
  font-size: 0.98rem;
}

.compact-skill .skill-title {
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 0.94rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  font-size: 0.83rem;
}

.content-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.svs-skill-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.svs-skill-section {
  display: grid;
  gap: 7px;
}

.svs-skill-section h4 {
  margin: 4px 0 0;
  font-size: 0.86rem;
}

.svs-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.svs-skill-row.is-complete {
  opacity: 0.78;
}

.svs-skill-row:hover {
  border-color: var(--blue);
  background: #eef6ff;
}

.svs-skill-row strong {
  display: block;
  font-size: 0.88rem;
}

.svs-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.svs-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.1;
}

.svs-test-button {
  margin-top: 12px;
  width: 100%;
  font-weight: 800;
}

.svs-test-button.locked-state,
.svs-test-button.completed-state {
  opacity: 0.78;
}

.skill-detail {
  border-top: 1px solid var(--line);
  padding: 12px;
  background: #fbfcfe;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.content-link {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.inline-review-link {
  display: inline;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.link-button.library-button {
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  padding: 7px 10px;
  text-align: center;
}

.content-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.content-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.content-item strong,
.content-item span {
  display: block;
}

.content-item strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.skill-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.review-button {
  min-width: 96px;
  padding: 8px 11px;
  background: var(--nav);
  font-size: 0.82rem;
  font-weight: 800;
}

.skill-complete-button {
  min-width: 190px;
  padding: 12px 14px;
  font-size: 0.94rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(12, 55, 240, 0.18);
}

.skill-complete-button:disabled {
  cursor: not-allowed;
  background: #8f9aaa;
  box-shadow: none;
  opacity: 0.82;
}

.skill-complete-button.completed-state {
  background: var(--green);
  opacity: 0.92;
}

.checkpoint-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}

.checkpoint-panel.ready,
.checkpoint-panel.passed {
  border-left-color: var(--green);
}

.checkpoint-panel.failed {
  border-left-color: #f59e0b;
}

.checkpoint-button,
.checkpoint-reset-button,
.checkpoint-submit-button {
  font-weight: 800;
}

.checkpoint-button.completed-state {
  background: #e8f5ee;
  color: #17623d;
}

.checkpoint-modal-panel {
  max-width: 760px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding-bottom: 80px;
  overscroll-behavior: contain;
}

.checkpoint-run {
  display: grid;
  gap: 12px;
  padding-bottom: 80px;
}

.checkpoint-question-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #fff;
}

.checkpoint-question-card .meta {
  color: #cbd5e1;
}

.checkpoint-question-card h4 {
  margin: 0;
  line-height: 1.35;
}

.checkpoint-question-head,
.checkpoint-answer-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.checkpoint-answer {
  flex: 1 1 120px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 11px 12px;
  font-weight: 900;
  cursor: pointer;
}

.checkpoint-answer.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--brand-red));
}

.checkpoint-result {
  display: grid;
  gap: 12px;
}

.checkpoint-result h3 {
  margin: 0;
}

.checkpoint-result.passed h3 {
  color: var(--green);
}

.checkpoint-result.failed h3 {
  color: #b45309;
}

.checkpoint-feedback-list {
  display: grid;
  gap: 8px;
}

.checkpoint-feedback-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff7ed;
}

.review-warning {
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 700;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #e8eef5;
  color: #314155;
}

.badge.ready,
.badge.pass {
  background: #dff3e8;
  color: var(--green);
}

.badge.pending {
  background: #fff4d6;
  color: var(--amber);
}

.badge.fail {
  background: #fde2df;
  color: var(--red);
}

.mentor-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr auto;
  gap: 10px;
  align-items: end;
}

.performance-entry-form {
  display: grid;
  gap: 16px;
}

.performance-entry-panel {
  color: #111827;
}

.performance-entry-panel .panel-header h3 {
  color: #111827;
  font-weight: 800;
}

.performance-entry-panel .eyebrow,
.performance-entry-panel .meta {
  color: #374151;
}

.performance-entry-panel .muted {
  color: #374151;
  font-weight: 500;
}

.performance-entry-panel .field span {
  color: #1f2937;
  font-weight: 800;
}

.performance-entry-panel input,
.performance-entry-panel select,
.performance-entry-panel textarea {
  color: #111827;
}

.performance-entry-panel input::placeholder,
.performance-entry-panel textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.performance-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.performance-mode-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 14px;
}

.performance-mode-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.performance-required-grid,
.performance-field-grid {
  display: grid;
  gap: 12px;
}

.performance-required-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.performance-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* KPI Data Entry hub */
.kpi-hub-week-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.kpi-hub-week-row .field {
  min-width: 220px;
  max-width: 280px;
}

.kpi-hub-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.kpi-hub-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.kpi-hub-item {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  padding: 10px 12px;
  font: inherit;
}

.kpi-hub-item.active {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.kpi-hub-item-name {
  font-weight: 800;
  color: #111827;
}

.kpi-hub-item-meta {
  color: var(--muted);
  font-size: 12px;
}

.kpi-hub-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.kpi-hub-detail-header {
  border-top: none;
  padding-top: 0;
}

@media (max-width: 940px) {
  .kpi-hub-layout {
    grid-template-columns: 1fr;
  }

  .kpi-hub-list {
    max-height: 320px;
  }
}

.performance-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.performance-form-actions .button {
  min-width: 220px;
}

.performance-subsection {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.performance-subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.performance-subsection-header h4,
.performance-review-subgroup h5 {
  color: #111827;
  margin: 0;
}

.performance-entry-panel input[readonly] {
  background: #f3f4f6;
  color: #4b5563;
}

.kpi-settings-form {
  display: grid;
  gap: 16px;
}

.kpi-manager-toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
}

.kpi-manager-column-head {
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f2937;
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 10px;
  grid-template-columns: 1.45fr 0.8fr 0.65fr 1fr 0.8fr 1fr 1fr 1fr 0.9fr;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.kpi-settings-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.kpi-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.kpi-section-header h4 {
  color: #111827;
  margin: 0;
}

.kpi-section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.kpi-settings-list {
  display: grid;
  gap: 8px;
}

.kpi-settings-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.45fr minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.kpi-settings-row.inactive {
  align-items: center;
  grid-template-columns: minmax(180px, 1.45fr) minmax(120px, 1fr) auto;
}

.kpi-settings-title {
  display: grid;
  gap: 2px;
}

.kpi-settings-row strong {
  color: #111827;
}

.kpi-settings-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.kpi-status-pill {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  padding: 5px 9px;
  width: fit-content;
}

.kpi-status-pill.active,
[data-kpi-status-label].active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.kpi-status-pill.inactive,
[data-kpi-status-label].inactive {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.kpi-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.kpi-row-actions .button {
  min-height: 36px;
  padding: 8px 10px;
}

.kpi-settings-controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(110px, 0.8fr) minmax(90px, 0.65fr) minmax(130px, 1fr) minmax(115px, 0.8fr) repeat(3, minmax(150px, 1fr)) minmax(120px, 0.9fr);
  gap: 10px;
  padding-top: 0;
}

.kpi-settings-controls.compact .field {
  min-width: 0;
}

.kpi-active-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
}

.kpi-active-toggle input {
  height: 18px;
  width: 18px;
}

.kpi-section-toggle {
  min-height: 38px;
  padding: 8px 10px;
}

.kpi-status-switch {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  width: fit-content;
}

.kpi-status-switch input {
  accent-color: #16a34a;
  height: 18px;
  width: 18px;
}

.kpi-library-detail {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 10px 12px;
}

.kpi-library-detail strong {
  color: #111827;
  font-size: 0.92rem;
  line-height: 1.25;
}

.kpi-goal-control {
  display: grid;
  gap: 8px;
}

.kpi-reset-default {
  min-height: 40px;
}

.kpi-inline-actions {
  display: grid;
  gap: 8px;
}

.kpi-inline-actions .button {
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.kpi-inactive-summary {
  align-items: center;
  display: flex;
  justify-content: flex-start;
}

.kpi-formula-definition,
.kpi-description {
  grid-column: span 2;
}

.performance-review-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.performance-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.performance-approval-panel {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.performance-approval-panel h4 {
  color: #111827;
  margin: 0 0 4px;
}

.performance-approval-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.performance-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.performance-approval-badge {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.performance-approval-badge.draft {
  background: #f1f5f9;
}

.performance-approval-badge.reviewed {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.performance-approval-badge.approved {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.performance-approval-badge.locked {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.performance-review-summary > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 14px;
}

.performance-review-summary span,
.performance-review-notes span,
.performance-review-metric span {
  color: #1f2937;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.performance-review-summary strong {
  color: #111827;
  display: block;
  font-size: 1.6rem;
  margin-top: 4px;
}

.performance-review-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.performance-review-section + .performance-review-section {
  margin-top: 18px;
}

.performance-review-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.performance-review-section-header h4,
.performance-review-card h4 {
  color: #111827;
  margin: 0;
}

.performance-review-list {
  display: grid;
  gap: 12px;
}

.performance-review-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.performance-review-card-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.performance-card-actions {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.performance-edit-button {
  flex: 0 0 auto;
}

.performance-edit-form {
  display: grid;
  gap: 12px;
}

.performance-locked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.performance-locked-grid input:disabled {
  background: #f3f4f6;
  color: #4b5563;
  cursor: not-allowed;
}

.performance-review-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.performance-review-metric {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  min-width: 0;
  padding: 10px;
}

.performance-review-metric strong {
  color: #111827;
  display: block;
  font-size: 0.95rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.performance-review-notes {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.performance-review-subgroup {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.performance-review-notes p {
  color: #111827;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.quarterly-scoreboard-hero {
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px;
}

.quarterly-scoreboard-hero h4 {
  color: #fff;
  font-size: 1.55rem;
  margin: 2px 0 4px;
}

.quarterly-scoreboard-hero .eyebrow,
.quarterly-scoreboard-hero .meta {
  color: #dbeafe;
}

.quarterly-scoreboard-source {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 220px;
  padding: 12px;
}

.quarterly-scoreboard-source span,
.quarterly-scoreboard-source small {
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
}

.quarterly-scoreboard-source strong {
  color: #fff;
}

.quarterly-scoreboard-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quarterly-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quarterly-scoreboard-metric {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.quarterly-scoreboard-metric span,
.quarterly-scoreboard-metric small {
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 800;
}

.quarterly-scoreboard-metric strong {
  color: #111827;
  font-size: 1.35rem;
}

.quarterly-scoreboard-list {
  display: grid;
  gap: 10px;
}

.quarterly-scoreboard-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.quarterly-scoreboard-card.company {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
}

.quarterly-scoreboard-card h4 {
  color: #111827;
  margin: 0 0 3px;
}

.quarterly-rank {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.quarterly-score {
  display: grid;
  justify-items: end;
}

.quarterly-score strong {
  color: #111827;
  font-size: 1.4rem;
}

.quarterly-score span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.quarterly-company-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
}

.button.secondary {
  background: var(--teal);
}

.button.danger {
  background: var(--red);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 40, 72, 0.48);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-panel {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(24, 33, 47, 0.28);
}

#checkpointModal {
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#checkpointModal .checkpoint-modal-panel {
  width: min(760px, 100%);
  margin: 18px auto;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.success-message {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.success-message.error-message {
  color: var(--red);
}

.feedback-toolbar {
  grid-template-columns: minmax(180px, 280px);
  margin-bottom: 14px;
}

.review-filter-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
}

.review-filter-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
}

.review-filter-button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(12, 55, 240, 0.18);
}

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.compact-review-card {
  padding: 0;
  overflow: hidden;
}

.closed-review-card {
  background: #f8fafc;
}

.review-line {
  min-height: 54px;
  padding: 9px 12px;
  cursor: pointer;
}

.review-line h4 {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.review-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.feedback-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-summary h4,
.feedback-card p {
  margin: 0;
}

.feedback-form {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.5fr auto;
  gap: 10px;
  align-items: end;
}

.content-management-toolbar {
  grid-template-columns: minmax(220px, 1fr);
  margin-bottom: 14px;
}

.content-add-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 16px;
  padding: 12px;
}

.content-add-shell.is-collapsed {
  background: #f4fbf6;
  border-color: #bfe7c8;
}

.content-add-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.content-add-header h4 {
  margin: 0 0 3px;
}

.success-text {
  color: #166534;
  font-weight: 800;
}

.content-add-form,
.content-edit-form {
  display: grid;
  gap: 10px;
}

.content-add-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  margin-bottom: 12px;
}

.content-edit-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-admin-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.inactive-content {
  opacity: 0.78;
  background: #fff8f7;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 8px 14px;
  border-top: 1px solid rgba(20, 40, 72, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #526173;
  font-size: 0.72rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

@media (max-width: 940px) {
  .login-screen {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: visible;
    padding-bottom: 34px;
  }

  .login-panel {
    align-self: auto;
    width: min(460px, calc(100% - 36px));
    margin: 0 auto 54px;
  }

  .login-hero {
    min-height: auto;
    padding: 24px 18px 18px;
  }

  .logo-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 18px;
  }

  .logo-pair img {
    max-height: 110px;
  }

  .login-hero h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    text-align: center;
  }

  .login-copy,
  .login-hero .eyebrow {
    text-align: center;
  }

  .recent-achievements {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(560px, 100%);
    margin: 16px auto 0;
    padding: 12px;
  }

  .public-achievement,
  .shoutout-preview {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .public-achievement > div:last-child {
    grid-column: 2;
  }

  .public-achievement span,
  .public-achievement small {
    text-align: left;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .kpi-grid,
  .progress-wheel-grid,
  .dashboard-milestone-hero,
  .dashboard-status-grid,
  .dashboard-secondary-grid,
  .rewards-hero,
  .rewards-card-grid,
  .rewards-detail-grid,
  .time-off-hero,
  .time-off-balance-grid,
  .time-off-main-grid,
  .time-off-manager-grid,
  .time-off-balance-form,
  .bonus-rules-summary-grid,
  .toolbar,
  .mentor-form,
  .manual-badge-form,
  .feedback-form,
  .content-add-form,
  .content-edit-form,
  .performance-required-grid,
  .performance-field-grid,
  .performance-review-controls,
  .performance-review-summary,
  .performance-review-metrics,
  .performance-locked-grid,
  .quarterly-scoreboard-summary,
  .quarterly-status-grid,
  .quarterly-company-metrics {
    grid-template-columns: 1fr;
  }

  .time-off-summary {
    justify-items: start;
  }

  .performance-review-card-header,
  .bonus-rules-hero,
  .bonus-rule-card-head,
  .quarterly-scoreboard-hero,
  .quarterly-scoreboard-card,
  .quarterly-scoreboard-card.company {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .performance-card-actions,
  .bonus-rules-actions,
  .performance-approval-actions {
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
  }

  .performance-edit-button {
    width: 100%;
  }

  .performance-approval-panel {
    flex-direction: column;
  }

  .quarterly-score,
  .quarterly-scoreboard-source {
    justify-items: start;
    min-width: 0;
  }

  .performance-approval-actions .button {
    width: 100%;
  }

  .bonus-rules-table-panel {
    display: none;
  }

  .bonus-rules-card-list {
    display: grid;
    gap: 12px;
  }

  .bonus-rule-fields {
    grid-template-columns: 1fr;
  }

  .kpi-manager-toolbar {
    grid-template-columns: 1fr;
  }

  .kpi-manager-column-head {
    display: none;
  }

  .kpi-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kpi-section-actions {
    justify-content: stretch;
  }

  .kpi-section-actions .button,
  .kpi-section-actions .kpi-active-toggle {
    flex: 1 1 160px;
    justify-content: center;
  }

  .kpi-settings-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .kpi-settings-row.inactive {
    grid-template-columns: 1fr;
  }

  .kpi-settings-controls {
    grid-template-columns: 1fr;
  }

  .kpi-status-switch,
  .kpi-reset-default,
  .kpi-inline-actions,
  .kpi-row-actions .button {
    width: 100%;
    justify-content: center;
  }

  .progress-wheel-card {
    max-width: 100%;
  }

  .dashboard-milestone-hero {
    background: #fff;
    padding: 16px;
  }

  .milestone-copy {
    text-align: center;
    justify-items: center;
  }

  .rewards-hero-total {
    justify-items: start;
  }

  .milestone-wheel-wrap {
    width: min(250px, 82vw);
  }

  .status-card {
    min-height: auto;
  }

  .career-journey-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .career-stat-list {
    width: 100%;
  }

  .rpm-card {
    max-width: 100%;
  }

  .rpm-gauge-wrap {
    padding: 14px 12px 4px;
  }

  .earned-badge-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .rpm-card {
    border-radius: 12px;
  }

  .rpm-counters {
    padding: 8px 12px 12px;
  }

  .rpm-counter-stat__value {
    font-size: 0.92rem;
  }
}

@media (max-width: 620px) {
  .modal {
    align-items: start;
    place-items: start center;
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
  }

  #checkpointModal .checkpoint-modal-panel {
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    padding-bottom: 96px;
  }

  .logo-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .login-screen::before {
    background-position: center top;
  }

  .login-screen::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82)),
      linear-gradient(135deg, rgba(12, 55, 240, 0.16), rgba(229, 9, 20, 0.14));
  }

  .login-hero {
    padding: 18px 14px 12px;
    border-top-width: 5px;
    border-bottom-width: 5px;
  }

  .logo-pair img {
    max-height: 76px;
    border-radius: 6px;
  }

  .login-hero h1 {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .login-copy {
    margin: 0 auto;
    max-width: 340px;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .login-panel {
    width: calc(100% - 28px);
    margin-bottom: 58px;
    padding: 18px;
    gap: 12px;
  }

  .login-panel h2 {
    margin: 0;
    font-size: 1.25rem;
  }

  .login-panel .muted {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .workspace,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .svs-row,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .compact-skill-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 58px;
  }

  .compact-skill .skill-title {
    font-size: 0.88rem;
  }

  .checkline {
    white-space: normal;
  }

  .skill-actions {
    justify-content: space-between;
  }

  .review-button {
    min-width: 88px;
    padding: 7px 9px;
  }

  .skill-complete-button {
    width: 100%;
    min-width: 0;
  }

  .checkpoint-panel {
    grid-template-columns: 1fr;
  }

  .checkpoint-button,
  .checkpoint-reset-button,
  .checkpoint-submit-button {
    width: 100%;
  }

  .content-item {
    grid-template-columns: 1fr;
  }

  .content-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .feedback-summary {
    display: grid;
  }

  .review-line-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .progress-wheel-grid {
    justify-items: start;
  }

  .progress-wheel-card {
    width: 100%;
  }

  .wheel-layout {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
  }

  .wheel-wrap,
  .progress-wheel {
    width: 112px;
    height: 112px;
  }

  .wheel-center {
    inset: 35px;
  }

  .wheel-legend-item b {
    font-size: 0.78rem;
  }

  .earned-badge-list {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 8px;
  }

  .earned-badge {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 72px;
    padding: 8px;
  }

  .earned-badge-mark {
    width: 34px;
    height: 34px;
  }

  .earned-badge .badge-icon {
    width: 18px;
    height: 18px;
  }

  .earned-badge h4 {
    font-size: 0.82rem;
  }

  .earned-badge .meta {
    font-size: 0.72rem;
  }

  .earned-badge p:not(.meta) {
    display: none;
  }

}

@media (max-width: 360px) {
  .logo-pair {
    gap: 7px;
  }

  .logo-pair img {
    max-height: 62px;
  }

  .login-hero {
    padding-inline: 10px;
  }

  .login-copy {
    font-size: 0.84rem;
  }

  .login-panel {
    width: calc(100% - 20px);
    padding: 14px;
  }

  .wheel-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .wheel-legend {
    width: 100%;
  }

  .earned-badge-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── MiVinci Login Intro Video Overlay ─────────────────────────────────────── */

.login-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.login-intro-overlay.is-ending {
  opacity: 0;
  pointer-events: none;
}

.login-intro-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  visibility: visible;
}

.login-intro-skip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.login-intro-skip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Fallback shown if video fails to load */
.login-intro-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 2px;
}

.login-intro-overlay.video-failed .login-intro-fallback {
  display: flex;
}

.login-intro-overlay.video-failed .login-intro-video {
  display: none;
}

.login-intro-loading {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font: 600 14px system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

/* Startup intro hides with reduced motion; auth overlay must always show */
@media (prefers-reduced-motion: reduce) {
  .login-intro-overlay:not(.auth-loading-overlay) {
    display: none !important;
  }
}

.auth-loading-overlay {
  display: flex !important;
}

/* ─── End MiVinci Login Intro Video Overlay ──────────────────────────────────── */

.has-llr-reminder {
  padding-top: 58px;
}

.llr-reminder-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 12px 16px;
  background: #b00020;
  color: #fff;
  box-shadow: 0 10px 26px rgba(176, 0, 32, 0.28);
  cursor: pointer;
  animation: llrReminderPulse 1.1s ease-in-out infinite;
}

.llr-reminder-banner strong,
.llr-reminder-banner span {
  color: #fff;
}

@keyframes llrReminderPulse {
  0%, 100% { background: #b00020; }
  50% { background: #ef233c; }
}

.llr-page {
  display: grid;
  gap: 16px;
}

.llr-hero-panel .panel-header {
  align-items: flex-start;
}

.llr-highlight-grid,
.llr-feed-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.llr-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.llr-card.learn {
  border-left-color: #2563eb;
}

.llr-card.recognize,
.llr-card.recognition {
  border-left-color: var(--red);
}

.llr-card.is-hidden-post {
  opacity: 0.68;
  background: #f8fafc;
}

.llr-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.llr-card-top,
.llr-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.llr-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf2ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.llr-form {
  display: grid;
  gap: 14px;
}

.llr-field > span {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.llr-field textarea {
  min-height: 88px;
  resize: vertical;
}

.llr-recognize-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.llr-like-button,
.llr-recognized-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.llr-like-button {
  padding: 5px 10px;
  font-size: 1rem;
  line-height: 1.4;
}

.llr-like-button.liked {
  opacity: 0.55;
  background: #f5f7fb;
  cursor: default;
}

.llr-recognized-link {
  justify-self: start;
  padding: 6px 10px;
}

.llr-complete-message {
  border: 1px solid rgba(30, 126, 52, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: #ecfdf3;
  color: #14532d;
  font-weight: 800;
}

.llr-notification-panel {
  border-color: rgba(176, 0, 32, 0.24);
}

.llr-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 720px) {
  .has-llr-reminder {
    padding-top: 72px;
  }

  .llr-reminder-banner {
    justify-content: flex-start;
    text-align: left;
  }

  .llr-highlight-grid,
  .llr-feed-list,
  .llr-recognize-grid {
    grid-template-columns: 1fr;
  }

  .llr-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .llr-admin-actions {
    justify-content: flex-start;
  }
}


/* ===================== MiVinci KPI Center — Global Scoreboard Overlay ===================== */
.sbo-hidden { display: none !important; }
body.sbo-open { overflow: hidden; }

.sbo-fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(46px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--nav);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(20, 40, 72, 0.32);
  cursor: pointer;
}
.sbo-fab:hover { background: var(--nav-soft, #203c68); }
.sbo-fab:active { transform: translateX(-50%) scale(0.97); }

.sbo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 40, 72, 0.5);
  -webkit-overflow-scrolling: touch;
}

.sbo-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  background: var(--paper, #f7f8fa);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(20, 40, 72, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sbo-rise 0.22s ease-out;
}
@keyframes sbo-rise { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

.sbo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line, #d9e0e8);
  background: var(--panel, #fff);
}
.sbo-eyebrow { margin: 0; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted, #647084); }
.sbo-head h3 { margin: 2px 0 0; font-size: 1.1rem; color: var(--nav, #142848); }
.sbo-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted, #647084);
  cursor: pointer;
  padding: 4px 8px;
}

.sbo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sbo-track::-webkit-scrollbar { display: none; }

.sbo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 16px 18px 8px;
  min-height: 320px;
  box-sizing: border-box;
}
.sbo-slide-title { margin: 0 0 12px; font-size: 1.05rem; color: var(--nav, #142848); }
.sbo-sub-head { margin: 18px 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted, #647084); }
.sbo-personal-sub { margin: -4px 0 12px; font-size: 0.85rem; color: var(--muted, #647084); }

.sbo-stat-grid { display: grid; gap: 10px; }
.sbo-stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sbo-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

.sbo-stat {
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d9e0e8);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.sbo-stat-value { font-size: 1.7rem; font-weight: 800; color: var(--ink, #18212f); line-height: 1.1; }
.sbo-stat-label { margin-top: 4px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #647084); }
.sbo-stat-sub { margin-top: 4px; font-size: 0.68rem; color: var(--muted, #647084); }
.sbo-stat.sbo-good { border-color: var(--green, #198754); }
.sbo-stat.sbo-good .sbo-stat-value { color: var(--green, #198754); }
.sbo-stat.sbo-warn { border-color: var(--amber, #b7791f); }
.sbo-stat.sbo-warn .sbo-stat-value { color: var(--amber, #b7791f); }
.sbo-stat.sbo-bad { border-color: var(--red, #b42318); }
.sbo-stat.sbo-bad .sbo-stat-value { color: var(--red, #b42318); }

.sbo-leaderboard { display: flex; flex-direction: column; gap: 6px; }
.sbo-leader-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d9e0e8);
  border-radius: 10px;
  font-size: 0.85rem;
}
.sbo-rank { font-weight: 800; color: var(--nav, #142848); }
.sbo-leader-name { font-weight: 600; color: var(--ink, #18212f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-leader-score { font-weight: 800; color: var(--ink, #18212f); }
.sbo-leader-green { font-size: 0.72rem; color: var(--green, #198754); }

.sbo-momentum-table {
  gap: 6px;
}

.sbo-momentum-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.15fr) minmax(82px, 0.72fr) minmax(84px, 0.7fr);
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d9e0e8);
  border-radius: 10px;
  font-size: 0.84rem;
}

.sbo-momentum-head {
  background: var(--soft, #eef2f7);
  color: var(--muted, #647084);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sbo-momentum-department {
  color: var(--muted, #647084);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbo-momentum-score {
  color: var(--ink, #18212f);
  font-weight: 900;
  text-align: right;
}

.sbo-advisor-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sbo-advisor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.7fr) minmax(72px, 0.7fr);
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d9e0e8);
  border-radius: 10px;
  font-size: 0.85rem;
}

.sbo-advisor-head {
  background: var(--soft, #eef2f7);
  color: var(--muted, #647084);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sbo-advisor-name {
  color: var(--ink, #18212f);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbo-advisor-value {
  color: var(--ink, #18212f);
  font-weight: 800;
  text-align: right;
}

.sbo-scorecard-row {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(78px, 0.75fr));
}

.sbo-proficiency-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(90px, 0.75fr);
}

.sbo-advisor-value.sbo-good { color: var(--green, #198754); }
.sbo-advisor-value.sbo-warn { color: var(--amber, #b7791f); }
.sbo-advisor-value.sbo-bad { color: var(--red, #b42318); }

.sbo-empty {
  margin: 8px 0;
  padding: 18px 14px;
  text-align: center;
  color: var(--muted, #647084);
  background: var(--panel, #fff);
  border: 1px dashed var(--line, #d9e0e8);
  border-radius: 12px;
  font-size: 0.85rem;
}

.sbo-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--panel, #fff); }
.sbo-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line, #d9e0e8); cursor: pointer; padding: 0; }
.sbo-dot.is-active { background: var(--nav, #142848); width: 22px; border-radius: 4px; }

.sbo-nav {
  position: absolute;
  top: 54%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line, #d9e0e8);
  background: rgba(255, 255, 255, 0.92);
  color: var(--nav, #142848);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
}
.sbo-prev { left: 8px; }
.sbo-next { right: 8px; }

@media (min-width: 720px) {
  .sbo-overlay { align-items: center; }
  .sbo-sheet { border-radius: 18px; max-height: 86vh; animation: none; }
  .sbo-nav { display: block; }
}

@media (max-width: 520px) {
  .sbo-scorecard-table {
    gap: 8px;
  }

  .sbo-scorecard-row {
    grid-template-columns: 1fr 1fr;
  }

  .sbo-scorecard-row.sbo-advisor-head {
    display: none;
  }

  .sbo-scorecard-row .sbo-advisor-name {
    grid-column: 1 / -1;
  }

  .sbo-scorecard-row .sbo-advisor-value {
    text-align: left;
  }

  .sbo-momentum-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(64px, 0.62fr);
  }

  .sbo-momentum-row span:nth-child(3) {
    display: none;
  }

  .sbo-momentum-score {
    font-size: 0.9rem;
  }
}

/* ===================== MiVinci Development Engine — Loading Animation ===================== */
.mv-engine-loader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: env(safe-area-inset-top, 0px) 24px env(safe-area-inset-bottom, 0px);
}

.mvel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.mvel-engine {
  width: clamp(104px, 30vw, 168px);
  height: auto;
  overflow: visible;
}

/* --- gradient stops (token-driven) --- */
.mvel-stop-glow-a { stop-color: var(--brand-red); stop-opacity: 0.30; }
.mvel-stop-glow-b { stop-color: var(--brand-red); stop-opacity: 0.07; }
.mvel-stop-glow-c { stop-color: var(--brand-red); stop-opacity: 0; }
.mvel-stop-metal-a { stop-color: var(--nav-soft); }
.mvel-stop-metal-b { stop-color: var(--nav); }

/* --- static parts --- */
.mvel-cyl { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.mvel-pipe { fill: var(--nav-soft); }
.mvel-base { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.mvel-crank-face { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.mvel-spoke { stroke: var(--nav-soft); stroke-width: 2; stroke-linecap: round; }
.mvel-crank-pin { fill: var(--nav); }
.mvel-piston { fill: var(--nav); }

/* --- glow pulse --- */
.mvel-glow {
  transform-box: view-box;
  transform-origin: 60px 70px;
  animation: mvel-glow 2.2s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes mvel-glow {
  0%, 100% { opacity: 0.35; transform: scale(0.94); }
  50%      { opacity: 0.85; transform: scale(1.04); }
}

/* --- whole-unit idle vibration --- */
.mvel-vibe {
  animation: mvel-vibe 0.14s linear infinite;
  will-change: transform;
}
@keyframes mvel-vibe {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(0.4px, -0.3px, 0); }
  50%  { transform: translate3d(-0.3px, 0.4px, 0); }
  75%  { transform: translate3d(0.3px, 0.3px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* --- pistons (180deg out of phase) --- */
.mvel-piston {
  will-change: transform;
  animation: mvel-stroke 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.mvel-piston-r { animation-delay: -0.55s; }
@keyframes mvel-stroke {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(16px); }
}

/* --- crankshaft rotation --- */
.mvel-crank {
  transform-box: view-box;
  transform-origin: 60px 74px;
  animation: mvel-spin 1.1s linear infinite;
  will-change: transform;
}
@keyframes mvel-spin {
  to { transform: rotate(360deg); }
}

/* --- ignition spark (red, brief) --- */
.mvel-spark {
  fill: none;
  stroke: var(--brand-red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.mvel-spark-l { animation: mvel-spark 1.1s linear infinite; }
.mvel-spark-r { animation: mvel-spark 1.1s linear infinite; animation-delay: -0.55s; }
@keyframes mvel-spark {
  0%   { opacity: 0.9; }
  8%   { opacity: 0; }
  100% { opacity: 0; }
}

/* --- exhaust puffs --- */
.mvel-puff {
  fill: var(--muted);
  opacity: 0;
  transform-box: view-box;
  transform-origin: 94px 70px;
  will-change: transform, opacity;
}
.mvel-puff-1 { animation: mvel-puff 2.2s ease-out infinite; }
.mvel-puff-2 { animation: mvel-puff 2.2s ease-out infinite; animation-delay: 1.1s; }
@keyframes mvel-puff {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15%  { opacity: 0.28; }
  100% { opacity: 0; transform: translate(6px, -16px) scale(1.5); }
}

/* --- rotating loading message --- */
.mvel-message {
  margin: 0;
  min-height: 2.8em;
  max-width: 15em;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.mvel-message.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}

/* --- pacing ticks --- */
.mvel-ticks {
  display: flex;
  gap: 8px;
}
.mvel-ticks span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  animation: mvel-tick 2.4s ease-in-out infinite;
}
.mvel-ticks span:nth-child(2) { animation-delay: 0.4s; }
.mvel-ticks span:nth-child(3) { animation-delay: 0.8s; }
.mvel-ticks span:nth-child(4) { animation-delay: 1.2s; }
.mvel-ticks span:nth-child(5) { animation-delay: 1.6s; }
.mvel-ticks span:nth-child(6) { animation-delay: 2.0s; }
@keyframes mvel-tick {
  0%, 100% { background: var(--line); transform: scale(1); }
  50%      { background: var(--nav); transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .mvel-vibe,
  .mvel-piston,
  .mvel-crank,
  .mvel-spark,
  .mvel-puff,
  .mvel-ticks span {
    animation: none;
  }
  .mvel-glow {
    animation: mvel-glow 3.2s ease-in-out infinite;
  }
  .mvel-spark { opacity: 0; }
}
