/* CableWebHosting status page. Brand colors come from the CableWebHosting logo (orange, blue, teal). */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand-orange: #d27b2c;
  --brand-blue: #2272a3;
  --brand-teal: #36a0a0;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --border: #e2e7ee;
  --border-strong: #cdd5e0;
  --text: #1c2533;
  --muted: #5b6878;
  --faint: #8792a2;
  --link: #1d6797;
  --link-hover: #b9631a;
  --btn-bg: #2272a3;
  --btn-bg-hover: #1b5d86;
  --btn-text: #ffffff;
  --shadow: 0 10px 30px rgba(20, 35, 60, .14);
  --focus: #d27b2c;

  /* status colors: bars/fills, and darker versions for text on white */
  --op: #2fb865;      --op-text: #16834a;
  --deg: #f1c40f;     --deg-text: #8a6a00;
  --par: #ee8a2b;     --par-text: #b4560d;
  --maj: #e5483b;     --maj-text: #c0352a;
  --mnt: #3a8fd6;     --mnt-text: #1e6cb0;
  --nodata: #d3d9e1;
  --future: #eef1f5;

  --banner-op: #1f9d55;
  --banner-deg: #f1c40f; --banner-deg-text: #3d3000;
  --banner-par: #d9701a;
  --banner-maj: #cf3b2e;
  --banner-mnt: #2b7cc2;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1018;
    --bg-soft: #0f1621;
    --surface: #111925;
    --border: #233042;
    --border-strong: #31415a;
    --text: #e6ecf4;
    --muted: #9ba9bc;
    --faint: #75839a;
    --link: #6fb7e6;
    --link-hover: #f0a35e;
    --btn-bg: #2a80b6;
    --btn-bg-hover: #3591c9;
    --shadow: 0 12px 34px rgba(0, 0, 0, .55);
    --op-text: #4ade80; --deg-text: #facc15; --par-text: #fb923c; --maj-text: #f87171; --mnt-text: #60a5fa;
    --nodata: #2b3749;
    --future: #161f2c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1018;
  --bg-soft: #0f1621;
  --surface: #111925;
  --border: #233042;
  --border-strong: #31415a;
  --text: #e6ecf4;
  --muted: #9ba9bc;
  --faint: #75839a;
  --link: #6fb7e6;
  --link-hover: #f0a35e;
  --btn-bg: #2a80b6;
  --btn-bg-hover: #3591c9;
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  --op-text: #4ade80; --deg-text: #facc15; --par-text: #fb923c; --maj-text: #f87171; --mnt-text: #60a5fa;
  --nodata: #2b3749;
  --future: #161f2c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { line-height: 1.25; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--btn-bg); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.brand-stripe { height: 4px; background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange) 30%, var(--brand-blue) 62%, var(--brand-teal) 100%); }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* ---------- header */
.masthead { border-bottom: 1px solid var(--border); background: var(--bg); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 96px; padding-top: 1rem; padding-bottom: 1rem; }
.logo { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { height: 56px; width: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.logo-word { height: 26px; width: auto; max-width: 100%; display: block; }
.logo-sub { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.masthead-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.15rem; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--link); color: var(--text); }
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-text); }
.btn-block { width: 100%; }

