/*
 * The status page in the NourishGenie Console theme: the tokens and components below are the release page's own
 * (production-release/worker/public/app.css), so both pages look the same; the status parts follow at the end.
 * No inline styles anywhere (CSP style-src 'self').
 */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/inter-latin-wght-normal.woff2) format('woff2');
}

/* ---- root size ------------------------------------------------------------------------------------------------------
 * The one rule that sizes the page. The Console renders at 80 % (rule 7.4): 14px x 0.8 = 11.2px on desktop and
 * 13px x 0.8 = 10.4px below its scaled lg breakpoint (991.98px x 0.8 = 793.58px). For 100 %: 14px, 13px and 991.98px.
 */
html {
  font-size: 11.2px;
}

@media (max-width: 793.58px) {
  html {
    font-size: 10.4px;
  }
}

/* ---- tokens ------------------------------------------------------------------------------------------------------ */

:root {
  --primary: #f47b0a;
  --primary-active: #d96a05;
  --primary-light: #fef1e5;
  --primary-clarity: rgba(244, 123, 10, 0.2);
  --primary-inverse: #ffffff;

  --page: #f3f4f6;
  --surface: #ffffff;
  --header: #ffffff;
  --gray-100: #f9f9f9;
  --gray-200: #f1f1f4;
  --gray-300: #dbdfe9;
  --gray-400: #c4cada;
  --gray-500: #99a1b7;
  /* Text that must still be read (help, subtitles, notes, table headers, placeholders): 4.5:1 or more. */
  --text-quiet: #4b5675;
  --gray-600: #78829d;
  --gray-700: #4b5675;
  --gray-800: #252f4a;
  --gray-900: #071437;
  --light: #f1f1f4;
  --light-active: #dbdfe9;
  --border: #f1f1f4;
  --border-strong: #dbdfe9;

  --success: #17c653;
  --success-light: #dfffea;
  --success-text: #0a7f35;
  --warning: #f6c000;
  --warning-light: #fff8dd;
  --warning-text: #7a5b00;
  --danger: #f8285a;
  --danger-light: #ffeef3;
  --danger-text: #d81a48;
  --info: #7239ea;
  --info-light: #f8f5ff;
  --info-text: #5014d0;

  --surface-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --header-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  --auth-shadow: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.05);
  --bar-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
  --dropdown-shadow: 0 0 50px 0 rgba(82, 63, 105, 0.15);
  --segment-track: #f1f1f4;
  --segment-thumb: #ffffff;
  --segment-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.06);
  --auth-bg: url(/auth-bg.jpg);

  /* Console control scale ($ng-* tokens) */
  --control-h: calc(2.525rem + 1.6px);
  --control-font: 0.95rem;
  --control-py: 0.55rem;
  --control-px: 0.75rem;
  --control-btn-px: 1rem;
  --compact-h: calc(2rem + 1.6px);
  --compact-font: 0.9rem;
  --compact-px: 0.6rem;
  --compact-btn-px: 0.75rem;
  --mini: 1.75rem;
  --control-radius: 0.425rem;
  --check: 1.4rem;
  --glyph-text: 1.25rem;
  --glyph-text-compact: 1rem;
  --glyph-adornment: 1.25rem;
  --glyph-icon: 1.35rem;
  --glyph-icon-compact: 1.15rem;
  --glyph-mini: 0.95rem;

  /* Metronic and Console layout */
  --radius: 0.475rem;
  --radius-lg: 0.625rem;
  --card-px: 2.25rem;
  --card-py: 2rem;
  --card-header-h: 5rem;
  --cell-p: 0.75rem;
  /* Console list page (CrudListPage, CrudTable, CardHeading, _card-gap.scss), in rem at the same root. */
  --card-gap: 1.25rem; /* $card-gap; 1.5rem from the scaled xl breakpoint */
  --card-head-pt: 1.5rem; /* .card-heading padding-top */
  --card-head-pb: 1.25rem; /* .card-heading padding-bottom */
  --card-title-font: 1.25rem; /* .card-heading-title */
  --card-body-pt: 1rem; /* CrudTable body pt-4 */
  --card-body-pb: 2rem; /* CrudTable body pb-8 */
  --cell-py: 1.25rem; /* table gy-5 */
  --row-font: 1.075rem; /* table fs-6 */
  --head-font: 0.95rem; /* thead fs-7 fw-bolder text-gray-600 */
  --badge-font: 0.85rem; /* $badge-font-size */
  --badge-py: 0.325rem;
  --badge-px: 0.5rem;
  --badge-h: 1.75rem; /* $badge-size */
  --header-h: 5.2857rem;
  --gutter: 2.1429rem;

  --sans: 'Inter Variable', Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-active: #ff8b2b;
    --primary-light: #2b1e12;

    --page: #0f1014;
    --surface: #15171c;
    --header: #0d0e12;
    --gray-100: #1b1c22;
    --gray-200: #26272f;
    --gray-300: #363843;
    --gray-400: #464852;
    --gray-500: #636674;
    --text-quiet: #9a9cae;
    --gray-600: #808290;
    --gray-700: #9a9cae;
    --gray-800: #b5b7c8;
    --gray-900: #f5f5f5;
    --light: #26272f;
    --light-active: #363843;
    --border: #26272f;
    --border-strong: #363843;

    --success: #00a261;
    --success-light: #1f212a;
    --success-text: #01bf73;
    --warning: #c59a00;
    --warning-light: #242320;
    --warning-text: #d9aa00;
    --danger: #e42855;
    --danger-light: #302024;
    --danger-text: #ff3767;
    --info: #883fff;
    --info-light: #272134;
    --info-text: #9e63ff;

    --surface-shadow: none;
    --header-shadow: none;
    --auth-shadow: none;
    --bar-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.4);
    --dropdown-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    --segment-track: #1b1c22;
    --segment-thumb: #363843;
    --segment-shadow: none;
    --auth-bg: url(/auth-bg-dark.jpg);
    color-scheme: dark;
  }
}

