:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: #0c1110;
  --panel-strong: #111915;
  --panel-olive: #151b12;
  --line: #31413a;
  --line-soft: rgba(139, 156, 142, 0.24);
  --text: #edf4ef;
  --muted: #9aa79c;
  --blue: #58c7ff;
  --green: #61d494;
  --amber: #f0bd58;
  --red: #ff6d4e;
  --shadow: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.92) 0%, rgba(9, 13, 11, 0.98) 48%, #050706 100%),
    #050706;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(97, 212, 148, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 212, 148, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 74%);
}

a {
  color: inherit;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.page-topbar {
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  color: #f3fff7;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 156, 142, 0.16);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(5, 9, 8, 0.38);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 850;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(88, 199, 255, 0.52);
  background: rgba(88, 199, 255, 0.1);
}

.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.auth-level {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(97, 212, 148, 0.34);
  border-radius: 2px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links .auth-login,
.auth-logout {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  background: rgba(12, 17, 16, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-links .auth-login:hover,
.nav-links .auth-login:focus-visible,
.auth-logout:hover,
.auth-logout:focus-visible {
  border-color: var(--blue);
  background: rgba(88, 199, 255, 0.14);
}

.hero {
  min-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero-home {
  background-image:
    linear-gradient(90deg, rgba(5, 7, 6, 0.98) 0%, rgba(5, 7, 6, 0.88) 38%, rgba(5, 7, 6, 0.34) 78%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.72) 0%, rgba(5, 7, 6, 0.34) 62%, #050706 100%),
    url("/assets/night-operations-hero.png");
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: auto auto 10vh;
  padding: 72px 0 96px;
}

.portal-hero .hero-content {
  margin-bottom: 7vh;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-kicker.amber {
  color: var(--amber);
}

.card-kicker.green {
  color: var(--green);
}

.card-kicker.red {
  color: var(--red);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 5.4rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 720px;
  margin-bottom: 12px;
  color: #f1c66d;
  font-size: 1.16rem;
  font-weight: 900;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
}

.lede {
  max-width: 720px;
  color: #d3ddd6;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 28px;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  max-width: 1180px;
  margin-top: 34px;
  align-items: stretch;
}

.access-panel {
  min-height: 100%;
}

.access-panel h2 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
}

.access-actions {
  margin-top: 18px;
}

.compact-notice {
  margin-top: 14px;
  padding: 10px 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent), rgba(12, 17, 16, 0.86);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--blue);
  background: rgba(77, 163, 255, 0.14);
}

.button.primary {
  border-color: rgba(88, 199, 255, 0.72);
  background: rgba(88, 199, 255, 0.14);
}

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

.content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.page-content {
  min-height: calc(100vh - 160px);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h1,
.section-header h2 {
  margin: 6px 0 0;
}

.section-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.mission-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 0.65fr));
  max-width: 980px;
  margin-top: 30px;
  border: 1px solid rgba(88, 199, 255, 0.32);
  background: rgba(2, 5, 4, 0.48);
  box-shadow: 0 18px 52px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.dashboard-status-strip {
  max-width: none;
  margin-top: 0;
}

.mission-strip > div {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  border-right: 1px solid rgba(139, 156, 142, 0.2);
  background: rgba(8, 13, 10, 0.88);
}

.mission-strip > div:last-child {
  border-right: 0;
}

.mission-strip span:not(.status-pill) {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-strip strong {
  align-self: end;
  overflow-wrap: anywhere;
}

.card-grid,
.status-board,
.admin-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    rgba(12, 17, 16, 0.86);
  box-shadow: 0 14px 44px var(--shadow);
}

.card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 46px;
  height: 2px;
  content: "";
  background: var(--blue);
}

.link-card {
  min-height: 190px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(88, 199, 255, 0.54);
  background: rgba(14, 22, 18, 0.94);
}

.link-card h3 {
  margin: 10px 0;
}

.link-card p,
.muted {
  color: var(--muted);
}

.status-card {
  grid-column: span 2;
  border-color: rgba(88, 199, 255, 0.34);
}

.status-card h2 {
  margin: 14px 0 4px;
}

.status-overview {
  display: grid;
  gap: 18px;
  border-color: rgba(88, 199, 255, 0.38);
}

.status-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.status-overview-header h2 {
  margin: 8px 0 4px;
}

.status-pills {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.status-quick-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line-soft);
  background: rgba(139, 156, 142, 0.12);
}

.status-quick-list div {
  min-height: 88px;
  padding: 12px;
  background: rgba(5, 8, 7, 0.74);
}

.status-quick-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-quick-list dd {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.status-message-card {
  margin-top: 16px;
  border-color: rgba(240, 189, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(240, 189, 88, 0.12), transparent 54%),
    rgba(12, 17, 16, 0.88);
}

.status-message-card p {
  margin: 8px 0 0;
  color: #f4dfb6;
  font-size: 1.08rem;
  font-weight: 800;
}

.status-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.status-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

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

.status-detail-card h2 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2.1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.online {
  border-color: rgba(70, 213, 140, 0.62);
  color: var(--green);
  background: rgba(70, 213, 140, 0.1);
}

.status-pill.offline {
  border-color: rgba(224, 93, 93, 0.58);
  color: var(--red);
  background: rgba(224, 93, 93, 0.1);
}

.status-pill.stale {
  border-color: rgba(240, 189, 88, 0.64);
  color: var(--amber);
  background: rgba(240, 189, 88, 0.1);
}

.notice {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(12, 17, 16, 0.78);
}

.notice.warning {
  border-color: rgba(231, 182, 89, 0.42);
  color: #f2d595;
}

.notice.maintenance {
  max-width: 820px;
  border-color: rgba(88, 199, 255, 0.42);
  color: #c9e3ff;
}

.status-privacy-note,
.restricted-notice {
  max-width: 860px;
}

.restricted-notice {
  border-color: rgba(255, 109, 78, 0.48);
  color: #ffc2b5;
  font-weight: 900;
  text-transform: uppercase;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(240, 189, 88, 0.08), transparent 52%),
    rgba(5, 8, 7, 0.44);
}

.table-header h2 {
  margin: 6px 0 0;
  font-size: 1.35rem;
}

.table-header p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

th {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: #d7e0e7;
}

tbody tr:hover {
  background: rgba(88, 199, 255, 0.055);
}