.theme-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.theme-btn:hover { color: var(--text); border-color: var(--link); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

.subscribe { position: relative; }
.subscribe-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 330px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.sp-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.sp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem .5rem;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.sp-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-tab.is-on { color: var(--text); border-bottom-color: var(--brand-orange); }
.sp-close { width: 44px; border: 0; background: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; }
.sp-close:hover { color: var(--text); }
.sp-body { padding: 1.1rem 1.2rem 1.2rem; font-size: .95rem; }
.sp-body p { margin: 0 0 .9rem; color: var(--muted); }
.sp-body p:last-child { margin-bottom: 0; }
.sp-note { margin-top: .9rem !important; text-align: center; }
.sp-links a { font-weight: 600; }

/* ---------- main status */
main.wrap { padding-top: 2.5rem; padding-bottom: 1rem; }
.page-status {
  display: flex; align-items: center; gap: .85rem; border-radius: 10px; padding: 1.15rem 1.4rem; margin-bottom: 2.6rem; color: #fff;
}
.page-status h1 { margin: 0; font-size: 1.45rem; font-weight: 600; }
.page-status .sicon { width: 30px; height: 30px; flex: none; }
.page-status .sicon-bg { fill: rgba(255, 255, 255, .22); }
.page-status .sicon path, .page-status .sicon circle:not(.sicon-bg) { stroke: #fff; fill: none; }
.page-status.s-operational { background: var(--banner-op); }
.page-status.s-degraded { background: var(--banner-deg); color: var(--banner-deg-text); }
.page-status.s-degraded .sicon path { stroke: var(--banner-deg-text); }
.page-status.s-degraded .sicon circle:not(.sicon-bg) { fill: var(--banner-deg-text); stroke: var(--banner-deg-text); }
.page-status.s-partial { background: var(--banner-par); }
.page-status.s-major { background: var(--banner-maj); }
.page-status.s-maintenance { background: var(--banner-mnt); }

.overall-line { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin: 0 0 1.6rem; }
.overall-line .sicon { width: 20px; height: 20px; }

.notice-stale {
  border: 1px solid var(--border-strong); background: var(--bg-soft); border-left: 4px solid var(--deg);
  padding: .75rem 1rem; border-radius: 8px; margin: -1.6rem 0 2rem; color: var(--muted); font-size: .93rem;
}

/* status icons (legend, banner) */
.sicon { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.sicon path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sicon circle:not(.sicon-bg) { fill: #fff; stroke: #fff; stroke-width: 1.5; }
.sicon.c-operational .sicon-bg { fill: var(--op); }
.sicon.c-degraded .sicon-bg { fill: var(--deg); }
.sicon.c-partial .sicon-bg { fill: var(--par); }
.sicon.c-major .sicon-bg { fill: var(--maj); }
.sicon.c-maintenance .sicon-bg { fill: var(--mnt); }
.sicon.c-maintenance path { stroke-width: 1.7; }

/* ---------- open incidents */
.incident-box { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.4rem; background: var(--surface); }
.incident-box-title { margin: 0; padding: .85rem 1.25rem; font-size: 1.12rem; font-weight: 600; color: #fff; }
.incident-box-title a, .incident-box-title a:hover { color: inherit; }
.incident-box.impact-none .incident-box-title { background: #5b6878; }
.incident-box.impact-minor .incident-box-title { background: var(--banner-deg); color: var(--banner-deg-text); }
.incident-box.impact-major .incident-box-title { background: var(--banner-par); }
.incident-box.impact-critical .incident-box-title { background: var(--banner-maj); }
.incident-box.impact-maintenance .incident-box-title { background: var(--banner-mnt); }
.incident-box-body { padding: .4rem 1.25rem 1rem; }
.incident-box-note { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }
.incident-box + .components-intro { margin-top: 2rem; }

/* ---------- components */
.components-intro { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--muted); margin-bottom: .55rem; }
.components { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.components > .cg, .components > .crow { padding: 1.15rem 1.35rem 1rem; border-bottom: 1px solid var(--border); }
.components > :last-child { border-bottom: 0; }
.crow-head { display: flex; align-items: center; gap: .5rem; min-height: 28px; }
.cname { font-weight: 600; font-size: 1.02rem; }
.cstatus { margin-left: auto; font-size: .92rem; font-weight: 500; white-space: nowrap; padding-left: .75rem; }
.cstatus.c-operational { color: var(--op-text); }
.cstatus.c-degraded { color: var(--deg-text); }
.cstatus.c-partial { color: var(--par-text); }
.cstatus.c-major { color: var(--maj-text); }
.cstatus.c-maintenance { color: var(--mnt-text); }

.qtip {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; flex: none;
  border: 1px solid var(--border-strong); color: var(--faint); font-size: .68rem; font-weight: 700; cursor: help; line-height: 1;
}
.qtip:hover, .qtip:focus-visible { color: var(--text); border-color: var(--muted); }

.cg-toggle { display: inline-flex; align-items: center; gap: .55rem; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.cg-toggle:hover .cname { color: var(--link); }
.cg-icon { position: relative; width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 4px; flex: none; }
.cg-icon::before, .cg-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--muted); border-radius: 1px; transform: translate(-50%, -50%); }
.cg-icon::before { width: 8px; height: 1.6px; }
.cg-icon::after { width: 1.6px; height: 8px; transition: transform .15s ease; }
.cg.is-open .cg-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.cg-count { font-size: .8rem; color: var(--faint); font-weight: 500; }
.cg-children { margin: 1rem 0 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); }
.crow-child { padding: .95rem 1.1rem .85rem; border-bottom: 1px solid var(--border); }
.crow-child:last-child { border-bottom: 0; }
.crow-child .cname { font-weight: 500; font-size: .97rem; }

/* 90-day bars */
.bars { display: flex; gap: 2px; height: 34px; margin-top: .7rem; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--nodata); transition: opacity .12s ease; }
.bars .bar:hover { opacity: .65; }
.s-operational { background: var(--op); }
.s-degraded { background: var(--deg); }
.s-partial { background: var(--par); }
.s-major { background: var(--maj); }
.s-maintenance { background: var(--mnt); }
.s-nodata { background: var(--nodata); }
.bar-legend { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; font-size: .8rem; color: var(--faint); white-space: nowrap; }
.bar-legend .rule { flex: 1; height: 1px; background: var(--border); }
.bar-legend .d60, .bar-legend .d30 { display: none; }
@media (max-width: 760px) {
  .bars .bar:nth-child(-n+30) { display: none; }
  .bar-legend .d90, .bar-legend .d30 { display: none; }
  .bar-legend .d60 { display: inline; }
}
@media (max-width: 520px) {
  .bars .bar:nth-child(-n+60) { display: none; }
  .bar-legend .d90, .bar-legend .d60 { display: none; }
  .bar-legend .d30 { display: inline; }
}

.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin: 1.1rem 0 .4rem; padding: 0; font-size: .88rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.checked-at { text-align: center; font-size: .82rem; color: var(--faint); margin: .2rem 0 0; }

/* ---------- sections */
.section { margin-top: 3.2rem; }
.section-title { font-size: 1.45rem; font-weight: 600; margin: 0 0 1.1rem; }
.maint-item { border: 1px solid var(--border); border-left: 4px solid var(--mnt); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; background: var(--surface); }
.maint-item p { margin: .35rem 0; }
.maint-when { font-size: .92rem; color: var(--muted); font-weight: 500; }
.affects { font-size: .9rem; color: var(--muted); }
small { font-size: .84rem; color: var(--faint); }

.day { margin-bottom: 1.9rem; }
.day-title { font-size: 1.08rem; font-weight: 600; margin: 0 0 .6rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.no-incidents { color: var(--faint); margin: .3rem 0; }
.incident { margin-bottom: 1.2rem; }
.incident-title { margin: .2rem 0 .5rem; font-size: 1.1rem; font-weight: 600; }
.incident-title a { color: inherit; }
.incident-title.impact-none, .incident-title.impact-none a { color: var(--text); }
.incident-title.impact-minor, .incident-title.impact-minor a { color: var(--deg-text); }
.incident-title.impact-major, .incident-title.impact-major a { color: var(--par-text); }
.incident-title.impact-critical, .incident-title.impact-critical a { color: var(--maj-text); }
.incident-title.impact-maintenance, .incident-title.impact-maintenance a { color: var(--mnt-text); }
.update { margin: .5rem 0 .9rem; }
.update p { margin: 0 0 .15rem; overflow-wrap: anywhere; }

.page-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; padding-top: 1rem; padding-bottom: 2.4rem; font-size: .92rem; }
.back { font-weight: 600; }
.powered { color: var(--faint); margin-left: auto; }

/* ---------- history and uptime pages */
.history-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.history-head h1 { margin: 0; font-size: 1.7rem; font-weight: 600; }
.tabs { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.tab { padding: .55rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--muted); }
.tab + .tab { border-left: 1px solid var(--border-strong); }
.tab:hover { text-decoration: none; color: var(--text); background: var(--bg-soft); }
.tab.is-on { background: var(--btn-bg); color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .6rem 0 1.6rem; font-weight: 600; color: var(--muted); }
.pager a, .pager .off { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 1.3rem; line-height: 1; }
.pager a:hover { text-decoration: none; border-color: var(--link); }
.pager .off { opacity: .35; }
.month { border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.35rem .6rem; margin-bottom: 1.4rem; background: var(--surface); }
.month-title { font-size: 1.15rem; margin: 0 0 .8rem; font-weight: 600; }
.month-incident { padding: .2rem 0 .9rem; border-top: 1px solid var(--border); }
.month-incident:first-of-type { border-top: 0; }
.month-incident p { margin: 0 0 .25rem; color: var(--muted); overflow-wrap: anywhere; }

.uptime-pick { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.uptime-pick label { font-weight: 600; }
.uptime-pick select { font: inherit; padding: .55rem .8rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); min-width: 260px; max-width: 100%; }
.calendars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 760px) { .calendars { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin: 0 auto; } }
.cal { border: 1px solid var(--border); border-radius: 10px; padding: .9rem; background: var(--surface); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.cal-head h2 { font-size: 1rem; margin: 0; font-weight: 600; }
.cal-pct { font-size: .85rem; color: var(--muted); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { font-size: .68rem; text-align: center; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.cal-day { aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .92); cursor: default; }
.cal-day.s-nodata { color: var(--faint); }
.cal-day.s-degraded { color: #3d3000; }
.cal-day.s-future { background: var(--future); color: var(--faint); }
.uptime-note { font-size: .85rem; color: var(--faint); margin-top: 1.4rem; }

.incident-page-head { margin-bottom: 1.6rem; }
.incident-page h1.incident-title { font-size: 1.8rem; margin: 0 0 .4rem; }
.incident-lead { color: var(--muted); margin: 0 0 .3rem; }
.incident-state { display: inline-block; font-weight: 600; font-size: .9rem; padding: .35rem .75rem; border-radius: 999px; margin: .6rem 0 0; }
.incident-state.is-done { background: color-mix(in srgb, var(--op) 16%, transparent); color: var(--op-text); }
.incident-state.is-open { background: color-mix(in srgb, var(--par) 16%, transparent); color: var(--par-text); }
.timeline { border-top: 1px solid var(--border); }
.tl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.tl-status { font-weight: 700; }
.tl-body p { margin: 0 0 .3rem; overflow-wrap: anywhere; }
@media (max-width: 560px) { .tl-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }
.empty-page { text-align: center; padding: 3rem 0; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 1.6rem 0 2rem; font-size: .88rem; color: var(--muted); text-align: center; }
.site-footer p { margin: .8rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-weight: 500; }

/* ---------- tooltip (uptime bars and ? icons) */
.tooltip {
  position: absolute; z-index: 40; width: max-content; max-width: 280px; padding: .8rem .95rem; border-radius: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .87rem; line-height: 1.45;
}
.tooltip::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); width: 10px; height: 10px; background: var(--surface);
  border: 1px solid var(--border); transform: translateX(-50%) rotate(45deg);
}
.tooltip[data-side="top"]::after { bottom: -6px; border-top: 0; border-left: 0; }
.tooltip[data-side="bottom"]::after { top: -6px; border-bottom: 0; border-right: 0; }
.tt-date { font-weight: 700; margin-bottom: .35rem; }
.tt-line { display: flex; align-items: center; gap: .45rem; }
.tt-line .sicon { width: 15px; height: 15px; vertical-align: 0; }
.tt-line b { margin-left: auto; padding-left: .8rem; font-weight: 600; }
.tt-muted { color: var(--muted); }
.tt-related { margin-top: .55rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.tt-related-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; margin-bottom: .2rem; }
.tt-related a { display: block; font-weight: 600; }
.tt-related a span { display: block; font-weight: 400; font-size: .78rem; color: var(--faint); }

@media (max-width: 640px) {
  .masthead-inner { min-height: 0; flex-wrap: wrap; }
  .logo-mark { height: 42px; }
  .logo-word { height: 20px; }
  .logo-sub { font-size: .7rem; }
  .masthead-actions { width: 100%; }
  .subscribe { flex: 1; }
  .subscribe .btn { width: 100%; }
  .subscribe-panel { left: 0; right: auto; width: 100%; }
  main.wrap { padding-top: 1.6rem; }
  .page-status { padding: 1rem 1.1rem; }
  .page-status h1 { font-size: 1.2rem; }
  .components > .cg, .components > .crow { padding: 1rem 1rem .85rem; }
  .crow-child { padding: .85rem .85rem .75rem; }
  .cg-count { display: none; }
  .cstatus { font-size: .84rem; }
  .components-intro { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- admin page */
.page-admin .wrap { max-width: 980px; }
.admin-head h1 { margin: 0 0 .3rem; font-size: 1.7rem; }
.admin-head p { margin: 0 0 1.4rem; color: var(--muted); }
.flash { padding: .8rem 1rem; border-radius: 8px; margin: 0 0 1.2rem; font-weight: 500; }
.flash.ok { background: color-mix(in srgb, var(--op) 15%, transparent); color: var(--op-text); }
.flash.err { background: color-mix(in srgb, var(--maj) 15%, transparent); color: var(--maj-text); }
.panel { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 1.2rem 1.35rem 1.3rem; margin-bottom: 1.6rem; }
.panel h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.panel h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.muted { color: var(--muted); }
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.form label.inline { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .6rem .75rem; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--bg); color: var(--text); width: 100%;
}
.form textarea { resize: vertical; min-height: 4.5rem; }
.form .hint { font-weight: 400; font-size: .82rem; color: var(--faint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.picker { border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1rem 1rem; margin: 0; display: grid; gap: .7rem; }
.picker legend { font-weight: 600; font-size: .92rem; padding: 0 .3rem; }
.picker-gname { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; margin-bottom: .25rem; }
.form .picker-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-weight: 500; padding: .2rem 0; }
.form .picker-row select { width: auto; min-width: 190px; padding: .35rem .5rem; }
.form .picker-row input { margin-right: .4rem; }
.picker-group label.picker-row:has(input[type="checkbox"]) { justify-content: flex-start; }
.toggle-target { display: none; }
label.inline:has(input:checked) + .toggle-target { display: block; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.danger { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px dashed var(--border-strong); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-danger { background: var(--banner-maj); border-color: var(--banner-maj); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); border-color: var(--banner-maj); }
.open-item { border-top: 1px solid var(--border); padding: .9rem 0 .5rem; }
.open-item:first-of-type { border-top: 0; padding-top: 0; }
.open-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.open-head .incident-title { margin: 0; }
.open-item p { margin: .3rem 0; font-size: .92rem; }
.open-item details { margin-top: .5rem; }
.open-item summary { cursor: pointer; font-weight: 600; color: var(--link); margin-bottom: .7rem; }
.tag { font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); }
.small-link { font-size: .88rem; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.checks { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.checks th, table.checks td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.checks th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
table.checks .cstatus { margin: 0; padding: 0; font-size: .86rem; }
table.checks td.detail { color: var(--muted); max-width: 280px; overflow-wrap: anywhere; }
.past-row { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.past-row .incident-title { margin: 0; font-size: 1rem; }
.past-row .muted { font-size: .88rem; }
