:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #172033;
  background: #f2f5f9;
  --blue: #2457d6;
  --line: #dce3ed;
  --muted: #67748b;
  --good: #16805f;
  --bad: #bd3028;
}
body {
  margin: 0;
}
@scope (#nyan-ops-app) {
* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
:where(header, #login, #console) :where(button, input, select, textarea) {
  font: inherit;
}
:where(header, #login, #console) button {
  cursor: pointer;
  border: 1px solid #c9d3e2;
  border-radius: 10px;
  background: white;
  padding: 10px 14px;
  font-weight: 750;
}
:where(header, #login, #console)
  :where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #8fb1ff;
  outline-offset: 2px;
}
.primary {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}
header {
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #111a2f;
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}
.brand > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  font-weight: 900;
}
.brand small {
  color: #9dacc6;
}
.secure {
  margin-left: auto;
  color: #9cabc4;
  font-size: 12px;
}
main {
  width: min(1680px, calc(100% - 32px));
  margin: 24px auto 48px;
}
.login {
  max-width: 480px;
  margin: 10vh auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 20px 60px #263a5c1c;
}
.login h1,
.title h1 {
  margin: 5px 0;
  font-size: 42px;
  letter-spacing: -0.05em;
}
.login > p {
  color: var(--muted);
  line-height: 1.6;
}
.login label,
.release-form label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 750;
}
.login input,
#console textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid #c9d3e2;
  border-radius: 10px;
  padding: 12px;
  background: white;
}
.login input:disabled {
  color: var(--muted);
  background: #f4f6fa;
}
.login-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.login-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.password-change-heading {
  margin: 4px 0 20px;
}
.password-change-heading h2 {
  margin: 8px 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}
