:root {
  color-scheme: dark;
  --ink: #050b18;
  --ink-2: #09162c;
  --navy: #10274f;
  --blue: #1f5fae;
  --red: #d82331;
  --gold: #f4c84e;
  --gold-soft: #ffe39a;
  --white: #f8fbff;
  --paper: rgba(248, 251, 255, 0.94);
  --paper-strong: rgba(255, 255, 255, 0.98);
  --panel: rgba(7, 15, 32, 0.9);
  --panel-soft: rgba(13, 30, 60, 0.72);
  --line: rgba(226, 235, 248, 0.2);
  --line-dark: rgba(5, 16, 37, 0.15);
  --text: #f8fbff;
  --text-dark: #081326;
  --muted: #b7c2d3;
  --muted-dark: #65758d;
  --risk: #d82331;
  --ok: #1f5fae;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
  --environment-image: url("./assets/hangar-blur-bg.png?v=20260711-v139");
  --mission-image: url("./assets/login-gundam-hero.jpg?v=20260706-v127");
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--ink);
}

body::before,
body::after {
  position: fixed;
  content: "";
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    var(--environment-image) center / cover no-repeat,
    var(--ink);
  filter: blur(0.5px) saturate(1.12) brightness(0.76);
  transform: scale(1.002);
}

body::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 23, 0.74), rgba(5, 14, 32, 0.38) 48%, rgba(5, 12, 27, 0.78)),
    linear-gradient(180deg, rgba(10, 33, 72, 0.45), rgba(5, 11, 24, 0.68));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

[v-cloak] {
  display: none;
}

.boot-fallback {
  min-height: 100vh;
  padding: 40px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--ink);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  text-align: center;
}

.ivan-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Login */