@media (max-width: 793.58px) {
  :root {
    --header-h: 4.2857rem;
    --gutter: 1.4286rem;
    --card-px: 1.5rem;
    --card-py: 1.5rem;
  }
}

/* ---- base -------------------------------------------------------------------------------------------------------- */

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--gray-700);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.075rem;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-active);
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
  font-size: 0.95em;
}

.muted {
  color: var(--text-quiet);
}

.small {
  font-size: 0.95rem;
}

.icon {
  flex: none;
  width: 1em;
  height: 1em;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem 0;
  color: var(--text-quiet);
}

.spinner {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- card -------------------------------------------------------------------------------------------------------- */

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  min-height: var(--card-header-h);
  padding: 0.5rem var(--card-px);
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.card-title .mono {
  color: var(--text-quiet);
  font-size: 0.95rem;
  font-weight: 400;
}

.card-body {
  padding: var(--card-py) var(--card-px);
}

.card-body-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 1.25rem var(--card-px);
  border-top: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mini);
  height: var(--mini);
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-inverse);
  font-size: 0.95rem;
  font-weight: 600;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem var(--card-px);
  color: var(--text-quiet);
  text-align: center;
}

.empty .icon {
  font-size: 2.5rem;
  color: var(--gray-400);
}

.empty-title {
  color: var(--gray-800);
  font-weight: 600;
}