.password-change-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.verify-login-status {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #73dbc4;
  border-radius: 12px;
  background: #effbf8;
}
.verify-login-status[hidden] { display: none; }
.verify-login-status > span { color: #087d68; font-size: 24px; }
.verify-login-status strong,
.verify-login-status p { display: block; margin: 0 0 5px; }
.verify-login-status p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.verify-login-status a { color: #087d68; font-size: 12px; font-weight: 800; }
.kicker {
  margin: 0 !important;
  color: var(--blue) !important;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 900;
}
.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 116px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 20%, #dce8ff 0, transparent 28%),
    linear-gradient(135deg, #fff, #f7f9fe);
  box-shadow: 0 16px 40px #263a5c0c;
}
.title p {
  color: var(--muted);
}
#console {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: start;
}
#console > .title,
#console > .metrics,
#console > section {
  grid-column: 2;
  min-width: 0;
}
nav {
  position: sticky;
  top: 20px;
  grid-column: 1;
  grid-row: 1 / span 20;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 4px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 36px #263a5c0c;
}
nav::before {
  content: 'Operations workspace';
  padding: 17px 15px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
nav button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 11px 12px;
  color: #4d5b73;
  text-align: left;
}
nav button::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #51627d;
  background: #f0f3f8;
  font-size: 10px;
  font-weight: 900;
  content: attr(data-icon);
}
nav button.active {
  color: #164aa9;
  background: #eaf1ff;
}
nav button.active::before {
  color: white;
  background: var(--blue);
}
nav button[aria-selected='false']:hover {
  background: #edf2fb;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 0;
}
.metrics article {
  min-height: 104px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
.metrics article:nth-child(2) {
  border-color: #b8e1d3;
  background: linear-gradient(145deg, #fff, #effaf6);
}
.metrics article:nth-child(3),
.metrics article:nth-child(5) {
  border-color: #f0d6aa;
  background: linear-gradient(145deg, #fff, #fff9ed);
}
.metrics article:nth-child(4) {
  border-color: #c7d7f5;
  background: linear-gradient(145deg, #fff, #f1f5ff);
}
.metric-card {
  display: grid;
  width: 100%;
  min-height: 102px;
  padding: 15px 17px;
  border: 0;
  border-radius: 13px;
  color: inherit;
  background: transparent;
  text-align: left;
  box-shadow: none;
  gap: 5px;
}
.metric-card:hover {
  border: 0;
  background: #ffffff8f;
  box-shadow: inset 0 0 0 1px #b9c9e5;
  transform: none;
}
.metric-card[aria-pressed='true'] {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.metric-card span {
  color: #6d7b92;
  font-size: 10px;
  font-weight: 700;
}
.metrics small {
  color: var(--muted);
}
.metrics strong {
  font-size: 28px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 28px #263a5c0b;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.filter-field > span {
  padding-left: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.toolbar-clear {
  min-height: 43px;
  color: #34527f;
  background: #f6f8fc;
}
.toolbar-clear:hover {
  border-color: #9eb2d2;
  background: #edf3fd;
}
.fleet-summary-bar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -3px 2px 11px;
  color: var(--muted);
  font-size: 11px;
}
.fleet-summary-bar p {
  margin: 0;
}
.fleet-summary-bar p strong {
  color: #172033;
}
#fleet-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px 6px 12px;
  border: 1px solid #b9cbea;
  border-radius: 12px;
  color: #486184;
  background: #f3f7ff;
}
#fleet-selection[hidden] {
  display: none;
}
#fleet-selection strong {
  color: #164aa9;
}
#fleet-selection button {
  padding: 6px 9px;
  font-size: 10px;
}
.table {
  display: grid;
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.row {
  display: grid;
  grid-template-columns:
    30px minmax(210px, 1.6fr)
    140px 150px 150px 140px minmax(180px, 1fr);
  gap: 16px;
  min-width: 1120px;
  padding: 15px;
  border-top: 1px solid var(--line);
  align-items: center;
  font-size: 12px;
}
.row.head {
  border: 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 850;
}
.row > span {
  display: grid;
  gap: 5px;
}
.row small {
  color: var(--muted);
}
.row em {
  color: var(--blue);
  font-style: normal;
  font-size: 10px;
}
.row button {
  padding: 6px 8px;
  font-size: 10px;
}
.environment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 32px #263a5c0b;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.environment-card:hover {
  border-color: #becbe0;
  box-shadow: 0 16px 42px #263a5c14;
  transform: translateY(-1px);
}
.environment-card.retained {
  border-color: #c7d7f5;
}
.environment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf4;
  background: linear-gradient(90deg, #fff, #fafbfe);
}
.environment-select {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}
.environment-select input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--blue);
}
.environment-select > span,
.health-pill > span,
.environment-facts section > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.environment-select strong {
  color: #172033;
  font-size: 16px;
}
.environment-select small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.environment-select em {
  color: #55709e;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.health-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 9px 12px;
  border: 1px solid #f0d8af;
  border-radius: 12px;
  color: #72510f;
  background: #fff9ee;
}
.health-pill > i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c07b12;
}
.health-pill.good {
  border-color: #b8e1d3;
  color: #14553f;
  background: #effaf6;
}
.health-pill.good > i {
  background: var(--good);
}
.health-pill.bad {
  border-color: #efc1bd;
  color: #89231d;
  background: #fff4f3;
}
.health-pill.bad > i {
  background: var(--bad);
}
.health-pill small {
  color: currentColor;
  font-size: 10px;
  opacity: 0.8;
}
.environment-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 18px;
}
.environment-facts section {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-height: 116px;
  padding: 18px 16px;
  border-right: 1px solid #edf1f6;
}
.environment-facts section:last-child {
  border-right: 0;
}
.fact-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #3d5d99;
  background: #eaf1ff;
  font-size: 10px;
  font-weight: 900;
}
.environment-facts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.environment-facts strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.environment-facts span:not(.fact-icon) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.environment-facts em {
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
}
.environment-facts button {
  justify-self: start;
  margin-top: 4px;
  padding: 6px 9px;
  font-size: 10px;
}
.environment-facts .fact-attention {
  background: #fff9f8;
}
.environment-facts .fact-attention .fact-icon {
  color: #98291f;
  background: #fde7e4;
}
.retention-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr auto;
  gap: 18px;
  min-width: 0;
  margin: 0 18px 18px;
  padding: 18px;
  border: 1px solid #c9d8fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f7ff, #ffffff);
}
.retention-summary {
  padding-right: 8px;
}
.retention-check {
  grid-template-columns: 28px 1fr;
  align-items: start;
}
.retention-check > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #14553f;
  background: #dff4eb;
  font-size: 12px;
  font-weight: 900;
}
.retention-row > div {
  display: grid;
  align-content: start;
  gap: 6px;
}
.retention-row small {
  color: var(--muted);
  line-height: 1.45;
}
.retention-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #164aa9;
  background: #dce8ff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.retention-actions {
  min-width: 190px;
}
.retention-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.testing-access {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #c9d8fb;
  border-radius: 12px;
  background: #f5f8ff;
}
.testing-access input {
  width: auto !important;
  margin-top: 3px;
}
.testing-access span,
.test-credential-card label {
  display: grid;
  gap: 4px;
}
.testing-access small {
  color: var(--muted);
  font-weight: 500;
}
.test-credential-card {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #d5b85c;
  border-radius: 14px;
  background: #fffaf0;
}
.test-credential-card > span {
  font-weight: 850;
}
.test-credential-card code {
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: 8px;
  background: white;
  user-select: all;
}
.test-credential-card small {
  color: #755d14;
}
.status {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d28a20;
}
.status.good {
  background: var(--good);
}
.status.bad {
  background: var(--bad);
}
.release-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 18px;
}
.section-heading h2,
.release-form h2 {
  margin: 0;
}
.section-heading p,
.release-form p {
  color: var(--muted);
}
.release {
  padding: 20px;
  margin-bottom: 12px;
}
.release > div {
  display: flex;
  justify-content: space-between;
}
.version {
  font-size: 22px;
  font-weight: 900;
}
.release p {
  color: var(--muted);
  font-size: 12px;
}
.release ol {
  display: flex;
  gap: 8px;
  padding: 18px 0;
  list-style: none;
}
.release li {
  padding: 8px 10px;
  border-radius: 9px;
  background: #edf1f7;
  font-size: 10px;
  text-transform: capitalize;
}
.release li.completed {
  color: var(--good);
  background: #e7f7f1;
}
.release li small {
  margin-left: 8px;
}
.release-form {
  height: max-content;
  padding: 22px;
}
.audit > div {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.audit > div:first-child {
  border: 0;
}
.audit span {
  display: grid;
  gap: 3px;
}
.audit small,
.audit time {
  color: var(--muted);
}
.empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
}
.fleet-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 24px;
  border: 1px dashed #cbd5e4;
  background: linear-gradient(145deg, #fff, #f8faff);
}
.fleet-empty-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #345ea8;
  background: #eaf1ff;
  font-weight: 900;
}
.fleet-empty h3,
.fleet-empty p {
  margin: 0;
}
.fleet-empty h3 {
  color: #172033;
}
.fleet-empty p {
  max-width: 520px;
  line-height: 1.55;
}
.fleet-empty button {
  margin-top: 8px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 11px;
  color: white;
  background: #172033;
  box-shadow: 0 15px 40px #0003;
}
@media (max-width: 900px) {
  header {
    height: auto;
    min-height: 68px;
    padding: 12px;
    flex-wrap: wrap;
  }
  header .secure {
    margin-left: 0;
  }
  main {
    width: calc(100% - 24px);
    margin: 20px auto;
  }
  #console,
  #console > section,
  .installation-layout,
  .installation-layout > * {
    min-width: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .release-layout {
    grid-template-columns: 1fr;
  }
  .title {
    align-items: start;
    flex-direction: column;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
}
.bank-review-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  margin-top: 18px;
}
.bank-review-layout form {
  display: grid;
  gap: 12px;
}
.bank-review-layout label {
  display: grid;
  gap: 6px;
}
.bank-review-layout input,
.bank-review-layout select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
}
.bank-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e9f2;
}
.bank-review > div {
  display: grid;
}
.bank-review small {
  color: #667085;
}
@media (max-width: 900px) {
  .bank-review-layout {
    grid-template-columns: 1fr;
  }
  .bank-review {
    grid-template-columns: 1fr;
  }
}
.reconciliation-date {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}
.reconciliation-date label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}
.reconciliation-date input,
.reconciliation-override input,
.reconciliation-override select,
.reconciliation-override textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
  background: white;
}
.reconciliation-date .version {
  margin-left: auto;
  font-size: 12px;
}
.reconciliation-metrics {
  grid-template-columns: repeat(4, 1fr);
}
.reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.reconciliation-queue,
.reconciliation-override {
  padding: 18px;
}
.reconciliation-queue h3,
.reconciliation-override h3 {
  margin-top: 0;
}
.reconciliation-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 18px 18px;
}
.reconciliation-total {
  display: grid;
  min-width: 180px;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reconciliation-total small,
.reconciliation-override p {
  color: var(--muted);
}
.reconciliation-override {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reconciliation-override h3,
.reconciliation-override p,
.reconciliation-override button {
  grid-column: 1/-1;
}
.reconciliation-override label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}
@media (max-width: 900px) {
  .reconciliation-grid,
  .reconciliation-override {
    grid-template-columns: 1fr;
  }
  .reconciliation-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .reconciliation-date {
    align-items: stretch;
    flex-direction: column;
  }
  .reconciliation-date .version {
    margin-left: 0;
  }
}
.rollout-heading {
  margin-top: 34px;
}
.rollout-stages {
  overflow-x: auto;
}
.rollout-metrics {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}
.rollout-metrics strong {
  font-size: 18px;
  text-transform: capitalize;
}
.rollout-form {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.rollout-form h3,
.rollout-form p {
  margin: 0;
}
.rollout-form p {
  color: var(--muted);
}
.rollout-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}
.rollout-form input,
.rollout-form select,
.rollout-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
}
.rollout-form .rollout-confirm {
  display: flex;
  align-items: center;
}
.rollout-form .rollout-confirm input {
  width: auto;
}
.rollout-form fieldset {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
@media (max-width: 900px) {
  .rollout-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
.finance-trust-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.custody-migration {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.custody-migration .fraud-alert {
  padding: 12px;
  border-radius: 10px;
  background: #fff1ee;
  color: #742317;
}
.custody-migration .fraud-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.custody-migration .complete {
  color: #17603a;
  font-weight: 750;
}
.staff-metrics {
  grid-template-columns: repeat(4, 1fr);
}
.staff-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}
.staff-request-form,
.staff-policy,
.staff-section,
.staff-guidance {
  padding: 20px;
}
.staff-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.staff-request-form h3,
.staff-request-form p,
.staff-request-form button,
.staff-request-form > small {
  grid-column: 1/-1;
}
.staff-request-form h3,
.staff-policy h3,
.staff-section h3 {
  margin-top: 0;
}
.staff-request-form p,
.staff-request-form > small,
.staff-policy,
.staff-request p,
.staff-request small,
.staff-account small {
  color: var(--muted);
}
.staff-request-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}
.staff-request-form input,
.staff-request-form select,
.staff-request-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
  background: white;
}
.staff-policy ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}
.staff-section {
  margin-bottom: 16px;
}
.staff-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.staff-request > div {
  display: grid;
  gap: 6px;
}
.staff-request > div:last-child {
  text-align: right;
}
.staff-request span {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.staff-request em {
  color: #96620d;
  font-size: 12px;
  font-style: normal;
}
.staff-account {
  display: grid;
  grid-template-columns: 12px minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(
      160px,
      1fr
    );
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.staff-account > div {
  display: grid;
  gap: 4px;
}
.staff-account .status {
  align-self: center;
}
.installation-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(360px, 0.88fr);
  gap: 20px;
  align-items: start;
}
.fleet-setup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #f0c46d;
  border-radius: 16px;
  background: #fffaf0;
}
.fleet-setup-card.ready {
  border-color: #9ed5b3;
  background: #f3fbf6;
}
.fleet-setup-card.blocked {
  border-color: #e6b5ad;
  background: #fff7f5;
}
.fleet-setup-card.action-required {
  border-color: #f0c46d;
  background: #fffaf0;
}
.fleet-setup-card > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.fleet-setup-card > div:first-child > div {
  display: grid;
  gap: 3px;
}
.fleet-setup-card small,
.fleet-setup-card span {
  color: var(--muted);
  font-size: 12px;
}
.setup-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e6a019;
  box-shadow: 0 0 0 5px #f8e7bd;
}
.fleet-setup-card.ready .setup-dot {
  background: #18824a;
  box-shadow: 0 0 0 5px #d9f0e2;
}
.fleet-setup-card.blocked .setup-dot {
  background: var(--bad);
  box-shadow: 0 0 0 5px #f7dcda;
}
.setup-status {
  align-self: center;
  margin-left: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #8b5205 !important;
  background: #fff1d2;
  font-size: 10px !important;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.setup-status.ready {
  color: #16663d !important;
  background: #e1f4e8;
}
.setup-status.blocked {
  color: #8b2822 !important;
  background: #fbe2df;
}
.setup-guidance {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #713b36;
  background: #fbe9e6;
  font-size: 12px;
}
.fleet-setup-card details {
  position: relative;
}
.digitalocean-connection {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dce4f1;
  border-radius: 12px;
  background: #fff;
}
.digitalocean-connection > div:first-child {
  display: grid;
  gap: 3px;
}
.connection-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.connection-checks span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #8b5205;
  background: #fff1d2;
  font-weight: 750;
}
.connection-checks span.ready {
  color: #16663d;
  background: #e1f4e8;
}
.fleet-setup-actions {
  display: flex;
  gap: 8px;
}
.fleet-setup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: -8px 0 18px;
  padding: 18px;
  border-color: #9eb9ec;
}
.fleet-setup-form > div:first-child,
.fleet-setup-form > fieldset,
.fleet-setup-form > button {
  grid-column: 1 / -1;
}
.fleet-setup-form h3,
.fleet-setup-form p {
  margin: 4px 0 0;
}
.fleet-setup-form p {
  color: var(--muted);
}
.fleet-setup-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}
.fleet-setup-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
  background: white;
}
.fleet-setup-card summary {
  color: #174fbd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.fleet-setup-checks {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 0;
  width: min(440px, 80vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 46px #1c2a4426;
}
.fleet-setup-checks p {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 2px 8px;
  margin: 0;
  padding: 9px;
}
.fleet-setup-checks p > span {
  grid-row: 1 / 3;
  color: #a26206;
  font-weight: 900;
}
.fleet-setup-checks p.ready > span {
  color: #18824a;
}
.fleet-setup-checks p > small {
  grid-column: 2;
}
.installation-mode-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.installation-mode-head > div {
  display: grid;
  gap: 5px;
}
.installation-mode-head h3,
.installation-mode-head p {
  margin: 0;
}
.installation-mode-head p {
  color: var(--muted);
  line-height: 1.45;
}
.installation-mode-head.compact {
  align-items: center;
  padding-bottom: 14px;
}
.installation-quick-form > h3 {
  margin: 4px 0 0;
  font-size: 24px;
}
.quick-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-profile > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
}
.quick-profile small,
.quick-profile span {
  color: var(--muted);
  font-size: 11px;
}
.quick-install-review {
  width: 100%;
  min-height: 46px;
}
.installation-blocked {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #875300;
  background: #fff3d6;
  font-size: 13px;
  font-weight: 700;
}
.installation-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.installation-summary article {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.installation-summary strong {
  color: #174fbd;
  font-size: 24px;
}
.installation-summary span,
.installation-activity > div > small {
  color: var(--muted);
  font-size: 12px;
}
.installation-activity > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.installation-activity h3 {
  margin: 0;
}
.installation-form,
.installation-record,
.installation-empty {
  padding: 20px;
}
.installation-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}
.installation-stepper button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
}
.installation-stepper button > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbd5e5;
  border-radius: 50%;
  background: #f5f7fb;
  font-size: 11px;
  font-weight: 900;
}
.installation-stepper button strong {
  font-size: 10px;
}
.installation-stepper button small {
  display: none;
}
.installation-stepper button.current,
.installation-stepper button.complete {
  color: #174fbd;
}
.installation-stepper button.current > span {
  background: #e7efff;
  border-color: #7fa8f7;
  color: #174fbd;
}
.installation-stepper button.complete > span {
  border-color: #18824a;
  background: #e9f8ef;
  color: #18824a;
}
.installation-stepper button:disabled {
  cursor: default;
  opacity: 0.62;
}
.installation-step {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
}
.installation-step[hidden] {
  display: none;
}
.installation-step > legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.installation-step h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}
.installation-lead {
  margin: -4px 0 4px;
  color: var(--muted);
  line-height: 1.5;
}
.installation-step label,
.application-picker {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}
.installation-step input,
.installation-step select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
  background: white;
}
.installation-step input[readonly] {
  background: #f4f6fa;
}
.application-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.application-picker legend {
  grid-column: 1/-1;
}
.application-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
}
.application-picker input {
  width: auto;
}
.application-picker label:has(input:disabled) {
  opacity: 0.45;
}
.installation-note,
.installation-empty,
.installation-record small {
  color: var(--muted);
}
.installation-organization-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #cfdbef;
  border-radius: 12px;
  background: #f7f9fd;
}
.installation-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e5edff;
  color: #174fbd;
  font-weight: 900;
}
.installation-organization-card > div:nth-child(2),
.installation-owner {
  display: grid;
  gap: 3px;
}
.installation-organization-card small,
.installation-owner small,
.installation-owner span {
  color: var(--muted);
  font-size: 12px;
}
.installation-organization-card .version {
  font-size: 10px;
  text-transform: uppercase;
}
.installation-owner {
  padding: 13px 14px;
  border-radius: 12px;
  background: #f2f5fa;
}
.installation-onboarding-link {
  color: #174fbd;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.installation-organization-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.installation-create-organization {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #cbd8ef;
  border-radius: 12px;
  background: #f7f9fd;
}
.installation-create-organization > div,
.installation-create-organization > button {
  grid-column: 1 / -1;
}
.installation-create-organization h4,
.installation-create-organization p {
  margin: 0;
}
.installation-create-organization p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.installation-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.installation-review-grid > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfc;
}
.installation-review-grid small,
.installation-review-grid span {
  color: var(--muted);
  font-size: 11px;
}
.installation-warning {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #f0c46d;
  border-radius: 11px;
  background: #fff8e7;
  color: #6c4807;
}
.installation-warning span {
  font-size: 12px;
}
.installation-confirm {
  width: 100%;
}
.installation-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.installation-checks {
  display: grid;
  gap: 8px;
}
.installation-checks p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  background: #edf8f1;
}
.installation-checks span {
  grid-row: 1/3;
  color: #18824a;
}
.installation-checks small {
  color: var(--muted);
}
.installation-manifest dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 7px 12px;
}
.installation-manifest dt {
  color: var(--muted);
}
.installation-manifest dd {
  margin: 0;
  font-weight: 700;
}
.installation-manifest code {
  display: block;
  margin-top: 8px;
  padding: 10px;
  overflow: auto;
  white-space: pre;
  background: #121827;
  color: #dce7ff;
  border-radius: 8px;
}
.installation-record {
  margin-bottom: 14px;
}
.installation-record-select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.installation-record.expanded {
  padding: 16px;
  border-color: #8baff4;
  box-shadow: 0 10px 32px #2457d619;
}
.installation-record-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.installation-state {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #72510f;
  background: #fff2cc;
  white-space: nowrap;
}
.installation-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c07b12;
}
.installation-state.good {
  color: #14553f;
  background: #dff4eb;
}
.installation-state.good i {
  background: var(--good);
}
.installation-state.bad {
  color: #89231d;
  background: #fde5e3;
}
.installation-state.bad i {
  background: var(--bad);
}
.installation-record.lifecycle-active {
  border-left: 4px solid #c38927;
}
.installation-record-head h3 {
  margin: 8px 0 3px;
}
.retained-scan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.retained-scan > span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f5f8fd;
}
.retained-scan small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.retained-scan strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.installation-progress {
  height: 8px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}