.login-workstation {
  --stage-width: min(1280px, calc(100vw - 56px));
  position: relative;
  min-height: 100dvh;
  padding: clamp(20px, 3vw, 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
}

.login-brand {
  position: relative;
  z-index: 1;
  width: var(--stage-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(86px, 9vw, 126px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
}

.ae-logo,
.workstation-brand img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.login-brand h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(46px, 6.4vw, 94px);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-subtitle {
  margin: 8px 0 0;
  color: rgba(248, 251, 255, 0.74);
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 800;
}

.brand-byline {
  margin: 8px 0 0;
  color: rgba(244, 200, 78, 0.92);
  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-version {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.brand-version span,
.brand-version strong,
.brand-version time {
  min-height: 28px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.brand-version strong {
  color: var(--gold-soft);
}

.site-compliance {
  position: relative;
  z-index: 2;
  width: var(--stage-width);
  max-width: 1480px;
  margin: 18px auto 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(248, 251, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.site-compliance a {
  color: rgba(248, 251, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 200, 78, 0.45);
}

.site-compliance a:hover {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: var(--stage-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 30px);
}

.auth-console,
.mission-photo {
  min-height: clamp(430px, 54vh, 620px);
  border: 1px solid rgba(226, 235, 248, 0.28);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-console {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 0 0, rgba(216, 35, 49, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(7, 15, 32, 0.96), rgba(12, 31, 64, 0.9));
}

.auth-console h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-copy {
  max-width: 820px;
  margin: 26px 0 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.6;
  font-weight: 700;
}

.auth-assurance {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.auth-assurance li {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.primary-action {
  width: min(720px, 100%);
  min-height: 58px;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    linear-gradient(105deg, #f4c84e, #fff7de 74%, #183763);
  color: #061126;
  box-shadow: 0 18px 42px rgba(244, 200, 78, 0.18);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 1000;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.primary-action:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.primary-action:active {
  transform: translateY(1px);
}

.mission-photo {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 31, 0.06), rgba(6, 14, 31, 0.3)),
    var(--mission-image) center / cover no-repeat;
}

.mission-photo::before {
  position: absolute;
  content: "";
  inset: 20px;
  border: 1px solid rgba(244, 200, 78, 0.46);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

.scan-window {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 11, 24, 0.15)),
    radial-gradient(circle at 50% 18%, rgba(244, 200, 78, 0.18), transparent 38%);
}

/* Dashboard */

.dashboard-workstation {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(16px, 2.4vw, 34px);
}

.workstation-topbar,
.mission-layout {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.workstation-topbar {
  position: sticky;
  top: clamp(10px, 1.4vw, 18px);
  z-index: 30;
  min-height: 74px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(226, 235, 248, 0.22);
  border-radius: 22px;
  background: rgba(5, 11, 24, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.workstation-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.workstation-brand img {
  width: 58px;
  border-radius: 14px;
  padding: 5px;
}

.workstation-brand strong,
.operator-panel h2,
.launcher-heading h2 {
  color: var(--text-dark);
}

.workstation-brand strong {
  display: block;
  color: var(--white);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.1;
  white-space: nowrap;
}

.workstation-brand em {
  display: block;
  margin-top: 3px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.topbar-status span,
.release-chip {
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.release-chip {
  cursor: pointer;
  color: var(--gold-soft);
}

.mission-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.briefing-column {
  position: sticky;
  top: 108px;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.operator-panel,
.brief-card,
.metric-card,
.alert-console,
.sales-console,
.sentinel-console,
.launcher-panel,
.access-note {
  border: 1px solid rgba(10, 27, 60, 0.14);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--text-dark);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.operator-panel {
  position: relative;
  min-height: 196px;
  padding: 22px;
  overflow: hidden;
}

.operator-panel::after {
  position: absolute;
  content: "";
  width: 180px;
  height: 180px;
  top: -76px;
  right: -72px;
  border: 18px solid rgba(216, 35, 49, 0.08);
  border-radius: 50%;
}

.operator-panel .eyebrow {
  color: #60718c;
  font-size: 11px;
}

.operator-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(27px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: 0;
}

.operator-panel p {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  color: #63738c;
  font-size: 17px;
  font-weight: 900;
}

.operator-panel > strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #091326;
  font-size: 18px;
  line-height: 1.35;
}

.session-actions {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.session-state,
.mini-refresh {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(31, 95, 174, 0.28);
  border-radius: 999px;
  background: rgba(31, 95, 174, 0.08);
  color: #1f5fae;
  font-size: 13px;
  font-weight: 900;
}

.session-state[data-state="syncing"],
.session-state[data-state="guest"],
.session-state[data-state="loading"] {
  border-color: rgba(244, 200, 78, 0.5);
  background: rgba(244, 200, 78, 0.14);
  color: #8c6100;
}

.session-hint {
  margin-top: 10px !important;
  color: #8c6100 !important;
  font-size: 13px !important;
}

.brief-card {
  padding: 22px;
}

.highlight-card {
  background:
    radial-gradient(circle at top right, rgba(244, 200, 78, 0.18), transparent 42%),
    var(--paper);
}

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

.panel-heading strong {
  font-size: 20px;
}

.panel-heading span {
  padding: 6px 10px;
  border: 1px solid rgba(244, 200, 78, 0.46);
  border-radius: 999px;
  background: rgba(244, 200, 78, 0.16);
  color: #5a4100;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brief-card > p {
  margin: 18px 0 0;
  color: #233044;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 750;
}

.mantra-line {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(244, 200, 78, 0.34);
  border-radius: 16px;
  background: rgba(255, 246, 218, 0.56);
}

.mantra-line span,
.tip-grid span {
  display: block;
  color: #6d7890;
  font-size: 13px;
  font-weight: 900;
}

.mantra-line strong,
.tip-grid strong {
  display: block;
  margin-top: 7px;
  color: #0b162a;
  font-size: 15px;
  line-height: 1.55;
}

.tip-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.tip-grid > div {
  padding-top: 14px;
  border-top: 1px solid rgba(10, 27, 60, 0.12);
}

.operations-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}

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

.metric-card {
  min-height: 104px;
  padding: 16px;
}

.metric-card span {
  display: block;
  color: #66758d;
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #071326;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
}

.metric-card em {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.metric-card em[data-trend="up"] {
  color: #1f5fae;
}

.metric-card em[data-trend="risk"] {
  color: var(--risk);
}

.metric-card em[data-trend="watch"] {
  color: #9b6b00;
}

.metric-card em[data-trend="flat"] {
  color: #65758d;
}

.priority-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "alert sales"
    "alert sentinel";
  gap: 14px;
}

.alert-console,
.sales-console,
.sentinel-console {
  padding: 20px;
}

.alert-console {
  grid-area: alert;
}

.sales-console {
  grid-area: sales;
}

.sentinel-console {
  grid-area: sentinel;
}

.alert-console ul,
.sentinel-console ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.alert-console li,
.sentinel-console li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(10, 27, 60, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.alert-console b {
  width: 48px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31, 95, 174, 0.1);
  color: #1f5fae;
  font-size: 11px;
}

.alert-console b[data-severity="HIGH"] {
  background: rgba(216, 35, 49, 0.12);
  color: #b4101c;
}

.alert-console b[data-severity="MED"] {
  background: rgba(244, 200, 78, 0.18);
  color: #7a5200;
}

.alert-console strong,
.sentinel-console strong {
  display: block;
  color: #071326;
  font-size: 15px;
}

.alert-console em,
.sentinel-console em {
  display: block;
  margin-top: 4px;
  color: #62728a;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.5;
}

.sentinel-console li {
  grid-template-columns: 1fr;
}

.sales-bars {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.sales-bars div {
  position: relative;
  min-height: 46px;
  padding-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}

.sales-bars span,
.sales-bars b {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
}

.sales-bars span {
  color: #62728a;
}

.sales-bars b {
  color: #071326;
}

.sales-bars i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.launcher-panel {
  padding: 20px;
}

.launcher-heading {
  align-items: flex-end;
  margin-bottom: 16px;
}

.launcher-heading .eyebrow {
  color: #64738b;
  font-size: 11px;
}

.launcher-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
}

.launcher-heading p {
  max-width: 360px;
  margin: 0;
  color: #66758d;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
  text-align: right;
}

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

.system-card {
  min-height: 132px;
  padding: 16px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(10, 27, 60, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.88));
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.system-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 95, 174, 0.42);
  box-shadow: 0 18px 38px rgba(31, 95, 174, 0.16);
}

.system-card:active {
  transform: translateY(0);
}

.system-card.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.system-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--mark, var(--blue));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.system-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.system-mark b {
  font-size: 18px;
  font-weight: 1000;
}

.system-copy {
  min-width: 0;
}

.system-copy strong {
  display: block;
  color: #071326;
  font-size: 18px;
  line-height: 1.2;
}

.system-copy em {
  display: block;
  margin-top: 7px;
  color: #65758d;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.system-copy small {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.system-copy small span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 27, 60, 0.08);
  color: #40506a;
  font-size: 11px;
  font-weight: 900;
}

.access-note {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-color: rgba(244, 200, 78, 0.32);
  background:
    linear-gradient(120deg, rgba(255, 248, 225, 0.96), rgba(255, 255, 255, 0.92));
}

.access-note strong {
  color: #071326;
  white-space: nowrap;
}

.access-note p {
  margin: 0;
  color: #65758d;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

/* Release modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 19, 0.72);
  backdrop-filter: blur(12px);
}

.release-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(226, 235, 248, 0.2);
  border-radius: 24px;
  background: rgba(248, 251, 255, 0.98);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(10, 27, 60, 0.08);
  color: #071326;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.release-dialog header {
  padding-right: 48px;
}

.release-dialog header h2 {
  margin: 0;
  color: #071326;
  font-size: 30px;
}

.release-dialog header p:last-child {
  margin: 8px 0 0;
  color: #63738c;
  font-weight: 800;
}

.release-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 27, 60, 0.12);
}

.release-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.release-item strong {
  color: #071326;
  font-size: 18px;
}

.release-item span {
  color: #63738c;
  font-size: 13px;
  font-weight: 800;
}

.release-item ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #24324a;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .mission-photo {
    min-height: 340px;
  }

  .mission-layout {
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  }

  .briefing-column {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 940px) {
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .briefing-column {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "alert"
      "sales"
      "sentinel";
  }
}

@media (max-width: 860px) {
  .login-workstation,
  .dashboard-workstation {
    padding: 14px;
  }

  .login-brand {
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
  }

  .login-brand h1 {
    font-size: clamp(32px, 11vw, 52px);
    white-space: normal;
  }

  .brand-subtitle {
    font-size: 15px;
  }

  .auth-stage,
  .workstation-topbar,
  .mission-layout {
    width: 100%;
  }

  .auth-console {
    padding: 26px;
  }

  .auth-console h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .auth-assurance {
    grid-template-columns: 1fr;
  }

  .workstation-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .briefing-column,
  .priority-grid,
  .status-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .briefing-column {
    position: static;
  }

  .priority-grid {
    grid-template-areas:
      "alert"
      "sales"
      "sentinel";
  }

  .launcher-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .launcher-heading p {
    text-align: left;
  }

  .access-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .login-brand {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .brand-version {
    display: none;
  }

  .auth-console,
  .mission-photo {
    min-height: auto;
    border-radius: 20px;
  }

  .mission-photo {
    min-height: 280px;
  }

  .operator-panel,
  .brief-card,
  .launcher-panel,
  .alert-console,
  .sales-console,
  .sentinel-console {
    padding: 18px;
  }

  .operator-panel h2 {
    font-size: 34px;
  }

  .system-card {
    min-height: 118px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .system-mark {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