.bft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.tactical-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(70, 213, 140, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.1), transparent 42%),
    linear-gradient(45deg, rgba(70, 213, 140, 0.08), transparent 60%),
    #08100f;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 213, 140, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 213, 140, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
}

.range-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(70, 213, 140, 0.44);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-two {
  width: 310px;
}

.ring-three {
  width: 460px;
}

.map-marker {
  position: absolute;
  width: 13px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.blue-marker {
  left: 42%;
  top: 44%;
  background: var(--blue);
  box-shadow: 0 0 24px var(--blue);
}

.amber-marker {
  left: 65%;
  top: 58%;
  background: var(--amber);
  box-shadow: 0 0 24px var(--amber);
}

.map-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(238, 244, 247, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.bft-panel h2 {
  margin-top: 14px;
}

.health-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.health-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.health-list dt {
  color: var(--muted);
  font-weight: 700;
}

.health-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.status-notes {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.1rem;
  color: #d7e0e7;
}

.status-notes li::marker {
  color: var(--amber);
}

.portal-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 5, 5, 0.94), rgba(8, 14, 13, 0.98)),
    #050807;
}

.official-login-hero {
  min-height: calc(100vh - 72px);
}

.official-login-topbar,
.login-page .topbar {
  border-bottom: 1px solid rgba(97, 212, 148, 0.22);
  background: rgba(4, 8, 7, 0.82);
  backdrop-filter: blur(12px);
}

.official-login-content {
  display: grid;
  max-width: 880px;
  gap: 12px;
  padding-bottom: 96px;
}

.official-login-card {
  max-width: 640px;
  border-color: rgba(97, 212, 148, 0.32);
  background:
    linear-gradient(180deg, rgba(97, 212, 148, 0.08), transparent 42%),
    rgba(5, 10, 10, 0.94);
}

.official-login-card h2 {
  margin-top: 6px;
}

.official-login-list {
  margin-top: 18px;
}

.official-login-main {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 150px);
}

.official-login-header {
  max-width: 900px;
}

.official-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.official-login-footer {
  border-top: 1px solid rgba(97, 212, 148, 0.18);
}

.unit-patch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.unit-patch-row img {
  width: clamp(82px, 12vw, 132px);
  aspect-ratio: 1;
  border: 1px solid rgba(139, 156, 142, 0.34);
  border-radius: 6px;
  object-fit: cover;
  background: #050807;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.ravenos-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  color: #edf7ff;
  background: #020405;
  font-family: "Courier New", ui-monospace, monospace;
}

.ravenos-shell[hidden] {
  display: none;
}

.ravenos-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 48px);
  background:
    linear-gradient(rgba(97, 212, 148, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 16%, rgba(88, 199, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #020406, #050d13 54%, #020405);
  background-size: 100% 3px, auto, auto;
}

.ravenos-screen[hidden] {
  display: none;
}

.ravenos-reflection {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 22%);
  opacity: 0.6;
  pointer-events: none;
}

.ravenos-power-core,
.ravenos-loading-panel,
.ravenos-welcome-panel,
.ravenos-login-header,
.ravenos-black-panel,
.ravenos-denied-panel {
  border: 1px solid rgba(97, 212, 148, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(88, 199, 255, 0.08), transparent 38%),
    rgba(3, 8, 10, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    0 24px 70px rgba(0, 0, 0, 0.62);
}

.ravenos-power-core {
  display: grid;
  justify-items: center;
  width: min(620px, 100%);
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
}

.ravenos-patch {
  width: clamp(104px, 18vw, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(139, 156, 142, 0.36);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56);
}

.ravenos-eyebrow {
  margin: 16px 0 6px;
  color: #61d494;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ravenos-screen h1,
.ravenos-screen h2 {
  margin: 0 0 10px;
  color: #eef7f2;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ravenos-power-button {
  min-width: 172px;
  min-height: 68px;
  margin-top: 18px;
  border: 1px solid rgba(240, 189, 88, 0.72);
  border-radius: 4px;
  color: #ffe7aa;
  background:
    linear-gradient(180deg, rgba(240, 189, 88, 0.2), rgba(240, 189, 88, 0.06)),
    #151006;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.ravenos-power-button:active,
.ravenos-system-actions button:active,
.ravenos-user-card:active {
  transform: translateY(1px);
  filter: brightness(1.16);
}

.ravenos-terminal {
  width: min(940px, 100%);
  min-height: min(560px, 78vh);
  border: 1px solid rgba(97, 212, 148, 0.32);
  padding: clamp(18px, 4vw, 34px);
  background: #010302;
  box-shadow: inset 0 0 32px rgba(97, 212, 148, 0.09);
}

.ravenos-terminal pre {
  margin: 0;
  color: #8fffbd;
  font: 900 clamp(0.88rem, 2vw, 1.12rem) / 1.75 "Courier New", ui-monospace, monospace;
  white-space: pre-wrap;
}

.ravenos-loading-panel {
  width: min(680px, 100%);
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
}

.ravenos-welcome-panel {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.ravenos-loading-bar {
  width: min(440px, 100%);
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(88, 199, 255, 0.56);
  border-radius: 99px;
  margin: 22px auto 12px;
  background: rgba(0, 0, 0, 0.42);
}

.ravenos-loading-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3d8cff, #61d494);
  transition: width 900ms ease;
}

.ravenos-login {
  align-content: center;
  gap: 18px;
}

.ravenos-login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, 100%);
  padding: clamp(16px, 3vw, 24px);
}

.ravenos-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ravenos-system-actions button,
.ravenos-system-actions .button {
  min-height: 42px;
  border: 1px solid rgba(139, 156, 142, 0.34);
  border-radius: 3px;
  padding: 9px 12px;
  color: #edf7ff;
  background: rgba(10, 17, 20, 0.94);
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.ravenos-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
}

.ravenos-user-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-height: 310px;
  border: 1px solid rgba(88, 199, 255, 0.36);
  border-radius: 7px;
  padding: clamp(18px, 3vw, 28px);
  color: #edf7ff;
  background:
    linear-gradient(180deg, rgba(88, 199, 255, 0.11), transparent 48%),
    rgba(5, 9, 12, 0.94);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.ravenos-user-card img {
  width: clamp(108px, 16vw, 168px);
  aspect-ratio: 1;
  border: 1px solid rgba(139, 156, 142, 0.34);
  border-radius: 8px;
  object-fit: cover;
}

.ravenos-user-card span,
.ravenos-user-card em {
  color: #93a79c;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.ravenos-user-card strong {
  color: #eef7f2;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.ravenos-black-card {
  border-color: rgba(240, 189, 88, 0.46);
  background:
    linear-gradient(180deg, rgba(240, 189, 88, 0.12), transparent 48%),
    rgba(12, 9, 5, 0.94);
}

.ravenos-black-shell {
  text-align: center;
}

.ravenos-black-panel {
  display: grid;
  justify-items: center;
  width: min(820px, 100%);
  padding: clamp(22px, 4vw, 42px);
}

.ravenos-placeholder {
  width: 100%;
  margin: 18px 0;
  border: 1px dashed rgba(240, 189, 88, 0.44);
  padding: 18px;
  color: #f0d28f;
  background: rgba(28, 20, 6, 0.6);
  font-weight: 950;
  text-transform: uppercase;
}

.ravenos-denied {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
}

.ravenos-denied[hidden] {
  display: none;
}

.ravenos-denied-panel {
  width: min(620px, 100%);
  border-color: rgba(255, 115, 79, 0.58);
  padding: clamp(20px, 4vw, 34px);
}

.ravenos-denied-panel .ravenos-eyebrow {
  color: #ff734f;
}

@media (max-width: 760px) {
  .unit-patch-row,
  .ravenos-login-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ravenos-user-grid {
    grid-template-columns: 1fr;
  }
}

.feature-header {
  margin-top: 42px;
}

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.access-card {
  min-height: 210px;
}

.feature-card h3,
.access-card h3 {
  margin-top: 12px;
}

.command-card {
  background:
    linear-gradient(120deg, rgba(88, 199, 255, 0.12), transparent 46%),
    rgba(10, 16, 15, 0.9);
}

.pilot-board-card {
  border-color: rgba(240, 189, 88, 0.34);
}

.access-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.admin-layout {
  grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1.4fr);
}

.admin-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

label {
  color: var(--muted);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  color: var(--text);
  background: #050807;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(77, 163, 255, 0.45);
  outline-offset: 2px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-link-button {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.simulation-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(1, 3, 3, 0.84), rgba(1, 3, 3, 0.94)),
    radial-gradient(circle at 50% 18%, rgba(88, 199, 255, 0.18), transparent 44%);
  backdrop-filter: blur(6px);
}

.simulation-modal[hidden] {
  display: none;
}

.simulation-modal-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(88, 199, 255, 0.42);
  border-radius: 4px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(88, 199, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 13, 12, 0.98);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.64),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.simulation-modal-panel h2 {
  margin: 8px 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.simulation-modal-copy {
  display: grid;
  gap: 12px;
  color: #dce8e0;
}

.simulation-modal-copy p {
  margin: 0;
}

.simulation-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.simulation-modal-open {
  overflow: hidden;
}

.bft-tablet-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(70, 213, 140, 0.08), transparent 36%),
    linear-gradient(180deg, #05080a 0%, #0b1112 100%);
}

