* {
  box-sizing: border-box;
}

:root {
  --black: #05070a;
  --black-soft: #090d12;
  --panel: #101720;
  --panel-deep: #090e14;
  --panel-light: #18222d;
  --line: #2e3d4d;
  --line-gold: rgba(214, 169, 74, 0.48);
  --navy: #08284d;
  --navy-bright: #0d3d73;
  --gold: #d6a94a;
  --gold-soft: #f0cd7a;
  --text: #f5f7fa;
  --muted: #a8b2bf;
  --danger: #ff6b76;
  --red-dark: #4a1016;
  --green: #7bd99c;
  --input: #070b10;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(13, 61, 115, 0.30), transparent 34rem),
    linear-gradient(180deg, #05070a 0%, #080c11 58%, #05070a 100%);
  font-family: "Black Ops One", Arial, sans-serif;
}

button,
input,
select,
textarea,
a {
  font-family: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

body.auth-loading #mobile-app,
body.auth-locked #mobile-app {
  display: none;
}

body.auth-ready #mobile-login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.80)),
    radial-gradient(circle at top, rgba(13, 61, 115, 0.56), transparent 34rem),
    var(--black);
}

.login-header {
  padding: 24px 18px 18px;
  text-align: center;
  color: var(--text);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(5, 18, 34, 0.94));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.login-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(0, 0, 0, 0.6));
}

.department-name {
  margin-top: 9px;
  color: var(--text);
  font-size: 1.24rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.department-motto {
  position: relative;
  display: inline-block;
  margin-top: 9px;
  color: var(--gold-soft);
  background:
    linear-gradient(
      100deg,
      var(--gold-soft) 0%,
      var(--gold-soft) 35%,
      #fff2b2 45%,
      #7dd3fc 52%,
      #fff2b2 60%,
      var(--gold-soft) 72%,
      var(--gold-soft) 100%
    );
  background-size: 320% 100%;
  background-position: 170% 0;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  -webkit-text-fill-color: transparent;
  animation: wpdLoginMottoTextShimmer 8s linear infinite;
}

.login-body {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 30px 18px 34px;
}

.login-card {
  padding: 25px 18px 20px;
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.97), rgba(7, 11, 16, 0.97));
  border: 1px solid rgba(214, 169, 74, 0.42);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.58);
}

.login-stars {
  text-align: center;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
}

.login-card h1 {
  margin: 11px 0 6px;
  color: var(--text);
  text-align: center;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-subtitle,
.modal-description {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.login-subtitle {
  margin: 0 0 24px;
  text-align: center;
}

.login-card label,
.mobile-form label {
  display: block;
  margin: 15px 0 7px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-card input,
.mobile-form input,
.mobile-form select,
.mobile-form textarea,
.message-search-row input {
  width: 100%;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 9px;
  letter-spacing: 0.025em;
}

.login-card input,
.mobile-form input,
.mobile-form select,
.mobile-form textarea {
  padding: 14px 12px;
  font-size: 0.82rem;
}

.mobile-form textarea {
  min-height: 122px;
  resize: vertical;
}

.login-card input::placeholder,
.message-search-row input::placeholder {
  color: #707b88;
  opacity: 1;
}

.login-card input:focus,
.mobile-form input:focus,
.mobile-form select:focus,
.mobile-form textarea:focus,
.message-search-row input:focus {
  outline: 3px solid rgba(13, 61, 115, 0.52);
  border-color: var(--gold);
}

.login-error {
  min-height: 20px;
  margin: 13px 0 5px;
  color: var(--danger);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

#mobile-auth-submit,
.modal-submit-btn {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  background: linear-gradient(180deg, var(--navy-bright), var(--navy));
  border: 1px solid rgba(240, 205, 122, 0.58);
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

#mobile-auth-submit:disabled,
.modal-submit-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.mobile-app {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 12px 24px;
}

.app-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(2, 10, 19, 0.98), rgba(8, 40, 77, 0.95));
  border: 1px solid rgba(214, 169, 74, 0.45);
  border-bottom: 4px solid var(--gold);
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48);
}

.app-header > * {
  position: relative;
  z-index: 2;
}

.app-header::before,
.portal-ticker::before {
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: 0;
  z-index: 1;
  width: 42%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(59, 130, 246, 0.00) 16%,
      rgba(61, 138, 214, 0.16) 34%,
      rgba(240, 205, 122, 0.42) 50%,
      rgba(56, 189, 248, 0.18) 64%,
      transparent 82%
    );
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translateX(-160%) skewX(-18deg);
  animation: wpdSharedScannerSweep 30s ease-in-out infinite;
}

.app-header::after,
.portal-ticker::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(240, 205, 122, 0.00);
  border-bottom: 3px solid rgba(240, 205, 122, 0.00);
  border-radius: inherit;
  box-shadow: none;
  animation: wpdSharedBorderPulse 30s ease-in-out infinite;
}


.app-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.55));
}

.app-header-copy {
  min-width: 0;
  flex: 1;
}