.installation-progress span {
  display: block;
  height: 100%;
  background: #2d67dc;
}
.installation-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 16px;
  padding-left: 20px;
  font-size: 11px;
  color: var(--muted);
}
.installation-stages .completed {
  color: #18824a;
}
.installation-stages .current {
  color: #174fbd;
  font-weight: 800;
}
.installation-stages .failed {
  color: #b42318;
  font-weight: 800;
}
.installation-history {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.installation-history h4 {
  margin: 0;
}
.lifecycle-journey {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c9d8fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f7ff, #fff);
}
.lifecycle-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lifecycle-heading h4 {
  margin: 8px 0 0;
}
.lifecycle-heading time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.lifecycle-journey ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.lifecycle-journey li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
}
.lifecycle-journey li > span {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 2px solid #bac5d5;
  border-radius: 50%;
  background: white;
}
.lifecycle-journey li.completed > span {
  border-color: var(--good);
  background: var(--good);
  box-shadow: inset 0 0 0 3px white;
}
.lifecycle-journey li.current > span {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #dce8ff;
}
.lifecycle-journey li.failed > span {
  border-color: var(--bad);
  background: var(--bad);
}
.lifecycle-journey li strong,
.lifecycle-journey li small {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  text-transform: capitalize;
}
.lifecycle-journey li strong {
  color: #26344c;
}
.lifecycle-safety {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.lifecycle-safety > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: white;
}
.lifecycle-safety small {
  color: var(--muted);
}
.installation-failure {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #efb6b1;
  border-radius: 12px;
  color: #7c211b;
  background: #fff6f5;
}
.installation-failure > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.installation-failure > div > span,
.failure-recovery > span {
  display: grid;
  gap: 3px;
}
.installation-failure small {
  color: #9a5b56;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.failure-recovery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
}
.failure-recovery > span {
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
}
.failure-recovery strong {
  font-size: 11px;
}
.installation-failure code {
  padding: 4px 7px;
  border-radius: 6px;
  background: #fbe2df;
  font-size: 10px;
}
.installation-failure p {
  margin: 0;
  color: #76545a;
  line-height: 1.5;
}
.installation-failure button {
  justify-self: start;
  border-color: #d57870;
}
.installation-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.installation-remove {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f0b8b8;
  border-radius: 12px;
  background: #fff8f8;
}
.installation-remove summary {
  cursor: pointer;
  color: #a11f2d;
  font-weight: 850;
}
.installation-remove p {
  color: #76545a;
  line-height: 1.45;
}
.installation-remove label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}
.installation-remove input {
  padding: 10px;
  border: 1px solid #dfa7ad;
  border-radius: 8px;
  background: white;
}
.installation-remove .danger {
  border-color: #b62c3a;
  background: #b62c3a;
  color: white;
}
.installation-ready-actions a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
}
@media (max-width: 900px) {
  .fleet-setup-card {
    grid-template-columns: 1fr;
  }
  .fleet-setup-actions {
    flex-wrap: wrap;
  }
  .digitalocean-connection {
    align-items: stretch;
    flex-direction: column;
  }
  .connection-checks {
    justify-content: flex-start;
  }
  .fleet-setup-checks {
    right: auto;
    left: 0;
  }
  .staff-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-layout,
  .staff-request-form {
    grid-template-columns: 1fr;
  }
  .staff-request-form h3,
  .staff-request-form p,
  .staff-request-form button,
  .staff-request-form > small {
    grid-column: auto;
  }
  .staff-request,
  .staff-account {
    grid-template-columns: 1fr;
  }
  .installation-layout,
  .installation-stages {
    grid-template-columns: 1fr;
  }
  .lifecycle-journey ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .installation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .installation-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .staff-request > div:last-child {
    text-align: left;
  }
  .staff-request span {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .installation-summary,
  .fleet-setup-form,
  .installation-review-grid,
  .quick-profile,
  .application-picker,
  .installation-create-organization {
    grid-template-columns: 1fr;
  }
  .installation-mode-head {
    align-items: stretch;
    flex-direction: column;
  }
  .fleet-setup-card > div:first-child {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .setup-status {
    margin-left: 24px;
  }
  .installation-organization-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .installation-organization-card .version {
    grid-column: 1/-1;
  }
  .installation-create-organization > div,
  .installation-create-organization > button {
    grid-column: auto;
  }
  .installation-record-head,
  .lifecycle-heading,
  .installation-failure > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .installation-state {
    white-space: normal;
  }
  .lifecycle-journey ol,
  .lifecycle-safety,
  .retained-scan,
  .failure-recovery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .environment-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .environment-facts section:nth-child(2) {
    border-right: 0;
  }
  .environment-facts section:nth-child(-n + 2) {
    border-bottom: 1px solid #edf1f6;
  }
}

@media (max-width: 900px) {
  #console {
    grid-template-columns: minmax(0, 1fr);
  }
  #console > .title,
  #console > .metrics,
  #console > section,
  #console > nav {
    grid-column: 1;
  }
  #console > nav {
    position: static;
    grid-row: auto;
    display: flex;
    gap: 4px;
    padding: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    border-radius: 14px;
  }
  #console > nav::before {
    display: none;
  }
  #console > nav button {
    display: flex;
    flex: 0 0 auto;
    padding: 8px 11px;
    scroll-snap-align: start;
  }
  #console > nav button::before {
    width: 24px;
    height: 24px;
  }
  .title {
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .metrics,
  .environment-facts {
    grid-template-columns: 1fr;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .fleet-summary-bar {
    align-items: stretch;
    flex-direction: column;
  }
  #fleet-selection {
    flex-wrap: wrap;
  }
  .environment-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .health-pill {
    width: 100%;
  }
  .environment-facts section,
  .environment-facts section:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #edf1f6;
  }
  .environment-facts section:last-child {
    border-bottom: 0;
  }
  .retention-row {
    grid-template-columns: 1fr;
  }
  .retention-actions {
    min-width: 0;
  }
}

