:root {
  color-scheme: dark;
  --bg: #0c1012;
  --panel: #151a1f;
  --panel-2: #1e252b;
  --ink: #f5f7f4;
  --muted: #a4ada8;
  --line: rgba(255, 255, 255, 0.11);
  --green: #28d17c;
  --amber: #f7b733;
  --red: #ef4e63;
  --cyan: #4ecdc4;
  --blue: #5c9cff;
  --violet: #b78cff;
  --faircroft-pink: #ff149d;
  --faircroft-cyan: #00dff9;
  --faircroft-glow: 0 0 28px rgba(255, 20, 157, 0.18), 0 0 34px rgba(0, 223, 249, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 20, 157, 0.09), transparent 32%),
    radial-gradient(circle at 84% 88%, rgba(0, 223, 249, 0.08), transparent 34%),
    linear-gradient(140deg, rgba(12, 12, 18, 0.97), rgba(4, 5, 9, 0.99)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#app {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.boot-screen {
  display: grid;
  gap: 16px;
  place-items: center;
  width: min(320px, calc(100% - 42px));
  margin: 10vh auto 0;
  text-align: center;
}

.faircroft-entrance-media {
  width: min(300px, 92%);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  object-fit: cover;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), var(--faircroft-glow);
}

.faircroft-emblem {
  display: block;
  object-fit: cover;
  background: #000;
}

.boot-brand {
  display: grid;
  place-items: center;
  margin: 0;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  color: #111;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(140deg, var(--green), var(--amber));
  box-shadow: 0 16px 40px rgba(40, 209, 124, 0.28);
  animation: boot-brand-pulse 1.6s ease-in-out infinite;
}

.boot-orb {
  --orb-size: 130px;
  position: relative;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.boot-orb-core {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #effdff, var(--faircroft-cyan) 38%, #3d1873 62%, transparent 84%);
  box-shadow: 0 0 0 6px rgba(0, 223, 249, 0.12);
  animation: boot-orb-glow 1.75s ease-in-out infinite;
}

.boot-orb-ring {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 231, 255, 0.18);
  border-top-color: rgba(255, 20, 157, 0.68);
  animation: boot-orb-spin 2.4s linear infinite;
}

.boot-orb-ring + .boot-orb-ring {
  inset: 20px;
  border-color: rgba(92, 156, 255, 0.22);
  border-left-color: rgba(0, 223, 249, 0.68);
  animation-direction: reverse;
  animation-duration: 1.9s;
}

.boot-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.1;
  font-weight: 900;
}

.boot-subtitle,
.boot-meta,
.boot-note,
.boot-error {
  margin: 0;
  max-width: 90%;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.boot-subtitle {
  margin-top: -2px;
}

.boot-meta {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.boot-note {
  color: rgba(255, 255, 255, 0.56);
}

.boot-error {
  color: #ff7a8c;
}

.boot-progress {
  width: min(220px, 80%);
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.boot-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--faircroft-cyan), var(--faircroft-pink));
  animation: boot-sweep 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.boot-screen button[data-retry-boot] {
  margin-top: 6px;
}

.boot-line {
  width: 160px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.boot-line::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  animation: boot-sweep 1.1s ease-in-out infinite;
}

@keyframes boot-orb-spin {
  to { transform: rotate(360deg); }
}

@keyframes boot-orb-glow {
  0%,
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 6px rgba(0, 223, 249, 0.1);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 0 14px rgba(255, 20, 157, 0.12), 0 0 34px rgba(0, 223, 249, 0.4);
  }
}

@keyframes boot-sweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(260%); }
}

@keyframes boot-brand-pulse {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.phone-shell {
  width: min(430px, 100%);
  height: min(900px, calc(100svh - 32px));
  min-height: 700px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(150, 131, 255, 0.25);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(31, 38, 42, 0.94), rgba(10, 13, 15, 0.98) 44%, rgba(24, 18, 29, 0.98)),
    linear-gradient(35deg, rgba(40, 209, 124, 0.08), rgba(255, 93, 125, 0.07), rgba(92, 156, 255, 0.08));
  box-shadow: var(--shadow);
}

.phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 20, 157, 0.16), inset 0 -1px 0 rgba(0, 223, 249, 0.13);
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 6;
  width: 112px;
  height: 28px;
  border-radius: 999px;
  background: #060708;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(22px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 34px 0 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(255, 255, 255, 0.07) 25%, transparent 28% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 22px);
  opacity: 0.42;
  transform: translateX(-18%);
  animation: glassSweep 11s ease-in-out infinite alternate;
}

@keyframes glassSweep {
  from { transform: translateX(-22%) translateY(0); }
  to { transform: translateX(12%) translateY(-12px); }
}

.status-bar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signal,
.battery {
  width: 22px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.signal::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  border-radius: 1px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.os-version {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(7px, calc(env(safe-area-inset-bottom) + 5px));
  z-index: 8;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.auth-card,
.home-stack,
.app-panel {
  position: relative;
  z-index: 1;
  animation: rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card {
  margin-top: auto;
  margin-bottom: auto;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 16, 18, 0.72);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  box-shadow: var(--faircroft-glow);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tabs button,
.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tabs button.active,
.segmented button.active {
  background: var(--ink);
  color: #111518;
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
  padding: 12px;
}

select option {
  background: #151a1f;
  color: var(--ink);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 223, 249, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 20, 157, 0.1);
}

.primary,
.secondary,
.danger,
.icon-action,
.ghost {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary {
  background: linear-gradient(110deg, var(--faircroft-cyan), #8d65ff 52%, var(--faircroft-pink));
  color: #05050a;
  box-shadow: 0 9px 24px rgba(77, 92, 255, 0.16);
}

.secondary {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  border-color: var(--line);
}

.danger {
  background: var(--red);
  color: white;
}

.primary:hover,
.secondary:hover,
.danger:hover,
.ghost:hover,
.icon-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.primary:hover {
  background: linear-gradient(110deg, #45edff, #a27aff 52%, #ff4ab3);
}

.secondary:hover,
.ghost:hover,
.icon-action:hover {
  border-color: rgba(126, 231, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
}

.danger:hover {
  background: #ff5d74;
}

.dev-tools-hero {
  border-color: rgba(139, 255, 207, 0.28);
  background: linear-gradient(135deg, rgba(49, 86, 216, 0.2), rgba(139, 255, 207, 0.1));
}

.dev-generated-code {
  margin-top: 12px;
  border: 1px solid rgba(139, 255, 207, 0.45);
}

.dev-generated-code strong {
  color: #8bffcf;
  font-size: clamp(1.35rem, 6vw, 2rem);
  letter-spacing: 0.12em;
}

.restriction-alert {
  border-color: rgba(255, 159, 92, 0.42);
  background: rgba(114, 42, 29, 0.32);
}

.restriction-hero {
  border-color: rgba(255, 159, 92, 0.36);
}

.restriction-detail {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.restriction-detail:last-child {
  border-bottom: 0;
}

.restriction-detail span {
  color: var(--muted);
}

.restriction-detail strong {
  overflow-wrap: anywhere;
}

.dev-account-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dev-account-tile,
.dev-account-row {
  color: var(--ink);
  text-align: left;
}

.dev-account-tile {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.dev-account-tile div {
  display: grid;
  gap: 5px;
}

.dev-account-tile small {
  color: var(--muted);
}

.dev-account-tile:hover,
.dev-account-row:hover {
  border-color: rgba(139, 255, 207, 0.42);
  background: rgba(139, 255, 207, 0.08);
}

.dev-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 8, 0.82);
  backdrop-filter: blur(10px);
}

.dev-profile-modal {
  width: min(1380px, 100%);
  max-height: calc(100svh - 48px);
  overflow: hidden;
  border: 1px solid rgba(139, 255, 207, 0.25);
  border-radius: 18px;
  background: #0d141a;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.dev-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(49, 86, 216, 0.18), rgba(139, 255, 207, 0.07));
}

.dev-profile-header h2,
.dev-profile-header p {
  margin-bottom: 4px;
}

.dev-profile-scroll {
  max-height: calc(100svh - 170px);
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 24px;
}

.dev-profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dev-profile-summary > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.dev-profile-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dev-profile-summary strong {
  overflow-wrap: anywhere;
}

.dev-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dev-detail-list {
  max-height: 330px;
  overflow: auto;
}

.dev-detail-list > div {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dev-detail-list small {
  color: var(--muted);
  line-height: 1.45;
}

.dev-alert,
.dev-game-db-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(239, 78, 99, 0.38);
  border-radius: 12px;
  background: rgba(239, 78, 99, 0.08);
}

.dev-visibility-intro,
.dev-visibility-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dev-visibility-intro h2,
.dev-visibility-intro p,
.dev-visibility-footer p {
  margin-bottom: 0;
}

.dev-visibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dev-visibility-toggle {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #2d3943;
  border-radius: 10px;
  padding: 14px;
  background: #151b21;
  cursor: pointer;
}

.dev-visibility-toggle > span {
  display: grid;
  gap: 5px;
}

.dev-visibility-toggle small {
  color: var(--muted);
  font-weight: 600;
}

.dev-visibility-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dev-visibility-toggle i {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #303944;
  box-shadow: inset 0 0 0 1px #414d58;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.dev-visibility-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #aab4bd;
  transition: transform 160ms ease, background 160ms ease;
}

.dev-visibility-toggle input:checked + i {
  background: linear-gradient(100deg, var(--faircroft-cyan), #8d65ff 55%, var(--faircroft-pink));
  box-shadow: 0 0 20px rgba(0, 223, 249, 0.16);
}

.dev-visibility-toggle input:checked + i::after {
  transform: translateX(21px);
  background: #fff;
}

.dev-visibility-toggle:has(input:checked) {
  border-color: rgba(0, 223, 249, 0.28);
}

.dev-visibility-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #2d3943;
}

.dev-visibility-footer p {
  color: var(--muted);
  font-size: 13px;
}

.dev-game-db-status {
  border-color: rgba(247, 183, 51, 0.28);
  background: rgba(247, 183, 51, 0.055);
}

.dev-record-list,
.dev-audit-list {
  max-height: 520px;
  overflow: auto;
}

.dev-audit-list code {
  display: block;
  overflow-wrap: anywhere;
  color: #9fc1ff;
  white-space: pre-wrap;
}

.dev-workspace {
  width: min(1680px, calc(100vw - 32px));
  min-height: calc(100svh - 32px);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #28313a;
  border-radius: 10px;
  background: #0d1115;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.dev-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 14px 16px;
  border-right: 1px solid #28313a;
  background: #11171d;
}

.dev-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #07130e;
  background: #42d392;
  font-weight: 900;
}

.dev-brand div,
.dev-audit-event > div,
.dev-table-row > div {
  display: grid;
  gap: 3px;
}

.dev-brand small,
.dev-sidebar-footer small,
.dev-case small,
.dev-audit-event small,
.dev-table-row small {
  color: var(--muted);
}

.dev-nav-label {
  margin: 10px 10px -6px;
  color: #71808d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dev-sidebar nav {
  display: grid;
  gap: 7px;
}

.dev-sidebar nav button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #aab5bf;
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.dev-sidebar nav button:hover,
.dev-sidebar nav button.active {
  color: var(--ink);
  border-color: #34414b;
  background: #1a232b;
}

.dev-sidebar nav button.active {
  border-left: 3px solid #42d392;
  background: #1d282f;
}

.dev-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px 10px 4px;
  border-top: 1px solid #28313a;
}

.dev-sidebar-footer > div {
  display: grid;
  gap: 2px;
}

.dev-sidebar-footer strong {
  font-size: 12px;
}

.dev-access-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #42d392;
  box-shadow: 0 0 0 3px rgba(66, 211, 146, 0.12);
}

.dev-main {
  min-width: 0;
  max-height: calc(100svh - 32px);
  overflow: auto;
}

.dev-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #28313a;
  background: rgba(13, 17, 21, 0.96);
  backdrop-filter: blur(10px);
}

.dev-topbar h1,
.dev-card h2 {
  margin-bottom: 0;
}

.dev-topbar h1 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.025em;
}

.dev-topbar p,
.dev-section-heading p {
  margin: 5px 0 0;
  color: #8996a1;
  font-size: 13px;
}

.dev-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dev-system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  color: #9eabb5;
  font-size: 12px;
}

.dev-system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d392;
}

.dev-content {
  padding: 24px;
}

.dev-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #28313a;
  border-radius: 8px;
}

.dev-metric,
.dev-card {
  border: 1px solid #28313a;
  border-radius: 8px;
  background: #131a20;
}

.dev-metric {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 16px;
  border: 0;
  border-right: 1px solid #28313a;
  border-radius: 0;
}

.dev-metric strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.dev-metric span,
.dev-metric small {
  color: var(--muted);
}

