@font-face { font-family: "Inter"; src: url("/assets/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --navy: #001736; --ink: #111318; --muted: #717182; --faint: #a3a3b0; --line: rgba(0, 0, 0, .07);
  --soft: #f5f5f7; --soft-2: #ececf0; --page: #f6f7f9;
  --ok: #10b981; --ok-ink: #059669; --warn: #f59e0b; --warn-ink: #b45309; --crit: #e11d48;
  --r: 1rem; --shadow: 0 1px 0.125rem rgba(16, 24, 40, .05), 0 0.25rem 1.125rem rgba(16, 24, 40, .05);
  --spring: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: clamp(13px, min(.82vw, 1.7vh), 19px); }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--ink); font: 0.8125rem/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h2, p { margin: 0; }
h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: -.005em; }
.tnum { font-variant-numeric: tabular-nums; }
.cap { color: var(--muted); font-size: 0.7188rem; }

/* one page: header, map and numbers on the left, systems on the right */
.shell { height: 100vh; display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.5rem; width: 100%; max-width: 78rem; margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; } .brand img { height: 1.5rem; width: auto; display: block; }
.brand span { font-size: 0.625rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-left: 0.75rem; border-left: 1px solid var(--line); }
.overall { display: flex; align-items: center; gap: 0.625rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.7812rem; padding: 0.375rem 0.8125rem; border-radius: 6.1875rem; background: #ecfdf5; color: var(--ok-ink); transition: background .4s, color .4s; }
.pill::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: currentColor; }
.pill.degraded, .pill.partial { background: #fffbeb; color: var(--warn-ink); } .pill.down { background: #fff1f2; color: var(--crit); } .pill.unknown { background: var(--soft-2); color: var(--muted); }
.alerts:empty { display: none; }
.alert { background: #fffbeb; color: #78350f; border-radius: 0.75rem; padding: 0.5625rem 0.875rem; font-weight: 500; font-size: 0.7812rem; }
.alert + .alert { margin-top: 0.375rem; }

.grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0.75rem; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 0.75rem; min-height: 0; min-width: 0; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 0.875rem 1rem; min-height: 0; animation: rise .55s var(--spring) both; }
.col > .card:nth-child(2) { animation-delay: .06s; } .col > .card:nth-child(3) { animation-delay: .12s; }
.fresh .card { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(0.5rem); } }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.625rem; }

/* map */
.map { flex: 1; display: flex; flex-direction: column; }
.mapwrap { position: relative; flex: 1; min-height: 10rem; margin-top: 0.5rem; display: grid; place-items: center; border-radius: 0.75rem; background: #fbfbfd; overflow: hidden; }
canvas { display: block; }
.tip { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--ink); color: #fff; border-radius: 0.625rem; padding: 0.375rem 0.625rem; font-size: 0.7188rem; line-height: 1.45; box-shadow: 0 0.625rem 1.875rem rgba(16, 24, 40, .25); white-space: nowrap; }
.tip.on { opacity: 1; } .tip span { color: rgba(255, 255, 255, .65); }
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; font-size: 0.6875rem; color: var(--muted); }
.legend i { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-right: 0.3125rem; vertical-align: -1px; }
.g { background: #34d399 !important; } .y { background: #fcd34d !important; } .r { background: #fb7185 !important; } .n { background: var(--soft-2) !important; }

/* numbers */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0.75rem 0.375rem; }
.num { padding: 0 0.875rem; border-left: 1px solid var(--line); } .num:first-child { border-left: 0; }
.num b { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -.035em; color: var(--navy); line-height: 1.15; }
.num span { font-size: 0.6562rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* systems list */
.sys { flex: 1; overflow: auto; scrollbar-width: thin; }
.row { padding: 0.375rem 0; } .row + .row { border-top: 1px solid var(--line); }
.row .l { display: flex; align-items: center; gap: 0.5625rem; }
.row .name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v { color: var(--muted); font-size: 0.7188rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--faint); flex: none; transition: background .4s; }
.dot.up { background: var(--ok); } .dot.degraded { background: var(--warn); } .dot.down { background: var(--crit); }
.bars { display: grid; grid-template-columns: repeat(var(--n, 30), 1fr); gap: 1.5px; width: 6.5rem; flex: none; }
.bars i { height: 0.875rem; border-radius: 0.125rem; background: var(--soft-2); opacity: 0; animation: fade .5s ease both; animation-delay: calc(var(--i) * 12ms); }
.fresh .bars i { animation: none; opacity: 1; }
@keyframes fade { to { opacity: 1; } }
.group-t { font-size: 0.625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0.5rem 0 0; } .group-t:first-child { margin-top: 0.125rem; }

/* financial pipeline: a vertical line with steps */
.steps { margin-top: 0.5rem; position: relative; }
.step { display: flex; align-items: center; gap: 0.625rem; padding: 0.1875rem 0; position: relative; }
.step::before { content: ""; position: absolute; left: 0.2188rem; top: -50%; bottom: 50%; width: 1px; background: var(--soft-2); }
.step:first-child::before { display: none; }
.step.live + .step.live::before { background: #a7f3d0; }
.step .name { flex: 1; } .step.planned .name, .step.planned .v { color: var(--faint); }
.step .dot { position: relative; z-index: 1; }

/* chart */
.chart { position: relative; }
svg.line { width: 100%; height: auto; display: block; overflow: visible; }
svg.line .grid { stroke: var(--soft-2); } svg.line text { font: 0.5938rem "Inter", sans-serif; fill: var(--faint); }
svg.line .ln { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--spring) .15s forwards; }
.fresh svg.line .ln { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
svg.line .area { opacity: .06; }
.empty { color: var(--muted); font-size: 0.75rem; padding: 0.375rem 0; }
.foot { color: var(--faint); font-size: 0.6875rem; }

@media (max-width: 1000px), (max-height: 640px) {
  html, body { height: auto; }
  .shell { height: auto; grid-template-rows: none; padding: 0.875rem 0.875rem 1.75rem; }
  .grid { grid-template-columns: 1fr; } .map { min-height: 0; } .mapwrap { flex: none; min-height: 0; aspect-ratio: 2 / 1; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.75rem; } .num:nth-child(3) { border-left: 0; }
  .sys { overflow: visible; }
}
@media (max-width: 520px) { .brand span { display: none; } .bar { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .card, .bars i, svg.line .ln { animation: none !important; opacity: 1; stroke-dasharray: none; stroke-dashoffset: 0; } }

.row .ms { min-width: 2.75rem; text-align: right; } .row .pc { min-width: 2.875rem; text-align: right; color: var(--ink); font-weight: 500; }

/* ---- dividers instead of boxes ---- */
body { background: #fff; }
.card { background: transparent; box-shadow: none; border-radius: 0; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.col > .card:first-child { border-top: 0; padding-top: 0; }
.grid > .col + .col { border-left: 1px solid var(--line); padding-left: 1rem; }
.bar { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.mapwrap { background: transparent; border-radius: 0; }
.nums { padding: 0.75rem 0; }
.alert { border-radius: 0; border-left: 0.1875rem solid var(--warn); }
@media (max-width: 1000px), (max-height: 640px) { .grid > .col + .col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }
