/* Books With Music status UI, served by the Blazor application. */
:root {
  --ink: #183126;
  --ink-soft: #5f7168;
  --paper: #fbfcf7;
  --paper-warm: #f4f3e9;
  --surface: #ffffff;
  --line: #dbe5de;
  --line-strong: #bfd0c4;
  --green: #087c3d;
  --green-bright: #129d52;
  --green-soft: #e3f4e9;
  --lime: #c9e963;
  --amber: #d47a0b;
  --amber-soft: #fff2d5;
  --red: #b43b35;
  --red-soft: #fde8e5;
  --purple: #735783;
  --purple-soft: #f0e9f3;
  --shadow: 0 18px 55px rgba(26, 61, 42, 0.09);
  --radius: 18px;
  --radius-small: 11px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 15%, rgba(201, 233, 99, 0.13), transparent 27rem),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1[tabindex="-1"]:focus {
  outline: none;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.narrow-shell {
  max-width: 920px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  background: #076f37;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

.brand span {
  display: grid;
  line-height: 1.12;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: white;
}

.status-hero {
  padding: 54px 0 38px;
  background:
    linear-gradient(180deg, #076f37 0 43%, transparent 43%),
    transparent;
}

.overall-banner {
  position: relative;
  display: grid;
  min-height: 230px;
  grid-template-columns: auto minmax(0, 1fr) 230px;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  padding: 42px 48px;
  border: 1px solid color-mix(in srgb, var(--green) 23%, var(--line));
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 72px rgba(3, 71, 33, 0.16);
}

.overall-banner::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
  background: var(--green-bright);
}

.overall-banner.status-degraded::before,
.overall-banner.status-maintenance::before {
  background: var(--amber);
}

.overall-banner.status-partial_outage::before {
  background: #e15d3f;
}

.overall-banner.status-major_outage::before {
  background: var(--red);
}

.overall-banner.status-unknown::before {
  background: #95a39b;
}

.overall-banner h1,
.page-intro h1,
.incident-detail h1,
.result-card h1 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.overall-banner p {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.overall-banner .eyebrow {
  color: var(--green);
  font-size: 12px;
}

.status-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--green-bright);
  box-shadow: 0 0 0 13px var(--green-soft);
  font-size: 30px;
  font-weight: 900;
}

.status-mark.status-degraded,
.status-mark.status-maintenance {
  background: var(--amber);
  box-shadow: 0 0 0 13px var(--amber-soft);
}

.status-mark.status-partial_outage {
  background: #e15d3f;
  box-shadow: 0 0 0 13px #fff0eb;
}

.status-mark.status-major_outage {
  background: var(--red);
  box-shadow: 0 0 0 13px var(--red-soft);
}

.status-mark.status-unknown {
  background: #819087;
  box-shadow: 0 0 0 13px #edf1ed;
}

.status-mark svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.4;
}

.pulse-lines {
  position: relative;
  display: flex;
  height: 100px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0.72;
}

.pulse-lines::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.pulse-lines i {
  z-index: 1;
  display: block;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(var(--lime), var(--green-bright));
  box-shadow: 0 0 0 5px white;
}

.pulse-lines i:nth-child(1) { height: 20px; }
.pulse-lines i:nth-child(2) { height: 48px; }
.pulse-lines i:nth-child(3) { height: 78px; }
.pulse-lines i:nth-child(4) { height: 36px; }
.pulse-lines i:nth-child(5) { height: 62px; }
.pulse-lines i:nth-child(6) { height: 30px; }
.pulse-lines i:nth-child(7) { height: 16px; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 42px;
  padding-top: 26px;
  padding-bottom: 78px;
}

.main-column,
.side-column {
  min-width: 0;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.incident-detail h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link svg {
  transition: transform 0.16s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.service-list,
.incident-list {
  display: grid;
  gap: 13px;
}

.service-card,
.incident-card,
.subscribe-card,
.plain-card,
.history-overview,
.incident-detail,
.result-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(33, 69, 48, 0.045);
}

.service-card {
  padding: 21px 22px 17px;
}

.service-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.service-heading h3,
.incident-card h3,
.plain-card h3,
.history-row h3,
.empty-state h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.service-heading p {
  max-width: 520px;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-text.status-degraded,
.status-text.status-maintenance {
  color: var(--amber);
}

.status-text.status-partial_outage {
  color: #cb4d31;
}

.status-text.status-major_outage {
  color: var(--red);
}

.status-text.status-unknown {
  color: #738178;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.history-bars-wrap {
  margin-top: 16px;
}

.history-bars {
  display: grid;
  grid-template-columns: repeat(90, minmax(2px, 1fr));
  gap: 2px;
  height: 25px;
}

.history-day {
  min-width: 2px;
  border-radius: 2px;
  background: var(--green-bright);
}

.history-day.status-degraded,
.history-legend .status-degraded i {
  background: #e3a62d;
}

.history-day.status-partial_outage,
.history-legend .status-partial_outage i {
  background: #eb704e;
}

.history-day.status-major_outage,
.history-legend .status-major_outage i {
  background: var(--red);
}

.history-day.status-maintenance {
  background: var(--purple);
}

.history-day.status-unknown,
.history-legend .status-unknown i {
  background: #e5ebe6;
}

.history-scale,
.service-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: #829087;
  font-size: 10px;
}

.service-meta {
  justify-content: flex-start;
  margin-top: 11px;
}

.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 10px;
}