/* Fleet console visual system */
#nyan-ops-app {
  --blue: #a94328;
  --line: #dfdce8;
  --muted: #66627b;
  --good: #2b8768;
  --bad: #bb3e3e;
  min-height: 100vh;
  color: #19162c;
  background: #f7f6fc;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: #14203a;
  transform: translateY(-150%);
  transition: transform 120ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  padding: 0 max(22px, calc((100vw - 1680px) / 2));
  border-bottom: 1px solid #e5e2ec;
  color: #19162c;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(40, 32, 70, 0.045);
  backdrop-filter: blur(16px);
}
.brand {
  min-width: max-content;
}
.brand > span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #a94328;
  background: #f6e9e5;
  border: 1px solid rgba(169, 67, 40, 0.08);
  box-shadow: 0 5px 16px rgba(169, 67, 40, 0.12);
}
.brand-copy {
  display: grid;
  width: auto;
  height: auto;
  place-items: initial;
  gap: 1px;
  border-radius: 0;
  background: transparent;
  font-weight: inherit;
}
.brand-copy strong {
  color: #19162c;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-copy small {
  color: #77728b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.secure {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 0;
  color: #66627b;
}
.secure > span {
  display: grid;
  gap: 1px;
}
.secure strong {
  color: #39344f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.secure small {
  color: #858096;
  font-size: 9px;
  font-weight: 650;
}
.secure i,
.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d78cf;
  box-shadow: 0 0 0 4px rgba(61, 120, 207, 0.1);
}
main {
  width: min(1680px, calc(100% - 44px));
  margin: 30px auto 60px;
}
#console {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px 26px;
}
.title {
  min-height: 144px;
  padding: 18px 4px 23px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.title-copy {
  max-width: 760px;
}
.title-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}
.title h1 {
  color: #19162c;
  font-size: clamp(34px, 4vw, 52px);
}
.view-description {
  max-width: 680px;
  margin: 8px 0 0;
  color: #625d75;
  font-size: 12px;
  line-height: 1.55;
}
.title .refresh-time {
  margin: 8px 0 0;
  color: #8a8597;
  font-size: 10px;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #d9d5e5;
  border-radius: 999px;
  color: #5e5972;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.refresh-action {
  min-width: 136px;
  border-color: #cfcad9;
  color: #a94328;
  background: #fff;
  box-shadow: 0 4px 14px rgba(48, 39, 78, 0.06);
  white-space: nowrap;
}
.title-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 24px;
}
.primary-action {
  min-width: 160px;
  border-color: #a94328;
  color: #fff;
  background: #a94328;
  box-shadow: 0 7px 20px rgba(169, 67, 40, 0.18);
  white-space: nowrap;
}
.primary-action:hover {
  border-color: #8f3420;
  background: #8f3420;
}
.refresh-action::before {
  content: '↻';
  margin-right: 7px;
  font-size: 15px;
}
.refresh-action[aria-busy='true']::before {
  display: inline-block;
  animation: fleet-spin 900ms linear infinite;
}
@keyframes fleet-spin {
  to {
    transform: rotate(360deg);
  }
}
nav {
  top: 98px;
  gap: 4px;
  padding: 8px;
  border-color: #dfdce8;
  border-radius: 20px;
  box-shadow: 0 5px 18px rgba(48, 39, 78, 0.04);
}
nav::before {
  padding: 14px 13px 10px;
}
nav button {
  min-height: 48px;
  border-radius: 11px;
  font-size: 12px;
  transition:
    color 130ms ease,
    background 130ms ease,
    transform 130ms ease;
}
nav button:hover {
  transform: translateX(2px);
}
nav button.active {
  color: #a94328;
  background: #f3e5e1;
  box-shadow: inset 3px 0 #a94328;
}
nav button.active::before {
  color: #a94328;
  background: #fff;
}
.metrics {
  gap: 12px;
}
.metrics article {
  min-height: 102px;
  border-color: #dfdce8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(48, 39, 78, 0.035);
}
.metric-card {
  position: relative;
  min-height: 100px;
  padding: 14px 17px;
}
.metric-card[aria-pressed='true'] {
  color: #a94328;
  background: #fbf4f2;
  box-shadow: inset 0 0 0 2px #c45b3e;
}
.metric-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7b3c5;
  content: '';
}
.metrics article:nth-child(2) .metric-card::after {
  background: #23a878;
}
.metrics article:nth-child(3) .metric-card::after,
.metrics article:nth-child(4) .metric-card::after,
.metrics article:nth-child(5) .metric-card::after {
  background: #d38a20;
}
.metric-card span {
  font-size: 10px;
}
.metrics strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.panel,
.toolbar {
  border-color: #dfdce8;
  background: #fff;
  box-shadow: 0 4px 16px rgba(48, 39, 78, 0.035);
}
.toolbar {
  padding: 13px;
  border-radius: 17px;
}
.toolbar input,
.toolbar select {
  min-height: 44px;
  border-color: #cbd6e5;
  border-radius: 11px;
}
.toolbar input:hover,
.toolbar select:hover {
  border-color: #9fb1cc;
}
.toolbar input:focus,
.toolbar select:focus {
  border-color: #b96750;
  outline: 3px solid rgba(169, 67, 40, 0.12);
}
.fleet-summary-bar {
  padding: 0 5px;
}
.environment-card {
  border-color: #dfdce8;
  border-radius: 20px;
}
.environment-card-head {
  padding: 20px 22px;
}
.fleet-empty {
  min-height: 310px;
  align-content: center;
  padding: 36px;
  border-radius: 18px;
  background: #fff;
}
.fleet-empty > p {
  max-width: 610px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.55;
}
.empty-setup-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 18px;
  padding: 0;
  list-style: none;
}
.empty-setup-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e3dfeb;
  border-radius: 999px;
  color: #625d75;
  background: #faf9fc;
  font-size: 9px;
  font-weight: 750;
}
.empty-setup-steps li span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #a94328;
  background: #f5e7e3;
  font-size: 8px;
}
.fleet-empty .empty-primary {
  width: auto;
  min-width: 190px;
  margin: 0 auto;
  color: #fff;
  background: #a94328;
}
#toast {
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: #17233c;
}

@media (max-width: 1100px) {
  .secure {
    display: none;
  }
  #console {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .app-header {
    min-height: 70px;
    height: auto;
    padding: 10px 16px;
  }
  .title {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .title-actions {
    width: 100%;
    margin-left: 0;
  }
  main {
    width: calc(100% - 24px);
    margin-top: 20px;
  }
  #console {
    grid-template-columns: minmax(0, 1fr);
  }
  #console > nav {
    position: sticky;
    top: 82px;
    z-index: 25;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
  }
  #console > nav button:hover {
    transform: none;
  }
}
@media (max-width: 650px) {
  .header-meta {
    gap: 7px;
  }
  .title-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .title-actions button {
    width: 100%;
  }
  .secure {
    display: none;
  }
  .title {
    padding: 22px;
  }
  .title-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .title h1 {
    font-size: 34px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .toolbar-clear {
    width: 100%;
  }
  .empty-setup-steps {
    align-items: center;
    flex-direction: column;
  }
}
@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }
  main {
    width: calc(100% - 18px);
  }
  .metrics {
    grid-template-columns: 1fr;
  }
}
}
