
:root {
	--bg: #fafaf9;
	--surface: #ffffff;
	--surface-2: #f5f5f4;
	--text: #1c1917;
	--muted: #78716c;
	--faint: #a8a29e;
	--border: #e7e5e4;
	--ok: #22a06b;
	--ok-soft: #e9f7f0;
	--ok-line: #b9e4cf;
	--warn: #d99a00;
	--warn-soft: #fdf6e3;
	--warn-line: #f3dfa6;
	--bad: #e5484d;
	--bad-soft: #fdeeee;
	--bad-line: #f6c4c5;
	--info: #3e7bfa;
	--info-soft: #edf3ff;
	--info-line: #c5d7fd;
	--none: #e7e5e4;
	color-scheme: light;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.lang { font-size: 14px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.lang:hover { color: var(--text); text-decoration: none; }
main { display: flex; flex-direction: column; gap: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tone-ok { --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); }
.tone-warn { --tone: var(--warn); --tone-soft: var(--warn-soft); --tone-line: var(--warn-line); }
.tone-bad { --tone: var(--bad); --tone-soft: var(--bad-soft); --tone-line: var(--bad-line); }
.tone-info { --tone: var(--info); --tone-soft: var(--info-soft); --tone-line: var(--info-line); }
.status-icon { flex: none; color: var(--tone); }
.status-text { color: var(--tone); font-size: 14px; font-weight: 500; white-space: nowrap; }
.banner, .incident-card { border: 1px solid var(--tone-line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.banner-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--tone-soft); font-size: 16px; font-weight: 600; }
.banner-body { padding: 14px 18px; font-size: 14px; color: var(--muted); }
.incident-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--tone-soft); }
.incident-card-head a { color: var(--tone); font-weight: 600; }
.incident-card .updates { padding: 14px 18px; }
.card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 15px; }
.card-body { padding: 18px 20px; }
.component-row { padding: 16px 20px; }
.component-row + .component-row { border-top: 1px solid var(--border); }
.component-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.component-name { font-weight: 500; }
.component-head .status-text { margin-left: auto; }
.bars { display: flex; gap: 2px; height: 34px; }
.bar { position: relative; flex: 1; min-width: 2px; border-radius: 2px; background: var(--none); }
.bar.s-operational { background: var(--ok); }
.bar.s-degraded { background: var(--warn); }
.bar.s-outage { background: var(--bad); }
.bar.s-maintenance { background: var(--info); }
.bar:hover { box-shadow: inset 0 0 0 40px rgb(255 255 255 / 30%); }
.bar:focus-visible { outline: 2px solid var(--info); outline-offset: 1px; }
.tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5; width: 240px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 12%); font-size: 13px; line-height: 1.45; }
.bar.tip-start .tip { left: 0; transform: none; }
.bar.tip-end .tip { left: auto; right: 0; transform: none; }
.bar:hover .tip, .bar:focus-visible .tip { display: block; }
.tip-date { font-weight: 600; margin-bottom: 4px; }
.tip ul { margin: 6px 0 0; padding-left: 16px; }
.uptime-legend { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.uptime-legend .line { flex: 1; height: 1px; background: var(--border); }
.chart { display: block; width: 100%; height: 120px; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .series { fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-linejoin: round; }
.chart .area { fill: var(--ok-soft); }
.chart .failure { fill: var(--bad); }
.chart-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 20px; }
.history-day + .history-day { margin-top: 28px; }
.history-date { padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 16px; }
.history-incident + .history-incident { margin-top: 22px; }
.history-title { display: inline-block; margin-bottom: 8px; font-size: 17px; font-weight: 500; color: var(--tone); }
.updates { display: flex; flex-direction: column; gap: 12px; }
.update p { white-space: pre-wrap; }
.update-time { margin-top: 2px; font-size: 13px; color: var(--faint); }
.month + .month { margin-top: 32px; }
.month h2 { font-size: 18px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.month-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.month-item + .month-item { border-top: 1px solid var(--border); }
.month-item a { color: var(--tone); font-weight: 500; }
.month-item .when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.detail-title { font-size: 26px; color: var(--tone); }
.detail-meta { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: center; margin-top: 24px; }
.pager a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 14px; }
.back { font-size: 14px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
	.wrap { padding-top: 24px; }
	.bars { gap: 1px; height: 30px; }
	.month-item { flex-direction: column; gap: 2px; }
}
