/* status.rosia.io: tokens from www.rosia.io, dark only. */
:root {
  --bg: #07080c;
  --bg-2: #0d1018;
  --text: #f3f4f8;
  --muted: #9aa0b4;
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .035);
  --green: #3ccf8e;
  --orange: #f5a524;
  --red: #f0505a;
  --none: rgba(255, 255, 255, .1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, p { margin: 0; }

.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.top { padding: 24px 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: .01em; }
.brand span span { color: var(--muted); }
.main { flex: 1; padding: 16px 0 32px; }
.foot { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); text-align: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Colours by status */
[data-status="green"]  { --c: var(--green); }
[data-status="orange"] { --c: var(--orange); }
[data-status="red"]    { --c: var(--red); }
[data-status="none"], [data-status="loading"] { --c: var(--none); }
.dot--green, .bar--green, .square--green { --c: var(--green); }
.dot--orange, .bar--orange, .square--orange { --c: var(--orange); }
.dot--red, .bar--red, .square--red { --c: var(--red); }
.dot--none, .bar--none, .square--none { --c: var(--none); }

/* Summary */
.summary { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.summary-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); }
.summary-title { font-size: clamp(19px, 3vw, 24px); font-weight: 650; letter-spacing: -.01em; }
.summary-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.banner { margin-top: 12px; padding: 12px 16px; border-radius: 12px; font-size: 14px; color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); }

/* Services */
.services { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.service { padding: 18px 20px; }
.service + .service { border-top: 1px solid var(--line); }
.service-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.service-name { font-size: 16px; font-weight: 600; }
.service-issue { margin-left: auto; display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.issue-title { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-title[data-status] { color: var(--c); }
.issue-time { white-space: nowrap; }
.issue-more { white-space: nowrap; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.issue-more:hover { text-decoration-color: currentColor; }

.timeline { display: flex; gap: 2px; height: 32px; margin-top: 12px; }
.bar { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: var(--c); opacity: .9; cursor: default; }
.bar:hover { opacity: 1; transform: scaleY(1.08); }
.axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }

@media (max-width: 560px) {
  .service { padding: 16px; }
  .service-issue { margin-left: 0; width: 100%; padding-left: 20px; }
  .timeline { gap: 1px; height: 28px; }
  .bar { border-radius: 1px; }
}

/* Detail */
.detail { margin-top: 20px; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.detail-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.detail-head h2 { font-size: 22px; font-weight: 650; }
.history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.item { display: flex; gap: 14px; padding: 16px 20px; }
.item + .item, .empty { border-top: 1px solid var(--line); }
.history > :first-child { border-top: 0; }
.square { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 3px; background: var(--c); }
.item-title { font-weight: 600; }
.item-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.item-desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #d4d7e2; white-space: pre-line; }
.empty { padding: 16px 20px; color: var(--muted); font-size: 14px; }
.more { margin-top: 12px; padding: 10px 16px; font: inherit; font-size: 14px; color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.more:hover { background: rgba(255, 255, 255, .07); }

/* Tooltip */
.tip { position: absolute; z-index: 10; padding: 6px 10px; font-size: 12px; white-space: nowrap; color: var(--text); background: #1a1e2a; border: 1px solid var(--line); border-radius: 8px; pointer-events: none; }
.tip[hidden] { display: none; }