.app-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-header p {
  margin: 6px 0 0;
  color: var(--gold-soft);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-logout-btn,
.mini-action-btn,
.board-action-btn,
#messageSearchBtn,
.modal-close-btn {
  cursor: pointer;
}

.header-logout-btn {
  flex: 0 0 auto;
  padding: 9px 8px;
  color: var(--gold-soft);
  background: rgba(5, 7, 10, 0.70);
  border: 1px solid rgba(240, 205, 122, 0.42);
  border-radius: 8px;
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-ticker {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  margin: 12px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 24, 33, 0.98), rgba(7, 11, 16, 0.98));
  border: 1px solid rgba(214, 169, 74, 0.44);
  border-bottom: 3px solid rgba(214, 169, 74, 0.78);
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.portal-ticker-label {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--gold-soft);
  background:
    linear-gradient(135deg, rgba(2, 10, 19, 0.98), rgba(8, 40, 77, 0.92));
  border-right: 1px solid rgba(214, 169, 74, 0.54);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
  font-family: "Black Ops One", Arial, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.portal-ticker-window {
  position: relative;
  z-index: 2;
  height: 100%;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.portal-ticker-window::before,
.portal-ticker-window::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 26px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.portal-ticker-window::before {
  left: 0;
  background: linear-gradient(to right, rgba(7, 11, 16, 0.98), transparent);
}

.portal-ticker-window::after {
  right: 0;
  background: linear-gradient(to left, rgba(7, 11, 16, 0.98), transparent);
}

.portal-ticker-track {
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 32px;
  padding-left: 100%;
  color: var(--text);
  animation: portalTickerScroll 38s linear infinite;
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.72);
}

.portal-ticker-track span {
  display: inline-block;
}

.portal-ticker-track span {
  position: relative;
}

.portal-ticker-track span + span::before {
  position: absolute;
  left: -18px;
  color: rgba(240, 205, 122, 0.78);
  content: "•";
}

.training-warning-icon {
  color: #ffd93d;
  font-size: 1.08em;
}

@keyframes portalTickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.mobile-panel {
  margin-top: 12px;
  padding: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.98), rgba(7, 11, 16, 0.98));
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--gold-soft);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mobile-panel h2,
.mobile-modal-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.mini-action-btn {
  width: 38px;
  height: 38px;
  color: var(--gold-soft);
  background: #080d13;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 1.25rem;
}

.board-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.board-action-btn {
  min-height: 48px;
  padding: 10px 8px;
  color: var(--text);
  background: linear-gradient(180deg, #18222d, #0c1219);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.69rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.court-action-btn {
  color: #fff4cf;
  border-color: rgba(214, 169, 74, 0.68);
  background: linear-gradient(180deg, #5c4217, #241b0b);
}

.message-search-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.message-search-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 10px;
  font-size: 0.72rem;
}

#messageSearchBtn {
  width: 42px;
  color: #101010;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
}

.small-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.shift-message-rows {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.shift-message-card {
  padding: 11px;
  background: rgba(6, 10, 15, 0.86);
  border: 1px solid var(--line);
  border-left: 4px solid #7d151c;
  border-radius: 9px;
}

.shift-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  color: var(--gold-soft);
  font-size: 0.58rem;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: uppercase;
}

.shift-message-name {
  color: var(--text);
}

.shift-message-shift {
  color: #ff8e93;
}