.dev-metric.red-tone strong { color: #ff7183; }
.dev-metric.amber-tone strong { color: #f2bd57; }
.dev-metric.blue-tone strong { color: #7ca8ff; }
.dev-metric.green-tone strong { color: #42d392; }

.dev-card {
  min-width: 0;
  padding: 20px;
}

.dev-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 4px 0 -4px;
}

.dev-section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.dev-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #28313a;
}

.dev-card-header span {
  color: #73818d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.dev-card-header h2 {
  margin-top: 4px;
  font-size: 18px;
}

.dev-grid-2,
.dev-grid-enforcement {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dev-grid-enforcement {
  grid-template-columns: minmax(540px, 1.25fr) minmax(380px, 0.75fr);
}

.dev-report-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.dev-report-form .wide {
  grid-column: 1 / -1;
}

.dev-certify {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.dev-certify input {
  width: 18px;
  height: 18px;
}

.dev-case,
.dev-table-row,
.dev-audit-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dev-case p {
  margin: 7px 0;
  color: var(--muted);
}

.dev-audit-event {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.35fr) minmax(280px, 1.25fr);
}

.dev-audit-event code {
  overflow-wrap: anywhere;
  color: #9fc1ff;
  white-space: pre-wrap;
}

.dev-generated-code {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(139, 255, 207, 0.4);
  border-radius: 12px;
  background: rgba(139, 255, 207, 0.07);
}

.dev-generated-code strong {
  color: #8bffcf;
  font-size: 26px;
  letter-spacing: 0.12em;
}

@media (max-width: 1050px) {
  .dev-visibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dev-workspace { grid-template-columns: 1fr; width: 100%; min-height: 100svh; border-radius: 0; }
  .dev-sidebar { position: sticky; top: 0; z-index: 8; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dev-sidebar nav { display: flex; overflow-x: auto; }
  .dev-sidebar nav button { flex: 0 0 auto; }
  .dev-sidebar-footer { display: none; }
  .dev-main { max-height: none; }
  .dev-toolbar { flex-wrap: wrap; justify-content: flex-end; }
  .dev-metrics { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .dev-grid-2, .dev-grid-enforcement { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .dev-visibility-grid {
    grid-template-columns: 1fr;
  }

  .dev-visibility-intro,
  .dev-visibility-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #app:has(.dev-workspace) { padding: 0; }
  .dev-brand { display: none; }
  .dev-topbar { align-items: flex-start; padding: 16px; }
  .dev-toolbar { display: grid; width: 100%; }
  .dev-system-status { margin: 0 0 3px; }
  .dev-content { padding: 14px; }
  .dev-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-report-form { grid-template-columns: 1fr; }
  .dev-report-form .wide { grid-column: auto; }
  .dev-audit-event { grid-template-columns: 1fr; }
  .dev-profile-backdrop { padding: 0; }
  .dev-profile-modal { min-height: 100svh; border-radius: 0; }
  .dev-profile-header { align-items: flex-start; padding: 16px; }
  .dev-profile-header .row { display: grid; }
  .dev-profile-scroll { max-height: calc(100svh - 130px); padding: 14px; }
  .dev-profile-summary, .dev-profile-grid { grid-template-columns: 1fr; }
}

.primary:focus-visible,
.secondary:focus-visible,
.danger:focus-visible,
.ghost:focus-visible,
.icon-action:focus-visible {
  outline: 2px solid rgba(126, 231, 255, 0.72);
  outline-offset: 2px;
}

.ghost,
.icon-action {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: var(--line);
}

.icon-action {
  width: 42px;
  padding: 0;
}

.primary:active,
.secondary:active,
.danger:active,
.icon-action:active,
.ghost:active,
.app-icon:active {
  transform: scale(0.97);
}

.home-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 18px;
}

.home-header h1 {
  font-size: 26px;
}

.home-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-emblem {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 20px rgba(255, 20, 157, 0.18), 0 0 18px rgba(0, 223, 249, 0.1);
}

.home-identity .eyebrow {
  margin-bottom: 3px;
}

.dev-emblem {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  background: #000;
  box-shadow: var(--faircroft-glow);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 14px currentColor;
}

.user-dot.ok {
  background: var(--green);
}

.home-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  border: 1px solid rgba(247, 183, 51, 0.32);
  border-radius: 16px;
  padding: 13px;
  background: rgba(247, 183, 51, 0.09);
  color: #ffe2a3;
  margin-bottom: 14px;
}

.home-alert strong {
  display: block;
  margin-bottom: 2px;
}

.home-alert p {
  margin-bottom: 0;
  color: rgba(255, 226, 163, 0.8);
  font-size: 13px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 13px;
  padding: 16px 0 18px;
}

.app-icon {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  animation: pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 42ms);
}

.app-icon:not(:disabled):hover {
  transform: translateY(-3px);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.icon-tile {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--tile, linear-gradient(145deg, #25302d, #14191d));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -16px 26px rgba(0, 0, 0, 0.14);
  transform: translateZ(0);
}

.icon-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 44%),
    linear-gradient(35deg, transparent 0 58%, rgba(255, 255, 255, 0.13));
  pointer-events: none;
}

.icon-tile::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.24), transparent 65%);
  transform: translateX(-80%) rotate(12deg);
  animation: iconSheen 5.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 140ms);
}

@keyframes iconSheen {
  0%, 58% { transform: translateX(-80%) rotate(12deg); }
  82%, 100% { transform: translateX(80%) rotate(12deg); }
}

.icon-tile svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.24));
}

.app-icon > span:not(.icon-tile) {
  width: 100%;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.app-icon.locked {
  filter: grayscale(1);
  opacity: 0.52;
}

.lock-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
}

.soon-badge {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  min-width: 42px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 7, 8, 0.72);
  color: #f7d88c;
  font-size: 9px;
  font-weight: 950;
}

.app-icon.coming-soon {
  opacity: 0.64;
}

.app-icon.coming-soon .icon-tile {
  filter: grayscale(0.8) saturate(0.55);
}

