/* Uptime — a monitoring dashboard: a bar, a grid of panels, charts and gauges in SVG, sections as panels. */
:root { --t-font-display: "Inter", system-ui, sans-serif; --t-font-body: "Inter", system-ui, sans-serif; --t-font-mono: "IBM Plex Mono", ui-monospace, monospace; --t-max: 1200px; --t-radius: 6px; --t-radius-sm: 4px; --t-radius-pill: 4px; --t-shadow: none; }
body { background-image: linear-gradient(color-mix(in srgb, var(--t-line) 60%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--t-line) 60%, transparent) 1px, transparent 1px); background-size: 40px 40px; }

/* bar */
.t-hero--dash .t-hero__inner { grid-template-columns: 1fr; gap: 12px; padding-block: 12px clamp(20px, 3vw, 32px); }
.t-dash__bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--t-font-mono); font-size: var(--t-size-0); color: var(--t-muted); padding: 8px 12px; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius); }
.t-dash__title { color: var(--t-text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.t-dash__bar .t-icon { width: 16px; height: 16px; }
.t-dash__range, .t-dash__refresh, .t-dash__loc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--t-line); border-radius: 4px; }
.t-dash__loc { margin-inline-start: auto; }

/* panels (the Uptime signature) */
.t-dash { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .t-dash { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t-panel { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 12px 14px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.t-panel__h { margin: 0; font-size: var(--t-size-0); font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: .06em; }
.t-panel--id { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); gap: 16px 22px; align-items: start; padding: clamp(14px, 2.5vw, 22px); border-inline-start: 4px solid var(--t-accent); }
.t-hero--dash .t-photo { width: clamp(80px, 10vw, 112px); border-radius: 8px; box-shadow: none; }
.t-hero--dash .t-eyebrow { font-family: var(--t-font-mono); text-transform: none; letter-spacing: 0; color: var(--t-accent-text); }
.t-hero--dash .t-name { font-weight: 700; font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.01em; }
.t-hero--dash .t-headline { font-weight: 500; }
.t-hero--dash .t-actions { margin-block-start: 14px; }
.btn { --bs-btn-border-radius: 4px; --bs-btn-font-weight: 600; }
.t-link { border-radius: 4px; font-size: var(--t-size-0); }
.t-panel--stat .t-panel__big { margin: 0; font-family: var(--t-font-mono); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; line-height: 1; color: var(--t-accent-text); }
.t-panel--chart, .t-panel--gauges { grid-column: 1 / -1; }
@media (min-width: 760px) { .t-panel--chart { grid-column: span 2; } .t-panel--gauges { grid-column: span 2; } }
.t-barchart { width: 100%; height: auto; display: block; font-family: var(--t-font-mono); font-size: 11px; }
.t-barchart__label, .t-barchart__value { fill: var(--t-muted); }
.t-barchart__track { fill: var(--t-surface2); }
.t-barchart__bar { fill: var(--t-accent); }
.t-gauges { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.t-gauge { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.t-gauge svg { width: 72px; height: 72px; }
.t-gauge__track { fill: none; stroke: var(--t-surface2); stroke-width: 7; }
.t-gauge__arc { fill: none; stroke: var(--t-accent); stroke-width: 7; stroke-linecap: round; }
.t-gauge__num { fill: var(--t-text); font-family: var(--t-font-mono); font-size: 13px; font-weight: 600; }
.t-gauge__label { font-size: var(--t-size-0); color: var(--t-muted); overflow-wrap: anywhere; }

/* sections as panels */
.t-main { gap: 12px; }
.t-section { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: clamp(14px, 2.5vw, 22px); }
.t-section__title { font-size: var(--t-size-0); font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: .06em; margin-block-end: 14px; }
.t-section--summary .t-section__title { display: none; }
.t-summary { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 66ch; }
/* alerts resolved */
.t-section--achievements .t-list li, .t-section--awards .t-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 8px 10px; background: var(--t-surface2); border-radius: var(--t-radius-sm); border-inline-start: 3px solid var(--t-accent); }
.t-section--achievements .t-list li::before, .t-section--awards .t-list li::before { content: "RESOLVED"; font-family: var(--t-font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--t-accent-text); padding-block-start: 3px; }
.t-section--achievements .t-list li span, .t-section--achievements .t-list li p, .t-section--awards .t-list li span, .t-section--awards .t-list li p { grid-column: 2; }
.t-bars__item { font-size: var(--t-size-0); }
.t-bars__track { background: var(--t-surface2); }
.t-cards--projects .card { background: var(--t-surface2); border: 1px solid var(--t-line); box-shadow: none; }
.t-cards--projects .t-item__title::before { content: "📊 "; }
.t-timeline__when { font-family: var(--t-font-mono); font-size: var(--t-size-0); }
.t-chip { border-radius: 4px; font-family: var(--t-font-mono); font-size: var(--t-size-0); }
.t-quote { background: var(--t-surface2); border: 0; }
.t-footer { font-family: var(--t-font-mono); border: 0; }
