| 1 | /* status.css — the fleet status page's one stylesheet. Same palette shape as |
| 2 | the console's inline styles (CSS custom properties flipped by |
| 3 | prefers-color-scheme — see internal/console/templates/layout.html), kept |
| 4 | in its own small file here because this page ships from an embedded FS, |
| 5 | not the console's template set, and the design spec calls for exactly one |
| 6 | stylesheet, no frameworks. */ |
| 7 | |
| 8 | :root { |
| 9 | --bg: #ffffff; |
| 10 | --ink: #1d2029; |
| 11 | --muted: #64707f; |
| 12 | --accent: #0f5e85; |
| 13 | --accent-soft: rgba(15, 94, 133, 0.09); |
| 14 | --rule: #e7e9f0; |
| 15 | --good: #2f7a4f; |
| 16 | --bad: #b3403a; |
| 17 | --warn: #a6790f; |
| 18 | } |
| 19 | @media (prefers-color-scheme: dark) { |
| 20 | :root { |
| 21 | --bg: #14151c; |
| 22 | --ink: #eef0f6; |
| 23 | --muted: #93a4ba; |
| 24 | --accent: #5db8dd; |
| 25 | --accent-soft: rgba(93, 184, 221, 0.12); |
| 26 | --rule: #2a2e38; |
| 27 | --good: #6fbf8d; |
| 28 | --bad: #e07b76; |
| 29 | --warn: #e0b95c; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | * { margin: 0; padding: 0; box-sizing: border-box; } |
| 34 | |
| 35 | body { |
| 36 | background: var(--bg); |
| 37 | color: var(--ink); |
| 38 | font: 400 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; |
| 39 | padding: 0 1.25rem 3rem; |
| 40 | } |
| 41 | |
| 42 | header.masthead { |
| 43 | max-width: 56rem; |
| 44 | margin: 0 auto; |
| 45 | padding: 1.75rem 0 1rem; |
| 46 | border-bottom: 1px solid var(--rule); |
| 47 | } |
| 48 | header.masthead h1 { font-size: 1.6rem; } |
| 49 | .generated { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; } |
| 50 | |
| 51 | main { max-width: 56rem; margin: 0 auto; } |
| 52 | h2 { font-size: 1.1rem; margin: 2rem 0 0.75rem; } |
| 53 | |
| 54 | .tiles { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; } |
| 55 | .tile { |
| 56 | flex: 1 1 10rem; |
| 57 | background: var(--accent-soft); |
| 58 | border-radius: 0.6rem; |
| 59 | padding: 1rem 1.1rem; |
| 60 | } |
| 61 | .tile h2 { |
| 62 | margin: 0 0 0.35rem; |
| 63 | font-size: 0.78rem; |
| 64 | text-transform: uppercase; |
| 65 | letter-spacing: 0.05em; |
| 66 | color: var(--muted); |
| 67 | font-weight: 600; |
| 68 | } |
| 69 | .tile-value { font-size: 1.6rem; font-weight: 600; } |
| 70 | .tile-detail { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; } |
| 71 | |
| 72 | .tablewrap { overflow-x: auto; } |
| 73 | table { border-collapse: collapse; width: 100%; font-size: 0.9rem; } |
| 74 | th, td { padding: 0.5rem 0.9rem 0.5rem 0; border-bottom: 1px solid var(--rule); text-align: left; } |
| 75 | th { |
| 76 | font-size: 0.75rem; |
| 77 | text-transform: uppercase; |
| 78 | letter-spacing: 0.05em; |
| 79 | color: var(--muted); |
| 80 | font-weight: 600; |
| 81 | } |
| 82 | |
| 83 | /* .chip-stale is deliberately bordered-only (no fill) per the design spec: |
| 84 | staleness is a "trust this less" signal, not an outage — it should read |
| 85 | as a flag on the row, not as loud as the up/down service chips. */ |
| 86 | .chip { |
| 87 | display: inline-block; |
| 88 | font-size: 0.78rem; |
| 89 | font-weight: 600; |
| 90 | padding: 0.15rem 0.55rem; |
| 91 | border-radius: 999px; |
| 92 | margin: 0.15rem 0.3rem 0.15rem 0; |
| 93 | } |
| 94 | .chip-stale { border: 1px solid var(--warn); color: var(--warn); } |
| 95 | .chip-up { background: var(--accent-soft); color: var(--good); } |
| 96 | .chip-down { background: var(--accent-soft); color: var(--bad); } |
| 97 | .chips { display: flex; flex-wrap: wrap; } |
| 98 | |
| 99 | .small { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; } |
| 100 | |
| 101 | footer { |
| 102 | max-width: 56rem; |
| 103 | margin: 2.5rem auto 0; |
| 104 | padding-top: 1.25rem; |
| 105 | border-top: 1px solid var(--rule); |
| 106 | color: var(--muted); |
| 107 | font-size: 0.85rem; |
| 108 | } |
| 109 | |