.history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.history-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green-bright);
}

.incident-card {
  position: relative;
  overflow: hidden;
  padding: 21px 23px;
}

.incident-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: #dca133;
}

.incident-card.impact-major::before {
  background: #e15d3f;
}

.incident-card.impact-critical::before {
  background: var(--red);
}

.incident-card.impact-maintenance::before {
  background: var(--purple);
}

.incident-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.incident-card h3 {
  margin-top: 4px;
  font-size: 18px;
}

.incident-card h3 a {
  text-decoration: none;
}

.incident-card h3 a:hover {
  color: var(--green);
}

.incident-card-heading time,
.timeline-update time,
.incident-dates {
  color: #7b8981;
  font-size: 11px;
  white-space: nowrap;
}

.incident-latest {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  margin-top: 17px;
}

.incident-latest p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.timeline-node {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.resolved-list .incident-card::before {
  background: var(--green-bright);
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.empty-state p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty-glyph {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--green);
  background: var(--green-soft);
  font-family: Georgia, serif;
  font-size: 26px;
}

.subscribe-card,
.plain-card {
  padding: 25px;
}

.subscribe-card {
  position: sticky;
  top: 20px;
  margin-top: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 233, 99, 0.3), transparent 160px),
    white;
}

.subscribe-card h2 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.14;
}

.subscribe-card > p:not(.eyebrow),
.plain-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.card-icon,
.result-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 12px;
  color: white;
  background: var(--green);
}

.subscribe-form {
  display: grid;
  gap: 9px;
  margin-top: 19px;
}

.subscribe-form label,
.form-field label {
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 157, 82, 0.13);
}

input:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.honey-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(8, 124, 61, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: #076b35;
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--green);
  background: white;
}

.button-danger {
  color: white;
  background: var(--red);
}

.subscribe-card small {
  display: block;
  margin-top: 12px;
  color: #7a8880;
  font-size: 10px;
  line-height: 1.45;
}

.plain-card h3 {
  margin: 5px 0 8px;
}

.inner-page {
  min-height: 65vh;
  padding: 58px 0 90px;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 38px;
}

.page-intro h1 {
  margin-top: 6px;
}

.page-intro > p:last-child,
.incident-summary,
.result-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.history-overview {
  padding: 28px;
}

.history-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.history-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.history-row .history-bars-wrap {
  margin-top: 11px;
}

.history-incidents {
  margin-top: 48px;
}

.month-group {
  margin-top: 30px;
}

.month-group > h3 {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.incident-shell {
  max-width: 820px;
}

.back-link {
  margin-bottom: 20px;
}

.back-link svg {
  transform: rotate(180deg);
}

.incident-detail {
  overflow: hidden;
}

.incident-detail > header {
  padding: 38px 42px 32px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 233, 99, 0.2), transparent 240px),
    white;
}

.incident-detail h1 {
  margin-top: 14px;
  font-size: clamp(34px, 6vw, 52px);
}

.incident-dates {
  margin: 14px 0 0;
}

.incident-detail > section {
  padding: 32px 42px 38px;
}

.incident-timeline {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.incident-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding-bottom: 28px;
}

.incident-timeline li:not(:last-child)::before {
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 4px;
  width: 2px;
  content: "";
  background: var(--line);
}

.timeline-update > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.timeline-update strong {
  font-size: 14px;
}

