:root {
  --g100-bg: #161616;       /* background */
  --text-primary: #f4f4f4;  /* primary text */
  --text-secondary: #c6c6c6;/* secondary text */
  --border-subtle: #393939;
  --interactive: #78a9ff;   /* link on dark */
  --focus: #0f62fe;

  --container-max: 72ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--g100-bg);
  color: var(--text-primary);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 1.5vw + 1rem, 3rem) 0;
}

.page__row {
  justify-content: center;
}

.maintenance {
  /* No card/tile visuals: just spacing and centered measure */
  padding: clamp(0.5rem, 1vw + 0.5rem, 1.5rem) 0;
  max-width: min(var(--container-max), 92vw);
  margin-inline: auto;
}

.maintenance__header {
  margin-bottom: 1rem;
}

.maintenance__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f1c21b; /* yellow */
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(241,194,27,0.2);
}

.maintenance__title {
  margin: 0.5rem 0 0.25rem 0;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  line-height: 1.2;
}

.maintenance__subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.125rem);
}

.maintenance__body {
  margin-top: 1.5rem;
}

/* Timer: stacks on small screens, aligns inline on wider screens */
.maintenance__timer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 480px) {
  .maintenance__timer {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
  }
}

.timer__info {
  display: grid;
  gap: 0.125rem;
}

.timer__label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timer__value {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
}

.maintenance__notify {
  margin-top: clamp(1rem, 1.5vw, 1.5rem);
}

.notify__group {
  display: grid;
  gap: 0.5rem;
}

.notify__input {
  width: 100%;
  max-width: 100%;
}

.notify__input .bx--text-input {
  width: 100%;
}

/* Actions are full-width stacked on small screens, inline on larger ones */
.notify__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.notify__actions .bx--btn {
  width: 100%;
}

@media (min-width: 480px) {
  .notify__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .notify__actions .bx--btn {
    width: auto;
  }
}

/* Give the input a comfortable cap on wider screens */
@media (min-width: 672px) {
  .notify__input {
    max-width: 28rem;
  }
}

.maintenance__divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: clamp(1rem, 1.5vw + 0.5rem, 1.5rem) 0;
}

.maintenance__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.maintenance__links .bx--link {
  color: var(--interactive);
}

.maintenance__footer {
  margin-top: 1rem;
  color: var(--text-secondary);
}

#homeLink {
  white-space: nowrap;
}

/* Improve focus styles on dark backgrounds */
:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .bx--loading__svg {
    animation: none !important;
  }
}