.shift-message-text {
  margin: 8px 0 0;
  color: #dce3eb;
  font-size: 0.68rem;
  letter-spacing: 0.025em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.shift-message-text a {
  color: #8dc8ff;
  text-decoration: underline;
}

.message-board-image {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 8px;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-highlight {
  color: #000;
  background: #ffe178;
}

.resource-subheading {
  margin: 17px 0 2px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.resource-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.resource-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(24, 33, 44, 0.98), rgba(12, 17, 24, 0.98));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.resource-button-as-button {
  cursor: pointer;
}

.primary-resource {
  background: linear-gradient(180deg, var(--navy-bright), var(--navy));
  border-color: rgba(240, 205, 122, 0.56);
}

.court-resource-button {
  background: linear-gradient(180deg, #5c4217, #241b0b);
  border-color: rgba(214, 169, 74, 0.68);
}

.resource-button strong,
.resource-button small {
  display: block;
}

.resource-button strong {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.resource-button small {
  margin-top: 5px;
  color: #cbd5df;
  font-size: 0.59rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.resource-icon {
  flex: 0 0 auto;
  font-size: 1.28rem;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.045em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.app-footer strong {
  color: var(--gold-soft);
  font-weight: 400;
}

.mobile-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 16px 12px;
  background: rgba(0, 0, 0, 0.82);
}

.mobile-modal.open {
  display: block;
}

.mobile-modal-card {
  position: relative;
  width: min(100%, 620px);
  margin: 10px auto;
  padding: 18px;
  background: linear-gradient(180deg, #111821, #070b10);
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.64);
}

.modal-close-btn {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 36px;
  height: 36px;
  color: var(--text);
  background: #080d13;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-description {
  margin: 9px 34px 0 0;
}

.hidden-submit-frame {
  display: none;
}

.court-dates-list {
  display: grid;
  gap: 13px;
  margin-top: 12px;
}

.court-date-section {
  overflow: hidden;
  background: rgba(7, 11, 16, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.court-date-heading {
  margin: 0;
  padding: 10px;
  color: var(--gold-soft);
  background: rgba(8, 40, 77, 0.42);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.court-entry {
  padding: 10px;
  border-top: 1px solid rgba(46, 61, 77, 0.72);
}

.court-entry:first-of-type {
  border-top: 0;
}

.court-entry.preferred {
  background: linear-gradient(90deg, rgba(110, 77, 18, 0.65), rgba(47, 33, 9, 0.38));
  border-left: 4px solid var(--gold);
}

.court-entry.city-hall {
  box-shadow: inset 4px 0 0 #a52a2a;
}

.court-entry.regular-ten {
  opacity: 0.78;
}

.court-entry-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.court-time {
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.preferred .court-time {
  color: #ffe89c;
  font-size: 1.08rem;
}

.regular-ten .court-time {
  font-size: 0.70rem;
}

.court-badge {
  padding: 4px 6px;
  color: #fff4cf;
  background: rgba(110, 77, 18, 0.62);
  border: 1px solid rgba(214, 169, 74, 0.60);
  border-radius: 999px;
  font-size: 0.53rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-court-badge {
  padding: 5px 7px;
  color: #d9efff;
  background: #07355c;
  border-color: #4caeff;
  font-size: 0.60rem;
}

.court-entry-text,
.court-entry-detail {
  margin: 7px 0 0;
  line-height: 1.5;
}

.court-entry-text {
  color: #e4e9ef;
  font-size: 0.66rem;
  letter-spacing: 0.025em;
}

.court-entry-detail {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.025em;
}

@media (min-width: 560px) {
  .mobile-app {
    padding: 16px 16px 30px;
  }

  .app-header h1 {
    font-size: 1.18rem;
  }

  .portal-ticker-track {
    font-size: 0.78rem;
  }
}


.weather-panel {
  overflow: hidden;
  margin: 0 0 12px;
  background: #06090d;
  border: 1px solid rgba(214, 169, 74, 0.42);
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.34);
}

.weather-panel .weatherwidget-io {
  display: block;
  min-height: 52px;
}

.shift-message-rows {
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
  scrollbar-color: #8f6b2b #080d13;
  scrollbar-width: thin;
}

.shift-message-rows::-webkit-scrollbar {
  width: 8px;
}

.shift-message-rows::-webkit-scrollbar-track {
  background: #080d13;
  border-radius: 999px;
}

.shift-message-rows::-webkit-scrollbar-thumb {
  background: #8f6b2b;
  border: 1px solid #d6a94a;
  border-radius: 999px;
}

.bond-schedule-button {
  border-color: rgba(214, 169, 74, 0.56);
  background: linear-gradient(180deg, rgba(48, 38, 21, 0.98), rgba(19, 15, 9, 0.98));
}
/* ==========================================================
   SIGNED-IN MOBILE READABILITY PASS
   Login-screen styling is intentionally unchanged.
   ========================================================== */

.mobile-app .portal-ticker-label {
  font-size: 0.69rem;
  letter-spacing: 0.045em;
}

.mobile-app .portal-ticker-track {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.mobile-app .mobile-panel {
  padding: 15px;
}

.mobile-app .section-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.10em;
}

.mobile-app .mobile-panel h2 {
  font-size: 1.08rem;
  letter-spacing: 0.045em;
}

.mobile-app .board-action-btn {
  min-height: 52px;
  padding: 11px 8px;
  font-size: 0.73rem;
  line-height: 1.25;
}

.mobile-app .message-search-row input {
  padding: 12px 11px;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.mobile-app .small-status {
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.mobile-app .shift-message-rows {
  max-height: 470px;
  gap: 11px;
}

.mobile-app .shift-message-card {
  padding: 13px 12px;
}

.mobile-app .shift-message-meta {
  gap: 5px 8px;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.mobile-app .shift-message-text {
  margin-top: 9px;
  font-family: Arial, sans-serif;
  font-size: 0.87rem;
  letter-spacing: 0.005em;
  line-height: 1.55;
}

.mobile-app .shift-message-text a {
  font-weight: 700;
}

.mobile-app .resource-subheading {
  font-size: 0.84rem;
}

.mobile-app .resource-button {
  gap: 12px;
  padding: 14px 13px;
}

.mobile-app .resource-button strong {
  font-size: 0.80rem;
  line-height: 1.4;
}

.mobile-app .resource-button small {
  margin-top: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.mobile-app .app-footer {
  font-family: Arial, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.02em;
}

/* Signed-in popups: improve readability without changing branding. */
.mobile-modal .modal-description,
.mobile-modal .small-status,
.mobile-modal .court-entry-text,
.mobile-modal .court-entry-detail {
  font-family: Arial, sans-serif;
}

.mobile-modal .modal-description {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.mobile-modal .small-status {
  font-size: 0.74rem;
}

.mobile-modal .court-date-heading {
  font-size: 0.78rem;
  line-height: 1.45;
}

.mobile-modal .court-time {
  font-size: 0.92rem;
}

.mobile-modal .preferred .court-time {
  font-size: 1.16rem;
}

.mobile-modal .regular-ten .court-time {
  font-size: 0.76rem;
}

.mobile-modal .court-badge {
  font-size: 0.58rem;
}

.mobile-modal .video-court-badge {
  font-size: 0.65rem;
}

.mobile-modal .court-entry-text {
  font-size: 0.80rem;
  letter-spacing: 0.005em;
  line-height: 1.55;
}

.mobile-modal .court-entry-detail {
  font-size: 0.70rem;
  letter-spacing: 0.005em;
  line-height: 1.5;
}

.mobile-modal .mobile-form input,
.mobile-modal .mobile-form select,
.mobile-modal .mobile-form textarea {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
}


.live-content-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: -4px 2px 10px;
  color: #a8b2bf;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

#live-check-status {
  white-space: nowrap;
}

#online-now-status {
  color: #f0cd7a;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 430px) {
  .live-content-status {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 2px;
    text-align: left;
    white-space: normal;
    overflow: visible;
  }

  #live-check-status {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #online-now-status {
    flex: 0 0 auto;
    max-width: 100%;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
}
/* ==========================================================
   MOBILE ACCOUNT PASSWORD TOOLS
   ========================================================== */

.login-secondary-btn {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  color: #f0cd7a;
  background: rgba(5, 7, 10, 0.64);
  border: 1px solid rgba(240, 205, 122, 0.42);
  border-radius: 9px;
  font-size: 0.70rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.login-secondary-btn:hover,
.login-secondary-btn:focus-visible {
  color: #ffffff;
  border-color: #f0cd7a;
  outline: 2px solid rgba(240, 205, 122, 0.34);
  outline-offset: 2px;
}

.account-resource-button {
  border-color: rgba(114, 171, 230, 0.62);
  background: linear-gradient(180deg, rgba(12, 54, 96, 0.98), rgba(7, 27, 50, 0.98));
}

.password-modal-card {
  max-width: 520px;
}

.password-feedback {
  min-height: 20px;
  margin: 13px 0 5px;
  color: #ff6b76;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.005em;
  line-height: 1.45;
}

.password-feedback.success {
  color: #7bd99c;
}
/* ==========================================================
   COURT PICKER - VIDEO COURT EMPHASIS
   ========================================================== */

.court-entry.video-court {
  position: relative;
  background:
    linear-gradient(90deg, rgba(115, 18, 32, 0.76), rgba(59, 18, 26, 0.54), rgba(7, 11, 16, 0.90));
  border-left: 10px solid #d04452;
  box-shadow:
    inset 0 0 0 1px rgba(240, 205, 122, 0.20),
    0 8px 18px rgba(0, 0, 0, 0.32);
}

.court-entry.preferred.video-court {
  background:
    linear-gradient(90deg, rgba(127, 31, 38, 0.84), rgba(79, 36, 17, 0.58), rgba(22, 16, 12, 0.92));
  border-left: 10px solid #d04452;
}

.court-entry.video-court.city-hall {
  box-shadow:
    inset 0 0 0 1px rgba(240, 205, 122, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.32);
}

.video-court-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 7px 11px;
  color: #fff3c4;
  background: linear-gradient(180deg, #771522, #34070f);
  border: 1px solid rgba(240, 205, 122, 0.82);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(208, 68, 82, 0.30);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.court-entry.video-court .court-entry-detail {
  color: #f1d993;
  font-weight: 700;
}

.court-entry.video-court .court-badge {
  border-color: rgba(240, 205, 122, 0.70);
}

.video-court-badge {
  padding: 7px 10px;
  color: #fff3c4;
  background: linear-gradient(180deg, #771522, #34070f);
  border-color: rgba(240, 205, 122, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.075em;
}
/* Stronger City Hall / video-court treatment */
.court-entry.video-court::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(240, 205, 122, 0.22);
}

.court-entry.video-court .court-time {
  color: #fff0b8;
  font-weight: 900;
}

.court-entry.video-court .court-entry-text {
  color: #ffffff;
  font-weight: 800;
}

.court-entry.video-court .court-badge {
  background: rgba(12, 18, 26, 0.70);
}


@media (max-width: 430px) {
  .portal-ticker {
    height: 44px;
    border-radius: 12px;
  }

  .portal-ticker-label {
    padding: 0 9px;
    font-size: 0.59rem;
    letter-spacing: 0.055em;
  }

  .portal-ticker-track {
    gap: 28px;
    font-size: 0.68rem;
  }

  .portal-ticker-window::before,
  .portal-ticker-window::after {
    width: 18px;
  }
}


@keyframes wpdSharedScannerSweep {
  0% {
    opacity: 0;
    transform: translateX(-170%) skewX(-18deg);
  }

  1.2% {
    opacity: 0.08;
  }

  3.4% {
    opacity: 0.34;
  }

  6.8% {
    opacity: 0.14;
  }

  8.8% {
    opacity: 0;
    transform: translateX(285%) skewX(-18deg);
  }

  100% {
    opacity: 0;
    transform: translateX(285%) skewX(-18deg);
  }
}

@keyframes wpdSharedBorderPulse {
  0% {
    border-color: rgba(240, 205, 122, 0.00);
    border-bottom-color: rgba(240, 205, 122, 0.00);
    box-shadow: none;
  }

  2.2% {
    border-color: rgba(59, 130, 246, 0.20);
    border-bottom-color: rgba(240, 205, 122, 0.34);
    box-shadow: 0 0 0 rgba(240, 205, 122, 0.00);
  }

  4.6% {
    border-color: rgba(240, 205, 122, 0.58);
    border-bottom-color: rgba(240, 205, 122, 0.88);
    box-shadow:
      0 0 13px rgba(240, 205, 122, 0.20),
      inset 0 0 14px rgba(59, 130, 246, 0.08);
  }

  7.8% {
    border-color: rgba(59, 130, 246, 0.16);
    border-bottom-color: rgba(240, 205, 122, 0.26);
    box-shadow:
      0 0 8px rgba(240, 205, 122, 0.08),
      inset 0 0 8px rgba(59, 130, 246, 0.04);
  }

  10%,
  100% {
    border-color: rgba(240, 205, 122, 0.00);
    border-bottom-color: rgba(240, 205, 122, 0.00);
    box-shadow: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  .app-header::before,
  .app-header::after,
  .portal-ticker::before,
  .portal-ticker::after {
    animation: none;
  }
}


@media (max-width: 430px) {
  .app-header::before,
  .portal-ticker::before {
    width: 54%;
    filter: blur(1.2px);
  }
}


@media (prefers-reduced-motion: reduce) {
  }



@keyframes wpdLoginMottoTextShimmer {
  0% {
    background-position: 170% 0;
    text-shadow: 0 0 0 rgba(240, 205, 122, 0);
  }

  8% {
    background-position: 130% 0;
    text-shadow: 0 0 3px rgba(240, 205, 122, 0.10);
  }

  24% {
    background-position: 45% 0;
    text-shadow:
      0 0 8px rgba(240, 205, 122, 0.30),
      0 0 12px rgba(125, 211, 252, 0.14);
  }

  42% {
    background-position: -80% 0;
    text-shadow: 0 0 2px rgba(240, 205, 122, 0.08);
  }

  42.01% {
    background-position: 170% 0;
    text-shadow: 0 0 0 rgba(240, 205, 122, 0);
  }

  100% {
    background-position: 170% 0;
    text-shadow: 0 0 0 rgba(240, 205, 122, 0);
  }
}





.login-header::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      90deg,
      var(--gold) 0%,
      var(--gold) 34%,
      #fff2b2 46%,
      #7dd3fc 52%,
      #fff2b2 58%,
      var(--gold) 72%,
      var(--gold) 100%
    );
  background-size: 320% 100%;
  background-position: 170% 0;
  box-shadow: 0 0 0 rgba(240, 205, 122, 0);
  animation: wpdLoginHeaderLineShimmer 8s linear infinite;
}

@keyframes wpdLoginHeaderLineShimmer {
  0% {
    background-position: 170% 0;
    box-shadow: 0 0 0 rgba(240, 205, 122, 0);
  }

  8% {
    background-position: 130% 0;
    box-shadow: 0 0 4px rgba(240, 205, 122, 0.12);
  }

  24% {
    background-position: 45% 0;
    box-shadow:
      0 0 8px rgba(240, 205, 122, 0.30),
      0 0 10px rgba(125, 211, 252, 0.12);
  }

  42% {
    background-position: -80% 0;
    box-shadow: 0 0 2px rgba(240, 205, 122, 0.08);
  }

  42.01% {
    background-position: 170% 0;
    box-shadow: 0 0 0 rgba(240, 205, 122, 0);
  }

  100% {
    background-position: 170% 0;
    box-shadow: 0 0 0 rgba(240, 205, 122, 0);
  }
}




@media (prefers-reduced-motion: reduce) {
  .department-motto,
  }



.cjis-warning-card {
  border-color: rgba(214, 169, 74, 0.58);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.66),
    0 0 22px rgba(214, 169, 74, 0.10);
}

.cjis-warning-card h2 {
  color: #fff4cf;
}

.cjis-warning-lead {
  margin-top: 12px;
}

.cjis-warning-box {
  margin: 14px 0;
  padding: 13px 13px 11px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(89, 21, 24, 0.34), rgba(17, 24, 33, 0.92));
  border: 1px solid rgba(255, 107, 118, 0.42);
  border-left: 4px solid var(--danger);
  border-radius: 11px;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cjis-warning-box strong {
  display: block;
  margin-bottom: 8px;
  color: #fff0c2;
  font-family: "Black Ops One", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cjis-warning-box ul {
  margin: 0;
  padding-left: 18px;
}

.cjis-warning-box li + li {
  margin-top: 6px;
}

.cjis-ack-btn {
  margin-top: 12px;
}

.cjis-warning-modal.open {
  z-index: 9999;
}



/* ==========================================================
   ONLINE NOW INITIAL CIRCLES
   ========================================================== */

#online-now-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
}

.online-now-label {
  color: #f0cd7a;
  white-space: nowrap;
}

.online-avatar-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-left: 2px;
}

.online-avatar {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-left: -7px;
  color: #06101a;
  background:
    radial-gradient(circle at 30% 25%, #fff3bf, #f0cd7a 54%, #b78222 100%);
  border: 2px solid #07111c;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(240, 205, 122, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.38);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.online-avatar:first-child {
  margin-left: 0;
}

.online-avatar.away {
  color: #111827;
  background:
    radial-gradient(circle at 30% 25%, #d6e4f4, #8aa0b8 58%, #4d6075 100%);
  opacity: 0.72;
}

.online-avatar-muted {
  color: #f0cd7a;
  background: #101821;
  border-color: rgba(240, 205, 122, 0.35);
}

@media (max-width: 430px) {
  #online-now-status {
    flex: 1 1 auto;
    justify-content: flex-end;
    white-space: normal;
  }

  .online-avatar {
    width: 26px;
    height: 26px;
    margin-left: -6px;
    font-size: 0.58rem;
  }
}



/* ==========================================================
   POST-LOGIN FLY / FADE ENTRANCE
   ========================================================== */

.mobile-app.mobile-app-entering {
  animation: wpdMobileAppFlyFadeIn 820ms cubic-bezier(0.18, 0.86, 0.28, 1) both;
  will-change: opacity, transform, filter;
}

@keyframes wpdMobileAppFlyFadeIn {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.985);
    filter: blur(3px);
  }

  58% {
    opacity: 1;
    transform: translateY(-4px) scale(1.002);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-app.mobile-app-entering {
    animation: none;
  }
}



.cjis-warning-modal.open .cjis-warning-card {
  animation: wpdCjisModalSoftEnter 360ms ease-out both;
}

@keyframes wpdCjisModalSoftEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cjis-warning-modal.open .cjis-warning-card {
    animation: none;
  }
}

/* ==========================================================
   COURT REMINDER PUSH NOTIFICATIONS
   Added 20260624-court-reminders
   ========================================================== */

.reminder-status {
  margin-top: 8px;
}

.reminder-status.success {
  color: var(--green);
}

.reminder-status.warning {
  color: var(--gold-soft);
}

.reminder-status.error {
  color: var(--danger);
}


/* ==========================================================
   COURT REMINDERS IN TOP LIVE STATUS ROW
   Added 20260624-top-status-placement
   ========================================================== */

.live-court-reminder-wrap {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 150px;
  text-align: center;
}


.court-reminder-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  color: #e9f7ff;
  font-family: 'Black Ops One', Arial, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.court-reminder-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.court-reminder-toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #263342, #121922);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.32);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.court-reminder-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c7d3df;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
  transition: transform .18s ease, background .18s ease;
}

.court-reminder-toggle-input:checked + .court-reminder-toggle-track {
  background: linear-gradient(180deg, #21a557, #0b5b2e);
  border-color: rgba(123, 217, 156, 0.88);
  box-shadow: 0 0 10px rgba(43, 214, 106, 0.26), inset 0 0 0 1px rgba(0,0,0,.28);
}

.court-reminder-toggle-input:checked + .court-reminder-toggle-track .court-reminder-toggle-thumb {
  transform: translateX(20px);
  background: #f0fff5;
}

.court-reminder-toggle-input:focus-visible + .court-reminder-toggle-track {
  outline: 2px solid rgba(76, 174, 255, 0.95);
  outline-offset: 2px;
}

.court-reminder-toggle-input:disabled + .court-reminder-toggle-track,
.court-reminder-toggle-input:disabled ~ .court-reminder-toggle-text {
  opacity: 0.58;
  cursor: wait;
}

.live-reminder-status {
  max-width: 190px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  white-space: normal;
}

.live-reminder-status.success {
  color: var(--green);
}

.live-reminder-status.warning {
  color: var(--gold-soft);
}

.live-reminder-status.error {
  color: var(--danger);
}

@media (max-width: 430px) {
  .live-court-reminder-wrap {
    order: 2;
    flex: 1 0 100%;
    width: 100%;
    margin: 2px 0;
  }

  #live-check-status {
    order: 1;
  }

  #online-now-status {
    order: 3;
  }

  .live-reminder-status {
    max-width: 100%;
  }
}

/* ==========================================================
   COURT REMINDERS TOGGLE - PERSISTENCE/LAYOUT FIX v7.8
   Keeps the top status row straight on phones:
   Live updates | toggle | Online now
   ========================================================== */

#live-content-status.live-content-status {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  width: 100% !important;
}

#live-check-status {
  justify-self: start !important;
  text-align: left !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  order: initial !important;
}

#online-now-status {
  justify-self: end !important;
  text-align: right !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  order: initial !important;
}

.live-court-reminder-wrap {
  justify-self: center !important;
  align-self: center !important;
  order: initial !important;
  flex: initial !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 132px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  text-align: center !important;
}

.court-reminder-toggle {
  gap: 5px !important;
  font-size: 0.48rem !important;
  line-height: 1 !important;
}

.court-reminder-toggle-track {
  width: 38px !important;
  height: 20px !important;
  flex-basis: 38px !important;
}

.court-reminder-toggle-thumb {
  width: 16px !important;
  height: 16px !important;
}

.court-reminder-toggle-input:checked + .court-reminder-toggle-track .court-reminder-toggle-thumb {
  transform: translateX(18px) !important;
}

.live-reminder-status {
  max-width: 132px !important;
  font-size: 0.48rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 430px) {
  #live-content-status.live-content-status {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    column-gap: 5px !important;
  }

  .live-court-reminder-wrap {
    min-width: 104px !important;
    max-width: 116px !important;
  }

  .court-reminder-toggle {
    gap: 4px !important;
    font-size: 0.42rem !important;
  }

  .court-reminder-toggle-track {
    width: 34px !important;
    height: 18px !important;
    flex-basis: 34px !important;
  }

  .court-reminder-toggle-thumb {
    width: 14px !important;
    height: 14px !important;
  }

  .court-reminder-toggle-input:checked + .court-reminder-toggle-track .court-reminder-toggle-thumb {
    transform: translateX(16px) !important;
  }

  .live-reminder-status {
    max-width: 116px !important;
    font-size: 0.42rem !important;
  }
}

/* ==========================================================
   MOBILE TICKER FULL-WIDTH SCROLL FIX v8.3
   The phone ticker was restarting mid-message because the old CSS
   animation did not use the actual rendered message width.
   JS now calculates the distance and duration.
   ========================================================== */

.portal-ticker-window {
  overflow: hidden !important;
  position: relative !important;
}

#portalTickerTrack {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2.25rem !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  will-change: transform !important;
  animation: none !important;
  transform: translate3d(var(--ticker-start-x, 0px), 0, 0);
}

#portalTickerTrack span {
  display: inline-block !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#portalTickerTrack.ticker-measuring {
  transition: none !important;
  animation: none !important;
  transform: translate3d(0, 0, 0) !important;
}

#portalTickerTrack.ticker-running {
  animation-name: portalTickerDynamicScroll !important;
  animation-duration: var(--ticker-duration, 30s) !important;
  animation-timing-function: linear !important;
  animation-delay: 0s !important;
  animation-iteration-count: infinite !important;
  animation-fill-mode: none !important;
  animation-play-state: running !important;
}

@keyframes portalTickerDynamicScroll {
  from {
    transform: translate3d(var(--ticker-start-x, 0px), 0, 0);
  }

  to {
    transform: translate3d(var(--ticker-end-x, -1000px), 0, 0);
  }
}
/* ==========================================================
   MOBILE FINE CALCULATOR + BUTTON LAYOUT v8.4
   ========================================================== */

.board-action-grid {
  grid-template-columns: 0.62fr 1fr 1fr !important;
  align-items: stretch;
}

#openMessageModal {
  min-width: 0;
  padding-left: 6px !important;
  padding-right: 6px !important;
  font-size: 0.61rem !important;
  letter-spacing: 0.015em !important;
}

.court-action-btn,
.fine-action-btn {
  min-width: 0;
  min-height: 48px;
  font-size: 0.66rem !important;
  line-height: 1.2;
}

.fine-action-btn {
  color: #eaf6ff;
  border-color: rgba(76, 174, 255, 0.75);
  background: linear-gradient(180deg, #154e78, #082438);
}

.fine-action-btn:hover,
.fine-action-btn:focus-visible {
  border-color: rgba(142, 211, 255, 0.95);
  filter: brightness(1.08);
}

.fine-calc-mobile-card {
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.fine-calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 14px 0 12px;
}

.fine-calc-tab {
  min-height: 38px;
  color: var(--text);
  background: #080d13;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fine-calc-tab-active {
  color: #111;
  background: var(--gold);
  border-color: rgba(240, 205, 122, 0.9);
}

.fine-calc-panel {
  display: none;
}

.fine-calc-panel-active {
  display: block;
}

.fine-calc-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fine-calc-mobile-card label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--gold-soft);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fine-calc-mobile-card input,
.fine-calc-mobile-card select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  padding: 10px 11px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-shadow: none !important;
}