.cop-shell {
  width: min(1680px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.cop-statusbar {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(70, 213, 140, 0.28);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(70, 213, 140, 0.1), transparent 42%),
    rgba(7, 12, 13, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 20px 52px var(--shadow);
}

.cop-title-block h1 {
  margin: 2px 0 4px;
  color: #e9fff5;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.cop-title-block p {
  margin: 0;
  color: var(--muted);
}

.cop-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.cop-status-grid > div,
.cop-banner-chip {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(147, 167, 188, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(7, 13, 18, 0.82);
}

.cop-status-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cop-status-grid strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.92rem;
}

.cop-banner-chip {
  border-color: rgba(231, 182, 89, 0.45);
  color: var(--amber);
  text-align: center;
}

.cop-tablet {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px minmax(300px, 360px);
  gap: 10px;
  align-items: stretch;
}

.cop-rail {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid rgba(147, 167, 188, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(6, 10, 13, 0.88);
}

.cop-rail-button {
  min-height: 64px;
  border: 1px solid rgba(147, 167, 188, 0.32);
  border-radius: 7px;
  color: #d7e0e7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(16, 23, 32, 0.92);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  cursor: pointer;
}

.cop-rail-button:hover,
.cop-rail-button:focus-visible {
  border-color: rgba(77, 163, 255, 0.65);
  color: var(--text);
  background: rgba(77, 163, 255, 0.16);
}

.cop-rail-button:active {
  transform: translateY(1px);
}

.cop-rail-button.active {
  border-color: rgba(70, 213, 140, 0.64);
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(70, 213, 140, 0.18), rgba(70, 213, 140, 0.06)),
    rgba(9, 22, 18, 0.94);
}

.cop-map-stack {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(70, 213, 140, 0.24);
  border-radius: 8px;
  background: #06100d;
  box-shadow: 0 20px 52px var(--shadow);
}

.cop-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(70, 213, 140, 0.2);
  background:
    linear-gradient(90deg, rgba(70, 213, 140, 0.12), transparent 62%),
    rgba(5, 12, 12, 0.96);
}

.cop-map-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cop-mode {
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
}

.cop-map-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cop-map-counters span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(147, 167, 188, 0.24);
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.cop-map-counters b {
  color: var(--text);
}

.cop-map-frame {
  position: relative;
  min-height: clamp(560px, 68vh, 840px);
  overflow: hidden;
  background:
    linear-gradient(rgba(70, 213, 140, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 213, 140, 0.08) 1px, transparent 1px),
    #07110d;
  background-size: 48px 48px;
}

.cop-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #07110d;
}

.cop-map.leaflet-container {
  font: inherit;
  background: #07110d;
}

.cop-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--amber);
  background: rgba(7, 17, 13, 0.92);
  text-align: center;
  font-weight: 900;
}

