:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --canvas: #f8fafc;
  --good: #18b887;
  --warning: #f4a62a;
  --bad: #e65f5c;
  --maintenance: #4386d1;
  --armion: #b7791f;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shell { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 32px; }

.brand, .history__heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand { justify-content: center; }
.brand > div { display: none; }
.brand__logo { width: min(230px, 74vw); height: 145px; object-fit: contain; border-radius: 8px; }
.eyebrow { margin: 0 0 3px; color: var(--armion); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.015em; }
.history-link { color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; background: var(--panel); font-size: 14px; font-weight: 650; text-decoration: none; }
.history__heading .history-link { margin-left: auto; }
.history-link--bottom { display: table; margin: 22px auto 0; }
.history-link:hover { background: #f2f4f7; }

.banner { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px; font-size: 16px; font-weight: 700; background: var(--panel); }
.banner--good { color: #0a6c50; background: #ecfdf5; border-color: #9de2c7; }
.banner--warning { color: #814d00; background: #fffaeb; border-color: #f7cc79; }
.banner--bad { color: #9c2525; background: #fff1f1; border-color: #f1aaaa; }
.banner--maintenance { color: #1c4f8b; background: #eff8ff; border-color: #a9d7f5; }

.notices:empty { display: none; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 8px; background: var(--panel); padding: 16px 18px; margin-bottom: 16px; }
.notice--maintenance { border-left-color: var(--maintenance); }
.notice--incident { border-left-color: var(--bad); }
.notice__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.notice__meta span { color: #9c2525; font-weight: 700; }
.notice h3 { margin-bottom: 7px; font-size: 16px; }
.notice p { margin-bottom: 0; color: #475467; line-height: 1.5; }

.status-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: visible; }
.status-card__header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
#range-label { color: var(--muted); font-size: 13px; }
.component { border-bottom: 1px solid var(--line); }
.component:last-child { border-bottom: 0; }
.component__toggle, .component__row { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 16px 20px 10px; }
.component__toggle { cursor: pointer; }
.component__toggle:hover { background: #fafafa; }
.component__toggle--static { cursor: default; }
.component__toggle--static:hover { background: transparent; }
.component__primary { padding: 0 20px 16px; }
.component.is-open .component__primary { display: none; }
.component__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.component__name { font-size: 14px; font-weight: 700; }
.description-info { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 15px; height: 15px; color: #8a94a6; font-size: 13px; font-weight: 600; line-height: 1; cursor: help; }
.description-info::after { content: attr(data-description); position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: min(300px, 80vw); padding: 8px 10px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgb(16 24 40 / 14%); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.35; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(4px); transition: opacity .12s ease, transform .12s ease; visibility: hidden; white-space: normal; }
.description-info:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; }
.component__summary { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.component__meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.component__uptime { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.component__chevron { color: var(--muted); margin-left: 2px; transition: transform .18s ease; }
.component.is-open .component__chevron { transform: rotate(90deg); }
.component.is-open .component__head > .status-icon { display: none; }
.component.is-open .component__uptime { display: none; }
.component__children { padding: 0 20px 18px; display: grid; gap: 14px; }
.component__children[hidden] { display: none; }

.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 5px 16px; }
.bar-row__summary .bar-row__uptime { grid-column: 2; grid-row: 1; }
.bar-row__name { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.bar-row__uptime { color: var(--muted); font-size: 13px; white-space: nowrap; }
.bar { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(120, minmax(2px, 4px)); justify-content: space-between; gap: 0; min-width: 0; }
.bar__unit { position: relative; height: 12px; border-radius: 1px; background: #e9eef3; cursor: help; transition: opacity .12s ease, transform .12s ease, box-shadow .12s ease; }
.bar-tooltip { position: absolute; z-index: 10; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(4px); display: grid; gap: 7px; width: max-content; min-width: 170px; max-width: min(290px, 80vw); padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgb(16 24 40 / 14%); color: var(--ink); font-size: 12px; line-height: 1.3; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease; }
.bar-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; background: #fff; transform: translateX(-50%) rotate(45deg); }
.bar-tooltip time { color: var(--muted); font-size: 11px; }
.bar-tooltip__state { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.bar-tooltip__extra { color: var(--muted); }
.bar:has(.bar__unit:hover) .bar__unit { opacity: .34; }
.bar:has(.bar__unit:hover) .bar__unit:hover { z-index: 2; opacity: 1; transform: scale(1.35); box-shadow: 0 0 0 2px rgb(16 24 40 / 14%); }
.bar__unit:hover .bar-tooltip, .bar__unit:focus-visible .bar-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.bar__unit--edge-left .bar-tooltip { left: 0; transform: translateY(4px); }
.bar__unit--edge-left .bar-tooltip::after { left: 8px; }
.bar__unit--edge-left:hover .bar-tooltip, .bar__unit--edge-left:focus-visible .bar-tooltip { transform: translateY(0); }
.bar__unit--edge-right .bar-tooltip { right: 0; left: auto; transform: translateY(4px); }
.bar__unit--edge-right .bar-tooltip::after { right: 8px; left: auto; }
.bar__unit--edge-right:hover .bar-tooltip, .bar__unit--edge-right:focus-visible .bar-tooltip { transform: translateY(0); }
.status-icon { display: inline-grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; }
.status-icon { position: relative; cursor: help; }
.status-icon::after { content: attr(data-status-tooltip); position: absolute; z-index: 20; left: 50%; top: calc(100% + 7px); transform: translateX(-50%) translateY(-3px); width: max-content; max-width: 230px; padding: 7px 9px; border: 1px solid #e4e7ec; border-radius: 5px; background: #fff; box-shadow: 0 3px 10px rgb(16 24 40 / 14%); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.3; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease; }
.status-icon:hover::after, .status-icon:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.status-icon--up { background: var(--good); }
.status-icon--down { background: var(--bad); }
.status-icon--pending { background: var(--warning); }
.status-icon--maintenance { background: var(--maintenance); }
.status-icon--unknown { background: #98a2b3; }
.bar__unit--up { background: var(--good); }
.bar__unit--down { background: var(--bad); }
.bar__unit--pending { background: var(--warning); }
.bar__unit--maintenance { background: var(--maintenance); }
.bar__unit--unknown { background: #e9eef3; }

.history { margin-top: 10px; }
.history-mode #status-history-link { display: none !important; }
.history__heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.history__list { display: grid; gap: 14px; }
.history-item { padding: 18px 0 18px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--warning); }
.history-item--resolved { border-left-color: var(--good); }
.history-item h3 { margin-bottom: 6px; font-size: 16px; }
.history-item p { margin-bottom: 8px; color: #475467; line-height: 1.5; }
.history-item time { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 40px 18px; }
footer { color: var(--muted); font-size: 12px; text-align: center; margin-top: 30px; }

@media (max-width: 650px) {
  .shell { width: min(100% - 24px, 880px); padding-top: 24px; }
  .brand { margin-bottom: 20px; }
  .brand__logo { width: min(190px, 68vw); height: 120px; }
  .status-card__header { align-items: flex-start; gap: 8px; flex-direction: column; }
  .bar-row { grid-template-columns: 1fr auto; gap: 8px; }
  .bar { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(120, 1.5px); }
  .component__primary, .component__children { padding-left: 16px; padding-right: 16px; }
  .component__toggle, .component__row { padding-left: 16px; padding-right: 16px; }
  .component__head { gap: 6px; }
  .component__head { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; row-gap: 6px; }
  .component__head > .status-icon { grid-column: 1; grid-row: 1; margin-top: 2px; }
  .component__name { grid-column: 2; grid-row: 1; min-width: 0; }
  .description-info { grid-column: 3; grid-row: 1; align-self: center; }
  .component__summary { grid-column: 2; grid-row: 2; }
  .component__uptime { grid-column: 3; grid-row: 2; margin-left: 0; }
  .component__meta, .component__uptime { font-size: 12px; }
  .notice__meta { align-items: flex-start; flex-direction: column; gap: 3px; }
}
