/* Virtual Run Challenge — energetic race-day visual refresh */
:root {
  --race-ink: #111827;
  --race-navy: #101b35;
  --race-lime: #c7f464;
  --race-orange: #ff7547;
  --race-blue: #4f7cff;
  --race-muted: #667085;
}
body {
  color: var(--race-ink);
  background:
    radial-gradient(ellipse at 4% 0%, rgba(199,244,100,.20), transparent 28rem),
    radial-gradient(ellipse at 100% 12%, rgba(79,124,255,.12), transparent 32rem),
    #f4f6f8;
}
body::before { opacity: .28; background-size: 34px 34px; }
body:not(.auth-locked) { background: #f3f5f8; }
.app-header {
  min-height: 94px;
  border-bottom: 0;
  color: #fff;
  background: linear-gradient(105deg, #111a31 0%, #172849 68%, #1c3157 100%);
  box-shadow: 0 12px 30px rgba(16,27,53,.16);
}
.app-header .eyebrow { color: var(--race-lime); letter-spacing: .13em; }
.app-header h1 { color: #fff; font-weight: 900; letter-spacing: -.025em; }
.page-context { color: #b9c6dc; }
.brand-mark {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  color: var(--race-navy);
  background: var(--race-lime);
  box-shadow: 0 8px 24px rgba(199,244,100,.2);
  font-size: .9rem;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 44px; height: 7px;
  background: rgba(255,255,255,.48);
  transform: rotate(-42deg);
}
.header-chip {
  border: 1px solid rgba(199,244,100,.38);
  color: var(--race-lime);
  background: rgba(199,244,100,.08);
  font-weight: 900;
}
.app-header .ghost-button {
  color: #f7f9fc;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.app-header .ghost-button:hover { background: rgba(255,255,255,.16); }
.tabs {
  padding-top: 5px;
  border-bottom: 1px solid #e6eaf0;
  background: rgba(255,255,255,.96);
}
.tab { min-height: 54px; font-weight: 800; color: #667085; }
.tab:hover { color: #111a31; background: #f7f9fb; }
.tab.active {
  position: relative;
  color: #111a31;
  border-bottom-color: var(--race-lime);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 4px; border-radius: 8px 8px 0 0;
  background: var(--race-lime);
}
.ops-strip {
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(16,27,53,.045);
}
main { padding-top: 24px; }
.race-hero {
  position: relative;
  min-height: 300px;
  padding: clamp(26px,4vw,44px);
  border: 0;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, rgba(199,244,100,.17), transparent 17rem),
    linear-gradient(118deg, #101a31 0%, #192a4a 62%, #253e69 100%);
  box-shadow: 0 22px 48px rgba(16,27,53,.18);
}
.race-hero::before {
  inset: auto -35px -130px auto;
  width: 390px; height: 390px;
  border: 1px solid rgba(199,244,100,.2);
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(199,244,100,.075) 23px 24px);
}
.race-hero::after {
  content: "RUN YOUR RACE";
  position: absolute;
  right: 24px; bottom: 14px;
  color: rgba(255,255,255,.055);
  font-size: clamp(2.2rem,6vw,5.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.06em;
  pointer-events: none;
}
.race-hero h2 {
  max-width: 680px;
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(2rem,4.3vw,3.25rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.04em;
}
.race-hero p { max-width: 650px; color: #d2dced; line-height: 1.8; }
.race-hero .event-pill {
  border: 1px solid rgba(199,244,100,.32);
  color: var(--race-lime);
  background: rgba(199,244,100,.09);
}
.hero-stats { gap: 12px; margin-top: 28px; }
.hero-stats > div {
  min-width: 160px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(8px);
}
.hero-stats small { color: #c4d0e3; }
.hero-stats strong { color: var(--race-lime); font-size: 1.28rem; font-weight: 900; }
.race-visual { z-index: 1; }
.progress-ring {
  width: 172px; height: 172px;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 12px rgba(255,255,255,.025), 0 0 45px rgba(199,244,100,.09);
}
.progress-ring > div { background: #172747; }
.progress-ring strong { color: var(--race-lime); font-size: 2rem; }
.progress-ring small { color: #d0daea; }
.route-shadow { stroke: rgba(255,255,255,.12); }
.route-line { stroke: var(--race-lime); }
.route-dot { border-color: #182746; background: var(--race-orange); }
.metric-grid { gap: 16px; }
.metric {
  position: relative;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(16,27,53,.045);
}
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--metric-accent, var(--race-lime));
}
.metric::after {
  display: block;
  position: absolute;
  right: -22px; bottom: -42px;
  width: 110px; height: 110px;
  border: 1px solid color-mix(in srgb, var(--metric-accent, var(--race-lime)) 26%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--metric-accent, var(--race-lime)) 8%, transparent);
}
.metric-runners { --metric-accent: #4f7cff; }
.metric-distance { --metric-accent: #9bd83e; }
.metric-runs { --metric-accent: #ff7547; }
.metric-pending { --metric-accent: #a78bfa; }
.metric-icon {
  top: 19px; right: 19px;
  min-width: 44px; height: 44px;
  border-radius: 14px;
  color: var(--race-ink);
  background: #f1f4f8;
  font-weight: 900;
}
.metric-runners .metric-icon { color: #365ed1; background: #edf2ff; }
.metric-distance .metric-icon { color: #3c6813; background: #eff9dc; }
.metric-runs .metric-icon { color: #b84420; background: #fff0e9; }
.metric-pending .metric-icon { color: #6941c6; background: #f3edff; }
.metric span { color: #697586; font-size: .82rem; font-weight: 800; }
.metric strong { margin: 18px 0 2px; color: #101828; font-size: clamp(2rem,3vw,2.6rem); font-weight: 900; letter-spacing: -.04em; }
.metric small { color: #8a94a6; font-weight: 700; }
.panel {
  border: 1px solid #e6eaf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16,27,53,.045);
}
.panel-heading { border-bottom-color: #edf0f4; }
.panel-heading h2 { color: #111a31; font-weight: 900; letter-spacing: -.015em; }
.panel-heading span {
  border: 1px solid #e8ecf2;
  border-radius: 999px;
  color: #657084;
  background: #f8f9fb;
  font-weight: 800;
}
.primary-button, button[type="submit"] {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #14200a;
  background: var(--race-lime);
  box-shadow: 0 7px 16px rgba(155,216,62,.22);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button:hover, button[type="submit"]:hover {
  transform: translateY(-1px);
  background: #b7ed4d;
  box-shadow: 0 10px 22px rgba(155,216,62,.3);
}
.ghost-button {
  border: 1px solid #dfe4eb;
  border-radius: 12px;
  color: #344054;
  background: #fff;
  font-weight: 800;
}
.ghost-button:hover { border-color: #cbd5e1; background: #f8fafc; }
input, select, textarea {
  min-height: 44px;
  border: 1px solid #d9e0e8;
  border-radius: 11px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(79,124,255,.13);
  border-color: #7795ff;
}
table thead th { color: #526076; background: #f6f8fb; font-weight: 900; }
table tbody tr:hover { background: #f8fbf2; }
.login-screen {
  position: relative;
  overflow: hidden;
  padding: clamp(20px,5vw,60px);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(199,244,100,.16), transparent 36rem),
    radial-gradient(ellipse at 100% 0%, rgba(79,124,255,.22), transparent 34rem),
    #101a31;
}
.login-screen::before {
  content: "MOVE. TRACK. ACHIEVE.";
  position: absolute;
  right: -15px; bottom: 4%;
  color: rgba(255,255,255,.035);
  font-size: clamp(2.5rem,8vw,8rem);
  font-weight: 900;
  letter-spacing: -.07em;
  white-space: nowrap;
  pointer-events: none;
}
.login-panel {
  position: relative;
  z-index: 1;
  width: min(1180px,100%);
  gap: clamp(28px,5vw,68px);
  padding: clamp(24px,5vw,58px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(28,44,75,.98), rgba(17,29,53,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.login-copy { align-self: center; }
.login-copy .event-pill {
  border: 1px solid rgba(199,244,100,.34);
  color: var(--race-lime);
  background: rgba(199,244,100,.09);
}
.login-copy h1 {
  max-width: 600px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(2rem,4.5vw,3.65rem);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.04em;
}
.login-copy p { max-width: 540px; color: #c7d2e4; line-height: 1.9; }
.login-status { color: #d7e0ee; }
.login-status small { color: #aab8cd; }
.landing-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(360px,100%);
  height: 42px;
  margin-top: 34px;
}
.landing-track::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg,var(--race-lime),rgba(199,244,100,.05));
}
.landing-track span {
  z-index: 1;
  width: 13px; height: 13px;
  border: 3px solid #172849;
  border-radius: 50%;
  background: var(--race-lime);
  box-shadow: 0 0 0 5px rgba(199,244,100,.12);
}
.landing-track span:nth-child(2) { margin-left: 25%; background: var(--race-orange); }
.landing-track span:nth-child(3) { margin-left: auto; }
.login-form {
  gap: 16px;
  padding: clamp(22px,3vw,34px);
  border: 1px solid #edf0f4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0,0,0,.16);
}
.login-form-heading > span { color: #5d8d18; }
.login-form-heading > strong { color: #101828; font-size: 1.5rem; font-weight: 900; }
.login-form-heading > small, .login-security-note { color: #667085; }
.login-form label { color: #344054; font-weight: 800; }
.login-form input { min-height: 48px; border-radius: 12px; }
.login-form .ghost-button { min-height: 44px; }
.admin-totp-flow { padding-top: 8px; }
.admin-totp-qr { border-radius: 16px; }
.change-password-form { border-radius: 18px; }
.result-box { border-radius: 14px; }
@media (max-width: 900px) {
  .app-header { padding: 16px 20px; }
  .race-hero { min-height: 0; }
  .race-visual { min-height: 180px; }
  .login-panel { grid-template-columns: 1fr; }
  .login-copy h1 { max-width: 760px; }
  .landing-track { margin-top: 22px; }
}
@media (max-width: 620px) {
  .app-header { padding: 14px; }
  .app-header h1 { font-size: 1rem; }
  .brand-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .race-hero { padding: 22px 18px; border-radius: 20px; }
  .race-hero h2 { font-size: 2rem; }
  .race-hero::after { right: 12px; font-size: 2rem; }
  .hero-stats > div { min-width: 0; flex: 1; }
  .metric { min-height: 126px; padding: 17px; border-radius: 17px; }
  .metric-icon { top: 14px; right: 14px; min-width: 36px; height: 36px; }
  .metric strong { font-size: 1.8rem; }
  .panel { border-radius: 17px; }
  .login-screen { padding: 14px; }
  .login-panel { padding: 18px; border-radius: 22px; }
  .login-copy h1 { font-size: 2rem; }
  .login-copy p { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Contrast guard: override legacy compound selectors from styles.css. */
.race-hero.panel {
  color: #fff !important;
  border-color: transparent !important;
  background: radial-gradient(circle at 82% 22%, rgba(199,244,100,.17), transparent 17rem), linear-gradient(118deg, #101a31 0%, #192a4a 62%, #253e69 100%) !important;
  box-shadow: 0 22px 48px rgba(16,27,53,.18) !important;
}
.race-hero.panel h2 { color: #fff !important; }
.race-hero.panel p { color: #d2dced !important; }
.race-hero.panel .hero-stats small { color: #d2dced !important; }
.race-hero.panel .hero-stats strong { color: #c7f464 !important; }
.race-hero.panel .progress-ring { border-color: rgba(255,255,255,.16) !important; }
.race-hero.panel .progress-ring > div { background: #172747 !important; }
.race-hero.panel .progress-ring strong { color: #c7f464 !important; }
.race-hero.panel .progress-ring small { color: #d2dced !important; }
.metric-grid .metric-runners .metric-icon { color: #365ed1 !important; background: #edf2ff !important; }
.metric-grid .metric-distance .metric-icon { color: #3c6813 !important; background: #eff9dc !important; }
.metric-grid .metric-runs .metric-icon { color: #b84420 !important; background: #fff0e9 !important; }
.metric-grid .metric-pending .metric-icon { color: #6941c6 !important; background: #f3edff !important; }
.metric span { color: #526076 !important; }
.panel-heading > span { color: #526076 !important; }
.table thead th, table thead th { color: #344054 !important; }

/* Premium polish — cohesive editorial sports dashboard */
:root {
  --race-ink: #172033;
  --race-navy: #101a31;
  --race-lime: #c7f464;
  --race-muted: #68758a;
  --race-line: #e3e8f0;
  --race-surface: #ffffff;
}
html { scroll-behavior: smooth; }
body:not(.auth-locked) {
  color: var(--race-ink);
  background:
    radial-gradient(ellipse at 2% 0%, rgba(199,244,100,.09), transparent 34rem),
    radial-gradient(ellipse at 100% 12%, rgba(79,124,255,.07), transparent 36rem),
    #f5f7fa;
  font-feature-settings: "tnum" 1;
}
.app-header {
  min-height: 88px;
  border-bottom: 1px solid rgba(226,232,240,.85);
  background: linear-gradient(105deg, #101a31 0%, #172747 72%, #20375e 100%);
  box-shadow: 0 8px 28px rgba(16,26,49,.12);
}
.app-header .brand-mark {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: linear-gradient(145deg, #d6fb83, #b8e94d);
  color: #17251a;
  box-shadow: 0 7px 20px rgba(199,244,100,.16);
}
.app-header h1 { color: #fff; letter-spacing: -.035em; }
.app-header .page-context { color: #bdc9dc; }
.tabs {
  border-bottom: 1px solid #e4e9f0;
  box-shadow: 0 4px 14px rgba(16,26,49,.035);
}
.tab { transition: color .18s ease, background .18s ease; }
.tab.active { color: #182641; }
.tab.active::after { background: var(--race-lime); }
.ops-strip {
  border-color: rgba(224,230,239,.92);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(16,26,49,.035);
}
main { padding-top: 22px; }
.race-hero.panel {
  min-height: 286px;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(199,244,100,.16), transparent 19rem),
    radial-gradient(circle at 100% 100%, rgba(79,124,255,.16), transparent 24rem),
    linear-gradient(118deg, #101a31 0%, #182a4b 62%, #213b66 100%) !important;
  box-shadow: 0 22px 50px rgba(16,26,49,.15) !important;
}
.race-hero h2 { letter-spacing: -.045em; }
.race-hero .event-pill, .login-copy .event-pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .055em;
}
.hero-stats > div {
  border-radius: 15px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.metric-grid { gap: 16px; }
.metric {
  min-height: 142px;
  border-color: #e5eaf1;
  border-radius: 19px;
  box-shadow: 0 5px 18px rgba(16,26,49,.035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.metric:hover {
  transform: translateY(-3px);
  border-color: #d6deea;
  box-shadow: 0 14px 30px rgba(16,26,49,.08);
}
.metric::before { height: 3px; }
.metric-icon { border: 1px solid rgba(148,163,184,.08); }
.metric span { letter-spacing: .01em; }
.metric strong { letter-spacing: -.045em; }
.panel {
  border-color: #e5eaf1;
  border-radius: 19px;
  box-shadow: 0 5px 18px rgba(16,26,49,.035);
}
.panel-heading { margin-bottom: 17px; }
.panel-heading h2 { letter-spacing: -.025em; }
.panel-heading > span { padding: 4px 10px; }
.primary-button, button[type="submit"] {
  border-radius: 11px;
  letter-spacing: -.01em;
}
.ghost-button {
  border-radius: 11px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ghost-button:hover { transform: translateY(-1px); }
input, select, textarea {
  border-radius: 11px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #7992d8;
  box-shadow: 0 0 0 4px rgba(79,124,255,.11);
}
table thead th { letter-spacing: .015em; }
table tbody tr { transition: background .14s ease; }
.login-screen {
  background:
    radial-gradient(ellipse at 8% 92%, rgba(199,244,100,.14), transparent 36rem),
    radial-gradient(ellipse at 100% 0%, rgba(79,124,255,.22), transparent 34rem),
    #0d172b;
}
.login-panel {
  border-color: rgba(255,255,255,.13);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(27,43,73,.98), rgba(16,27,49,.98));
  box-shadow: 0 34px 100px rgba(0,0,0,.3);
}
.login-form {
  border-color: rgba(226,232,240,.9);
  border-radius: 22px;
  box-shadow: 0 24px 58px rgba(0,0,0,.18);
}
.login-form-heading > span { letter-spacing: .11em; }
.login-form-heading > strong { letter-spacing: -.035em; }
.login-form input { border-radius: 11px; }
.login-form .primary-button { min-height: 48px; }
.admin-totp-flow {
  padding: 16px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #f8fafc;
}
.admin-totp-flow .login-form-heading > strong { color: #172033; }
@media (max-width: 900px) {
  .race-hero.panel { min-height: 0; }
  .login-panel { border-radius: 24px; }
}
@media (max-width: 620px) {
  .app-header { min-height: 0; }
  .race-hero.panel { padding: 22px 18px; border-radius: 20px !important; }
  .metric { min-height: 124px; border-radius: 16px; }
  .panel { border-radius: 16px; }
  .login-panel { border-radius: 21px; }
  .login-form { border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Secondary screens — premium, consistent across the full event portal */
.view { animation: viewEnter .28s ease both; }
@keyframes viewEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.view > .panel, .view > .register-layout, .view > .toolbar, .view > .runner-profile { margin-bottom: 18px; }
.view .panel { padding: clamp(18px, 2.4vw, 28px); }
.view .panel-heading { gap: 14px; }
.view .panel-heading h2 { font-size: clamp(1rem, 1.7vw, 1.18rem); }
.view .panel-heading > span { white-space: normal; text-align: right; }
.form-panel { border-radius: 22px; }
.form-grid { gap: 18px; }
.form-grid label, .department-form-simple label, .backup-restore-controls label {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #344054;
  font-size: .88rem;
  font-weight: 800;
}
.form-grid input, .form-grid select, .form-grid textarea,
.stack input, .stack select, .stack textarea,
.change-password-form input, .department-form-simple input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  color: #172033;
  background: #fbfcfe;
  font: inherit;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.form-grid input:hover, .form-grid select:hover, .stack input:hover, .stack select:hover { border-color: #c5cfdd; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.stack input:focus, .stack select:focus, .stack textarea:focus {
  background: #fff;
}
.form-grid input[type="file"] { padding: 8px; font-size: .82rem; }
.form-grid input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 8px 11px; border: 0; border-radius: 8px;
  color: #23321a; background: #eaf7d2; font: inherit; font-weight: 800; cursor: pointer;
}
.form-grid .checkbox-row, .stack .checkbox-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid #e8edf3; border-radius: 12px; background: #f8fafc;
}
.form-grid .checkbox-row input, .stack .checkbox-row input { width: 18px; min-height: 18px; accent-color: #7aa92a; }
.form-grid > button[type="submit"] { grid-column: 1 / -1; }
.form-hint { color: #68758a; line-height: 1.65; }
.result-box {
  margin-top: 16px; padding: 15px 17px; border: 1px solid #dce9c7;
  border-radius: 14px; color: #344b1a; background: #f7fbeF; line-height: 1.7;
}
.register-layout { align-items: start; gap: 20px; }
.bib-preview { position: sticky; top: 88px; overflow: hidden; }
.bib-card {
  position: relative; overflow: hidden; padding: 26px;
  border: 0; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(199,244,100,.22), transparent 12rem),
    linear-gradient(135deg, #101a31, #243d66);
  box-shadow: 0 18px 36px rgba(16,26,49,.18);
}
.bib-card::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -90px;
  border: 1px solid rgba(199,244,100,.28); border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(199,244,100,.035), 0 0 0 38px rgba(199,244,100,.025);
}
.bib-label { color: #c7f464; letter-spacing: .14em; font-weight: 900; }
.bib-card > strong { display: block; margin: 10px 0; color: #fff; font-size: clamp(2.6rem,5vw,4rem); line-height: 1; letter-spacing: -.06em; }
.bib-card p { margin: 12px 0 4px; color: #fff; font-size: 1.1rem; font-weight: 900; }
.bib-card small { color: #c4d0e3; }
.bib-note { padding: 18px 4px 0; }
.bib-note h3 { margin: 0 0 8px; color: #172033; }
.bib-note p { margin: 0; color: #68758a; line-height: 1.8; }
.submit-flow { gap: 12px; margin: 8px 0 24px; }
.flow-step {
  position: relative; display: flex; align-items: center; gap: 11px; min-width: 0;
  padding: 13px 15px; border: 1px solid #e3e8f0; border-radius: 14px;
  color: #68758a; background: #f8fafc; font-weight: 800;
}
.flow-step > strong {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: 10px; color: #667085; background: #e8edf3; font-size: .85rem;
}
.flow-step.active {
  border-color: #d7e8b5; color: #283b17;
  background: linear-gradient(120deg, #f6fbe9, #fff);
  box-shadow: inset 0 0 0 1px rgba(199,244,100,.18);
}
.flow-step.active > strong { color: #1e2b12; background: #c7f464; }
.ocr-workspace, .run-preview {
  padding: 18px; border: 1px solid #e4eaf1; border-radius: 16px; background: #f8fafc;
}
.ocr-heading strong { color: #172033; }
.ocr-kicker { color: #6b941f; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.preview-metrics > div {
  padding: 13px 15px; border: 1px solid #e7ecf2; border-radius: 12px; background: #fff;
}
.preview-metrics small { display: block; color: #7b8798; font-weight: 700; }
.preview-metrics strong { display: block; margin-top: 4px; color: #172033; font-size: 1.15rem; }
.runner-profile {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 24px; padding: clamp(22px,3vw,34px) !important;
  border-color: #253b60; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(199,244,100,.18), transparent 18rem),
    linear-gradient(120deg, #101a31, #1e3459);
  box-shadow: 0 18px 40px rgba(16,26,49,.14);
}
.runner-identity { position: relative; z-index: 1; }
.runner-identity .event-pill, .leaderboard-motivation .event-pill {
  display: inline-flex; padding: 6px 11px; border: 1px solid rgba(199,244,100,.3);
  border-radius: 999px; color: #c7f464; background: rgba(199,244,100,.08);
  font-size: .75rem; font-weight: 900;
}
.runner-identity h2 { margin: 14px 0 8px; color: #fff; font-size: clamp(1.6rem,3vw,2.25rem); font-weight: 900; letter-spacing: -.035em; }
.runner-identity p { max-width: 680px; margin: 0; color: #c6d2e4; line-height: 1.75; }
.runner-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.runner-home-actions .ghost-button { border-color: rgba(255,255,255,.2); color: #f7f9fc; background: rgba(255,255,255,.07); }
.runner-home-actions #myRankHint { color: #c7f464; font-weight: 900; }
.runner-bib-card {
  position: relative; z-index: 1; display: grid; align-content: center; justify-items: center;
  min-width: 190px; min-height: 170px; padding: 20px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
  background: rgba(255,255,255,.07); backdrop-filter: blur(12px);
}
.runner-bib-card small { color: #c7f464; font-weight: 900; letter-spacing: .15em; }
.runner-bib-card strong { color: #fff; font-size: clamp(2.3rem,4vw,3.2rem); font-weight: 900; letter-spacing: -.06em; }
.runner-bib-card span { color: #c6d2e4; font-size: .8rem; }
.personal-metrics { margin: 18px 0; }
.table-wrap {
  width: 100%; overflow-x: auto; border: 1px solid #e7ecf2; border-radius: 14px;
  background: #fff; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
table thead th {
  padding: 13px 15px; border-bottom: 1px solid #e3e8f0;
  color: #526076; background: #f6f8fb; font-size: .76rem; letter-spacing: .025em;
  text-align: left; white-space: nowrap;
}
table thead th:first-child { border-top-left-radius: 12px; }
table thead th:last-child { border-top-right-radius: 12px; }
table tbody td { padding: 13px 15px; border-bottom: 1px solid #edf0f4; color: #344054; white-space: nowrap; }
table tbody tr:last-child td { border-bottom: 0; }
table tbody tr:nth-child(even) { background: #fbfcfe; }
table tbody tr:hover { background: #f5f9ed; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; padding: 12px;
  border: 1px solid #e5eaf1; border-radius: 16px; background: #fff;
  box-shadow: 0 5px 18px rgba(16,26,49,.035);
}
.segmented { display: inline-flex; flex-wrap: wrap; gap: 5px; padding: 4px; border-radius: 12px; background: #f1f4f8; }
.segmented button {
  min-height: 38px; padding: 8px 14px; border: 0; border-radius: 9px;
  color: #667085; background: transparent; font: inherit; font-size: .83rem; font-weight: 900;
}
.segmented button.active { color: #172033; background: #c7f464; box-shadow: 0 2px 6px rgba(16,26,49,.08); }
.toolbar select { min-width: 190px; padding: 9px 34px 9px 12px; }
.leaderboard-motivation {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 18px; padding: clamp(22px,3vw,32px) !important;
  border-color: #263c60; color: #fff;
  background: radial-gradient(circle at 85% 0%, rgba(199,244,100,.17), transparent 18rem),
    linear-gradient(115deg, #101a31, #21385f);
}
.leaderboard-motivation h2 { margin: 12px 0 6px; color: #fff; font-size: clamp(1.4rem,2.7vw,2rem); font-weight: 900; }
.leaderboard-motivation p { margin: 0; color: #c6d2e4; line-height: 1.7; }
.leaderboard-motivation .ghost-button { flex: 0 0 auto; border-color: rgba(255,255,255,.22); color: #172033; background: #c7f464; }
.podium { align-items: end; gap: 14px; margin: 12px 0 24px; }
.podium-card {
  position: relative; overflow: hidden; border: 1px solid #e5eaf1; border-radius: 18px;
  background: linear-gradient(180deg,#fff,#f8fafc); box-shadow: 0 8px 22px rgba(16,26,49,.05);
}
.podium-card.rank-1 {
  border-color: #d7e8a9; background: linear-gradient(180deg,#fbffef,#fff);
  box-shadow: 0 12px 28px rgba(129,169,49,.13);
}
.podium-card.rank-1::before { content: "CHAMPION"; display: block; margin: 0 0 12px; color: #6b941f; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.podium-card strong { color: #172033; }
.podium-card p, .podium-card small { color: #68758a; }
#historySearch { width: 100%; max-width: 420px; min-height: 46px; margin: 0 0 16px; padding: 10px 14px; }
.risk-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  margin-bottom: 18px; padding: clamp(22px,3vw,32px) !important;
  border-color: #263c60; color: #fff;
  background: radial-gradient(circle at 88% 0%, rgba(199,244,100,.14), transparent 18rem),
    linear-gradient(115deg, #101a31, #21385f);
}
.risk-summary h2 { margin: 12px 0 0; color: #fff; font-size: clamp(1.35rem,2.5vw,1.9rem); font-weight: 900; }
.risk-summary .event-pill { color: #c7f464; border-color: rgba(199,244,100,.28); background: rgba(199,244,100,.07); }
.risk-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.risk-metrics > div {
  min-width: 104px; display: grid; gap: 6px; padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.07);
}
.risk-metrics small { color: #c6d2e4; font-size: .75rem; }
.risk-metrics strong { color: #c7f464; font-size: 1.7rem; font-weight: 900; }
.executive-summary { margin-bottom: 18px; }
.executive-summary .metric-grid { grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); }
.backup-restore-controls { border-color: #e3e9f1; border-radius: 16px; background: #f8fafc; }
.backup-restore-controls .panel-heading { margin-bottom: 12px; }
.settings-actions, .export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.settings-actions button, .export-row button { min-height: 42px; }
.department-setting-row, .setting-chip, .health-card, .log-item {
  border-color: #e5eaf1; border-radius: 13px; background: #fbfcfe;
}
.department-setting-row:hover, .setting-chip:hover { border-color: #d6e0eb; background: #fff; }
.stack { gap: 12px; }
.stack > button { justify-self: start; }
.health-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.health-actions p { margin: 0; color: #68758a; line-height: 1.65; }
.health-card { padding: 16px; }
.health-card span { border-radius: 999px; }
.toast { border-radius: 14px; box-shadow: 0 16px 42px rgba(16,26,49,.16); }
.danger-button { min-height: 42px; border-radius: 11px; }
@media (max-width: 900px) {
  .runner-profile { grid-template-columns: 1fr; }
  .runner-bib-card { width: min(260px,100%); min-height: 140px; }
  .risk-summary { align-items: flex-start; flex-direction: column; }
  .risk-metrics { width: 100%; }
  .risk-metrics > div { flex: 1; }
}
@media (max-width: 620px) {
  .view .panel { padding: 16px; }
  .view .panel-heading { align-items: flex-start; }
  .view .panel-heading > span { text-align: left; }
  .form-grid { gap: 14px; }
  .register-layout { gap: 14px; }
  .bib-preview { position: static; }
  .submit-flow { gap: 8px; }
  .flow-step { padding: 10px; font-size: .82rem; }
  .runner-profile { padding: 20px 17px !important; border-radius: 19px; }
  .runner-home-actions { align-items: stretch; flex-direction: column; }
  .runner-home-actions button { width: 100%; }
  .runner-bib-card { width: 100%; }
  .toolbar { align-items: stretch; padding: 10px; }
  .segmented { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .segmented button { width: 100%; }
  .toolbar select { width: 100%; min-width: 0; }
  .leaderboard-motivation { align-items: stretch; flex-direction: column; }
  .leaderboard-motivation .ghost-button { width: 100%; }
  .risk-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .risk-metrics > div { min-width: 0; padding: 10px 8px; }
  .risk-metrics small { font-size: .68rem; }
  .risk-metrics strong { font-size: 1.3rem; }
  .settings-actions, .export-row { align-items: stretch; flex-direction: column; }
  .settings-actions button, .export-row button { width: 100%; }
  #historySearch { max-width: none; }
  table { font-size: .82rem; }
  table thead th, table tbody td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}

/* Mobile-first refinements: compact, thumb-friendly and overflow-safe */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .app-header > * { min-width: 0; }
  .app-header h1 {
    font-size: clamp(.92rem, 4vw, 1.12rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .app-header .page-context { font-size: .75rem; line-height: 1.35; }
  .app-header .header-actions,
  .app-header .header-controls { max-width: 100%; }
  .app-header button, .app-header .ghost-button { min-height: 42px; }
  .tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 5px 10px 0;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 10px 13px;
    white-space: nowrap;
    font-size: .84rem;
  }
  .tab.active::after { left: 12px; right: 12px; height: 3px; }
  .ops-strip { margin: 10px 12px; padding: 10px 12px; border-radius: 13px; }
  main { padding: 14px 12px calc(24px + env(safe-area-inset-bottom)); }
  .view { min-width: 0; }
  .race-hero.panel { gap: 18px; }
  .race-hero h2 { font-size: clamp(1.65rem, 7vw, 2.15rem); line-height: 1.12; }
  .race-hero p { font-size: .92rem; line-height: 1.65; }
  .race-hero::after { max-width: 100%; font-size: clamp(1.45rem, 7vw, 2.3rem); }
  .hero-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
  .hero-stats > div { min-width: 0; padding: 11px 12px; }
  .hero-stats strong { font-size: 1.1rem; overflow-wrap: anywhere; }
  .race-visual { min-width: 0; }
  .progress-ring { width: 138px; height: 138px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metric { min-width: 0; min-height: 118px; padding: 15px; }
  .metric span { display: block; max-width: calc(100% - 34px); font-size: .76rem; line-height: 1.4; }
  .metric strong { max-width: 100%; margin-top: 15px; font-size: clamp(1.45rem, 7vw, 1.9rem); overflow-wrap: anywhere; }
  .metric small { font-size: .72rem; }
  .view .panel { min-width: 0; padding: 15px; margin-bottom: 13px; }
  .view .panel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 13px;
  }
  .view .panel-heading h2 { min-width: 0; font-size: 1rem; line-height: 1.4; }
  .view .panel-heading > span { max-width: 100%; font-size: .72rem; }
  .primary-button, button[type="submit"], .ghost-button, .danger-button {
    min-height: 48px;
    padding: 11px 14px;
    touch-action: manipulation;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  select, textarea {
    max-width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  textarea { min-height: 110px; }
  .form-grid, .stack { min-width: 0; }
  .form-grid label { min-width: 0; overflow-wrap: anywhere; }
  .register-layout { display: flex; flex-direction: column; }
  .register-layout > * { width: 100%; min-width: 0; }
  .bib-card { padding: 22px; }
  .submit-flow { display: grid; grid-template-columns: 1fr; }
  .flow-step { min-height: 44px; }
  .ocr-workspace, .run-preview { padding: 13px; }
  .preview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .preview-metrics > div { min-width: 0; padding: 10px 8px; }
  .preview-metrics strong { font-size: .98rem; overflow-wrap: anywhere; }
  .runner-profile { gap: 16px; }
  .runner-home-actions { gap: 8px; }
  .runner-bib-card { min-height: 126px; }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  table { min-width: 600px; }
  .toolbar { gap: 10px; }
  .segmented { width: 100%; }
  .segmented button { min-height: 44px; padding: 9px 10px; }
  .leaderboard-motivation { gap: 14px; }
  .podium { gap: 7px; }
  .podium-card { min-width: 0; padding: 12px 8px; overflow-wrap: anywhere; }
  .risk-summary { gap: 16px; }
  .risk-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .risk-metrics > div { text-align: center; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) !important; gap: 12px; }
  .dashboard-grid > * { min-width: 0; }
  .backup-restore-controls { padding: 12px; }
  .settings-actions, .export-row, .health-actions { align-items: stretch; }
  .settings-actions button, .export-row button, .health-actions button { width: 100%; }
  .settings-list, .log-list, .stack { min-width: 0; }
  .login-screen { min-height: 100svh; padding: 12px; }
  .login-panel { width: 100%; gap: 18px; padding: 16px; }
  .login-copy h1 { margin: 14px 0 10px; font-size: clamp(1.8rem, 8vw, 2.25rem); }
  .login-copy p { line-height: 1.65; }
  .login-form { gap: 13px; padding: 17px; }
  .login-form-heading > strong { font-size: 1.3rem; }
  .admin-totp-flow { padding: 12px; }
  .admin-totp-qr { max-width: 100%; height: auto; }
  .toast { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
}
@media (max-width: 390px) {
  .app-header { padding: 10px; gap: 8px; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .app-header h1 { font-size: .9rem; }
  main { padding-right: 9px; padding-left: 9px; }
  .race-hero.panel { padding: 18px 14px; }
  .view .panel { padding: 12px; }
  .metric { padding: 12px; }
  .metric-icon { top: 10px; right: 10px; min-width: 30px; height: 30px; font-size: .68rem; }
  .risk-metrics small { font-size: .64rem; }
  .risk-metrics strong { font-size: 1.15rem; }
  .preview-metrics { grid-template-columns: 1fr; }
  .preview-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .preview-metrics strong { margin: 0; }
}

/* Final mobile usability pass: focus visibility, viewport safety and touch navigation */
:focus-visible {
  outline: 3px solid #7c9d2d;
  outline-offset: 3px;
}
button, input, select, textarea, summary, a {
  -webkit-tap-highlight-color: rgba(124,157,45,.16);
}
.tabs { scroll-padding-inline: 12px; }
.tab { scroll-snap-align: start; }
@media (max-width: 760px) {
  .tabs { scroll-snap-type: x proximity; }
  .tabs::after { content: ""; flex: 0 0 2px; }
  .login-screen { min-height: 100vh; min-height: 100dvh; }
  .login-panel, .login-options, .login-form { min-width: 0; }
  .login-form label { min-width: 0; overflow-wrap: anywhere; }
  .login-form input { width: 100%; min-width: 0; }
  .login-copy, .login-copy p, .page-context { overflow-wrap: anywhere; }
  .dashboard-grid canvas { display: block; width: 100% !important; max-width: 100%; }
  .table-wrap::after { content: "เลื่อนตารางไปด้านข้างเพื่อดูข้อมูลเพิ่มเติม →"; display: block; padding: 7px 11px; color: #68758a; background: #f8fafc; font-size: .72rem; }
  .ops-strip { display: flex; flex-wrap: wrap; gap: 10px; }
  .ops-strip > * { min-width: 0; max-width: 100%; }
  .ops-strip select { max-width: 100%; }
  .change-password-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .change-password-form > * { min-width: 0; }
  .change-password-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .change-password-actions button { width: 100%; }
  .ocr-result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ocr-result-grid > * { min-width: 0; overflow-wrap: anywhere; }
  .ocr-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .ocr-actions button { width: 100%; }
}
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: minmax(0,1fr); }
  .metric-grid { gap: 8px; }
  .metric { padding: 10px; }
  .metric span { font-size: .7rem; }
  .metric strong { font-size: 1.35rem; }
  .login-panel { padding: 12px; }
  .login-form { padding: 13px; }
  .risk-metrics { grid-template-columns: minmax(0,1fr); }
}
@media (hover: none) and (pointer: coarse) {
  .metric:hover, .ghost-button:hover { transform: none; }
  .tab, .segmented button, summary { min-height: 44px; }
}

/* Senior-friendly clarity layer: larger Thai text, plain-language guidance, generous controls */
:root {
  --readable-text: #172033;
  --readable-muted: #46556b;
  --readable-border: #cbd5e1;
}
body {
  color: var(--readable-text);
  font-size: 17px;
  line-height: 1.65;
}
p, small, .page-context, .form-hint { line-height: 1.65; }
small, .form-hint { color: var(--readable-muted); }
label { font-size: 1rem; line-height: 1.55; font-weight: 700; }
input, select, textarea { border-color: #aebdce; }
input::placeholder, textarea::placeholder { color: #59677b; opacity: 1; }
button { font-weight: 750; }
button:disabled { cursor: not-allowed; opacity: .68; }
.quick-start-panel {
  margin: 18px 0 20px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #dce5d4;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf2 100%);
  box-shadow: 0 10px 28px rgba(16,27,53,.055);
}
.quick-start-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.quick-start-heading h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; }
.quick-start-heading p { margin: 0; color: #46556b; }
.quick-start-number {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 10px;
  color: #24420b;
  background: #e2f2cb;
  font-weight: 900;
  font-size: .85rem;
}
.quick-start-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-start-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 108px;
  padding: 16px;
  text-align: left;
  border: 1px solid #cdd8c4;
  border-radius: 15px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.quick-start-action:hover { border-color: #78a344; background: #fbfef7; box-shadow: 0 6px 18px rgba(40,80,20,.08); }
.quick-start-action > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.quick-start-action strong { font-size: 1rem; line-height: 1.45; }
.quick-start-action small { font-size: .88rem; color: #46556b; line-height: 1.5; }
.quick-start-icon {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: #fff;
  background: #2f6b24;
  font-size: 1.25rem;
  font-weight: 900;
}
.quick-start-arrow { margin-left: auto; color: #2f6b24; font-size: 1.8rem; font-weight: 700; }
.quick-start-help { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #dfe8d8; color: #46556b; }
.quick-start-help strong { color: #172033; }
@media (max-width: 900px) {
  .quick-start-grid { grid-template-columns: minmax(0,1fr); }
  .quick-start-action { min-height: 84px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .quick-start-panel { margin: 14px 0; padding: 16px; border-radius: 16px; }
  .quick-start-heading { gap: 10px; }
  .quick-start-heading h2 { font-size: 1.2rem; }
  .quick-start-heading p { font-size: .94rem; }
  .quick-start-action { min-height: 82px; padding: 13px; gap: 11px; }
  .quick-start-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .quick-start-action strong { font-size: 1rem; }
  .quick-start-action small { font-size: .88rem; }
  .ops-strip, .ops-strip small, .status-pill { font-size: .9rem; }
  .view .panel-heading h2 { font-size: 1.08rem; }
  .form-grid label, .login-form label { font-size: 1rem; }
  .tab { font-size: .9rem; }
}