.cop-map-overlay {
  position: absolute;
  z-index: 400;
  pointer-events: none;
  border: 1px solid rgba(70, 213, 140, 0.34);
  border-radius: 6px;
  padding: 7px 9px;
  color: #e9fff5;
  background: rgba(3, 8, 7, 0.76);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cop-classification {
  top: 12px;
  left: 12px;
}

.cop-fow {
  right: 12px;
  bottom: 12px;
  max-width: min(420px, calc(100% - 24px));
  border-color: rgba(231, 182, 89, 0.48);
  color: #f5d68f;
  text-transform: none;
}

.cop-layer-panel {
  position: absolute;
  z-index: 450;
  top: 58px;
  right: 12px;
  width: min(320px, calc(100% - 24px));
  border: 1px solid rgba(77, 163, 255, 0.42);
  border-radius: 8px;
  padding: 10px;
  background: rgba(7, 12, 18, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.cop-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
}

.cop-layer-option,
.cop-mini-button,
.cop-list-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(16, 23, 32, 0.92);
  font: inherit;
  cursor: pointer;
}

.cop-layer-option {
  min-height: 44px;
  margin-top: 7px;
  padding: 9px 10px;
  text-align: left;
  font-weight: 850;
}

.cop-layer-option:hover,
.cop-layer-option:focus-visible,
.cop-layer-option.active {
  border-color: var(--blue);
  background: rgba(77, 163, 255, 0.16);
}

.cop-layer-option.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.cop-mini-button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.cop-bottom-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid rgba(70, 213, 140, 0.22);
  background: rgba(4, 9, 10, 0.96);
}

.cop-message-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  color: #d7e0e7;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cop-message-strip span {
  border-left: 2px solid rgba(231, 182, 89, 0.7);
  padding-left: 8px;
}

.cop-detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(147, 167, 188, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 13, 19, 0.94);
  box-shadow: 0 18px 46px var(--shadow);
}

.cop-detail-panel.collapsed .cop-detail-body {
  display: none;
}

.cop-detail-body {
  overflow-y: auto;
  max-height: calc(68vh + 136px);
}

.cop-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.cop-detail-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(147, 167, 188, 0.16);
  padding: 10px 0;
}

.cop-detail-list dt {
  color: var(--muted);
  font-weight: 850;
}

.cop-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.cop-list-button {
  min-height: 58px;
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.cop-list-button strong {
  color: var(--text);
}

.cop-list-button span {
  color: var(--muted);
}

.cop-list-button:hover,
.cop-list-button:focus-visible {
  border-color: var(--blue);
  background: rgba(77, 163, 255, 0.13);
}

.cop-div-icon {
  background: transparent;
  border: 0;
}

.cop-div-icon .cop-marker-dot {
  position: absolute;
  left: 4px;
  top: 9px;
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 20px currentColor;
}

.cop-marker-label {
  position: absolute;
  left: 26px;
  top: 3px;
  min-height: 26px;
  max-width: 118px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  padding: 4px 7px;
  color: var(--text);
  background: rgba(5, 10, 12, 0.88);
  font-size: 0.72rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cop-marker-blue {
  color: var(--blue);
}

.cop-marker-blue .cop-marker-dot {
  background: var(--blue);
}

.cop-marker-red {
  color: #ff734f;
}

.cop-marker-red .cop-marker-dot {
  background: #ff734f;
}

.cop-marker-task {
  color: var(--amber);
}

.cop-marker-task .cop-marker-dot {
  border-radius: 4px;
  background: var(--amber);
  transform: rotate(45deg);
}

.leaflet-control-attribution {
  background: rgba(7, 12, 18, 0.76) !important;
  color: #d7e0e7 !important;
}

.leaflet-control-attribution a {
  color: #9ed2ff !important;
}

@media (max-width: 900px) {
  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-home {
    background-position: 63% center;
  }

  .card-grid,
  .dashboard-hero-grid,
  .status-board,
  .status-card-grid,
  .mission-strip,
  .status-detail-grid,
  .hardware-grid,
  .admin-layout,
  .bft-layout,
  .portal-link-grid,
  .feature-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .official-login-layout {
    grid-template-columns: 1fr;
  }

  .official-login-content {
    padding-bottom: 72px;
  }

  .table-header {
    flex-direction: column;
  }

  .status-card {
    grid-column: span 1;
  }

  .status-overview-header {
    flex-direction: column;
  }

  .status-pills {
    justify-content: flex-start;
  }

  .status-quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tactical-map {
    min-height: 420px;
  }

  .cop-statusbar,
  .cop-tablet {
    grid-template-columns: 1fr;
  }

  .cop-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cop-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cop-rail-button {
    min-height: 58px;
  }

  .cop-map-header,
  .cop-bottom-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .cop-map-counters {
    justify-content: flex-start;
  }

  .cop-map-frame {
    min-height: 520px;
  }

  .cop-detail-body {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .content {
    padding-top: 36px;
  }

  .hero-content {
    padding: 48px 0 72px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .button {
    width: 100%;
  }

  .health-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .cop-shell {
    width: min(100% - 12px, 1680px);
  }

  .cop-status-grid,
  .cop-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cop-map-frame {
    min-height: 460px;
  }

  .cop-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cop-classification,
  .cop-fow {
    left: 10px;
    right: 10px;
  }
}

/* Refined BFT tactical tablet shell */
.bft-tablet-page {
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #020403 0%, #070a08 52%, #030504 100%),
    #020403;
}

.bft-tablet-page::before {
  background-image:
    linear-gradient(rgba(97, 212, 148, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 212, 148, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: none;
}

.bft-tablet-page .cop-shell {
  display: grid;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 8px;
  place-items: center;
}

.bft-tablet-page .cop-tablet {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  grid-template-rows: 104px minmax(0, 1fr) 58px;
  gap: 8px;
  width: min(1760px, calc(100vw - 16px));
  height: min(980px, calc(100vh - 16px));
  min-height: 620px;
  overflow: hidden;
  border: 2px solid #1f2a22;
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    linear-gradient(90deg, rgba(88, 199, 255, 0.055), transparent 36%, rgba(240, 189, 88, 0.04)),
    #050806;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 42px rgba(0, 0, 0, 0.78);
}

.bft-tablet-page .cop-tablet::before {
  position: absolute;
  inset: 8px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(139, 156, 142, 0.12);
  content: "";
}

.bft-tablet-page .cop-statusbar,
.bft-tablet-page .cop-rail,
.bft-tablet-page .cop-map-stack,
.bft-tablet-page .cop-bottom-strip {
  position: relative;
  z-index: 1;
}

.bft-tablet-page .cop-statusbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(97, 212, 148, 0.34);
  border-radius: 3px;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(97, 212, 148, 0.1), transparent 40%),
    rgba(5, 9, 7, 0.92);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.38);
}

.bft-tablet-page .cop-title-block {
  display: grid;
  align-content: center;
  min-width: 0;
  border-right: 1px solid rgba(139, 156, 142, 0.24);
  padding-right: 10px;
}

.bft-tablet-page .cop-title-block h1 {
  margin: 2px 0 3px;
  color: #f2fff7;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: 0;
}

.bft-tablet-page .cop-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.bft-tablet-page .cop-kicker {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bft-tablet-page .cop-status-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.bft-tablet-page .cop-status-grid > div,
.bft-tablet-page .cop-banner-chip {
  min-height: 0;
  border: 1px solid rgba(139, 156, 142, 0.2);
  border-radius: 2px;
  padding: 6px 7px;
  background: rgba(2, 6, 5, 0.76);
}

.bft-tablet-page .cop-status-grid span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bft-tablet-page .cop-status-grid strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bft-tablet-page .cop-banner-chip {
  border-color: rgba(240, 189, 88, 0.52);
  color: var(--amber);
  text-align: center;
}

.cop-map-fallback[hidden] {
  display: none;
}

.bft-tablet-page .cop-rail-left {
  grid-column: 1;
  grid-row: 2;
}

.bft-tablet-page .cop-rail-right {
  grid-column: 3;
  grid-row: 2;
}

.bft-tablet-page .cop-rail {
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 7px;
  align-content: stretch;
  min-height: 0;
  border: 1px solid rgba(139, 156, 142, 0.22);
  border-radius: 4px;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #070a08;
}

.bft-tablet-page .cop-rail-button {
  min-height: 58px;
  border: 1px solid rgba(139, 156, 142, 0.36);
  border-radius: 2px;
  color: #d9e4dc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    #101611;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bft-tablet-page .cop-rail-button:hover,
.bft-tablet-page .cop-rail-button:focus-visible {
  border-color: rgba(88, 199, 255, 0.68);
  color: #f3fbff;
  background: rgba(16, 35, 40, 0.9);
}

.bft-tablet-page .cop-rail-button.active {
  border-color: rgba(97, 212, 148, 0.7);
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(97, 212, 148, 0.18), rgba(97, 212, 148, 0.04)),
    #07130d;
}

.bft-tablet-page .cop-rail-button.panel-active {
  border-color: rgba(240, 189, 88, 0.82);
  color: var(--amber);
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(240, 189, 88, 0.16),
    0 0 18px rgba(240, 189, 88, 0.12);
}

.bft-tablet-page .cop-map-stack {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(97, 212, 148, 0.3);
  border-radius: 3px;
  background: #04100b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 20px 52px rgba(0, 0, 0, 0.46);
}

.bft-tablet-page .cop-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(97, 212, 148, 0.24);
  background:
    linear-gradient(90deg, rgba(88, 199, 255, 0.1), transparent 60%),
    rgba(3, 8, 7, 0.96);
}

.bft-tablet-page .cop-map-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.bft-tablet-page .cop-mode {
  color: var(--blue);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bft-tablet-page .cop-map-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.bft-tablet-page .cop-map-counters span {
  min-height: 30px;
  border: 1px solid rgba(139, 156, 142, 0.24);
  border-radius: 2px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.74rem;
  font-weight: 950;
}

.bft-tablet-page .cop-map-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(97, 212, 148, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 212, 148, 0.055) 1px, transparent 1px),
    #06100c;
  background-size: 42px 42px;
}

.bft-tablet-page .cop-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #06100c;
}

.bft-tablet-page .cop-map-overlay {
  z-index: 410;
  border-radius: 2px;
}

.bft-tablet-page .cop-classification {
  top: 10px;
  left: 10px;
}

.bft-tablet-page .cop-fow {
  right: 10px;
  bottom: 10px;
}

.bft-tablet-page .cop-internal-panel {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 460;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 24px));
  border: 1px solid rgba(88, 199, 255, 0.44);
  border-radius: 3px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(88, 199, 255, 0.08), transparent 34%),
    rgba(4, 9, 9, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58);
}