/* ---- buttons (control scale)------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--control-h);
  padding: 0 var(--control-btn-px);
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--light);
  color: var(--gray-700);
  font-size: var(--control-font);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
  font-size: var(--glyph-text);
}

.btn:hover:not(:disabled) {
  background: var(--light-active);
  color: var(--gray-800);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-inverse);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-active);
  color: var(--primary-inverse);
}

.btn-light-danger {
  background: var(--danger-light);
  color: var(--danger-text);
}

.btn-light-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #ffffff;
}

.btn-light-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-light-primary:hover:not(:disabled) {
  background: var(--primary);
  color: var(--primary-inverse);
}

.btn-compact {
  height: var(--compact-h);
  padding: 0 var(--compact-btn-px);
  font-size: var(--compact-font);
}

.btn-compact .icon {
  font-size: var(--glyph-text-compact);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: var(--control-h);
  padding: 0;
}

.btn-icon .icon {
  font-size: var(--glyph-icon);
}

.btn-mini {
  width: var(--mini);
  height: var(--mini);
  padding: 0;
  background: transparent;
  color: var(--text-quiet);
}

.btn-mini .icon {
  font-size: var(--glyph-mini);
}

.btn-mini:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--primary);
}

.btn-mini.is-done {
  color: var(--success-text);
}

.btn-link {
  height: auto;
  padding: 0;
  background: none;
  color: var(--primary);
}

.btn-link:hover:not(:disabled) {
  background: none;
  color: var(--primary-active);
}

.btn .spinner {
  width: 1rem;
  height: 1rem;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
}

.reason {
  color: var(--warning-text);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---- badges ------------------------------------------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.325rem 0.5rem;
  border-radius: 0.425rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge .icon {
  font-size: 0.95rem;
}

.badge.tone-ok {
  background: var(--success-light);
  color: var(--success-text);
}

.badge.tone-warn {
  background: var(--warning-light);
  color: var(--warning-text);
}

.badge.tone-bad {
  background: var(--danger-light);
  color: var(--danger-text);
}

.badge.tone-info {
  background: var(--info-light);
  color: var(--info-text);
}

.badge.tone-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge.tone-idle {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-lg {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

.badges {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* ---- forms ------------------------------------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.form-label {
  color: var(--gray-800);
  font-size: 1.075rem;
  font-weight: 500;
}

.help {
  color: var(--text-quiet);
  font-size: 0.95rem;
}

.input,
.select {
  width: 100%;
  height: var(--control-h);
  padding: var(--control-py) var(--control-px);
  border: 1px solid var(--gray-300);
  border-radius: var(--control-radius);
  background-color: var(--surface);
  color: var(--gray-700);
  font-size: var(--control-font);
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: var(--text-quiet);
}

.input:focus,
.select:focus {
  border-color: var(--gray-400);
  outline: none;
  box-shadow: 0 0 0 0.25rem var(--primary-clarity);
}

.input.is-invalid {
  border-color: var(--danger);
}

.select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-500) 50%), linear-gradient(135deg, var(--gray-500) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.75rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.select-compact {
  width: auto;
  min-width: 10rem;
  height: var(--compact-h);
  padding: 0 2rem 0 var(--compact-px);
  font-size: var(--compact-font);
  background-position: calc(100% - 0.95rem) 50%, calc(100% - 0.6rem) 50%;
}

.code-input {
  color: var(--gray-900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5em;
  text-align: center;
  text-indent: 0.5em;
}

.code-input::placeholder {
  color: var(--gray-600);
  font-weight: 500;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.code-row .code-input {
  width: 16rem;
}

/* ---- tables ------------------------------------------------------------------------------------------------------
 * Compact rows, columns sized to their content (no percentages): .fit columns take what they need, the one .grow
 * column takes the rest and cuts its text with "...". Group rows name a stack; dashed lines run between rows.
 */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 0.6rem var(--cell-p);
  color: var(--text-quiet);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.table td {
  height: 2.55rem;
  padding: 0.35rem var(--cell-p);
  color: var(--gray-800);
  vertical-align: middle;
  border-bottom: 1px dashed var(--border-strong);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table th:first-child,
.table td:first-child {
  padding-left: var(--card-px);
}

.table th:last-child,
.table td:last-child {
  padding-right: var(--card-px);
}

.table .fit {
  width: 1%;
  white-space: nowrap;
}

.table .grow {
  width: 100%;
  max-width: 0;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table .end {
  text-align: right;
}

.ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table tr.group-row td {
  height: 2.3rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--gray-100);
}

.group-name {
  color: var(--gray-900);
  font-weight: 600;
}

.table tr.empty-row td {
  height: 3.25rem;
  color: var(--text-quiet);
}

/* ---- sign in ----------------------------------------------------------------------------------------------------- */

body.is-signin .main {
  padding: 0;
}

.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 2.5rem;
  background: var(--page) var(--auth-bg) center / cover no-repeat;
}