.dock {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.dock button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.app-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: max(26px, env(safe-area-inset-top)) 14px max(30px, calc(env(safe-area-inset-bottom) + 22px));
  background:
    linear-gradient(180deg, rgba(18, 23, 26, 0.98), rgba(12, 16, 18, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px);
  animation: panelSlide 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes panelSlide {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 14px;
}

.panel-top h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.panel-body::-webkit-scrollbar {
  display: none;
}

.stack {
  display: grid;
  gap: 12px;
}

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

.row.tight {
  align-items: flex-start;
  gap: 8px;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card,
.metric,
.record-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  padding: 12px;
}

.card h3,
.record-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.money {
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  color: var(--green);
}

.metric {
  display: grid;
  gap: 4px;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  font-size: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill.green {
  color: #b8ffd8;
  background: rgba(40, 209, 124, 0.14);
}

.pill.amber {
  color: #ffe0a0;
  background: rgba(247, 183, 51, 0.14);
}

.pill.red {
  color: #ffd1d8;
  background: rgba(239, 78, 99, 0.14);
}

.list {
  display: grid;
  gap: 8px;
}

.job-card,
.case-card,
.message-card,
.property-card,
.user-card,
.contract-card,
.business-card,
.business-ledger,
.charge-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.job-card {
  display: grid;
  gap: 10px;
}

.jobs-portal {
  gap: 12px;
}

.jobs-hero,
.department-posting,
.civilian-job-board {
  border: 1px solid rgba(92, 156, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(17, 24, 29, 0.94), rgba(10, 14, 17, 0.96)),
    repeating-linear-gradient(90deg, rgba(92, 156, 255, 0.026) 0 1px, transparent 1px 44px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.jobs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.jobs-hero h3,
.jobs-hero p,
.department-posting h3,
.department-posting p,
.civilian-job-board h3 {
  margin: 0;
}

.jobs-hero p:not(.eyebrow),
.department-posting-head p,
.department-requirements p {
  margin-top: 5px;
  color: rgba(229, 239, 245, 0.74);
  font-size: 13px;
  line-height: 1.35;
}

.jobs-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 8px;
}

.jobs-hero-metrics div,
.department-meta div,
.current-job-strip div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.jobs-hero-metrics span,
.department-meta span,
.current-job-strip span,
.department-requirements span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.jobs-hero-metrics strong,
.department-meta strong,
.current-job-strip strong {
  overflow-wrap: anywhere;
}

.job-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.job-tabs button {
  min-height: 48px;
  border: 1px solid rgba(92, 156, 255, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-weight: 950;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.job-tabs button:hover,
.job-tabs button.active {
  transform: translateY(-1px);
  border-color: rgba(92, 156, 255, 0.5);
  background: linear-gradient(145deg, rgba(92, 156, 255, 0.18), rgba(40, 209, 124, 0.08));
}

.department-posting {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-color: rgba(92, 156, 255, 0.22);
}

.department-posting-head,
.department-application-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.department-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.department-requirements {
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(92, 156, 255, 0.07);
}

.department-application-status {
  border: 1px solid rgba(247, 183, 51, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(247, 183, 51, 0.06);
}

.department-application-form {
  display: grid;
  gap: 10px;
}

.department-application-form textarea {
  min-height: 150px;
  resize: vertical;
}

.job-application-drawer,
.jobs-history {
  border: 1px solid rgba(92, 156, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.job-application-drawer summary,
.jobs-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.job-application-drawer summary::-webkit-details-marker,
.jobs-history summary::-webkit-details-marker,
.admin-application-folder summary::-webkit-details-marker {
  display: none;
}

.job-application-drawer summary span,
.jobs-history summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.job-application-drawer summary strong,
.jobs-history summary strong {
  color: #d8fff1;
  font-size: 12px;
  text-transform: uppercase;
}

.job-application-drawer > form,
.job-application-drawer > p,
.job-application-drawer > .department-answer-preview,
.jobs-history .job-application-list {
  margin: 0 12px 12px;
}

.job-application-list {
  display: grid;
  gap: 8px;
}

.job-application-file {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.job-application-file h3,
.job-application-file p {
  margin: 0;
}

.law-application-form {
  border: 1px solid rgba(92, 156, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(12, 18, 23, 0.95), rgba(8, 12, 16, 0.96)),
    repeating-linear-gradient(135deg, rgba(92, 156, 255, 0.035) 0 1px, transparent 1px 26px);
}

.application-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.application-form-head h3,
.application-form-head p {
  margin: 0;
}

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

.application-question {
  display: grid;
  gap: 7px;
  color: rgba(230, 240, 246, 0.82);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.application-question-wide {
  grid-column: 1 / -1;
}

.application-question textarea {
  min-height: 132px;
}

.department-answer-preview {
  border: 1px solid rgba(92, 156, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.department-answer-preview summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.department-answer-grid {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 0 12px 12px;
}

.department-answer-grid div {
  border-left: 3px solid rgba(92, 156, 255, 0.5);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.2);
}

.department-answer-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

.department-answer-grid p {
  margin-top: 4px;
  white-space: pre-wrap;
}

.civilian-job-board {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.current-job-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.admin-account-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(92, 156, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(92, 156, 255, 0.08), rgba(40, 209, 124, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.admin-account-search label {
  margin: 0;
}

.admin-account-search input {
  min-height: 46px;
  border-radius: 12px;
  border-color: rgba(92, 156, 255, 0.28);
  background: rgba(0, 0, 0, 0.24);
}

.admin-search-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-account-list {
  gap: 7px;
}

.search-hidden {
  display: none !important;
}

.compact-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.account-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-main h3,
.account-main p {
  margin: 0;
}

.account-main > div {
  min-width: 0;
}

.account-main h3 {
  font-size: 15px;
}

.account-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 156, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(92, 156, 255, 0.2), rgba(40, 209, 124, 0.11)),
    rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 950;
}

.compact-action {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
}

.admin-account-modal {
  width: min(720px, 100%);
  grid-template-rows: auto auto minmax(0, 1fr);
  border-color: rgba(92, 156, 255, 0.22);
}

.admin-account-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-summary div,
.account-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.account-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.account-section h3 {
  margin: 0;
  font-size: 15px;
}

.contracts-app {
  gap: 10px;
  color: #d9ffe5;
}

.profile-app {
  gap: 10px;
}

.profile-hero,
.profile-link-card,
.profile-activity {
  border: 1px solid rgba(126, 231, 255, 0.18);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(126, 231, 255, 0.075), rgba(92, 156, 255, 0.04)),
    rgba(13, 18, 21, 0.84);
}

.profile-hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(126, 231, 255, 0.17), rgba(40, 209, 124, 0.1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 30px),
    rgba(12, 18, 22, 0.9);
  box-shadow: inset 0 0 24px rgba(126, 231, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.profile-hero h3,
.profile-link-card h3,
.profile-activity h3 {
  margin: 0;
}

.profile-hero p:not(.eyebrow) {
  margin: 5px 0 0;
  color: rgba(245, 247, 244, 0.72);
  font-size: 12px;
}

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

.profile-grid div {
  min-width: 0;
  border: 1px solid rgba(126, 231, 255, 0.13);
  border-radius: 8px;
  padding: 9px;
  background: rgba(126, 231, 255, 0.055);
}

.profile-grid span {
  display: block;
  color: rgba(196, 236, 241, 0.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.profile-grid.compact {
  grid-template-columns: 1fr 1fr;
}

.bank-app,
.treasury-app {
  gap: 14px;
}

.bank-hero,
.treasury-hero {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(78, 205, 196, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(12, 16, 18, 0.9) 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 42px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.26);
}

.treasury-hero {
  border-color: rgba(248, 213, 114, 0.32);
  background:
    linear-gradient(135deg, rgba(248, 213, 114, 0.2), rgba(15, 128, 111, 0.16) 40%, rgba(12, 16, 18, 0.94) 74%),
    radial-gradient(circle at 82% 18%, rgba(248, 213, 114, 0.22), transparent 32%);
}

.bank-hero h3,
.treasury-hero h3 {
  margin: 4px 0;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1;
}

.bank-hero p:not(.eyebrow),
.treasury-hero p:not(.eyebrow) {
  max-width: 360px;
  margin: 0;
  color: rgba(245, 247, 244, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.bank-hero > span,
.treasury-seal {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #10201e;
  background: linear-gradient(145deg, #f8d572, #28d17c);
  box-shadow: 0 18px 40px rgba(40, 209, 124, 0.18);
}

.bank-hero svg,
.treasury-seal svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.treasury-form,
.treasury-section {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.treasury-section.staff,
.bank-treasury-admin {
  border-color: rgba(248, 213, 114, 0.24);
  background: linear-gradient(160deg, rgba(248, 213, 114, 0.07), rgba(255, 255, 255, 0.035));
}

.treasury-bypass {
  align-items: flex-start;
  border-color: rgba(248, 213, 114, 0.22);
  background: rgba(248, 213, 114, 0.08);
}

.treasury-dropzone {
  position: relative;
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  border: 1px dashed rgba(248, 213, 114, 0.46);
  border-radius: 18px;
  color: rgba(245, 247, 244, 0.82);
  background:
    linear-gradient(135deg, rgba(248, 213, 114, 0.08), rgba(78, 205, 196, 0.06)),
    rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.treasury-dropzone.dragging {
  transform: translateY(-2px);
  border-color: rgba(40, 209, 124, 0.82);
  background: rgba(40, 209, 124, 0.12);
}

.treasury-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.treasury-dropzone strong {
  font-size: 16px;
}

.treasury-dropzone span {
  max-width: 380px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.treasury-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.treasury-proof-thumb {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.treasury-proof-thumb img,
.treasury-proof-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treasury-proof-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
}

.treasury-proof-thumb span {
  position: relative;
  z-index: 1;
  padding: 28px 8px 8px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  overflow-wrap: anywhere;
}

.icon-action.mini {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  min-height: 0;
  transform: rotate(180deg);
}

.treasury-request-list {
  display: grid;
  gap: 12px;
}

.treasury-request-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
}

.treasury-request-card.pending {
  border-color: rgba(248, 213, 114, 0.28);
}

.treasury-request-card h3 {
  margin: 2px 0 0;
}

.treasury-request-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.treasury-request-metrics div,
.treasury-ledger-row {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.treasury-request-metrics span,
.treasury-ledger-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.treasury-review-form {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.treasury-bank-form {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.treasury-ledger-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.treasury-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.treasury-ledger-row div {
  min-width: 0;
}

.treasury-ledger-row strong,
.treasury-ledger-row span {
  overflow-wrap: anywhere;
}

.bank-activity-card {
  border-radius: 18px;
}

.profile-link-card,
.profile-activity {
  display: grid;
  gap: 10px;
}

.profile-activity {
  background: rgba(255, 255, 255, 0.045);
}

.compact-alert {
  min-height: 0;
  margin-bottom: 0;
  padding: 10px;
}

.character-manager {
  border-color: rgba(40, 209, 124, 0.2);
  background:
    linear-gradient(180deg, rgba(40, 209, 124, 0.08), rgba(126, 231, 255, 0.04)),
    rgba(13, 18, 21, 0.88);
}

.referral-card {
  border-color: rgba(248, 213, 114, 0.24);
  background:
    linear-gradient(150deg, rgba(248, 213, 114, 0.12), rgba(40, 209, 124, 0.06)),
    rgba(13, 18, 21, 0.88);
}

.referral-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.referral-code-box {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(248, 213, 114, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.referral-code-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.referral-code-box strong {
  color: #f8d572;
  font-size: 20px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.referral-recent {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.referral-recent .row {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-referrals,
.referral-ticket-list {
  display: grid;
  gap: 12px;
}

.referral-ticket-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.16);
}

.referral-ticket-card.pending {
  border-color: rgba(248, 213, 114, 0.28);
  box-shadow: inset 0 0 22px rgba(248, 213, 114, 0.045);
}

.referral-ticket-card.deposited {
  border-color: rgba(40, 209, 124, 0.18);
}

.referral-ticket-card h3 {
  margin: 2px 0 0;
}

.referral-deposit-form {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.referral-history {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.referral-history summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.referral-history[open] summary {
  margin-bottom: 10px;
}

.admin-application-board,
.admin-application-list {
  display: grid;
  gap: 12px;
}

.admin-application-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.admin-application-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 8px;
}

.admin-application-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid rgba(92, 156, 255, 0.16);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(92, 156, 255, 0.08), rgba(40, 209, 124, 0.04)),
    rgba(255, 255, 255, 0.04);
  animation: registryRise 260ms ease both;
}

.admin-application-card h3,
.admin-application-card p {
  margin: 0;
}

.admin-application-folder {
  padding: 0;
  overflow: visible;
}

.admin-application-folder details {
  display: grid;
  min-width: 0;
}

.admin-application-folder summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.admin-application-folder summary::after {
  content: none;
}

.admin-application-summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.admin-application-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-folder-toggle {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(40, 209, 124, 0.24);
  border-radius: 6px;
  padding: 6px 10px;
  color: #d8fff1;
  background: rgba(40, 209, 124, 0.1);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-folder-toggle .close-label {
  display: none;
}

.admin-application-details[open] .admin-folder-toggle {
  border-color: rgba(92, 156, 255, 0.34);
  background: rgba(92, 156, 255, 0.12);
}

.admin-application-details[open] .admin-folder-toggle .open-label {
  display: none;
}

.admin-application-details[open] .admin-folder-toggle .close-label {
  display: inline;
}

.admin-application-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 6px;
}

.admin-application-strip span {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(92, 156, 255, 0.1);
  border-radius: 7px;
  padding: 7px;
  color: rgba(245, 247, 244, 0.72);
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 850;
}

.admin-application-body {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 0 12px 12px;
}

.panel-body .admin-application-list,
.indeed-application-board .admin-application-list {
  max-height: none;
  overflow: visible;
  padding-bottom: 120px;
}

.admin-application-body .profile-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.admin-application-packet {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.admin-application-packet summary {
  cursor: pointer;
  padding: 10px;
  color: #d8fff1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  list-style: none;
}

.admin-application-packet > p {
  padding: 0 10px 10px;
  white-space: pre-wrap;
}

.admin-packet-answers {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 0 10px 10px;
}

.admin-packet-answers div {
  border-left: 2px solid rgba(92, 156, 255, 0.4);
  padding-left: 9px;
}

.admin-packet-answers span {
  color: rgba(170, 225, 213, 0.78);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-packet-answers p {
  margin-top: 4px;
  white-space: pre-wrap;
}

.admin-application-review-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-application-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-application-actions button {
  min-width: 0;
  min-height: 42px;
  padding-inline: 8px;
}

.indeed-admin-app {
  gap: 14px;
}

.indeed-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(40, 209, 124, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(7, 23, 20, 0.94), rgba(11, 31, 35, 0.92)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.07) 0 1px, transparent 1px 70px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 55px rgba(0, 0, 0, 0.28);
}

.indeed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(40, 209, 124, 0.12), transparent);
  transform: translateX(-110%);
  animation: boloSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.indeed-hero h3,
.indeed-hero p {
  margin: 0;
}

.indeed-hero-stats {
  display: grid;
  place-items: center;
  min-width: 88px;
  border: 1px solid rgba(40, 209, 124, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.indeed-hero-stats span {
  color: #31f4a0;
  font-size: 30px;
  font-weight: 950;
}

.character-list {
  display: grid;
  gap: 8px;
}

.character-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.character-row.active {
  border-color: rgba(40, 209, 124, 0.38);
  background: rgba(40, 209, 124, 0.09);
  box-shadow: inset 0 0 18px rgba(40, 209, 124, 0.06);
}

.character-row strong,
.character-create-form h3 {
  margin: 0;
}

.character-row p,
.character-create-form p {
  margin: 3px 0 0;
}

.admin-name-lock {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(247, 183, 51, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(247, 183, 51, 0.055);
}

.admin-name-lock span {
  display: block;
  color: rgba(255, 226, 163, 0.76);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-name-lock strong {
  display: block;
  font-size: 13px;
}

.getting-started-app {
  display: grid;
  gap: 12px;
}

.getting-started-hero {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 227, 109, 0.22);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 227, 109, 0.16), rgba(29, 139, 125, 0.16)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 30px),
    rgba(12, 18, 21, 0.9);
  box-shadow: inset 0 0 26px rgba(255, 227, 109, 0.06), 0 18px 40px rgba(0, 0, 0, 0.25);
}

.getting-started-hero h3 {
  margin: 0;
  font-size: 27px;
}

.getting-started-hero p:not(.eyebrow) {
  margin: 6px 0 0;
  color: rgba(245, 247, 244, 0.76);
  font-size: 13px;
  line-height: 1.38;
}

.getting-started-hero .secondary {
  flex: 0 0 auto;
  text-decoration: none;
}

.starter-route {
  display: grid;
  gap: 12px;
}

.starter-step-card {
  overflow: hidden;
  border: 1px solid rgba(255, 227, 109, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(12, 17, 19, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  animation: rise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.starter-step-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.starter-step-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.starter-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.starter-step-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 227, 109, 0.24);
  border-radius: 12px;
  background: rgba(255, 227, 109, 0.1);
  color: #ffe36d;
  font-weight: 950;
}

.starter-step-head h3,
.starter-step-head p,
.starter-step-body > p {
  margin: 0;
}

.starter-step-head h3 {
  font-size: 17px;
}

.starter-step-head p {
  color: rgba(255, 227, 109, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.starter-step-body > p {
  color: rgba(245, 247, 244, 0.8);
  font-size: 13px;
  line-height: 1.42;
}

.starter-note {
  border-left: 3px solid rgba(29, 139, 125, 0.8);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(29, 139, 125, 0.12);
  color: rgba(220, 255, 244, 0.86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.changelog-app {
  gap: 10px;
}

.changelog-head {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(126, 231, 255, 0.24);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(126, 231, 255, 0.16), rgba(49, 88, 232, 0.12)),
    rgba(255, 255, 255, 0.055);
}

.changelog-head h3 {
  margin: 0;
  font-size: 24px;
}

.changelog-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 231, 255, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(16, 20, 23, 0.78);
}

.changelog-card h3 {
  margin: 0;
}

.change-group {
  display: grid;
  gap: 6px;
}

.change-group span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.change-group p {
  margin: 0;
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
}

.business-app {
  gap: 10px;
}

.business-hero {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(88, 230, 165, 0.22);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(88, 230, 165, 0.16), rgba(92, 156, 255, 0.13)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px),
    rgba(12, 18, 22, 0.88);
  box-shadow: inset 0 0 24px rgba(88, 230, 165, 0.06), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.business-hero h3 {
  margin: 0;
  font-size: 24px;
}

.business-hero p:not(.eyebrow) {
  margin: 5px 0 0;
  color: rgba(245, 247, 244, 0.72);
  font-size: 12px;
}

.business-form,
.business-card,
.business-section {
  border: 1px solid rgba(88, 230, 165, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(13, 18, 21, 0.82);
}

.business-card,
.business-section {
  display: grid;
  gap: 10px;
  animation: registryRise 280ms ease both;
}

@keyframes registryRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.business-card h3,
.business-ledger h3,
.business-section h3 {
  margin: 0;
}

.business-current {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(88, 230, 165, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(88, 230, 165, 0.045);
}

.business-current strong {
  display: block;
  overflow-wrap: anywhere;
}

.business-tracker {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(88, 230, 165, 0.14);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(88, 230, 165, 0.065), rgba(92, 156, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.business-track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.business-track-top span {
  color: rgba(170, 225, 213, 0.76);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.business-track-top strong {
  color: #d8fff1;
  font-size: 12px;
  text-transform: uppercase;
}

.business-track-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.business-track-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58e6a5, #5c9cff);
  box-shadow: 0 0 18px rgba(88, 230, 165, 0.28);
  transition: width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.business-tracker.denied .business-track-bar span {
  background: linear-gradient(90deg, #f7b733, #ef4e63);
}

.business-track-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.business-track-step {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(245, 247, 244, 0.42);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.business-track-step i {
  width: 19px;
  height: 19px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.business-track-step.complete,
.business-track-step.active {
  color: #d8fff1;
}

.business-track-step.complete i,
.business-track-step.active i {
  border-color: rgba(88, 230, 165, 0.72);
  background: radial-gradient(circle at 50% 50%, #d8fff1 0 24%, #58e6a5 25% 62%, rgba(88, 230, 165, 0.16) 63%);
}

.business-track-step.active i {
  animation: registryPulse 1.6s ease-in-out infinite;
}

.business-track-step.denied i {
  border-color: rgba(239, 78, 99, 0.72);
  background: radial-gradient(circle at 50% 50%, #ffd1d8 0 24%, #ef4e63 25% 62%, rgba(239, 78, 99, 0.16) 63%);
}

@keyframes registryPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(88, 230, 165, 0.28);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(88, 230, 165, 0);
  }
}

.business-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-meta div {
  min-width: 0;
  border: 1px solid rgba(92, 156, 255, 0.14);
  border-radius: 7px;
  padding: 9px;
  background: rgba(92, 156, 255, 0.055);
}

.business-meta span,
.business-brief span {
  display: block;
  color: rgba(170, 225, 213, 0.76);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.business-meta strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.business-brief {
  display: grid;
  gap: 5px;
  border-left: 2px solid rgba(88, 230, 165, 0.42);
  padding-left: 9px;
}

.business-brief p,
.business-ledger p {
  margin: 0;
  overflow-wrap: anywhere;
}

.license-card {
  border-color: rgba(92, 156, 255, 0.18);
}

.business-license-heading,
.business-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.business-workspace {
  width: min(1720px, calc(100vw - 32px));
  height: calc(100svh - 32px);
  min-height: 720px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(141, 101, 255, 0.28);
  border-radius: 14px;
  background: #0b0d12;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), var(--faircroft-glow);
}

.business-workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 16px 18px;
  border-right: 1px solid rgba(141, 101, 255, 0.2);
  background:
    radial-gradient(circle at 20% 0, rgba(255, 20, 157, 0.09), transparent 32%),
    linear-gradient(180deg, #141621, #0d1117);
}

.business-workspace-sidebar nav {
  display: grid;
  gap: 8px;
}

.business-workspace-sidebar nav button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 13px;
  color: #aab5bf;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.business-workspace-sidebar nav button:hover,
.business-workspace-sidebar nav button.active {
  color: var(--ink);
  border-color: rgba(0, 223, 249, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.business-workspace-sidebar nav button.active {
  border-left: 3px solid var(--faircroft-cyan);
  box-shadow: inset 12px 0 30px rgba(255, 20, 157, 0.07);
}

.business-workspace-sidebar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}

.business-workspace-sidebar-note > div {
  display: grid;
  gap: 2px;
}

.business-workspace-sidebar-note small {
  color: var(--muted);
}

.business-workspace-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.business-workspace-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(141, 101, 255, 0.2);
  background: rgba(14, 17, 23, 0.94);
}

.business-workspace-topbar h1 {
  font-size: clamp(24px, 2.4vw, 36px);
}

.business-workspace-actions {
  display: flex;
  gap: 10px;
}

.business-workspace-content {
  min-height: 0;
  overflow: auto;
  padding: 26px;
  background:
    radial-gradient(circle at 88% 0, rgba(0, 223, 249, 0.055), transparent 30%),
    linear-gradient(160deg, rgba(16, 19, 26, 0.98), rgba(8, 10, 15, 0.99));
}

.business-workspace-content > .business-app {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.business-workspace-content .business-app > .court-tabs {
  display: none;
}

#app:has(.business-workspace) {
  padding: 0;
}

.business-license-heading h3 {
  margin: 0;
}

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

.business-license-folder {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(141, 101, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(27, 25, 42, 0.96), rgba(13, 17, 23, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.business-license-folder[open] {
  grid-column: 1 / -1;
  border-color: rgba(0, 223, 249, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3), var(--faircroft-glow);
}

.business-license-folder > summary {
  position: relative;
  min-height: 172px;
  padding: 24px 16px 14px;
  cursor: pointer;
  list-style: none;
}

.business-license-folder > summary::-webkit-details-marker {
  display: none;
}

.business-folder-tab {
  position: absolute;
  top: 0;
  left: 16px;
  min-width: 112px;
  padding: 6px 12px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(100deg, var(--faircroft-cyan), #8d65ff 55%, var(--faircroft-pink));
  color: #05050a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.business-folder-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.business-folder-open span {
  color: var(--faircroft-cyan);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.business-license-folder[open] .business-folder-open span {
  transform: rotate(45deg);
}

.business-license-folder-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.business-license-folder-body > .business-card {
  margin-top: 12px;
  border-color: transparent;
  background: rgba(6, 8, 12, 0.52);
  box-shadow: none;
}

.business-pager {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.business-pager span {
  color: var(--muted);
  font-size: 12px;
}

.business-pager button {
  min-width: 98px;
}

.mini-registry-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.business-ledger {
  display: grid;
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

.business-review-board,
.business-review-list,
.business-review-actions {
  display: grid;
  gap: 10px;
}

.business-review-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.business-review-filter button,
.admin-application-filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(88, 230, 165, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(88, 230, 165, 0.07), rgba(92, 156, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.business-review-filter button.active,
.admin-application-filters button.active {
  border-color: rgba(88, 230, 165, 0.48);
  background:
    linear-gradient(135deg, rgba(88, 230, 165, 0.18), rgba(92, 156, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 20px rgba(88, 230, 165, 0.06);
}

.business-review-filter span,
.admin-application-filters span {
  min-width: 0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.business-review-filter strong,
.admin-application-filters strong {
  color: #d8fff1;
  font-size: 18px;
}

.business-application-folder {
  padding: 0;
  overflow: hidden;
}

.business-application-folder details {
  display: grid;
}

.business-application-folder summary {
  display: grid;
  gap: 9px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.business-application-folder summary::-webkit-details-marker,
.admin-application-packet summary::-webkit-details-marker,
.business-review-history summary::-webkit-details-marker {
  display: none;
}

.business-application-folder summary::after {
  content: "Open file";
  justify-self: end;
  color: rgba(216, 255, 241, 0.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.business-application-folder details[open] summary::after {
  content: "Close file";
}

.business-folder-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.business-folder-strip span {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(88, 230, 165, 0.1);
  border-radius: 7px;
  padding: 7px;
  color: rgba(245, 247, 244, 0.74);
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 850;
}

.business-folder-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.business-review-action {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.business-review-action p,
.business-review-action strong {
  margin: 0;
}

.business-review-history {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.business-review-history > summary {
  cursor: pointer;
  font-weight: 950;
}

.dmv-approval-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.12), rgba(92, 156, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.dmv-approval-card.approved {
  border-color: rgba(40, 209, 124, 0.26);
  background:
    linear-gradient(135deg, rgba(40, 209, 124, 0.12), rgba(78, 205, 196, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.approval-countdown {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.approval-countdown span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-countdown strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.approval-progress span {
  width: var(--pct, 0%);
}

.system-setting-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(92, 156, 255, 0.13);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.update-lockdown-screen {
  min-height: calc(100svh - 58px);
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 12px;
  color: #111827;
  background: linear-gradient(180deg, #f7f7fb, #ececf4);
}

.ios-update-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #1677c7;
  font-size: 14px;
}

.ios-update-nav strong {
  color: #111827;
  font-size: 15px;
}

.ios-update-nav span:last-child {
  min-height: 1px;
}

.ios-setting-row,
.ios-update-card,
.ios-update-action,
.update-lockdown-mini {
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.ios-setting-row {
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
  padding: 12px 14px;
  color: #111827;
}

.ios-setting-row strong {
  color: #7b8190;
  font-weight: 800;
}

.ios-update-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 12px;
  border-radius: 10px;
  padding: 16px;
}

.ios-update-card h2,
.ios-update-card p,
.update-lockdown-mini h3,
.update-lockdown-mini p {
  margin: 0;
}

.ios-update-card > p,
.ios-update-card .update-progress,
.ios-update-card > .muted {
  grid-column: 1 / -1;
}

.update-app-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 950;
  background: linear-gradient(145deg, #ff3648, #ffb13b 48%, #4178ff);
}

.update-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8dbe5;
}

.update-progress span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677c7, #34c759);
  animation: updateProgress 1.8s ease-in-out infinite alternate;
}

@keyframes updateProgress {
  from { transform: translateX(-16%); }
  to { transform: translateX(22%); }
}

.update-action-list {
  display: grid;
  gap: 10px;
}

.ios-update-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 13px 14px;
  color: #1677c7;
  text-align: left;
}

.ios-update-action span {
  color: #111827;
  font-weight: 850;
}

.ios-update-action strong {
  font-size: 12px;
}

.update-lockdown-mini {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 12px;
  color: #111827;
}

.update-lockdown-mini .eyebrow,
.update-lockdown-mini .muted,
.ios-update-card .muted {
  color: #6b7280;
}

.update-lockdown-setting textarea {
  min-height: 78px;
}

.contract-hero {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(40, 209, 124, 0.28);
  border-radius: 10px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(40, 209, 124, 0.13), rgba(255, 93, 125, 0.08)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.08) 0 1px, transparent 1px 18px),
    rgba(4, 8, 7, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 0 22px rgba(40, 209, 124, 0.08);
}

.contract-hero h3 {
  margin: 0;
  font-size: 24px;
  color: #d8ffe4;
  text-shadow: 0 0 16px rgba(40, 209, 124, 0.26);
}

.contract-hero p:not(.eyebrow) {
  margin: 5px 0 0;
  color: rgba(217, 255, 229, 0.72);
  font-size: 12px;
}

.contract-compose {
  border: 1px solid rgba(40, 209, 124, 0.2);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(9, 18, 14, 0.96), rgba(5, 8, 8, 0.94)),
    repeating-linear-gradient(0deg, rgba(40, 209, 124, 0.035) 0 1px, transparent 1px 28px);
}

.contract-list {
  gap: 10px;
}

.contract-card {
  display: grid;
  gap: 10px;
  border-color: rgba(40, 209, 124, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 19, 15, 0.92), rgba(4, 7, 7, 0.94)),
    repeating-linear-gradient(135deg, rgba(40, 209, 124, 0.035) 0 1px, transparent 1px 20px);
  box-shadow: inset 0 0 24px rgba(40, 209, 124, 0.04);
  animation: contractDecode 360ms ease both;
}

@keyframes contractDecode {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.contract-card h3,
.contract-card p {
  margin-bottom: 0;
}

.contract-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-meta div {
  min-width: 0;
  border: 1px solid rgba(40, 209, 124, 0.11);
  border-radius: 6px;
  padding: 9px;
  background: rgba(40, 209, 124, 0.045);
}

.contract-meta span {
  display: block;
  color: rgba(217, 255, 229, 0.58);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-meta strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.contract-brief {
  display: grid;
  gap: 5px;
  border-left: 2px solid rgba(40, 209, 124, 0.42);
  padding-left: 9px;
}

.contract-brief span {
  color: rgba(40, 209, 124, 0.86);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.clip-link {
  justify-self: start;
  border: 1px solid rgba(92, 156, 255, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: #cfe0ff;
  background: rgba(92, 156, 255, 0.11);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.contract-proof-modal {
  width: min(560px, 100%);
  grid-template-rows: auto minmax(0, 1fr);
}

.contract-info-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.contract-info-modal {
  width: min(560px, 100%);
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-color: rgba(40, 209, 124, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 16, 12, 0.98), rgba(4, 7, 7, 0.98)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.05) 0 1px, transparent 1px 22px);
}

.contract-protocol {
  display: grid;
  gap: 9px;
}

.contract-protocol p {
  margin: 0;
  border: 1px solid rgba(40, 209, 124, 0.12);
  border-radius: 6px;
  padding: 9px;
  background: rgba(40, 209, 124, 0.045);
  color: rgba(217, 255, 229, 0.86);
  font-size: 13px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.court-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.court-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.court-tabs button.active {
  background: var(--ink);
  color: #111518;
}

.court-app {
  gap: 10px;
}

.court-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(183, 140, 255, 0.18);
  border-radius: 10px;
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(183, 140, 255, 0.12), rgba(92, 156, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.court-hero h3,
.court-hero p,
.court-case-card h3,
.court-case-card p {
  margin: 0;
}

.court-hero p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.court-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 8px;
}

.court-hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.court-hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.court-hero-stats strong {
  font-size: 18px;
}

.court-case-card {
  display: grid;
  gap: 9px;
  border-color: rgba(183, 140, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(183, 140, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.12);
}

.mdt-shell {
  display: grid;
  gap: 10px;
}

.mdt-banner {
  border: 1px solid rgba(78, 205, 196, 0.25);
  border-radius: 8px;
  padding: 12px;
  background: rgba(78, 205, 196, 0.08);
}

.mdt-banner h3 {
  margin: 0 0 4px;
  color: #c6fffb;
}

.panic-button {
  min-height: 64px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff5a6d, #a70e25);
  color: white;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(239, 78, 99, 0.28);
}

.panic-button.pulse {
  animation: pulse 1s ease-in-out infinite;
}

.mdt-workspace {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(7, 10, 12, 0.98), rgba(13, 17, 19, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 120px);
  color: var(--ink);
  animation: mdtBoot 280ms ease-out both;
  overflow: hidden;
  overscroll-behavior: none;
}

.cid-workspace {
  background:
    radial-gradient(circle at top left, rgba(40, 209, 124, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(5, 9, 10, 0.99), rgba(10, 15, 16, 0.99)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.04) 0 1px, transparent 1px 92px);
}

.dispatch-workspace {
  background:
    radial-gradient(circle at 14% 8%, rgba(126, 231, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(6, 11, 15, 0.99), rgba(10, 13, 17, 0.99)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.035) 0 1px, transparent 1px 88px);
}

@keyframes mdtBoot {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.mdt-topbar,
.mdt-stat-strip,
.mdt-layout,
.mdt-main,
.mdt-side-panel,
.mdt-return,
.mdt-form,
.mdt-modal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(16, 21, 24, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.mdt-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.mdt-topbar h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.mdt-subtitle {
  margin: 4px 0 0;
  color: rgba(196, 236, 241, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.mdt-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mdt-mobile-action,
.mdt-drawer-head,
.mdt-drawer-backdrop {
  display: none;
}

.mdt-quick-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 46;
  display: none;
  gap: 8px;
  transform: translateY(-50%);
}

.mdt-quick-rail button {
  width: 76px;
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(126, 231, 255, 0.16);
  border-radius: 8px;
  padding: 8px 6px;
  background:
    linear-gradient(180deg, rgba(18, 27, 31, 0.94), rgba(7, 11, 13, 0.96)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.03) 0 1px, transparent 1px 26px);
  color: #dffff6;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.mdt-quick-rail button:hover {
  transform: translateX(-3px);
  border-color: rgba(40, 209, 124, 0.48);
  background:
    linear-gradient(180deg, rgba(24, 39, 42, 0.96), rgba(8, 13, 15, 0.98)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.04) 0 1px, transparent 1px 26px);
}

.mdt-quick-rail svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.mdt-quick-rail span {
  position: relative;
  color: rgba(230, 250, 248, 0.88);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.mdt-quick-rail b {
  position: absolute;
  top: -20px;
  right: -16px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 950;
}

.mdt-mobile-drawer-layer {
  display: none;
}

.mdt-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.mdt-stat-strip.cid-stat-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mdt-stat-strip.leo-stat-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mdt-stat-strip.dispatch-stat-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mdt-stat-strip .metric,
.mdt-workspace .metric {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.cid-workspace .mdt-topbar,
.cid-workspace .mdt-stat-strip,
.cid-workspace .mdt-layout,
.cid-workspace .mdt-side-panel,
.cid-workspace .mdt-main {
  border-color: rgba(40, 209, 124, 0.16);
  background: rgba(7, 13, 14, 0.9);
}

.cid-workspace .mdt-nav button {
  border-color: rgba(126, 231, 255, 0.1);
  background: rgba(126, 231, 255, 0.045);
}

.cid-workspace .mdt-nav button.active {
  color: #d9fff1;
  border-color: rgba(40, 209, 124, 0.55);
  background:
    linear-gradient(90deg, rgba(40, 209, 124, 0.2), rgba(126, 231, 255, 0.08));
  box-shadow: inset 3px 0 0 rgba(40, 209, 124, 0.8);
}

.dispatch-topbar,
.dispatch-workspace .mdt-stat-strip,
.dispatch-queue,
.dispatch-main,
.dispatch-tools,
.dispatch-call-command,
.dispatch-units-panel,
.dispatch-create-card,
.dispatch-log {
  border: 1px solid rgba(126, 231, 255, 0.13);
  border-radius: 6px;
  background: rgba(9, 16, 21, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.dispatch-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 340px;
  gap: 12px;
  overflow: hidden;
}

.dispatch-queue,
.dispatch-main,
.dispatch-tools {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.dispatch-queue,
.dispatch-tools,
.dispatch-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.dispatch-panel-head,
.dispatch-call-hero,
.dispatch-unit-card,
.dispatch-ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dispatch-past-button {
  min-height: 30px;
}

.dispatch-past-button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.dispatch-past-modal {
  width: min(1080px, 100%);
}

.dispatch-past-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  min-height: 0;
}

.dispatch-past-call {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid rgba(126, 231, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.dispatch-past-call-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dispatch-past-call-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 12px;
}

.dispatch-past-call-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}

.dispatch-panel-head h2,
.dispatch-call-hero h2,
.dispatch-create-card h2 {
  margin: 0;
}

.dispatch-filter {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.dispatch-filter button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.dispatch-filter button.active {
  color: #041014;
  background: #7ee7ff;
}

.dispatch-call-list,
.dispatch-unit-list,
.dispatch-note-list {
  display: grid;
  gap: 9px;
}

.dispatch-call-ticket {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 88px;
  border: 1px solid rgba(126, 231, 255, 0.12);
  border-left: 4px solid rgba(126, 231, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-align: left;
  padding: 10px;
}

.dispatch-call-ticket.active {
  border-left-color: #28d17c;
  background:
    linear-gradient(90deg, rgba(40, 209, 124, 0.14), rgba(126, 231, 255, 0.05));
}

.dispatch-call-ticket span,
.dispatch-call-ticket small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dispatch-call-command,
.dispatch-units-panel,
.dispatch-create-card,
.dispatch-log {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.dispatch-call-hero {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(126, 231, 255, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(14, 32, 40, 0.9), rgba(9, 14, 18, 0.92)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.045) 0 1px, transparent 1px 54px);
}

.dispatch-hero-pills,
.dispatch-unit-form,
.dispatch-attach-form,
.dispatch-control-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.dispatch-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dispatch-call-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dispatch-call-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.dispatch-call-note p,
.dispatch-note-list p {
  margin: 0;
  overflow-wrap: anywhere;
}

.dispatch-control-form,
.dispatch-attach-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr)) minmax(220px, 1.4fr) auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.dispatch-call-action-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(126, 231, 255, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(12, 20, 24, 0.84), rgba(8, 12, 14, 0.88)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.025) 0 1px, transparent 1px 44px);
}

.dispatch-call-action-panel label {
  color: rgba(226, 244, 242, 0.74);
}

.dispatch-action-row {
  display: grid;
  gap: 8px;
}

.dispatch-action-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dispatch-action-buttons {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.dispatch-action-buttons button {
  min-height: 42px;
  padding-inline: 10px;
  text-transform: uppercase;
  white-space: normal;
}

.dispatch-action-buttons.priority-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dispatch-action-buttons .danger {
  box-shadow: 0 12px 28px rgba(239, 78, 99, 0.18);
}

.dispatch-action-buttons .priority-critical:not(.primary) {
  border-color: rgba(239, 78, 99, 0.28);
  color: #ffd8de;
}

.dispatch-wide {
  min-width: 0;
}

.dispatch-unit-card {
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid #28d17c;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.dispatch-unit-card.detached {
  opacity: 0.56;
  border-left-color: rgba(255, 255, 255, 0.25);
}

.dispatch-unit-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dispatch-unit-form {
  justify-content: flex-end;
}

.dispatch-unit-form select,
.dispatch-unit-form input {
  min-width: 130px;
}

.dispatch-create-card label,
.dispatch-note-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dispatch-note-list article {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.dispatch-note-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dispatch-card-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(126, 231, 255, 0.12);
  border-left: 3px solid #7ee7ff;
  border-radius: 6px;
  background: rgba(126, 231, 255, 0.055);
}

.dispatch-card-note strong {
  color: #c9f8ff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dispatch-card-note p {
  margin: 0;
  overflow-wrap: anywhere;
}

.mdt-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 280px;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.mdt-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.mdt-nav button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
  text-align: left;
  padding: 0 12px;
}

.mdt-nav button.active {
  color: #ddfff1;
  border-color: rgba(40, 209, 124, 0.45);
  background: rgba(40, 209, 124, 0.12);
}

.mdt-main,
.mdt-side {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.mdt-main {
  padding: 14px;
}

.mdt-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.mdt-side-panel {
  padding: 12px;
}

.mdt-side-panel h3,
.mdt-section-head h2,
.mdt-return h3,
.mdt-subsection h4 {
  margin: 0;
}

.compact-list {
  gap: 6px;
}

.mdt-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.mdt-searchbar input {
  min-height: 46px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.ticket-command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ticket-command-strip button {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 66px;
  border: 1px solid rgba(92, 156, 255, 0.18);
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(92, 156, 255, 0.1), rgba(40, 209, 124, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.ticket-command-strip button strong {
  font-size: 13px;
}

.ticket-command-strip button span {
  color: rgba(245, 247, 244, 0.64);
  font-size: 11px;
  line-height: 1.25;
}

.mdt-results,
.mdt-code-grid {
  display: grid;
  gap: 10px;
}

.mdt-return,
.mdt-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mdt-return-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mdt-subsection {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.mdt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mdt-form input,
.mdt-form select,
.mdt-form textarea,
.mdt-workspace input,
.mdt-workspace select,
.mdt-workspace textarea {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.mdt-code-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mdt-code-card {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.mdt-redesign {
  isolation: isolate;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(4, 8, 9, 0.99), rgba(8, 11, 12, 0.99)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.03) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(126, 231, 255, 0.018) 0 1px, transparent 1px 42px);
}

.mdt-redesign::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(40, 209, 124, 0.07), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.02));
  opacity: 0.42;
  transform: translateX(-40%);
  animation: mdtSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.mdt-redesign > * {
  position: relative;
  z-index: 1;
}

@keyframes mdtSweep {
  0%,
  42% {
    transform: translateX(-55%);
    opacity: 0.18;
  }
  58% {
    opacity: 0.48;
  }
  100% {
    transform: translateX(55%);
    opacity: 0.18;
  }
}

.mdt-redesign .mdt-topbar,
.mdt-redesign .mdt-stat-strip,
.mdt-redesign .mdt-layout,
.mdt-redesign .mdt-main,
.mdt-redesign .mdt-side-panel,
.mdt-redesign .mdt-return,
.mdt-redesign .mdt-form,
.mdt-redesign .mdt-modal {
  box-shadow: none;
}

.mdt-redesign .mdt-topbar {
  border: 0;
  border-bottom: 1px solid rgba(126, 231, 255, 0.12);
  border-radius: 0;
  padding: 10px 2px 14px;
  background: transparent;
}

.mdt-redesign .mdt-topbar h1 {
  letter-spacing: 0;
}

.mdt-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.mdt-status-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(126, 231, 255, 0.13);
  border-radius: 999px;
  padding: 0 9px;
  color: rgba(226, 255, 249, 0.82);
  background: rgba(126, 231, 255, 0.045);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.mdt-redesign .mdt-top-actions button {
  border-color: rgba(126, 231, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.mdt-redesign .mdt-layout {
  grid-template-columns: 190px minmax(0, 1fr) 304px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(126, 231, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 15, 17, 0.92), rgba(4, 8, 9, 0.94)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.024) 0 1px, transparent 1px 56px);
}

.mdt-redesign .mdt-nav {
  gap: 3px;
  padding: 10px 8px;
  border-right: 1px solid rgba(126, 231, 255, 0.11);
  background: rgba(255, 255, 255, 0.015);
}

.mdt-redesign .mdt-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px 0 8px;
  background: transparent;
  color: rgba(216, 232, 232, 0.68);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.mdt-redesign .mdt-nav button span {
  color: rgba(126, 231, 255, 0.46);
  font-size: 10px;
  font-weight: 950;
}

.mdt-redesign .mdt-nav button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
}

.mdt-redesign .mdt-nav button:hover {
  transform: translateX(2px);
  color: #e9fff8;
  background: rgba(126, 231, 255, 0.055);
}

.mdt-redesign .mdt-nav button.active {
  color: #03100d;
  border: 0;
  background: linear-gradient(90deg, #28d17c, #7ee7ff);
  box-shadow: 0 0 28px rgba(40, 209, 124, 0.16);
}

.mdt-redesign .mdt-nav button.active span {
  color: rgba(3, 16, 13, 0.68);
}

.mdt-redesign .mdt-main {
  border: 0;
  border-radius: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.08);
}

.mdt-redesign .mdt-side {
  gap: 0;
  border-left: 1px solid rgba(126, 231, 255, 0.11);
  background: rgba(255, 255, 255, 0.014);
}

.mdt-redesign .mdt-side-panel {
  border: 0;
  border-bottom: 1px solid rgba(126, 231, 255, 0.09);
  border-radius: 0;
  background: transparent;
}

.mdt-redesign .mdt-stat-strip {
  gap: 0;
  overflow: hidden;
  border-color: rgba(126, 231, 255, 0.11);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.025);
}

.mdt-redesign .mdt-stat-strip .metric,
.mdt-redesign .metric {
  min-height: 62px;
  border: 0;
  border-left: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
}

.mdt-redesign .mdt-stat-strip .metric:first-child {
  border-left: 0;
}

.mdt-redesign .metric span {
  color: rgba(170, 225, 213, 0.7);
  letter-spacing: 0.04em;
}

.mdt-redesign .metric strong {
  color: #f6fff8;
}

.mdt-redesign .mdt-return,
.mdt-redesign .mdt-form {
  border-color: rgba(126, 231, 255, 0.11);
  border-left: 3px solid rgba(40, 209, 124, 0.52);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.12);
}

.mdt-redesign .mdt-section-head {
  border-bottom: 1px solid rgba(126, 231, 255, 0.09);
  padding-bottom: 10px;
}

.mdt-redesign .mdt-searchbar input,
.mdt-redesign .mdt-form input,
.mdt-redesign .mdt-form select,
.mdt-redesign .mdt-form textarea,
.mdt-redesign input,
.mdt-redesign select,
.mdt-redesign textarea {
  border-color: rgba(126, 231, 255, 0.13);
  border-radius: 5px;
  background: rgba(3, 9, 10, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.mdt-redesign .ticket-command-strip {
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 6px;
  background: rgba(126, 231, 255, 0.055);
}

.mdt-redesign .ticket-command-strip button {
  min-height: 72px;
  border: 0;
  border-left: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
}

.mdt-redesign .ticket-command-strip button:first-child {
  border-left: 0;
}

.mdt-redesign .ticket-command-strip button:hover {
  background: rgba(40, 209, 124, 0.11);
}

.mdt-redesign .charge-card,
.mdt-redesign .mdt-code-card,
.mdt-redesign .cid-mini-case,
.mdt-redesign .cid-command-card {
  border-color: rgba(126, 231, 255, 0.1);
  border-left: 3px solid rgba(126, 231, 255, 0.25);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.12);
}

.mdt-redesign .cid-command-hero {
  border-color: rgba(40, 209, 124, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(40, 209, 124, 0.13), rgba(126, 231, 255, 0.045)),
    rgba(0, 0, 0, 0.16);
}

.mdt-redesign .cid-command-actions {
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 6px;
  background: rgba(126, 231, 255, 0.055);
}

.mdt-redesign .cid-command-actions button {
  border: 0;
  border-left: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.17);
}

.mdt-redesign .cid-command-actions button:first-child {
  border-left: 0;
}

.mdt-redesign .mdt-quick-rail button {
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(17, 27, 29, 0.96), rgba(4, 8, 9, 0.98)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.035) 0 1px, transparent 1px 24px);
}

.mdt-settings-console {
  display: grid;
  gap: 14px;
}

.traffic-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.traffic-settings-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 260px;
  border: 1px solid rgba(40, 209, 124, 0.16);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(40, 209, 124, 0.14), rgba(126, 231, 255, 0.045)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.035) 0 1px, transparent 1px 54px),
    rgba(0, 0, 0, 0.18);
}

.traffic-settings-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-110%);
  animation: mdtSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.traffic-settings-hero > * {
  position: relative;
  z-index: 1;
}

.traffic-settings-hero h3,
.traffic-settings-hero p,
.traffic-setting-card h3 {
  margin: 0;
}

.traffic-settings-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 6px 0 16px;
  color: rgba(226, 255, 249, 0.76);
}

.traffic-setting-card {
  align-content: start;
}

.traffic-protocol-preview {
  display: grid;
  gap: 6px;
}

.traffic-protocol-preview div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-bottom: 1px solid rgba(126, 231, 255, 0.08);
}

.traffic-protocol-preview div:last-child {
  border-bottom: 0;
}

.traffic-protocol-preview span {
  color: rgba(126, 231, 255, 0.58);
  font-size: 10px;
  font-weight: 950;
}

.traffic-protocol-preview strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-stop-backdrop {
  z-index: 80;
}

.traffic-stop-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(840px, calc(100svh - 28px));
  grid-template-rows: auto auto auto auto auto auto;
  overflow: auto;
  border-color: rgba(40, 209, 124, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 15, 16, 0.98), rgba(3, 7, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.04) 0 1px, transparent 1px 58px);
}

.traffic-stop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.traffic-stop-head h2,
.traffic-stop-body h3,
.traffic-stop-body p {
  margin: 0;
}

.traffic-progress {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.traffic-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28d17c, #7ee7ff);
  box-shadow: 0 0 22px rgba(40, 209, 124, 0.4);
  transition: width 200ms ease;
}

.traffic-stop-body {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 231, 255, 0.1);
  border-left: 3px solid rgba(40, 209, 124, 0.62);
  border-radius: 6px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.traffic-stop-body h3 {
  font-size: 24px;
}

.traffic-stop-body p {
  color: rgba(226, 255, 249, 0.78);
  line-height: 1.45;
}

.traffic-stop-tools {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.traffic-ncic-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(126, 231, 255, 0.12);
  border-radius: 6px;
  background: rgba(126, 231, 255, 0.045);
}

.traffic-ncic-results {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
  padding-right: 2px;
}

.traffic-ncic-card,
.traffic-attached-driver,
.traffic-system-note,
.traffic-arrest-panel {
  border: 1px solid rgba(126, 231, 255, 0.13);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(6, 18, 20, 0.92), rgba(3, 8, 10, 0.96)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.025) 0 1px, transparent 1px 52px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.traffic-ncic-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.traffic-ncic-card h4,
.traffic-arrest-panel h4,
.traffic-arrest-panel p,
.traffic-attached-driver p,
.traffic-attached-driver strong,
.traffic-system-note strong,
.traffic-system-note span {
  margin: 0;
}

.traffic-ncic-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.traffic-ncic-meta span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 5px;
  color: rgba(226, 255, 249, 0.78);
  background: rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.traffic-ncic-meta strong {
  color: rgba(126, 231, 255, 0.82);
  font-size: 10px;
  text-transform: uppercase;
}

.traffic-attached-driver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-color: rgba(40, 209, 124, 0.24);
  background:
    linear-gradient(135deg, rgba(6, 35, 25, 0.92), rgba(3, 10, 9, 0.96)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.035) 0 1px, transparent 1px 52px);
}

.traffic-attached-driver strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 19px;
}

.traffic-attached-driver span:not(.pill) {
  display: block;
  color: rgba(226, 255, 249, 0.68);
  font-size: 12px;
}

.traffic-driver-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.traffic-system-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: rgba(226, 255, 249, 0.76);
}

.traffic-system-note.red {
  border-color: rgba(239, 78, 99, 0.32);
  background: linear-gradient(135deg, rgba(40, 13, 18, 0.88), rgba(6, 9, 10, 0.96));
}

.traffic-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(126, 231, 255, 0.12);
  border-radius: 6px;
  background: rgba(126, 231, 255, 0.06);
}

.traffic-outcome-grid button {
  display: grid;
  gap: 7px;
  min-height: 110px;
  border: 0;
  border-left: 1px solid rgba(126, 231, 255, 0.12);
  border-radius: 0;
  padding: 12px;
  color: rgba(226, 255, 249, 0.82);
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
}

.traffic-outcome-grid button:first-child {
  border-left: 0;
}

.traffic-outcome-grid button.active,
.traffic-outcome-grid button:hover:not(:disabled) {
  color: #03100d;
  background: linear-gradient(90deg, #28d17c, #7ee7ff);
}

.traffic-outcome-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.traffic-outcome-grid strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.traffic-outcome-grid span {
  color: inherit;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.8;
}

.traffic-arrest-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-color: rgba(239, 78, 99, 0.28);
  background:
    linear-gradient(135deg, rgba(36, 10, 15, 0.94), rgba(7, 9, 10, 0.96)),
    repeating-linear-gradient(90deg, rgba(239, 78, 99, 0.035) 0 1px, transparent 1px 52px);
}

.traffic-arrest-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  color: rgba(226, 255, 249, 0.78);
  line-height: 1.4;
}

.traffic-arrest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.traffic-step-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 6px;
  background: rgba(126, 231, 255, 0.055);
}

.traffic-step-list button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  border: 0;
  border-left: 1px solid rgba(126, 231, 255, 0.1);
  border-radius: 0;
  padding: 9px;
  color: rgba(226, 255, 249, 0.72);
  background: rgba(0, 0, 0, 0.18);
  text-align: left;
}

.traffic-step-list button:first-child {
  border-left: 0;
}

.traffic-step-list button.active {
  color: #03100d;
  background: linear-gradient(90deg, #28d17c, #7ee7ff);
}

.traffic-step-list span {
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  opacity: 0.72;
}

.traffic-step-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.15;
}

.traffic-stop-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.bolo-console {
  display: grid;
  gap: 14px;
}

.bolo-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(239, 78, 99, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(34, 10, 18, 0.9), rgba(8, 14, 16, 0.94) 55%, rgba(16, 31, 28, 0.92)),
    repeating-linear-gradient(90deg, rgba(239, 78, 99, 0.04) 0 1px, transparent 1px 72px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 70px rgba(0, 0, 0, 0.36);
}

.bolo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-110%);
  animation: boloSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes boloSweep {
  0%,
  45% {
    transform: translateX(-110%);
  }
  72%,
  100% {
    transform: translateX(110%);
  }
}

.bolo-hero h2,
.bolo-intake-board h3 {
  margin: 0;
}

.bolo-signal {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 132px;
  color: #ffd3d9;
  font-weight: 1000;
  letter-spacing: 0;
}

.bolo-signal span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4e63;
  box-shadow: 0 0 0 0 rgba(239, 78, 99, 0.55);
  animation: pulseRing 1.5s ease-out infinite;
}

.bolo-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(420px, 1.12fr);
  gap: 14px;
  align-items: start;
}

.bolo-intake-board {
  border-color: rgba(239, 78, 99, 0.2);
  background:
    linear-gradient(180deg, rgba(20, 19, 22, 0.94), rgba(9, 13, 15, 0.94)),
    repeating-linear-gradient(0deg, rgba(239, 78, 99, 0.035) 0 1px, transparent 1px 44px);
}

.bolo-active-board,
.bolo-recent-panel {
  display: grid;
  gap: 12px;
}

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

.bolo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(40, 209, 124, 0.75);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(14, 20, 22, 0.96), rgba(7, 10, 12, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 54px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.bolo-card.caution-elevated {
  border-left-color: #ffc247;
}

.bolo-card.caution-high,
.bolo-card.caution-armed {
  border-left-color: #ef4e63;
  background:
    linear-gradient(135deg, rgba(28, 13, 18, 0.96), rgba(7, 10, 12, 0.96)),
    repeating-linear-gradient(90deg, rgba(239, 78, 99, 0.045) 0 1px, transparent 1px 54px);
}

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

.bolo-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bolo-meta-grid div {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.bolo-meta-grid span,
.bolo-recent-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.bolo-meta-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bolo-description,
.bolo-reason {
  margin: 0;
  overflow-wrap: anywhere;
}

.bolo-reason {
  padding: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(239, 247, 245, 0.9);
}

.bolo-recent-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(16, 21, 24, 0.78);
}

.bolo-recent-list {
  display: grid;
  gap: 8px;
}

.bolo-recent-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.bolo-recent-list article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bolo-recent-list strong,
.bolo-recent-list span {
  overflow-wrap: anywhere;
}

.charge-warrant-form {
  margin-bottom: 12px;
  border-color: rgba(239, 78, 99, 0.24);
  background:
    linear-gradient(180deg, rgba(32, 18, 22, 0.92), rgba(13, 17, 19, 0.92)),
    repeating-linear-gradient(90deg, rgba(239, 78, 99, 0.045) 0 1px, transparent 1px 56px);
}

.booking-workspace {
  display: grid;
  gap: 14px;
}

.booking-intake-form {
  border-color: rgba(239, 78, 99, 0.24);
  background:
    linear-gradient(180deg, rgba(28, 18, 22, 0.94), rgba(11, 16, 18, 0.96)),
    repeating-linear-gradient(90deg, rgba(239, 78, 99, 0.035) 0 1px, transparent 1px 52px);
}

.booking-queue,
.booking-history {
  display: grid;
  gap: 10px;
}

.booking-card-list {
  display: grid;
  gap: 10px;
}

.booking-card-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.booking-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(126, 231, 255, 0.12);
  border-left: 3px solid rgba(126, 231, 255, 0.42);
  border-radius: 7px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(15, 22, 25, 0.94), rgba(7, 11, 12, 0.96)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.025) 0 1px, transparent 1px 42px);
}

.booking-card.status-holding,
.booking-card.status-ready_for_court {
  border-left-color: rgba(255, 207, 90, 0.72);
}

.booking-card.status-released,
.booking-card.status-transferred {
  border-left-color: rgba(40, 209, 124, 0.72);
}

.booking-card.status-voided {
  border-left-color: rgba(239, 78, 99, 0.72);
}

.booking-card-head,
.booking-status-buttons,
.booking-action-panel {
  display: grid;
  gap: 10px;
}

.booking-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.booking-card-head h3,
.booking-card-head p,
.booking-summary p {
  margin: 0;
}

.booking-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.booking-meta-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.booking-meta-grid div:first-child {
  border-left: 0;
}

.booking-meta-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-meta-grid strong,
.booking-summary {
  overflow-wrap: anywhere;
}

.booking-summary {
  display: grid;
  gap: 6px;
  color: rgba(245, 249, 249, 0.84);
  font-size: 13px;
}

.booking-action-panel {
  grid-template-columns: minmax(120px, 0.45fr) minmax(100px, 0.25fr) minmax(180px, 1fr);
  align-items: end;
}

.booking-note-field {
  grid-column: auto;
}

.booking-status-buttons {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.booking-status-buttons button {
  min-height: 42px;
}

@media (max-width: 760px) {
  .booking-card-head,
  .booking-action-panel {
    grid-template-columns: 1fr;
  }

  .booking-status-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-card-list.compact {
    grid-template-columns: 1fr;
  }
}

.warrant-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.warrant-button-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.warrant-button,
.warrant-file,
.fire-rig-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.warrant-button {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}

.warrant-button:hover {
  border-color: rgba(239, 78, 99, 0.42);
  background: rgba(239, 78, 99, 0.1);
}

.warrant-button.previous {
  opacity: 0.78;
}

.warrant-button span,
.warrant-button small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.warrant-file,
.fire-rig-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.warrant-detail-modal {
  width: min(700px, 100%);
}

.fire-rig-panel {
  margin-bottom: 12px;
  border-color: rgba(255, 107, 74, 0.2);
  background:
    linear-gradient(180deg, rgba(34, 21, 18, 0.9), rgba(13, 17, 19, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 107, 74, 0.04) 0 1px, transparent 1px 52px);
}

.fire-workspace .mdt-stat-strip {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-color: rgba(255, 107, 74, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 107, 74, 0.08), rgba(255, 177, 90, 0.035)),
    rgba(8, 12, 13, 0.9);
}

.fire-workspace .mdt-stat-strip .metric {
  flex: 1 1 0;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
}

.fire-workspace .mdt-stat-strip .metric:last-child {
  border-right: 0;
}

.fire-workspace .mdt-topbar {
  border-color: rgba(255, 107, 74, 0.18);
  background:
    linear-gradient(145deg, rgba(18, 19, 20, 0.94), rgba(9, 12, 14, 0.96)),
    linear-gradient(90deg, rgba(255, 107, 74, 0.08), rgba(255, 177, 90, 0.035));
}

.fire-workspace .mdt-topbar h1 {
  font-size: clamp(26px, 6vw, 46px);
  line-height: 1.02;
}

.fire-workspace .mdt-top-actions .pill {
  min-height: 42px;
  padding-inline: 12px;
}

.fire-workspace .fire-main {
  display: grid;
  gap: 12px;
}

.fire-workspace .fire-rig-panel {
  max-height: none;
}

.fire-workspace .fire-rig-command-head {
  align-items: center;
}

.fire-workspace .fire-board-table {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 10px;
}

.fire-workspace .fire-board-header {
  display: none;
}

.fire-workspace .fire-board-row {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 220, 0.08);
  border-radius: 10px;
  padding: 12px 12px 12px 16px;
  background:
    linear-gradient(145deg, rgba(43, 24, 22, 0.9), rgba(13, 16, 18, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.fire-workspace .fire-board-row:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(35, 24, 23, 0.92), rgba(12, 16, 18, 0.97));
}

.fire-workspace .fire-board-row:hover {
  transform: translateY(-1px);
}

.fire-workspace .fire-unit-cell {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
}

.fire-workspace .fire-unit-cell strong {
  font-size: 18px;
}

.fire-workspace .fire-board-field > span,
.fire-workspace .fire-read-cell[data-label]::before {
  display: block;
}

.fire-workspace .fire-read-cell[data-label]::before {
  content: attr(data-label);
  margin-bottom: 3px;
  color: rgba(255, 231, 220, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fire-workspace .fire-board-field select,
.fire-workspace .fire-board-field input {
  min-height: 42px;
}

.fire-workspace .fire-board-row button {
  min-height: 42px;
}

.fire-command-board {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 107, 74, 0.24);
  background:
    linear-gradient(145deg, rgba(31, 15, 14, 0.94), rgba(9, 14, 16, 0.96)),
    radial-gradient(circle at 94% 8%, rgba(255, 107, 74, 0.14), transparent 30%);
}

.fire-rig-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 107, 74, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 107, 74, 0.12), rgba(255, 177, 90, 0.045) 48%, rgba(255, 255, 255, 0.02));
}

.fire-rig-command-head h2,
.fire-rig-command-head p {
  margin: 0;
}

.fire-rig-command-head p:not(.eyebrow) {
  margin-top: 4px;
  color: rgba(255, 231, 220, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.fire-board-table {
  display: grid;
  padding: 12px;
}

.fire-board-header,
.fire-board-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(220px, 1.35fr) minmax(140px, 0.75fr) minmax(132px, 0.65fr) minmax(190px, 1fr) minmax(82px, auto);
  gap: 8px;
  align-items: center;
}

.fire-board-header {
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 231, 220, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fire-board-row {
  position: relative;
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, 0.028);
  transition: background 160ms ease, transform 160ms ease;
}

.fire-board-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

.fire-board-row:hover {
  transform: translateX(2px);
  background: rgba(255, 107, 74, 0.075);
}

.fire-board-row::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--amber);
}

.fire-board-row.status-assigned::before {
  background: var(--green);
}

.fire-board-row.status-out_of_service::before {
  background: var(--red);
}

.fire-unit-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fire-unit-cell span {
  width: max-content;
  border: 1px solid rgba(255, 177, 90, 0.24);
  border-radius: 6px;
  padding: 4px 7px;
  color: #ffe7c2;
  background: rgba(255, 177, 90, 0.08);
  font-size: 11px;
  font-weight: 950;
}

.fire-unit-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff7f0;
}

.fire-board-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fire-board-field > span {
  display: none;
  color: rgba(255, 231, 220, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fire-board-field select,
.fire-board-field input {
  min-height: 36px;
  width: 100%;
  border-radius: 6px;
  background: rgba(8, 11, 12, 0.65);
}

.fire-board-row button {
  min-height: 36px;
  border-radius: 6px;
}

.fire-read-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 231, 220, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.fire-settings-screen {
  display: grid;
  gap: 12px;
}

.fire-settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 107, 74, 0.18);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(40, 20, 18, 0.92), rgba(14, 18, 20, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 177, 90, 0.035) 0 1px, transparent 1px 48px);
  box-shadow: inset 0 0 28px rgba(255, 107, 74, 0.04);
}

.fire-settings-hero h3,
.fire-settings-hero p {
  margin: 0;
}

.fire-settings-hero p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(255, 231, 220, 0.72);
  font-size: 13px;
}

.fire-hero-status {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 170px;
  border: 1px solid rgba(255, 177, 90, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 177, 90, 0.08);
}

.fire-hero-status strong {
  color: #ffe7c2;
  text-transform: uppercase;
  font-size: 12px;
}

.fire-hero-status small {
  color: rgba(255, 231, 220, 0.7);
  font-weight: 800;
}

.fire-hero-pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(40, 209, 124, 0.75);
  animation: pulse 1.8s ease-in-out infinite;
}

.fire-command-grid {
  margin-bottom: 2px;
}

.fire-settings-screen .fire-settings-hero,
.fire-settings-screen .fire-rig-command-head {
  align-items: stretch;
  flex-direction: column;
}

.fire-settings-screen .fire-hero-status {
  justify-items: start;
  min-width: 0;
}

.fire-settings-screen .fire-command-board {
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 177, 90, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.fire-settings-screen .fire-rig-command-head {
  gap: 8px;
  padding: 14px;
}

.fire-settings-screen .fire-rig-command-head .pill {
  align-self: flex-start;
}

.fire-settings-screen .fire-board-table {
  gap: 10px;
  padding: 10px;
  overflow: visible;
}

.fire-settings-screen .fire-board-header {
  display: none;
}

.fire-settings-screen .fire-board-row {
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 220, 0.08);
  border-radius: 10px;
  padding: 12px 12px 12px 16px;
  background:
    linear-gradient(145deg, rgba(39, 24, 22, 0.94), rgba(13, 16, 18, 0.97)),
    radial-gradient(circle at 94% 0%, rgba(255, 177, 90, 0.12), transparent 34%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  animation: fireAssignmentIn 220ms ease both;
}

.fire-settings-screen .fire-board-row:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(43, 26, 22, 0.95), rgba(12, 16, 18, 0.97)),
    radial-gradient(circle at 94% 0%, rgba(255, 177, 90, 0.14), transparent 34%);
}

.fire-settings-screen .fire-board-row:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(52, 29, 23, 0.96), rgba(13, 18, 19, 0.98)),
    radial-gradient(circle at 94% 0%, rgba(255, 177, 90, 0.16), transparent 34%);
}

.fire-settings-screen .fire-unit-cell {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 10px;
}

.fire-settings-screen .fire-unit-cell strong {
  font-size: 17px;
}

.fire-settings-screen .fire-board-field {
  gap: 6px;
}

.fire-settings-screen .fire-board-field > span,
.fire-settings-screen .fire-read-cell[data-label]::before {
  display: block;
}

.fire-settings-screen .fire-read-cell[data-label]::before {
  content: attr(data-label);
  margin-bottom: 4px;
  color: rgba(255, 231, 220, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fire-settings-screen .fire-board-field select,
.fire-settings-screen .fire-board-field input {
  min-height: 44px;
  border-radius: 8px;
  padding-inline: 12px;
}

.fire-settings-screen .fire-board-row button {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
}

@keyframes fireAssignmentIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.danger-zone {
  border-color: rgba(239, 78, 99, 0.32);
  background:
    linear-gradient(145deg, rgba(74, 20, 28, 0.36), rgba(255, 255, 255, 0.035));
}

.danger-zone p {
  margin-bottom: 0;
}

.cid-tools {
  display: grid;
  gap: 12px;
}

.cid-command-center {
  display: grid;
  gap: 12px;
}

.cid-command-hero {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(40, 209, 124, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(40, 209, 124, 0.14), rgba(126, 231, 255, 0.055)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 36px),
    rgba(5, 13, 13, 0.92);
  box-shadow: inset 0 0 32px rgba(40, 209, 124, 0.08);
}

.cid-command-hero h2,
.cid-command-hero p {
  margin: 0;
}

.cid-command-hero p:not(.eyebrow) {
  margin-top: 6px;
  color: rgba(217, 255, 241, 0.74);
  font-size: 13px;
}

.cid-command-pulse {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  border: 1px solid rgba(239, 78, 99, 0.34);
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(239, 78, 99, 0.09);
  color: #ffe5e9;
  font-size: 12px;
  text-transform: uppercase;
}

.cid-command-pulse span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(239, 78, 99, 0.78);
  animation: pulse 1.6s ease-in-out infinite;
}

.cid-command-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.cid-command-actions button,
.cid-mini-case,
.cid-side-link {
  border: 1px solid rgba(126, 231, 255, 0.12);
  color: var(--ink);
  text-align: left;
}

.cid-command-actions button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(126, 231, 255, 0.07), rgba(40, 209, 124, 0.045));
}

.cid-command-actions button:hover,
.cid-mini-case:hover,
.cid-side-link:hover {
  border-color: rgba(40, 209, 124, 0.48);
  background: rgba(40, 209, 124, 0.1);
}

.cid-command-actions span,
.cid-mini-case small,
.cid-side-link span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.cid-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cid-command-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 280px;
  border: 1px solid rgba(126, 231, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(13, 20, 22, 0.94), rgba(7, 12, 13, 0.96)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.025) 0 1px, transparent 1px 46px);
}

.cid-command-card.priority {
  border-color: rgba(239, 78, 99, 0.2);
}

.cid-command-card h3 {
  margin: 0;
}

.cid-mini-list,
.cid-feed-list {
  display: grid;
  gap: 8px;
}

.cid-mini-case {
  display: grid;
  gap: 3px;
  min-height: 72px;
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.cid-mini-case span {
  color: #8fffd0;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.cid-mini-case.warrant span {
  color: #ffb2be;
}

.cid-mini-case.ia span {
  color: #ffe2a3;
}

.cid-feed-list {
  max-height: 460px;
  overflow: auto;
  scrollbar-width: thin;
}

.cid-feed-list article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.cid-feed-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cid-feed-list small {
  color: var(--muted);
}

.cid-side-panel {
  background:
    linear-gradient(180deg, rgba(10, 19, 17, 0.94), rgba(8, 12, 13, 0.94));
}

.cid-side-link {
  display: grid;
  gap: 2px;
  width: 100%;
  border-radius: 6px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.cid-side-link.danger-link {
  border-color: rgba(239, 78, 99, 0.16);
}

.cid-intake-board {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(126, 231, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(12, 18, 21, 0.96), rgba(19, 29, 30, 0.9)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.035) 0 1px, transparent 1px 42px);
  box-shadow: inset 0 0 28px rgba(40, 209, 124, 0.045), 0 18px 38px rgba(0, 0, 0, 0.22);
}

.cid-intake-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.cid-intake-head h2,
.cid-intake-head p {
  margin: 0;
}

.cid-intake-head p:not(.eyebrow) {
  margin-top: 4px;
  color: rgba(196, 236, 241, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.cid-intake-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  border: 1px solid rgba(40, 209, 124, 0.3);
  border-radius: 999px;
  padding: 8px 10px;
  color: #bcffe4;
  background: rgba(40, 209, 124, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cid-intake-signal span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(40, 209, 124, 0.8);
  animation: pulse 1.8s ease-in-out infinite;
}

.cid-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(170px, 0.7fr) minmax(150px, 0.55fr);
  gap: 10px;
}

.cid-field-wide {
  grid-column: span 2;
}

.cid-summary-field textarea {
  min-height: 260px;
  resize: vertical;
  line-height: 1.45;
}

.cid-intake-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
  gap: 12px;
  align-items: stretch;
}

.cid-intake-actions > div {
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.cid-intake-actions span {
  color: rgba(196, 236, 241, 0.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.cid-intake-actions strong {
  overflow-wrap: anywhere;
}

.cad-report-console {
  display: grid;
  gap: 14px;
}

.cad-report-board {
  border-color: rgba(247, 183, 51, 0.2);
  background:
    linear-gradient(145deg, rgba(13, 18, 21, 0.97), rgba(19, 24, 28, 0.92)),
    repeating-linear-gradient(90deg, rgba(247, 183, 51, 0.028) 0 1px, transparent 1px 44px);
  box-shadow: inset 0 0 30px rgba(247, 183, 51, 0.04), 0 18px 38px rgba(0, 0, 0, 0.24);
}

.cad-report-signal {
  border-color: rgba(247, 183, 51, 0.35);
  color: #ffe6ad;
  background: rgba(247, 183, 51, 0.08);
}

.cad-report-signal span {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(247, 183, 51, 0.8);
}

.cad-report-call-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cad-report-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.55fr) minmax(160px, 0.55fr);
}

.cad-narrative-field textarea {
  min-height: 260px;
}

.cad-report-text-grid textarea {
  min-height: 150px;
  resize: vertical;
}

.cad-report-history {
  display: grid;
  gap: 10px;
}

.cad-report-list {
  display: grid;
  gap: 10px;
}

.cad-report-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 231, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(16, 22, 26, 0.95), rgba(8, 12, 14, 0.97)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.02) 0 1px, transparent 1px 48px);
}

.cad-report-card.unfounded {
  border-color: rgba(247, 183, 51, 0.34);
  box-shadow: inset 3px 0 0 rgba(247, 183, 51, 0.76);
}

.cad-report-card h3,
.cad-report-card p {
  margin: 0;
}

.cad-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cad-report-meta span,
.cad-report-subject {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(228, 246, 248, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.cad-report-subject {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
}

.cad-report-subject strong,
.cad-report-note strong {
  color: #8fffd0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.cad-report-narrative,
.cad-report-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.cad-report-note {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 9px;
}

.cid-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(92, 156, 255, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(20, 27, 34, 0.9), rgba(13, 17, 19, 0.92)),
    repeating-linear-gradient(90deg, rgba(92, 156, 255, 0.035) 0 1px, transparent 1px 54px);
  padding: 14px;
}

.cid-card h3 {
  margin: 0;
}

.cid-case-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cid-case-rail {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  max-height: 68vh;
  overflow: auto;
  scrollbar-width: thin;
}

.cid-case-tab {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(92, 156, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cid-case-tab:hover,
.cid-case-tab.active {
  transform: translateY(-1px);
  border-color: rgba(40, 209, 124, 0.48);
  background: linear-gradient(135deg, rgba(40, 209, 124, 0.16), rgba(92, 156, 255, 0.08));
}

.cid-case-tab strong,
.cid-case-tab span,
.cid-case-tab small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cid-case-tab-code {
  color: #8fffd0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cid-case-tab small {
  color: var(--muted);
  font-weight: 800;
}

.cid-case-folder {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(92, 156, 255, 0.2);
  border-radius: 6px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(18, 24, 31, 0.94), rgba(8, 12, 15, 0.96)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.035) 0 1px, transparent 1px 58px);
}

.cid-folder-head,
.cid-summary,
.cid-folder-panel,
.cid-linked-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.cid-folder-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.cid-folder-head h2,
.cid-folder-panel h3 {
  margin: 0;
}

.cid-folder-grid,
.cid-tool-strip,
.cid-folder-columns {
  display: grid;
  gap: 10px;
}

.cid-folder-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cid-summary,
.cid-folder-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.cid-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.cid-tool-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cid-tool-strip button {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(40, 209, 124, 0.18);
  border-radius: 6px;
  background: rgba(40, 209, 124, 0.075);
  color: var(--ink);
  text-align: left;
}

.cid-tool-strip button:hover {
  border-color: rgba(40, 209, 124, 0.48);
  background: rgba(40, 209, 124, 0.13);
}

.cid-tool-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.cid-folder-columns {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cid-note-list,
.cid-linked-list {
  display: grid;
  gap: 8px;
}

.cid-note-list {
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}

.cid-linked-item {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.cid-linked-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ia-folder-workspace {
  align-items: stretch;
}

.ia-case-rail {
  align-content: start;
}

.ia-rail-label {
  margin-top: 3px;
  color: rgba(255, 226, 163, 0.68);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ia-rail-label.previous {
  margin-top: 14px;
}

.ia-case-tab {
  border-color: rgba(255, 226, 163, 0.16);
}

.ia-case-tab.active {
  border-color: rgba(255, 226, 163, 0.48);
  background: linear-gradient(135deg, rgba(255, 226, 163, 0.16), rgba(92, 156, 255, 0.08));
}

.ia-case-tab.previous {
  opacity: 0.82;
}

.ia-case-folder {
  border-color: rgba(255, 226, 163, 0.2);
}

.ia-summary-file p {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  scrollbar-width: thin;
}

.ia-tool-strip button {
  border-color: rgba(255, 226, 163, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 226, 163, 0.1), rgba(92, 156, 255, 0.045));
}

.ia-tool-strip button:hover {
  border-color: rgba(255, 226, 163, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 226, 163, 0.16), rgba(92, 156, 255, 0.07));
}

.ia-chat-form {
  border-top: 1px solid rgba(255, 226, 163, 0.12);
  padding-top: 10px;
}

.ia-chat-form textarea {
  min-height: 92px;
  resize: vertical;
}

.ia-file-log {
  border-color: rgba(255, 226, 163, 0.16);
  background:
    linear-gradient(180deg, rgba(22, 25, 28, 0.9), rgba(10, 13, 15, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 226, 163, 0.025) 0 1px, transparent 1px 48px);
}

.ia-chat-list {
  display: grid;
  gap: 9px;
  max-height: 440px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.ia-chat-entry {
  display: grid;
  gap: 6px;
  width: min(780px, 94%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  animation: modalLift 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ia-chat-entry.mine {
  justify-self: end;
  border-color: rgba(40, 209, 124, 0.22);
  background:
    linear-gradient(145deg, rgba(40, 209, 124, 0.12), rgba(255, 226, 163, 0.055));
}

.ia-chat-entry p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.86);
}

.ia-chat-entry small {
  color: rgba(255, 226, 163, 0.62);
  font-weight: 800;
}

.ia-review-panel .row strong {
  max-width: 60%;
  overflow-wrap: anywhere;
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  animation: modalFade 180ms ease both;
}

.mdt-modal {
  width: min(880px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border-color: rgba(126, 231, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 24, 28, 0.97), rgba(8, 12, 14, 0.98)),
    repeating-linear-gradient(90deg, rgba(126, 231, 255, 0.025) 0 1px, transparent 1px 56px);
  animation: modalLift 210ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.mdt-modal-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.mdt-profile-modal {
  width: min(720px, 100%);
}

.mdt-license-file {
  border-color: rgba(239, 78, 99, 0.16);
}

.notice-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.mdt-notice {
  width: min(620px, 100%);
  border-color: rgba(247, 183, 51, 0.34);
  background:
    linear-gradient(180deg, rgba(30, 26, 17, 0.98), rgba(13, 17, 19, 0.98)),
    repeating-linear-gradient(90deg, rgba(247, 183, 51, 0.06) 0 1px, transparent 1px 42px);
}

.force-code-backdrop {
  z-index: 80;
  background: rgba(0, 0, 0, 0.76);
}

.force-code-modal {
  width: min(520px, calc(100vw - 24px));
  border-color: rgba(92, 156, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(18, 24, 31, 0.98), rgba(8, 12, 15, 0.99)),
    repeating-linear-gradient(90deg, rgba(92, 156, 255, 0.045) 0 1px, transparent 1px 42px);
}

.callsign-required-modal {
  border-color: rgba(40, 209, 124, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), inset 3px 0 0 rgba(40, 209, 124, 0.72);
}

.force-code-modal h2,
.force-code-modal p {
  margin: 0;
}

.car-entry-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.notice-body {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.check-row input {
  width: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(360px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(12, 16, 18, 0.88);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.action-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
  animation: drawerFade 160ms ease both;
}

.action-confirm-modal {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(40, 209, 124, 0.24);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(11, 18, 20, 0.98), rgba(5, 9, 10, 0.99)),
    repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.04) 0 1px, transparent 1px 54px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.action-confirm-modal h2,
.action-confirm-modal p {
  margin: 0;
}

.action-confirm-modal p:not(.eyebrow) {
  color: rgba(226, 255, 249, 0.74);
  font-size: 13px;
  line-height: 1.4;
}

.digital-signature {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(126, 231, 255, 0.14);
  border-left: 3px solid rgba(40, 209, 124, 0.7);
  border-radius: 7px;
  padding: 11px;
  background: rgba(0, 0, 0, 0.2);
}

.digital-signature span {
  color: rgba(170, 225, 213, 0.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.digital-signature strong {
  color: #8fffd0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.action-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-confirm-actions button {
  min-height: 44px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 560px) {
  .business-license-folders {
    grid-template-columns: 1fr;
  }

  .business-license-folder[open] {
    grid-column: auto;
  }

  #app {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .phone-shell::before {
    display: none;
  }

  .app-grid {
    gap: 18px 8px;
  }

  .icon-tile {
    width: 58px;
    height: 58px;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid,
  .profile-grid.compact {
    grid-template-columns: 1fr;
  }

  .admin-account-search {
    grid-template-columns: 1fr;
  }

  .admin-search-meta {
    justify-items: stretch;
  }

  .referral-copy-grid {
    grid-template-columns: 1fr;
  }

  .business-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .getting-started-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .getting-started-hero .secondary {
    width: 100%;
  }

  .bank-hero,
  .treasury-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .bank-hero h3,
  .treasury-hero h3 {
    font-size: 30px;
  }

  .treasury-request-metrics,
  .treasury-bank-form .grid-2 {
    grid-template-columns: 1fr;
  }

  .treasury-proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .treasury-ledger-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-form .grid-2,
  .business-card .grid-2,
  .business-meta {
    grid-template-columns: 1fr;
  }

  .business-folder-strip,
  .admin-application-strip,
  .admin-application-actions {
    grid-template-columns: 1fr 1fr;
  }

  .admin-application-summary-main,
  .indeed-hero,
  .ticket-command-strip {
    grid-template-columns: 1fr;
  }

  .admin-application-summary-actions {
    justify-content: flex-start;
  }

  .court-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .jobs-hero,
  .department-posting-head,
  .department-application-status {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .jobs-hero-metrics,
  .department-meta,
  .law-application-grid {
    grid-template-columns: 1fr;
  }

  .application-form-head {
    align-items: stretch;
    flex-direction: column;
  }

  .job-tabs {
    grid-auto-columns: minmax(136px, 72%);
  }
}

@media (max-width: 860px) {
  .mdt-stat-strip.cid-stat-strip,
  .cid-command-actions,
  .cid-command-grid {
    grid-template-columns: 1fr;
  }

  .cid-command-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .fire-settings-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .fire-board-header {
    display: none;
  }

  .fire-board-row {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px 12px 12px 16px;
  }

  .fire-board-field > span,
  .fire-read-cell::before {
    display: block;
  }

  .fire-read-cell::before {
    content: attr(data-label);
    margin-bottom: 3px;
    color: rgba(255, 231, 220, 0.58);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .cid-command-pulse {
    justify-content: center;
    width: 100%;
  }

  .cid-intake-head,
  .cid-intake-actions {
    grid-template-columns: 1fr;
  }

  .cid-intake-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cid-intake-signal {
    justify-content: center;
    width: 100%;
  }

  .cid-intake-grid {
    grid-template-columns: 1fr;
  }

  .cad-report-call-strip,
  .cad-report-grid {
    grid-template-columns: 1fr;
  }

  .cid-field-wide {
    grid-column: auto;
  }

  .cid-summary-field textarea {
    min-height: 320px;
  }

  .cid-case-workspace {
    grid-template-columns: 1fr;
  }

  .cid-case-rail {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 78%);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 4px;
  }

  .cid-folder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cid-folder-grid,
  .cid-tool-strip,
  .cid-folder-columns {
    grid-template-columns: 1fr;
  }

  .cid-case-tab {
    min-height: 118px;
  }
}

@media (max-width: 980px) {
  .business-workspace {
    width: 100%;
    height: 100svh;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 0;
  }

  .business-workspace-sidebar {
    gap: 10px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(141, 101, 255, 0.2);
  }

  .business-workspace-sidebar .dev-brand,
  .business-workspace-sidebar .dev-nav-label,
  .business-workspace-sidebar-note {
    display: none;
  }

  .business-workspace-sidebar nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }

  .business-workspace-sidebar nav button {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .business-workspace-topbar {
    min-height: 72px;
    padding: 12px 16px;
  }

  .business-workspace-content {
    padding: 16px;
  }

  .mdt-workspace {
    height: 100dvh;
    min-height: 100svh;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 10px max(86px, calc(env(safe-area-inset-bottom) + 76px));
    overflow: hidden;
    animation: none;
    transform: none;
  }

  .mdt-quick-rail {
    display: grid;
    top: auto;
    right: 10px;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transform: none;
  }

  .mdt-quick-rail button {
    width: 100%;
    min-height: 54px;
    grid-auto-flow: column;
    justify-content: center;
  }

  .mdt-quick-rail button:hover {
    transform: translateY(-2px);
  }

  .dispatch-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .dispatch-queue,
  .dispatch-main,
  .dispatch-tools {
    overflow: visible;
  }

  .dispatch-call-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 80%);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dispatch-call-grid,
  .dispatch-control-form,
  .dispatch-attach-form {
    grid-template-columns: 1fr;
  }

  .dispatch-action-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dispatch-past-call-meta {
    grid-template-columns: 1fr;
  }

  .dispatch-call-hero,
  .dispatch-unit-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dispatch-unit-form {
    justify-content: stretch;
  }

  .dispatch-unit-form > * {
    width: 100%;
  }

  .mdt-mobile-action {
    display: inline-flex;
  }

  .mdt-mobile-drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 340;
    display: block;
    pointer-events: none;
  }

  .mdt-mobile-drawer-scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(2px);
    pointer-events: auto;
  }

  .mdt-mobile-drawer {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1;
    width: min(360px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(40, 209, 124, 0.24);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(9, 16, 18, 0.99), rgba(4, 8, 9, 0.99)),
      repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.045) 0 1px, transparent 1px 46px);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.68);
    pointer-events: auto;
  }

  .mdt-mobile-drawer.menu {
    left: 8px;
    animation: mobileDrawerLeft 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .mdt-mobile-drawer.watch {
    right: 8px;
    animation: mobileDrawerRight 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .mdt-mobile-drawer .mdt-side-panel {
    border: 0;
    border-bottom: 1px solid rgba(126, 231, 255, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mdt-mobile-drawer > button,
  .mdt-mobile-drawer .mdt-nav button {
    width: 100%;
  }

  .mdt-mobile-drawer button[data-mdt-tab] {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid rgba(126, 231, 255, 0.12);
    border-radius: 8px;
    padding: 0 12px 0 9px;
    color: rgba(226, 255, 249, 0.76);
    background: rgba(126, 231, 255, 0.045);
    text-align: left;
  }

  .mdt-mobile-drawer button[data-mdt-tab].active {
    color: #03100d;
    border-color: transparent;
    background: linear-gradient(90deg, #28d17c, #7ee7ff);
  }

  .mdt-mobile-drawer button[data-mdt-tab] span {
    color: inherit;
    font-size: 10px;
    font-weight: 950;
    opacity: 0.72;
  }

  .mdt-mobile-drawer button[data-mdt-tab] strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .mdt-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    overflow: visible;
    min-height: 0;
  }

  .mdt-redesign .mdt-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 8px;
    min-height: 0;
    overflow: visible;
  }

  .mdt-main {
    overflow: auto;
    padding: 12px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mdt-redesign .mdt-main {
    padding: 12px;
  }

  .mdt-layout > .mdt-nav,
  .mdt-layout > .mdt-side,
  .mdt-layout > .mdt-drawer-backdrop {
    display: none !important;
  }

  .mdt-nav,
  .mdt-side {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 260;
    width: min(360px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(40, 209, 124, 0.2);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(14, 21, 24, 0.98), rgba(7, 11, 13, 0.98)),
      repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.045) 0 1px, transparent 1px 46px);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }

  .mdt-nav {
    left: 8px;
    transform: translateX(calc(-100% - 18px));
  }

  .mdt-nav.open {
    transform: translate3d(0, 0, 0);
  }

  .mdt-side {
    right: 8px;
    transform: translateX(calc(100% + 18px));
  }

  .mdt-side.open {
    transform: translate3d(0, 0, 0);
  }

  .mdt-redesign .mdt-nav,
  .mdt-redesign .mdt-side {
    z-index: 260;
    border-right: 1px solid rgba(40, 209, 124, 0.2);
    border-left: 1px solid rgba(40, 209, 124, 0.2);
    background:
      linear-gradient(180deg, rgba(9, 16, 18, 0.98), rgba(4, 8, 9, 0.98)),
      repeating-linear-gradient(90deg, rgba(40, 209, 124, 0.045) 0 1px, transparent 1px 46px);
  }

  .mdt-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    color: #ddfff1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mdt-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: block;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    animation: drawerFade 180ms ease both;
  }

  .mdt-nav button {
    width: 100%;
    min-height: 48px;
    text-align: left;
  }

  .mdt-workspace input,
  .mdt-workspace select,
  .mdt-workspace textarea {
    font-size: 16px;
  }

  .mdt-return-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .business-workspace-topbar {
    align-items: flex-start;
  }

  .business-workspace-topbar .eyebrow {
    display: none;
  }

  .business-workspace-actions button {
    min-width: 42px;
    padding: 0 10px;
    font-size: 0;
  }

  .business-workspace-actions button::after {
    font-size: 18px;
  }

  .business-workspace-actions [data-refresh-business-workspace]::after {
    content: "↻";
  }

  .business-workspace-actions [data-close-business-workspace]::after {
    content: "×";
  }

  .mdt-workspace {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    max-width: 100vw;
    padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .mdt-redesign {
    gap: 7px;
  }

  .mdt-redesign::before {
    opacity: 0.18;
  }

  .mdt-quick-rail {
    display: none;
  }

  .mdt-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    width: 100%;
    padding: 8px 2px 7px;
    overflow: hidden;
  }

  .mdt-topbar .eyebrow {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .mdt-topbar h1 {
    max-width: 100%;
    font-size: clamp(25px, 8vw, 31px);
    line-height: 1;
    overflow-wrap: normal;
  }

  .mdt-top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  .mdt-top-actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .mdt-top-actions::-webkit-scrollbar {
    display: none;
  }

  .mdt-searchbar,
  .mdt-section-head {
    width: 100%;
  }

  .mdt-searchbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
  }

  .mdt-searchbar input,
  .mdt-searchbar button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .mdt-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mdt-workspace .grid-2 {
    grid-template-columns: 1fr;
  }

  .mdt-stat-strip.cid-stat-strip,
  .mdt-stat-strip.leo-stat-strip,
  .mdt-stat-strip.dispatch-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    scrollbar-width: none;
  }

  .mdt-stat-strip .metric {
    min-width: 0;
    min-height: 52px;
    padding: 8px;
  }

  .mdt-redesign .mdt-stat-strip .metric,
  .mdt-redesign .metric {
    min-height: 52px;
    border-left: 0;
    border-top: 1px solid rgba(126, 231, 255, 0.08);
    padding: 8px;
  }

  .mdt-redesign .mdt-stat-strip .metric:nth-child(-n + 2) {
    border-top: 0;
  }

  .mdt-stat-strip::-webkit-scrollbar {
    display: none;
  }

  .mdt-stat-strip .metric span {
    font-size: 9px;
    line-height: 1.15;
  }

  .mdt-stat-strip .metric strong {
    font-size: 22px;
    line-height: 1;
  }

  .mdt-status-line {
    gap: 5px;
    margin-top: 6px;
    overflow: hidden;
  }

  .mdt-status-line span {
    min-height: 20px;
    max-width: 100%;
    padding-inline: 7px;
    font-size: 8.5px;
    white-space: nowrap;
  }

  .mdt-redesign .mdt-layout {
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
  }

  .mdt-redesign .mdt-main,
  .mdt-main {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 10px;
  }

  .mdt-return,
  .mdt-form,
  .mdt-results,
  .mdt-code-grid,
  .mdt-return-grid,
  .mdt-subsection,
  .empty {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mdt-redesign .ticket-command-strip,
  .mdt-redesign .cid-command-actions {
    grid-template-columns: 1fr;
  }

  .traffic-settings-grid {
    grid-template-columns: 1fr;
  }

  .traffic-settings-hero {
    min-height: 220px;
  }

  .traffic-stop-modal {
    width: min(100%, calc(100vw - 14px));
    max-height: calc(100dvh - 18px);
    padding: 10px;
  }

  .traffic-ncic-form,
  .traffic-attached-driver,
  .traffic-outcome-grid,
  .traffic-ncic-meta {
    grid-template-columns: 1fr;
  }

  .traffic-ncic-results {
    max-height: 260px;
  }

  .traffic-driver-flags {
    justify-content: flex-start;
  }

  .traffic-outcome-grid button {
    min-height: 82px;
    border-left: 0;
    border-top: 1px solid rgba(126, 231, 255, 0.12);
  }

  .traffic-outcome-grid button:first-child {
    border-top: 0;
  }

  .traffic-arrest-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .traffic-step-list {
    grid-template-columns: 1fr;
    max-height: 250px;
    overflow: auto;
  }

  .traffic-step-list button {
    min-height: 48px;
    border-left: 0;
    border-top: 1px solid rgba(126, 231, 255, 0.1);
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
  }

  .traffic-step-list button:first-child {
    border-top: 0;
  }

  .traffic-stop-actions {
    grid-template-columns: 1fr;
  }

  .mdt-redesign .ticket-command-strip button,
  .mdt-redesign .cid-command-actions button {
    border-left: 0;
    border-top: 1px solid rgba(126, 231, 255, 0.1);
  }

  .mdt-redesign .ticket-command-strip button:first-child,
  .mdt-redesign .cid-command-actions button:first-child {
    border-top: 0;
  }

  .mdt-return-grid {
    grid-template-columns: 1fr;
  }

  .bolo-hero,
  .bolo-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .bolo-grid,
  .bolo-meta-grid,
  .bolo-recent-list article {
    grid-template-columns: 1fr;
  }

  .bolo-signal {
    justify-items: start;
    min-width: 0;
  }

  .mdt-main {
    padding: 10px;
  }

  .mdt-modal {
    width: min(100%, calc(100vw - 18px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-backdrop {
    place-items: end center;
    padding: max(10px, env(safe-area-inset-top)) 9px max(10px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
  }

  .modal-backdrop .mdt-modal {
    position: relative;
    z-index: 270;
    width: 100%;
    max-width: calc(100vw - 18px);
    max-height: min(82dvh, calc(100dvh - 24px));
    border-radius: 16px;
  }

  .action-confirm-backdrop {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
  }

  .action-confirm-modal {
    position: relative;
    z-index: 275;
    width: calc(100vw - 20px);
    max-width: none;
    max-height: min(82dvh, calc(100dvh - 24px));
    overflow: auto;
    border-radius: 16px;
    padding: 14px;
  }

  .action-confirm-actions {
    grid-template-columns: 1fr;
  }

  .mdt-searchbar button,
  .mdt-form button,
  .mdt-section-head button {
    width: 100%;
  }

  .dispatch-action-buttons,
  .dispatch-action-buttons.priority-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .fire-workspace {
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  .fire-workspace .mdt-topbar {
    padding: 12px;
  }

  .fire-workspace .mdt-topbar h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .fire-workspace .mdt-top-actions {
    grid-template-columns: 1fr 1fr;
  }

  .fire-workspace .mdt-top-actions .pill {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .fire-workspace .mdt-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
  }

  .fire-workspace .mdt-stat-strip .metric {
    min-height: 58px;
    padding: 8px;
  }

  .fire-workspace .fire-rig-command-head {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .fire-workspace .fire-rig-command-head h2 {
    font-size: 24px;
    line-height: 1.08;
  }

  .fire-workspace .fire-board-table {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .fire-workspace .fire-board-row {
    padding: 12px 10px 12px 15px;
  }
}

@media (max-width: 430px) {
  .mdt-workspace {
    padding-inline: 6px;
  }

  .mdt-topbar {
    padding: 10px;
  }

  .mdt-topbar h1 {
    font-size: clamp(22px, 7.6vw, 30px);
  }

  .mdt-status-line {
    gap: 5px;
  }

  .mdt-status-line span {
    padding-inline: 7px;
    font-size: 8.5px;
  }

  .mdt-quick-rail {
    left: 6px;
    right: 6px;
    gap: 6px;
  }

  .mdt-quick-rail button {
    min-height: 50px;
    padding: 6px 4px;
  }

  .mdt-quick-rail svg {
    width: 18px;
    height: 18px;
  }

  .mdt-quick-rail span {
    font-size: 9px;
  }

  .mdt-redesign .mdt-layout {
    padding: 7px;
  }

  .mdt-main {
    padding: 8px;
  }

  .ticket-command-strip button {
    min-height: 58px;
  }

  .action-confirm-modal {
    padding: 14px;
  }

  .action-confirm-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes drawerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mobileDrawerLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mobileDrawerRight {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
