/* Piko status 2026-11-11: compact rows, one bar strip per service, calm semantic colour. */
:root { color-scheme:light; --bg:#fff; --surface:#f6f6f7; --card:#fff; --ink:#111; --muted:#64646c; --line:#e6e6eb;
  --good:#1f8a4c; --good-soft:#e8f5ee; --warn:#b26b00; --warn-soft:#fdf3e2; --bad:#c23434; --bad-soft:#fbeaea;
  --gap:#dcdce2; --idle:#9a9aa3; --radius:16px; }
:root[data-theme=dark] { color-scheme:dark; --bg:#000; --surface:#111113; --card:#0b0b0c; --ink:#f4f4f5; --muted:#a6a6ae; --line:#26262a;
  --good:#5ccf8b; --good-soft:#0f2a1b; --warn:#f0b75c; --warn-soft:#2e2310; --bad:#f48a8a; --bad-soft:#331414; --gap:#333338; --idle:#7c7c84; }
@media (prefers-color-scheme:dark) { :root:not([data-theme=light]) { color-scheme:dark; --bg:#000; --surface:#111113; --card:#0b0b0c; --ink:#f4f4f5; --muted:#a6a6ae; --line:#26262a;
  --good:#5ccf8b; --good-soft:#0f2a1b; --warn:#f0b75c; --warn-soft:#2e2310; --bad:#f48a8a; --bad-soft:#331414; --gap:#333338; --idle:#7c7c84; } }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.55 -apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
button,select,input { font:inherit; color:inherit; }
a { color:inherit; text-underline-offset:3px; }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid var(--ink); outline-offset:2px; border-radius:6px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip-link { position:absolute; left:-999px; top:8px; background:var(--ink); color:var(--bg); padding:6px 12px; border-radius:8px; z-index:10; }
.skip-link:focus { left:16px; }
.muted { color:var(--muted); }
.shell { max-width:960px; margin:0 auto; padding:0 24px; }

.site-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; flex-wrap:wrap; }
.brand { display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:650; font-size:17px; letter-spacing:-.01em; min-height:44px; }
.brand svg { width:24px; height:30px; }
.header-actions { display:flex; align-items:center; gap:6px; font-size:13px; flex-wrap:nowrap; }
.header-actions a { padding:6px 10px; text-decoration:none; color:var(--muted); border-radius:8px; white-space:nowrap; min-height:34px; display:inline-flex; align-items:center; }
.header-actions a:hover { color:var(--ink); background:var(--surface); }
.header-actions button,.header-actions select,.theme-control select { background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:5px 10px; font-size:13px; cursor:pointer; min-height:34px; white-space:nowrap; }
#language { min-width:82px; }
html[lang="zh-Hant"] body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Hiragino Sans CNS","Microsoft JhengHei","PingFang SC",sans-serif; }

.hero { margin-top:12px; border-radius:22px; padding:26px 28px 22px; background:var(--surface); border:1px solid var(--line); }
.hero.operational { background:var(--good-soft); border-color:color-mix(in srgb,var(--good) 25%,transparent); }
.hero.degraded { background:var(--warn-soft); border-color:color-mix(in srgb,var(--warn) 30%,transparent); }
.hero.unavailable { background:var(--bad-soft); border-color:color-mix(in srgb,var(--bad) 30%,transparent); }
.hero-main { display:flex; gap:16px; align-items:flex-start; }
.hero-main > div { min-height:54px; }
.hero-stats dd { min-height:22px; }
#groups:empty { min-height:440px; }
.hero-mark { flex:none; width:40px; height:40px; border-radius:50%; background:var(--idle); position:relative; margin-top:2px; }
.hero-mark::after { content:"?"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-weight:700; font-size:20px; }
.hero.operational .hero-mark { background:var(--good); } .hero.operational .hero-mark::after { content:"✓"; }
.hero.degraded .hero-mark { background:var(--warn); } .hero.degraded .hero-mark::after { content:"!"; }
.hero.unavailable .hero-mark { background:var(--bad); } .hero.unavailable .hero-mark::after { content:"×"; }
.hero.operational .hero-mark { box-shadow:0 0 0 0 color-mix(in srgb,var(--good) 45%,transparent); animation:pulse 2.6s ease-out infinite; }
@keyframes pulse { 70% { box-shadow:0 0 0 12px transparent; } 100% { box-shadow:0 0 0 0 transparent; } }
@media (prefers-reduced-motion:reduce) { .hero-mark { animation:none!important; } }
.hero h1 { margin:0; font-size:26px; line-height:1.25; letter-spacing:-.02em; font-weight:650; }
.hero-main p { margin:6px 0 0; color:var(--muted); max-width:640px; }
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:22px 0 0; padding-top:18px; border-top:1px solid color-mix(in srgb,var(--ink) 9%,transparent); }
.hero-stats div { min-width:0; }
.hero-stats dt { font-size:12px; color:var(--muted); }
.hero-stats dd { margin:2px 0 0; font-size:18px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.connection { margin:12px 0 0; padding:10px 14px; border-radius:12px; background:var(--warn-soft); color:var(--warn); font-size:13px; }

.notices { display:grid; gap:10px; margin-top:14px; }
.notice { border:1px solid var(--line); border-left:4px solid var(--warn); border-radius:14px; padding:14px 18px; background:var(--card); }
.notice.unavailable { border-left-color:var(--bad); } .notice.operational,.notice.resolved { border-left-color:var(--good); }
.notice.resolved { opacity:.8; }
.notice-head { display:flex; gap:8px; font-size:12px; color:var(--muted); }
.notice-kind { font-weight:600; color:var(--ink); }
.notice-status::before { content:"· "; }
.notice h2 { margin:4px 0 0; font-size:16px; }
.notice p { margin:6px 0 0; white-space:pre-line; }
.notice .notice-meta { font-size:12px; color:var(--muted); }

.controls { display:flex; align-items:center; gap:12px 16px; flex-wrap:wrap; margin:26px 0 12px; }
.segment { display:inline-flex; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:2px; }
.segment button { border:0; background:transparent; padding:5px 12px; border-radius:8px; cursor:pointer; font-size:13px; color:var(--muted); }
.segment button[aria-pressed=true] { background:var(--card); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08); font-weight:600; }
.issues { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); cursor:pointer; }
.legend { margin-left:auto; display:flex; gap:12px; font-size:12px; color:var(--muted); }
.legend span { display:inline-flex; align-items:center; gap:5px; }
.legend i { width:10px; height:10px; border-radius:3px; display:inline-block; }

.group { border:1px solid var(--line); border-radius:var(--radius); background:var(--card); margin-bottom:14px; overflow:hidden; }
.group-head { display:flex; align-items:baseline; justify-content:space-between; padding:14px 18px 8px; }
.group-head h2 { margin:0; font-size:15px; font-weight:650; }
.group-summary { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.group-foot { display:flex; justify-content:space-between; padding:8px 18px 12px; font-size:11px; color:var(--muted); }
.service { border-top:1px solid var(--line); }
.service-main { width:100%; display:grid; grid-template-columns:minmax(180px,250px) 1fr auto; align-items:center; gap:16px; padding:11px 18px; border:0; background:transparent; text-align:left; cursor:pointer; }
.service-main:hover { background:var(--surface); }
.service-name { display:flex; align-items:center; gap:8px; min-width:0; }
.service-name strong { font-weight:600; white-space:nowrap; }
.service-desc { color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dot { flex:none; width:8px; height:8px; border-radius:50%; background:var(--gap); display:inline-block; }
.bars { display:flex; gap:2px; height:26px; align-items:stretch; min-width:0; }
.bars i { flex:1; min-width:2px; border-radius:2px; transition:transform .12s; }
.bars i:hover { transform:scaleY(1.15); }
.bars i.reviewed { background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgba(255,255,255,.35) 3px 5px); }
.operational:is(i,.dot) { background:var(--good); } .degraded:is(i,.dot) { background:var(--warn); }
.unavailable:is(i,.dot) { background:var(--bad); } .unknown:is(i,.dot) { background:var(--gap); } .idle:is(i,.dot) { background:var(--idle); }
.service-state { display:flex; align-items:center; gap:10px; justify-content:flex-end; min-width:120px; }
.pill { font-size:12px; font-weight:600; padding:2px 9px; border-radius:999px; background:var(--surface); color:var(--muted); white-space:nowrap; }
.pill.operational { background:var(--good-soft); color:var(--good); } .pill.degraded { background:var(--warn-soft); color:var(--warn); }
.pill.unavailable { background:var(--bad-soft); color:var(--bad); }
.service-share { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; width:46px; text-align:right; }
.service-detail { padding:0 18px 12px 34px; font-size:13px; }
.service-detail p { margin:3px 0; }

.empty { text-align:center; color:var(--muted); padding:24px 0; }
.history { margin-top:34px; }
.history h2,.method summary { font-size:17px; font-weight:650; margin:0 0 10px; }
.incident { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; flex-wrap:wrap; }
.incident strong { font-variant-numeric:tabular-nums; }
.record { border:1px solid var(--line); border-radius:12px; padding:0 14px; margin-top:10px; background:var(--card); }
.record summary { display:flex; align-items:center; gap:10px; padding:12px 0; cursor:pointer; list-style:none; flex-wrap:wrap; }
.record summary::-webkit-details-marker { display:none; }
.record summary::after { content:"+"; margin-left:auto; color:var(--muted); }
.record[open] summary::after { content:"−"; }
.record h4 { margin:12px 0 2px; font-size:13px; }
.record p { margin:2px 0 8px; }
.record a { display:inline-block; margin:4px 0 14px; font-size:13px; }
.record-times { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:6px 16px; margin:4px 0 0; font-size:12px; }
.record-times dt { color:var(--muted); } .record-times dd { margin:0; }
.method { margin-top:34px; border-top:1px solid var(--line); padding-top:18px; }
.method summary { cursor:pointer; }
.method-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px; }
.method h3 { font-size:14px; margin:0 0 4px; }
.method p { margin:0; color:var(--muted); font-size:13px; }
.method > p { margin-top:12px; font-size:12px; }
.help { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:34px 0 0; padding:18px 20px; border-radius:var(--radius); background:var(--surface); }
.help p { margin:0; }
.help a { font-weight:600; text-decoration:none; }
footer { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:26px 0 34px; font-size:12px; color:var(--muted); }
footer nav { display:flex; gap:16px; flex-wrap:wrap; }
footer a { text-decoration:none; } footer a:hover { color:var(--ink); }
.tip { position:absolute; z-index:20; background:var(--ink); color:var(--bg); font-size:12px; padding:5px 9px; border-radius:7px; pointer-events:none; white-space:nowrap; max-width:calc(100vw - 16px); overflow:hidden; text-overflow:ellipsis; }

@media (max-width:760px) {
  .shell { padding:0 16px; }
  .hero { padding:20px 18px 18px; border-radius:18px; }
  .hero h1 { font-size:21px; }
  .hero-main > div { min-height:76px; }
  .hero-mark { width:32px; height:32px; } .hero-mark::after { font-size:16px; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .legend { margin-left:0; width:100%; }
  .service-main { grid-template-columns:1fr auto; gap:8px 12px; padding:12px 14px; }
  .bars { grid-column:1 / -1; grid-row:2; height:22px; }
  .service-desc { display:none; }
  .service-detail { padding:0 14px 12px 30px; }
  .group-head,.group-foot { padding-left:14px; padding-right:14px; }
  .method-grid { grid-template-columns:1fr; }
  .help { flex-direction:column; align-items:flex-start; }
  .header-actions .home-link { display:none; }
  .header-actions button,.header-actions select,.theme-control select { min-height:44px; font-size:12px; padding:6px 8px; }
  footer a { display:inline-flex; align-items:center; min-height:44px; }
}