.latest-label {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-update p {
  margin: 5px 0 5px;
  color: var(--ink-soft);
}

.result-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.result-card {
  max-width: 600px;
  padding: 45px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 17px;
  font-size: 24px;
}

.result-card .button,
.result-card form {
  margin-top: 25px;
}

.site-footer {
  padding: 27px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper-warm);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.footer-inner > div {
  display: flex;
  gap: 18px;
}

.admin-login-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.admin-login-card {
  max-width: 470px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.admin-login-card h1,
.admin-topbar h1 {
  margin: 4px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.admin-login-card > p:not(.eyebrow),
.admin-topbar > div > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.stack-form {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.form-field small,
.toggle-field small {
  color: var(--ink-soft);
  font-size: 10px;
}

.form-alert {
  margin: 18px 0;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.form-alert-error {
  border-color: #efb7b2;
  color: #8c2f2b;
  background: var(--red-soft);
}

.form-alert-warning {
  border-color: #e9cc8d;
  color: #875411;
  background: var(--amber-soft);
}

.form-alert-success {
  border-color: #a9d7ba;
  color: #076f37;
  background: var(--green-soft);
}

.admin-page {
  min-height: 72vh;
  padding: 48px 0 85px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 233, 99, 0.14), transparent 430px),
    #f7f9f5;
}

.admin-shell {
  max-width: 1240px;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.admin-actions {
  display: flex;
  gap: 9px;
}

.admin-actions form {
  margin: 0;
}

.setup-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px 42px;
  margin-bottom: 22px;
  padding: 24px 27px;
  border: 1px solid #e7cb8d;
  border-radius: var(--radius);
  background: var(--amber-soft);
}

.setup-banner h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.setup-banner ul {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-banner li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #7a531a;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
}

.setup-banner li span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #c38725;
  font-size: 10px;
}

.setup-banner li.done {
  color: var(--green);
}

.setup-banner li.done span {
  background: var(--green);
}

.setup-banner > p {
  grid-column: 1 / -1;
  margin: -10px 0 0;
  color: #7a531a;
  font-size: 12px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.admin-metrics article {
  display: grid;
  gap: 7px;
  min-height: 92px;
  align-content: center;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.admin-metrics article > span:first-child {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metrics strong {
  font-size: 17px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.72fr);
  align-items: start;
  gap: 20px;
}

.admin-main,
.admin-side {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-heading h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 24px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.check-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.check-fieldset legend {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.check-fieldset > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-fieldset label {
  position: relative;
  cursor: pointer;
}

.check-fieldset input {
  position: absolute;
  opacity: 0;
}

.check-fieldset label span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  font-size: 11px;
  font-weight: 750;
}

.check-fieldset input:checked + span {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.check-fieldset input:focus-visible + span {
  outline: 3px solid rgba(18, 157, 82, 0.2);
}

.toggle-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.toggle-field input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
  accent-color: var(--green);
}

.toggle-field span {
  display: grid;
  gap: 1px;
}

.toggle-field strong {
  font-size: 12px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-empty {
  margin: 0;
  padding: 28px 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.admin-incident-list {
  display: grid;
}

.admin-incident {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-incident:last-child {
  border-bottom: 0;
}

.admin-incident > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-incident h3 {
  margin: 6px 0 2px;
  font-size: 18px;
}

.admin-incident header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.admin-incident header > a {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.admin-incident .incident-timeline {
  max-height: 300px;
  overflow: auto;
  margin-bottom: 20px;
  padding: 18px 12px 0;
  border-radius: 12px;
  background: #f8faf7;
}

.update-form {
  display: flex;
  align-items: end;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.update-form textarea {
  min-height: 82px;
}

.form-grow {
  flex: 1 1 auto;
}

.component-settings {
  display: grid;
}

.component-setting {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.component-setting:last-child {
  border-bottom: 0;
}

.component-setting-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.component-setting h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.component-setting-heading > span {
  color: var(--ink-soft);
  font-size: 10px;
}

.component-setting .button {
  justify-self: start;
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .subscribe-card {
    position: static;
    margin-top: 0;
  }

  .overall-banner {
    grid-template-columns: auto 1fr;
  }

  .pulse-lines {
    display: none;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .setup-banner {
    grid-template-columns: 1fr;
  }

  .setup-banner > p {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 26px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a {
    font-size: 12px;
  }

  .site-header nav a:last-child {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .status-hero {
    padding-top: 34px;
  }

  .overall-banner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 34px 29px;
    border-radius: 22px;
  }

  .overall-banner h1 {
    font-size: 37px;
  }

  .overall-banner p {
    font-size: 15px;
  }

  .status-mark {
    width: 58px;
    height: 58px;
    box-shadow: 0 0 0 9px var(--green-soft);
  }

  .service-heading,
  .incident-card-heading,
  .section-heading,
  .history-row > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .incident-card-heading time {
    white-space: normal;
  }

  .history-bars {
    gap: 1px;
    height: 22px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .history-overview,
  .incident-detail > header,
  .incident-detail > section,
  .result-card {
    padding: 27px 23px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar,
  .update-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    flex-wrap: wrap;
  }

  .admin-metrics,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
