/* Paleta azul basada en los tokens de marca del frontend GECIR.
   La acción usa la variante oscura para contrastar con texto blanco. */
:root {
  --brand: #2e7cf6;
  --brand-action: #1d6ae3;
  --brand-text: #1e40af;
  --brand-subtle: #eff6ff;
  --brand-subtle-hover: #dbeafe;
  --brand-on-dark: #60a5fa;
}
@font-face {
  font-family: MonitorSystem;
  src: local('Inter'), local('Aptos'), local('Arial');
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f4f6f9;
  color: #152338;
  font:
    15px/1.5 MonitorSystem,
    system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #ccd5e1;
  border-radius: 9px;
  padding: 10px 15px;
  background: white;
  color: #22344b;
  font-weight: 600;
  min-height: 44px;
}
button:hover {
  background: #edf3f7;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-action);
  outline-offset: 3px;
}
.primary {
  background: var(--brand-action);
  border-color: var(--brand-action);
  color: white;
}
.primary:hover {
  background: var(--brand-text);
}
.quiet {
  background: transparent;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
input,
select {
  border: 1px solid #ccd5e1;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #152338;
  min-height: 44px;
  min-width: 0;
}
input {
  width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: #5d6e83;
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #5d6e83;
  margin-bottom: 9px;
}
.topbar {
  height: 78px;
  background: #101c2b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: 1px;
}
.brand b {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  color: #b8c5d5;
  border-left: 1px solid #415065;
  padding-left: 13px;
  margin-left: 10px;
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.topbar .quiet {
  color: #d8e2ee;
  border-color: #415065;
}
.layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}
aside {
  border-right: 1px solid #dfe5ed;
  background: #fff;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav button {
  display: flex;
  gap: 13px;
  border: 0;
  text-align: left;
  background: transparent;
  color: #5d6e83;
}
nav button span {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
nav button[aria-current='page'] {
  background: var(--brand-subtle);
  color: var(--brand-text);
}
.sidebar-note {
  margin-top: auto;
  padding-top: 100px;
  font-size: 11px;
  color: #7a889b;
  line-height: 1.8;
}
.content {
  padding: 32px 38px;
  max-width: 1450px;
  width: 100%;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading .muted {
  margin-top: 10px;
}
.refresh {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
}
.toolbar label {
  flex-direction: row;
  align-items: center;
  font-size: 12px;
  color: #5d6e83;
}
.toolbar select {
  font-size: 13px;
}
.notice {
  border: 1px solid #e6d5aa;
  background: #fff8e6;
  color: #72531c;
  border-radius: 9px;
  padding: 13px 17px;
  font-size: 12px;
  margin-bottom: 25px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  overflow: hidden;
  padding: 24px;
  box-shadow: 0 3px 8px #12294203;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}
.card-head .small {
  margin-top: 7px;
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 5px 8px;
  font-weight: 700;
  background: #e8edf3;
  color: #526278;
}
.badge.up,
.badge.recovery {
  background: var(--brand-subtle);
  color: var(--brand-text);
}
.badge.down {
  background: #ffebe8;
  color: #ad302b;
}
.badge.stale,
.badge.unknown {
  background: #fff3d4;
  color: #785b18;
}
.topbar .badge {
  background: #324153;
  color: #f1dfaa;
}
.metrics {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.metric .value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 5px;
}
.metric .unit {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: #5d6e83;
}
.metric .label {
  font-size: 11px;
  color: #65758a;
}
.metric .value.hero {
  color: var(--brand-text);
}
.chart {
  width: 100%;
  display: block;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #68788b;
  gap: 8px;
  margin-top: 3px;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5d6e83;
  margin: 15px 0 7px;
  gap: 12px;
}
.chart-grid {
  stroke: #e6edf2;
  stroke-dasharray: 3 5;
}
.latency-path {
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.latency-dot {
  fill: var(--brand);
}
.bucket-up {
  fill: var(--brand);
}
.bucket-down {
  fill: #e58b78;
}
.bucket-unknown {
  fill: #68788b;
}
.bucket-failure-mark {
  stroke: #ad302b;
  stroke-width: 1.5;
  fill: none;
}
.card-bottom {
  font-size: 11px;
  color: #63758a;
  border-top: 1px solid #edf0f5;
  padding-top: 15px;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
}
.section-row h2 {
  font-size: 16px;
}
.scope {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #eaf0f6;
  border: 1px solid #d8e2ec;
  padding: 18px;
  border-radius: 10px;
  margin-top: 22px;
  font-size: 12px;
  color: #52677f;
}
.scope strong {
  display: block;
  color: #2d4764;
  margin-bottom: 4px;
}
.scope-symbol {
  font-size: 20px;
}
.event-list {
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  overflow: hidden;
}
.event {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 22px;
  align-items: start;
  border-bottom: 1px solid #eef1f5;
}
.event:last-child {
  border: 0;
}
.event .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-action);
  margin-top: 7px;
}
.event .dot.down {
  background: #dd7967;
}
.event strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.event time {
  font-size: 11px;
  color: #68788b;
  text-align: right;
}
.empty {
  padding: 28px;
  color: #68788b;
  text-align: center;
  font-size: 13px;
}
.filter {
  max-width: 320px;
  margin-bottom: 22px;
}
.license-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.license-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid #edf0f5;
  font-size: 12px;
}
.backup-card {
  margin-top: 20px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 25px 0;
}
.step {
  border-top: 4px solid #e4e9ef;
  padding-top: 10px;
  font-size: 11px;
  color: #66788d;
}
.step.done {
  border-color: var(--brand-action);
  color: var(--brand-text);
}
.step strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.plan-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.push-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.push-card p {
  margin-top: 12px;
  max-width: 780px;
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 10% 10%, var(--brand-subtle-hover), transparent 65%), #f3f6f9;
}
.login-card {
  max-width: 430px;
  width: 100%;
  background: #fff;
  padding: 38px;
  border: 1px solid #dce5eb;
  border-radius: 18px;
  box-shadow: 0 25px 80px #1735520b;
}
.login-card > img {
  margin-bottom: 25px;
}
.login-card > p {
  margin-top: 12px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}
.login-card button {
  display: flex;
  justify-content: space-between;
}
.login-note {
  font-size: 11px;
  color: #73859a;
  margin-top: 25px;
  text-align: center;
}
#login-error,
#app-error {
  color: #9e332b;
  font-size: 13px;
}
#app-error {
  padding: 12px;
  background: #ffebe8;
  border-radius: 8px;
  margin-bottom: 15px;
}
#connection {
  position: sticky;
  top: 0;
  background: #8b3c23;
  color: white;
  padding: 12px 20px;
  font-size: 13px;
  z-index: 20;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #152c3e;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  z-index: 30;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 13px;
  box-shadow: 0 5px 30px #0002;
}
footer {
  margin-top: 35px;
  font-size: 11px;
  line-height: 1.8;
  color: #748297;
  border-top: 1px solid #dfe5ed;
  padding-top: 20px;
}
code {
  font-size: 0.95em;
}
a {
  color: var(--brand-text);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .content {
    padding: 40px 50px;
  }
  .card {
    padding: 28px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  aside {
    padding: 30px 13px;
  }
  .content {
    padding: 28px 24px;
  }
  .card {
    padding: 20px;
  }
  .metric .value {
    font-size: 23px;
  }
  .plan-form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .layout {
    display: block;
  }
  aside {
    padding: 8px 16px;
    border-right: 0;
    border-bottom: 1px solid #dfe5ed;
  }
  nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  nav button {
    font-size: 12px;
    gap: 7px;
    padding: 9px 10px;
  }
  .nav-label,
  .sidebar-note {
    display: none;
  }
  .topbar {
    height: 66px;
    padding: 0 22px;
  }
  .content {
    padding: 26px 20px;
  }
  .top-actions {
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .brand b {
    font-size: 13px;
    margin-left: 5px;
    padding-left: 8px;
  }
  .cards,
  .license-cards {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .refresh {
    min-width: 88px;
  }
  #updated {
    font-size: 10px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar > span {
    max-width: 160px;
    text-align: right;
    font-size: 10px;
  }
  .card {
    padding: 23px;
  }
  .metric .value {
    font-size: 28px;
  }
  .steps {
    gap: 6px;
  }
  .step strong {
    font-size: 11px;
  }
}
@media (max-width: 420px) {
  .topbar {
    padding: 0 16px;
  }
  .brand b {
    display: none;
  }
  .content {
    padding: 23px 15px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .toolbar label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .toolbar select {
    max-width: 185px;
  }
  .metric .value {
    font-size: 25px;
  }
  .event {
    padding: 16px;
    gap: 10px;
  }
  .event time {
    max-width: 80px;
  }
  .plan-form {
    grid-template-columns: 1fr 1fr;
  }
  .plan-form label:nth-child(3) {
    grid-column: span 2;
  }
  .card {
    padding: 20px;
  }
  .login-card {
    padding: 28px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .top-actions .badge {
    font-size: 9px;
  }
}
@media (max-width: 420px) {
  nav button {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 2px;
    font-size: 11px;
  }
  nav button span {
    font-size: 17px;
  }
  .card-head > div {
    min-width: 0;
  }
  .badge {
    max-width: 100%;
  }
}