.auth-mark {
  width: 4.2857rem;
  height: 4.2857rem;
  margin-bottom: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 32.1429rem;
  padding: 2.5rem;
  border: 0;
  box-shadow: var(--auth-shadow);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.auth-head h1 {
  font-size: 1.75rem;
}

.auth-head p {
  color: var(--text-quiet);
  font-size: 1.075rem;
}

.auth-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--info-text);
  font-size: 0.95rem;
}

.auth-notice .icon {
  font-size: var(--glyph-adornment);
}

.auth-notice strong {
  font-weight: 600;
}

/* The line under a field: help, or the one error that replaces it. */
.field-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  min-height: 1.5em;
  color: var(--text-quiet);
  font-size: 0.95rem;
}

.field-msg.is-error {
  color: var(--danger-text);
  font-weight: 500;
}

.field-msg .icon {
  margin-top: 0.15em;
  font-size: 1.1rem;
}

.auth-foot {
  margin-top: 2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ---- status page: header ----------------------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  box-shadow: var(--header-shadow);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.brand img {
  width: 2.1429rem;
  height: 2.1429rem;
}

.brand-name {
  color: var(--gray-900);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.who {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  min-width: 0;
}

.updated {
  color: var(--text-quiet);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.updated.is-stale {
  color: var(--warning-text);
  font-weight: 600;
}

.symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.075rem;
  font-weight: 600;
}

/* ---- status page: layout ----------------------------------------------------------------------------------------- */

body.is-signin .main {
  max-width: none;
}

.main {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  max-width: 110rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}

.banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-light);
  color: var(--danger-text);
  font-weight: 600;
}

.banner .icon {
  font-size: var(--glyph-adornment);
}

.banner.tone-warn {
  border-left-color: var(--warning);
  background: var(--warning-light);
  color: var(--warning-text);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--card-gap);
  align-items: start;
}

.card-sub {
  color: var(--text-quiet);
  font-size: 0.95rem;
}

.card h2 {
  font-size: var(--card-title-font);
}

/* ---- status page: states ----------------------------------------------------------------------------------------- */

.dot {
  display: inline-block;
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gray-400);
}

.dot.state-ok {
  background: var(--success);
}

.dot.state-slow,
.dot.state-warn {
  background: var(--warning);
}

.dot.state-down {
  background: var(--danger);
}

.state-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.table td.detail {
  color: var(--text-quiet);
  font-size: 0.95rem;
}

.table tr.is-down td {
  background: var(--danger-light);
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-quiet);
  font-size: 0.95rem;
}

/* ---- status page: history ---------------------------------------------------------------------------------------- */

.uptime {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uptime-row {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr) 5rem;
  align-items: center;
  gap: 1rem;
}

.uptime-name {
  overflow: hidden;
  color: var(--gray-800);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uptime-bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 0.2rem;
  height: 2.25rem;
}

.uptime-bar {
  border-radius: 0.2rem;
  background: var(--gray-200);
}

.uptime-bar.u-full {
  background: var(--success);
}

.uptime-bar.u-high {
  background: var(--success);
  opacity: 0.55;
}

.uptime-bar.u-mid {
  background: var(--warning);
}

.uptime-bar.u-low {
  background: var(--danger);
}

.uptime-pct {
  color: var(--gray-800);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.uptime-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 17rem;
  margin-right: 6rem;
  color: var(--text-quiet);
  font-size: 0.85rem;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart .grid-line {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart .line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linejoin: round;
}

.chart .area {
  fill: var(--primary-clarity);
  stroke: none;
}

.chart .axis-label {
  fill: var(--text-quiet);
  font-size: 24px;
}

.legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--text-quiet);
  font-size: 0.95rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend .uptime-bar {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
}

/* ---- status page: small screens ---------------------------------------------------------------------------------- */

@media (max-width: 793.58px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .uptime-row {
    grid-template-columns: minmax(0, 1fr) 4.5rem;
  }

  .uptime-bars {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .uptime-axis {
    margin: 0;
  }

  .updated {
    display: none;
  }

  .table .hide-sm {
    display: none;
  }
}
