/* status.moctel.com — no JavaScript, no web fonts, no third-party assets (CSP default-src 'none'). */
:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1d2330; --muted: #5d6677; --line: #e3e6eb;
  --ok: #1f9d55; --degraded: #c98a00; --partial: #e0661b; --major: #d23b3b; --maint: #3a6fd8; --nodata: #cfd4dc;
  --brand: #0b4f9c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --card: #1b2029; --text: #e6e9ef; --muted: #9aa3b2; --line: #2a303b;
    --ok: #34b36b; --degraded: #e0a72a; --partial: #f07b34; --major: #ec5a5a; --maint: #5b8ef0; --nodata: #3a414d;
    --brand: #6ea8f0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h1 { font-size: 1.45rem; margin: 0; font-weight: 600; }
.brand { color: var(--brand); font-weight: 700; }
.lang { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.lang:hover { color: var(--text); text-decoration: underline; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; font-weight: 600; }
h3 { font-size: 1rem; margin: 0 0 4px; }

.overall { margin: 0; padding: 16px 18px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 1.05rem; }
.overall-operational { background: var(--ok); }
.overall-degraded { background: var(--degraded); }
.overall-partial { background: var(--partial); }
.overall-major { background: var(--major); }
.overall-maintenance { background: var(--maint); }

.components { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.comp { padding: 14px 16px; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.name { font-weight: 500; }
.state { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.st-operational { color: var(--ok); }
.st-degraded { color: var(--degraded); }
.st-partial { color: var(--partial); }
.st-major { color: var(--major); }
.st-maintenance { color: var(--maint); }
.st-unknown { color: var(--muted); }
.note { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

.bars { display: flex; gap: 2px; height: 28px; margin-top: 10px; }
.d { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--nodata); }
.d-operational { background: var(--ok); }
.d-maintenance { background: var(--maint); }
.d-degraded { background: var(--degraded); }
.d-partial { background: var(--partial); }
.d-major { background: var(--major); }
.legend { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 4px; }
/* phones: the last 30 days only */
@media (max-width: 600px) {
  .d:nth-child(-n+60) { display: none; }
  .legend span:first-child, .legend span:last-child { display: none; }
  .legend { justify-content: center; }
}

.inc { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--degraded); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.inc-partial { border-left-color: var(--partial); }
.inc-major { border-left-color: var(--major); }
.inc-maintenance { border-left-color: var(--maint); }
.meta { margin: 0; color: var(--muted); font-size: .9rem; }
.updates { list-style: none; margin: 10px 0 0; padding: 0; }
.updates li { padding: 8px 0 0; border-top: 1px dashed var(--line); margin-top: 8px; }
.updates li:first-child { border-top: 0; margin-top: 0; }
.updates time { color: var(--muted); font-size: .88rem; margin-left: 6px; }
.updates p { margin: 2px 0 0; white-space: pre-line; }
.muted { color: var(--muted); }
footer { margin-top: 36px; color: var(--muted); font-size: .85rem; }