.fine-calc-mobile-card option {
  color: #000 !important;
  background: #fff !important;
}

.fine-calc-note,
.fine-calc-disclaimer {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.77rem;
  line-height: 1.45;
}

.fine-calc-associated {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.fine-calc-associated-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fine-calc-associated-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fine-calc-associated-header button,
.fine-calc-remove {
  color: var(--text);
  background: #080d13;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.fine-calc-associated-header button {
  padding: 8px 10px;
  color: #eaf6ff;
  border-color: rgba(76, 174, 255, 0.65);
}

.fine-calc-associated-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.fine-calc-remove {
  min-height: 40px;
  color: #fff;
  background: rgba(122, 0, 0, 0.78);
  border-color: rgba(255, 92, 92, 0.56);
}

.fine-calc-result {
  max-height: 34vh;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-family: Arial, sans-serif;
}

.fine-calc-result table {
  width: 100%;
  border-collapse: collapse;
}

.fine-calc-result th,
.fine-calc-result td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.78rem;
}

.fine-calc-result th {
  color: #ffcc33;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fine-calc-result td span {
  color: #b5c0ce;
  font-size: 0.70rem;
}

.fine-calc-total {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 10px;
  background: #050505;
  border-top: 2px solid rgba(255, 204, 51, 0.7);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
}