.bft-tablet-page .cop-internal-panel[hidden] {
  display: none;
}

.bft-tablet-page .cop-internal-panel-body {
  min-height: 0;
  overflow-y: auto;
}

.bft-tablet-page .cop-detail-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 440;
  display: flex;
  flex-direction: column;
  width: min(350px, 36%);
  min-width: 300px;
  overflow: hidden;
  border: 1px solid rgba(139, 156, 142, 0.34);
  border-radius: 3px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(97, 212, 148, 0.055), transparent 38%),
    rgba(4, 8, 7, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.bft-tablet-page .cop-detail-panel.collapsed {
  bottom: auto;
  min-width: 170px;
  width: 170px;
}

.bft-tablet-page .cop-detail-panel.collapsed .cop-detail-body {
  display: none;
}

.bft-tablet-page .cop-detail-body {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}

.bft-tablet-page .cop-panel-heading {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.bft-tablet-page .cop-mini-button {
  border-radius: 2px;
}

.bft-tablet-page .cop-panel-list,
.bft-tablet-page .cop-panel-grid {
  display: grid;
  gap: 8px;
}

.bft-tablet-page .cop-toggle-tile,
.bft-tablet-page .cop-layer-option,
.bft-tablet-page .cop-list-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(139, 156, 142, 0.28);
  border-radius: 2px;
  padding: 10px;
  color: var(--text);
  background: rgba(12, 17, 16, 0.92);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bft-tablet-page .cop-toggle-tile strong,
.bft-tablet-page .cop-layer-option strong,
.bft-tablet-page .cop-list-button strong {
  display: block;
  color: var(--text);
}

.bft-tablet-page .cop-toggle-tile span,
.bft-tablet-page .cop-layer-option span,
.bft-tablet-page .cop-list-button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.bft-tablet-page .cop-toggle-tile:hover,
.bft-tablet-page .cop-toggle-tile:focus-visible,
.bft-tablet-page .cop-layer-option:hover,
.bft-tablet-page .cop-layer-option:focus-visible,
.bft-tablet-page .cop-list-button:hover,
.bft-tablet-page .cop-list-button:focus-visible {
  border-color: rgba(88, 199, 255, 0.68);
  background: rgba(88, 199, 255, 0.13);
}

.bft-tablet-page .cop-toggle-tile.active,
.bft-tablet-page .cop-layer-option.active {
  border-color: rgba(97, 212, 148, 0.62);
  background: rgba(97, 212, 148, 0.11);
}

.bft-tablet-page .cop-layer-option.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.bft-tablet-page .cop-panel-note {
  margin: 12px 0 0;
  border-left: 2px solid rgba(240, 189, 88, 0.68);
  padding-left: 10px;
  color: #f0d28f;
  font-size: 0.86rem;
}

.bft-tablet-page .cop-bottom-strip {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(139, 156, 142, 0.24);
  border-radius: 3px;
  padding: 8px 10px;
  background:
    linear-gradient(90deg, rgba(240, 189, 88, 0.08), transparent 48%),
    rgba(4, 8, 7, 0.96);
}

.bft-tablet-page .cop-rto-label {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bft-tablet-page .cop-message-strip {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  color: #d7e0e7;
  font-size: 0.86rem;
  white-space: nowrap;
}

.bft-tablet-page .cop-message-strip span {
  border-left: 2px solid rgba(240, 189, 88, 0.7);
  padding-left: 8px;
}

.bft-tablet-page .cop-div-icon .cop-marker-dot {
  border-radius: 2px;
}

.bft-tablet-page .cop-marker-blue .cop-marker-dot {
  border-radius: 50%;
}

.bft-tablet-page .cop-marker-highlight .cop-marker-dot,
.bft-tablet-page .cop-marker-highlight .cop-marker-label {
  box-shadow: 0 0 22px rgba(240, 189, 88, 0.86);
}

@media (max-width: 1100px) {
  .bft-tablet-page {
    height: auto;
    overflow: auto;
  }

  .bft-tablet-page .cop-shell {
    height: auto;
    min-height: 100vh;
    place-items: stretch;
  }

  .bft-tablet-page .cop-tablet {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(520px, 1fr) auto auto;
    width: calc(100vw - 16px);
    height: auto;
    min-height: calc(100vh - 16px);
  }

  .bft-tablet-page .cop-statusbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
  }

  .bft-tablet-page .cop-title-block {
    border-right: 0;
    border-bottom: 1px solid rgba(139, 156, 142, 0.24);
    padding-right: 0;
    padding-bottom: 8px;
  }

  .bft-tablet-page .cop-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bft-tablet-page .cop-rail-left,
  .bft-tablet-page .cop-rail-right {
    grid-column: 1;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .bft-tablet-page .cop-rail-left {
    grid-row: 2;
  }

  .bft-tablet-page .cop-map-stack {
    grid-column: 1;
    grid-row: 3;
    min-height: 520px;
  }

  .bft-tablet-page .cop-rail-right {
    grid-row: 4;
  }

  .bft-tablet-page .cop-bottom-strip {
    grid-column: 1;
    grid-row: 5;
  }

  .bft-tablet-page .cop-rail-button {
    min-height: 54px;
  }
}

@media (max-width: 680px) {
  .bft-tablet-page .cop-tablet {
    padding: 7px;
  }

  .bft-tablet-page .cop-status-grid,
  .bft-tablet-page .cop-rail-left,
  .bft-tablet-page .cop-rail-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bft-tablet-page .cop-map-header,
  .bft-tablet-page .cop-bottom-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .bft-tablet-page .cop-map-counters {
    justify-content: flex-start;
  }

  .bft-tablet-page .cop-internal-panel,
  .bft-tablet-page .cop-detail-panel {
    left: 8px;
    right: 8px;
    width: auto;
    min-width: 0;
  }

  .bft-tablet-page .cop-detail-panel {
    top: auto;
    max-height: 44%;
  }

  .bft-tablet-page .cop-detail-panel.collapsed {
    left: auto;
    width: 170px;
  }
}

/* Adaptive BFT display modes */
.bft-phone-warning {
  display: none;
}

.bft-tablet-page .cop-mode-option {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(139, 156, 142, 0.28);
  border-radius: 2px;
  padding: 10px;
  color: var(--text);
  background: rgba(12, 17, 16, 0.92);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bft-tablet-page .cop-mode-option strong {
  display: block;
  color: var(--text);
}

.bft-tablet-page .cop-mode-option span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.bft-tablet-page .cop-mode-option:hover,
.bft-tablet-page .cop-mode-option:focus-visible,
.bft-tablet-page .cop-mode-option.active {
  border-color: rgba(88, 199, 255, 0.68);
  background: rgba(88, 199, 255, 0.13);
}

.bft-tablet-page .cop-mode-option.active {
  border-color: rgba(240, 189, 88, 0.76);
  color: var(--amber);
}

.bft-tablet-page .cop-settings-block {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.bft-tablet-page .cop-settings-label {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bft-tablet-page .cop-mode-grid {
  display: grid;
  gap: 8px;
}

.bft-tablet-page .cop-rail-button {
  min-width: 56px;
  min-height: 64px;
  touch-action: manipulation;
}

.bft-tablet-page .cop-rail-button:active,
.bft-tablet-page .cop-mode-option:active,
.bft-tablet-page .cop-toggle-tile:active,
.bft-tablet-page .cop-layer-option:active,
.bft-tablet-page .cop-list-button:active {
  transform: translateY(1px);
  filter: brightness(1.16);
}

.bft-mode-desktop-frame {
  height: 100vh;
  overflow: hidden;
}

.bft-mode-desktop-frame .cop-shell {
  width: 100vw;
  height: 100vh;
  padding: 8px;
  place-items: center;
}

.bft-mode-desktop-frame .cop-tablet {
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  grid-template-rows: 104px minmax(0, 1fr) 58px;
  gap: 8px;
  width: min(1760px, calc(100vw - 16px));
  height: min(980px, calc(100vh - 16px));
  min-height: 620px;
  border: 2px solid #1f2a22;
  border-radius: 8px;
  padding: 10px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 42px rgba(0, 0, 0, 0.78);
}

.bft-mode-desktop-frame .cop-tablet::before {
  display: block;
}

.bft-mode-desktop-frame .cop-statusbar {
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: 330px minmax(0, 1fr);
}

.bft-mode-desktop-frame .cop-rail-left {
  grid-column: 1;
  grid-row: 2;
}

.bft-mode-desktop-frame .cop-rail-right {
  grid-column: 3;
  grid-row: 2;
}

.bft-mode-desktop-frame .cop-rail {
  grid-template-rows: repeat(8, minmax(0, 1fr));
  grid-template-columns: none;
}

.bft-mode-desktop-frame .cop-rail-button {
  min-height: 64px;
}

.bft-mode-desktop-frame .cop-map-stack {
  grid-column: 2;
  grid-row: 2;
}

.bft-mode-desktop-frame .cop-bottom-strip {
  grid-column: 1 / -1;
  grid-row: 3;
}

.bft-mode-touch-tablet {
  height: 100dvh;
  overflow: hidden;
}

.bft-mode-touch-tablet .cop-shell {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  place-items: stretch;
}

.bft-mode-touch-tablet .cop-tablet {
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  grid-template-rows: 86px minmax(0, 1fr) 52px;
  gap: 6px;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 6px;
  background: #040806;
  box-shadow: none;
}

.bft-mode-touch-tablet .cop-tablet::before {
  display: none;
}

.bft-mode-touch-tablet .cop-statusbar {
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 7px;
}

.bft-mode-touch-tablet .cop-title-block h1 {
  font-size: 1.36rem;
}

.bft-mode-touch-tablet .cop-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bft-mode-touch-tablet .cop-rail-left {
  grid-column: 1;
  grid-row: 2;
}

.bft-mode-touch-tablet .cop-rail-right {
  grid-column: 3;
  grid-row: 2;
}

.bft-mode-touch-tablet .cop-rail {
  grid-template-rows: repeat(8, minmax(72px, 1fr));
  grid-template-columns: none;
  border-radius: 0;
  padding: 4px;
}

.bft-mode-touch-tablet .cop-rail-button {
  min-width: 70px;
  min-height: 72px;
  font-size: 0.82rem;
}

.bft-mode-touch-tablet .cop-map-stack {
  grid-column: 2;
  grid-row: 2;
  border-radius: 0;
}

.bft-mode-touch-tablet .cop-bottom-strip {
  grid-column: 1 / -1;
  grid-row: 3;
  border-radius: 0;
}

.bft-mode-touch-tablet .cop-internal-panel {
  width: min(430px, calc(100% - 20px));
}

@media (orientation: portrait) and (min-width: 768px) {
  .bft-mode-touch-tablet .cop-tablet {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto 52px;
  }

  .bft-mode-touch-tablet .cop-statusbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
  }

  .bft-mode-touch-tablet .cop-title-block {
    border-right: 0;
    border-bottom: 1px solid rgba(139, 156, 142, 0.24);
    padding: 0 0 6px;
  }

  .bft-mode-touch-tablet .cop-rail-left,
  .bft-mode-touch-tablet .cop-rail-right {
    grid-column: 1;
    grid-template-columns: repeat(8, minmax(72px, 1fr));
    grid-template-rows: none;
  }

  .bft-mode-touch-tablet .cop-rail-left {
    grid-row: 2;
  }

  .bft-mode-touch-tablet .cop-map-stack {
    grid-column: 1;
    grid-row: 3;
  }

  .bft-mode-touch-tablet .cop-rail-right {
    grid-row: 4;
  }

  .bft-mode-touch-tablet .cop-bottom-strip {
    grid-column: 1;
    grid-row: 5;
  }
}

.bft-mode-phone {
  height: 100dvh;
  overflow: hidden;
}

.bft-mode-phone .cop-shell {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  place-items: stretch;
}

.bft-mode-phone .cop-tablet {
  grid-template-columns: 1fr;
  grid-template-rows: auto 34px 68px minmax(0, 1fr) 68px 48px;
  gap: 4px;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 4px;
  background: #040806;
  box-shadow: none;
}

.bft-mode-phone .cop-tablet::before {
  display: none;
}

.bft-mode-phone .cop-statusbar {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 6px;
}

.bft-mode-phone .cop-title-block {
  border-right: 0;
  border-bottom: 1px solid rgba(139, 156, 142, 0.24);
  padding: 0 0 5px;
}

.bft-mode-phone .cop-title-block h1 {
  font-size: 1.12rem;
}

.bft-mode-phone .cop-title-block p:not(.cop-kicker) {
  display: none;
}

.bft-mode-phone .cop-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.bft-mode-phone .cop-status-grid > div {
  min-height: 38px;
  padding: 5px 6px;
}

.bft-mode-phone .cop-status-grid > div:nth-child(n+5):not(.cop-banner-chip) {
  display: none;
}

.bft-mode-phone .cop-status-grid span {
  font-size: 0.58rem;
}

.bft-mode-phone .cop-status-grid strong {
  font-size: 0.76rem;
}

.bft-mode-phone .bft-phone-warning {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(240, 189, 88, 0.52);
  padding: 6px 8px;
  color: #f5d68f;
  background: rgba(28, 20, 6, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
}

.bft-mode-phone .cop-rail-left,
.bft-mode-phone .cop-rail-right {
  grid-column: 1;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-radius: 0;
  padding: 4px;
}

.bft-mode-phone .cop-rail-left {
  grid-row: 3;
}

.bft-mode-phone .cop-rail-right {
  grid-row: 5;
}

.bft-mode-phone .cop-rail-button {
  flex: 0 0 66px;
  min-width: 64px;
  min-height: 64px;
  padding: 5px;
  font-size: 0.72rem;
}

.bft-mode-phone .cop-map-stack {
  grid-column: 1;
  grid-row: 4;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-radius: 0;
}

.bft-mode-phone .cop-map-header {
  display: grid;
  gap: 5px;
  padding: 6px;
}

.bft-mode-phone .cop-map-header p {
  display: none;
}

.bft-mode-phone .cop-map-counters {
  justify-content: flex-start;
}

.bft-mode-phone .cop-map-counters span {
  min-height: 26px;
  padding: 4px 6px;
  font-size: 0.68rem;
}

.bft-mode-phone .cop-classification {
  top: 7px;
  left: 7px;
}

.bft-mode-phone .cop-fow {
  display: none;
}

.bft-mode-phone .cop-internal-panel,
.bft-mode-phone .cop-detail-panel {
  left: 6px;
  right: 6px;
  width: auto;
  min-width: 0;
}

.bft-mode-phone .cop-internal-panel {
  top: 6px;
  bottom: 6px;
}

.bft-mode-phone .cop-detail-panel {
  top: auto;
  bottom: 6px;
  max-height: 42%;
}

.bft-mode-phone .cop-detail-panel.collapsed {
  left: auto;
  width: 160px;
}

.bft-mode-phone .cop-bottom-strip {
  grid-column: 1;
  grid-row: 6;
  display: flex;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  padding: 5px 7px;
}

.bft-mode-phone .cop-rto-label {
  display: none;
}

.bft-mode-phone .cop-message-strip {
  font-size: 0.76rem;
}

/* Section 3 BFT adaptive display and fullscreen refinements */
.bft-tablet-page .cop-app-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: stretch;
}

.bft-tablet-page .cop-app-control {
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(139, 156, 142, 0.28);
  border-radius: 2px;
  padding: 7px 8px;
  color: #d7e0e7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(12, 17, 16, 0.94);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.bft-tablet-page .cop-app-control:hover,
.bft-tablet-page .cop-app-control:focus-visible,
.bft-tablet-page .cop-app-control.active {
  border-color: rgba(88, 199, 255, 0.72);
  color: var(--text);
  background: rgba(88, 199, 255, 0.14);
}

.bft-tablet-page .cop-app-control:active {
  transform: translateY(1px);
  filter: brightness(1.16);
}

.bft-tablet-page .cop-map-corner-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 470;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(360px, calc(100% - 24px));
  pointer-events: auto;
}

.bft-tablet-page .cop-map-corner-controls .cop-mini-button {
  min-height: 38px;
  border-color: rgba(88, 199, 255, 0.42);
  color: #e9fff5;
  background: rgba(4, 9, 9, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  touch-action: manipulation;
}

.bft-tablet-page .cop-map-corner-controls .cop-mini-button:hover,
.bft-tablet-page .cop-map-corner-controls .cop-mini-button:focus-visible,
.bft-tablet-page .cop-map-corner-controls .cop-mini-button.active {
  border-color: rgba(240, 189, 88, 0.78);
  color: var(--amber);
  background: rgba(28, 20, 6, 0.9);
}

.bft-tablet-page .cop-exit-map {
  display: none;
}

.bft-fullscreen-map .cop-exit-map {
  display: inline-flex;
  align-items: center;
}

.bft-fullscreen-map .cop-map-corner-controls [data-bft-fullscreen="map"] {
  display: none;
}

.bft-mode-desktop-frame .cop-tablet {
  grid-template-rows: 118px minmax(0, 1fr) 58px;
}

.bft-mode-desktop-frame .cop-statusbar {
  grid-template-columns: 330px minmax(0, 1fr) 176px;
}

.bft-mode-desktop-frame .cop-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bft-mode-touch-tablet .cop-tablet {
  grid-template-rows: 104px minmax(0, 1fr) 52px;
}

.bft-mode-touch-tablet .cop-statusbar {
  grid-template-columns: 250px minmax(0, 1fr) 168px;
}

.bft-mode-touch-tablet .cop-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bft-mode-touch-tablet .cop-app-control {
  min-height: 42px;
}

.bft-mode-phone .cop-app-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bft-mode-phone .cop-app-control {
  min-height: 34px;
  padding: 5px 4px;
  font-size: 0.58rem;
}

.bft-mode-phone .cop-map-corner-controls {
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
}

.bft-mode-phone .cop-map-corner-controls .cop-mini-button {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.66rem;
}

.bft-fullscreen-app,
.bft-fullscreen-map {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.bft-fullscreen-app .site-header,
.bft-fullscreen-app .site-footer,
.bft-fullscreen-app .page-footer,
.bft-fullscreen-app nav:not(.leaflet-control),
.bft-fullscreen-map .site-header,
.bft-fullscreen-map .site-footer,
.bft-fullscreen-map .page-footer,
.bft-fullscreen-map nav:not(.leaflet-control) {
  display: none !important;
}

.bft-fullscreen-app .cop-shell,
.bft-fullscreen-map .cop-shell {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  place-items: stretch;
}

.bft-fullscreen-app .cop-tablet {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  border-radius: 0;
}

.bft-fullscreen-map .cop-tablet {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #040806;
  box-shadow: none;
}

.bft-fullscreen-map .cop-tablet::before,
.bft-fullscreen-map .cop-statusbar,
.bft-fullscreen-map .bft-phone-warning,
.bft-fullscreen-map .cop-rail,
.bft-fullscreen-map .cop-bottom-strip,
.bft-fullscreen-map .cop-map-header {
  display: none !important;
}

.bft-fullscreen-map .cop-map-stack {
  grid-column: 1;
  grid-row: 1;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
}

.bft-fullscreen-map .cop-map-frame {
  min-height: 100dvh;
}

.bft-fullscreen-map .cop-internal-panel {
  top: 56px;
  bottom: 12px;
}

.bft-fullscreen-map .cop-detail-panel {
  top: 56px;
  bottom: 12px;
}

@media (orientation: portrait) and (min-width: 768px) {
  .bft-mode-touch-tablet .cop-tablet {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto 52px;
  }

  .bft-mode-touch-tablet .cop-statusbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
  }

  .bft-mode-touch-tablet .cop-app-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bft-mode-touch-tablet .cop-rail-left,
  .bft-mode-touch-tablet .cop-rail-right {
    grid-column: 1;
    grid-template-columns: repeat(8, minmax(72px, 1fr));
    grid-template-rows: none;
  }

  .bft-mode-touch-tablet .cop-rail-left {
    grid-row: 2;
  }

  .bft-mode-touch-tablet .cop-map-stack {
    grid-column: 1;
    grid-row: 3;
  }

  .bft-mode-touch-tablet .cop-rail-right {
    grid-row: 4;
  }

  .bft-mode-touch-tablet .cop-bottom-strip {
    grid-column: 1;
    grid-row: 5;
  }
}

.bft-tablet-page .cop-tactical-readout {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border: 1px solid rgba(240, 189, 88, 0.34);
  border-radius: 3px;
  padding: 9px 10px;
  background: rgba(240, 189, 88, 0.08);
}

.bft-tablet-page .cop-tactical-readout span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bft-tablet-page .cop-tactical-readout strong {
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