.fine-calc-total span {
  color: #7bd99c;
  font-size: 1.04rem;
}

.fine-calc-distracted-note {
  display: none;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 204, 51, 0.75);
  border-radius: 10px;
  background: rgba(255, 204, 51, 0.10);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.fine-calc-distracted-note strong {
  color: #ffcc33;
}

@media (max-width: 420px) {
  .board-action-grid {
    grid-template-columns: 0.55fr 1fr 1fr !important;
    gap: 6px;
  }

  #openMessageModal {
    font-size: 0.54rem !important;
  }

  .court-action-btn,
  .fine-action-btn {
    font-size: 0.58rem !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .board-action-btn span {
    display: block;
    margin-bottom: 2px;
  }
}


/* ==========================================================
   v7.6f - Mobile fine calculator speed fields + fit results
   ========================================================== */
.fine-calc-mobile-card .hidden {
  display: none !important;
}

.fine-calc-speed-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.fine-calc-speed-block {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.fine-speed-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
  align-items: stretch;
}

.fine-speed-stepper input {
  text-align: center;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.fine-speed-step-btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 42px;
  color: #eaf6ff;
  background: #080d13;
  border: 1px solid rgba(76, 174, 255, 0.75);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.fine-calc-over-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #eaf6ff;
  background: rgba(76, 174, 255, 0.10);
  border: 1px solid rgba(76, 174, 255, 0.45);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fine-calc-over-pill strong {
  color: #7bd99c;
  font-size: 0.98rem;
}

.fine-calc-result {
  overflow-x: hidden;
}

.fine-calc-result table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.fine-calc-result th,
.fine-calc-result td {
  padding: 7px 4px;
  font-size: 0.68rem;
  line-height: 1.22;
  word-break: normal;
  overflow-wrap: anywhere;
}

.fine-calc-result th:nth-child(1),
.fine-calc-result td:nth-child(1) {
  width: 7%;
}

.fine-calc-result th:nth-child(2),
.fine-calc-result td:nth-child(2) {
  width: 44%;
}

.fine-calc-result th:nth-child(3),
.fine-calc-result td:nth-child(3),
.fine-calc-result th:nth-child(4),
.fine-calc-result td:nth-child(4),
.fine-calc-result th:nth-child(5),
.fine-calc-result td:nth-child(5) {
  width: 16.3%;
  text-align: right;
}

.fine-calc-result th {
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.fine-calc-result td span {
  font-size: 0.62rem;
}

.fine-calc-total {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.fine-calc-total span {
  font-size: 0.98rem;
}

@media (max-width: 430px) {
  .fine-calc-speed-pair {
    grid-template-columns: 1fr;
  }

  .fine-calc-result th,
  .fine-calc-result td {
    padding: 6px 3px;
    font-size: 0.63rem;
  }

  .fine-calc-result th {
    font-size: 0.53rem;
  }

  .fine-calc-result td span {
    font-size: 0.58rem;
  }
}



/* ==========================================================
   MOBILE SFST CHECKLIST v7.6g
   ========================================================== */

.board-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

#openMessageModal.message-action-btn {
  grid-column: 1 / -1;
  min-height: 42px;
  font-size: 0.64rem !important;
}

.court-action-btn.tool-action-btn,
.fine-action-btn.tool-action-btn,
.sfst-action-btn.tool-action-btn {
  min-width: 0;
  min-height: 52px;
  padding: 8px 5px !important;
  font-size: 0.58rem !important;
  line-height: 1.12;
  letter-spacing: 0.02em !important;
}

.sfst-action-btn {
  color: #f1fff4;
  border-color: rgba(122, 217, 156, 0.75);
  background: linear-gradient(180deg, #185638, #082014);
}

.sfst-action-btn:hover,
.sfst-action-btn:focus-visible {
  border-color: rgba(153, 236, 181, 0.95);
  filter: brightness(1.08);
}

.sfst-card {
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.sfst-card input,
.sfst-card textarea {
  width: 100%;
  box-sizing: border-box;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  padding: 10px 11px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-shadow: none !important;
}

.sfst-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: #7bd99c;
}

.sfst-case-label,
.sfst-notes-label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--gold-soft);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sfst-section {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.sfst-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sfst-section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sfst-count-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: #7bd99c;
  background: rgba(122, 217, 156, 0.11);
  border: 1px solid rgba(122, 217, 156, 0.45);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sfst-subsection {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.sfst-subsection h4 {
  margin: 4px 0 0;
  color: var(--gold-soft);
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sfst-check-row,
.sfst-eye-clue label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.25;
}

.sfst-eye-clue {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sfst-eye-clue:first-of-type {
  border-top: none;
}

.sfst-eye-clue strong {
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  line-height: 1.25;
}

.sfst-counter-list {
  display: grid;
  gap: 7px;
}

.sfst-counter-row {
  display: grid;
  grid-template-columns: 38px 34px 38px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.sfst-counter-row button {
  min-height: 36px;
  color: #f1fff4;
  background: #080d13;
  border: 1px solid rgba(122, 217, 156, 0.55);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.sfst-counter-row span {
  color: #7bd99c;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.sfst-counter-row strong {
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.18;
}

.sfst-status-grid {
  grid-template-columns: 1fr 1fr;
}

.sfst-summary-output {
  min-height: 170px;
  margin-top: 8px;
  line-height: 1.35;
  resize: vertical;
}

.sfst-action-row {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1fr 0.72fr;
  gap: 7px;
  margin-top: 10px;
}

.sfst-action-row button {
  min-height: 42px;
  color: var(--text);
  background: #080d13;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sfst-action-row .sfst-primary-btn {
  color: #111;
  background: var(--gold);
  border-color: rgba(240, 205, 122, 0.9);
}

.sfst-action-row .sfst-danger-btn {
  color: #fff;
  background: rgba(122, 0, 0, 0.78);
  border-color: rgba(255, 92, 92, 0.56);
}

.sfst-status-text {
  min-height: 18px;
  margin-top: 8px;
}

@media (max-width: 430px) {
  .court-action-btn.tool-action-btn,
  .fine-action-btn.tool-action-btn,
  .sfst-action-btn.tool-action-btn {
    font-size: 0.52rem !important;
  }

  .sfst-eye-clue {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sfst-counter-row {
    grid-template-columns: 36px 32px 36px minmax(0, 1fr);
    gap: 6px;
  }

  .sfst-status-grid {
    grid-template-columns: 1fr;
  }

  .sfst-action-row {
    grid-template-columns: 1fr 1fr;
  }
}




/* v7.6h: official clue count vs occurrence detail */
.sfst-count-note {
  margin: -2px 0 9px;
  padding: 8px 9px;
  color: rgba(234, 240, 246, 0.82);
  background: rgba(122, 217, 156, 0.075);
  border: 1px solid rgba(122, 217, 156, 0.22);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 0.70rem;
  line-height: 1.28;
}




/* v7.6i: Ohio/NHTSA decision-point indicators */
.sfst-decision-note {
  margin: -2px 0 9px;
  padding: 8px 9px;
  color: rgba(234, 240, 246, 0.86);
  background: rgba(240, 205, 122, 0.08);
  border: 1px solid rgba(240, 205, 122, 0.28);
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 0.70rem;
  line-height: 1.28;
}

.sfst-count-pill.sfst-decision-met {
  color: #111;
  background: var(--gold);
  border-color: rgba(240, 205, 122, 0.95);
}




/* ==========================================================
   MOBILE CRITICAL INCIDENT TOOLS v7.6j
   ========================================================== */
.critical-tools-card{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0 16px;padding:14px;border:1px solid rgba(240,205,122,.30);border-radius:16px;background:linear-gradient(180deg,rgba(240,205,122,.085),rgba(255,255,255,.035)),rgba(0,0,0,.18);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.critical-tools-copy{display:grid;gap:4px}.critical-tools-kicker{margin:0;color:var(--gold-soft);font-family:Arial,sans-serif;font-size:.66rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.critical-tools-card h2{margin:0;color:var(--text);font-size:.98rem;letter-spacing:.02em;line-height:1.1}.critical-tools-card p:not(.critical-tools-kicker){margin:0;color:rgba(234,240,246,.78);font-family:Arial,sans-serif;font-size:.76rem;line-height:1.35}
.critical-map-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:48px;width:100%;padding:10px 13px;color:#111;text-decoration:none;background:var(--gold);border:1px solid rgba(240,205,122,.95);border-radius:12px;font-family:Arial,sans-serif;font-size:.78rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase;box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
.critical-map-btn:active{transform:translateY(1px)}@media (min-width:560px){.critical-tools-card{grid-template-columns:minmax(0,1fr) 220px;align-items:center}}



/* v7.7t - Prevent phone double-tap zoom on rapid-tap controls without disabling pinch zoom elsewhere. */
button,
.quick-tap-btn,
.fine-speed-step-btn,
.fine-calc-tab,
.fine-calc-associated-header button,
.fine-calc-remove {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
