/* 工作管理員：跟設定頁同一種卡片樣式 */
:root { color-scheme: light dark; --bg: #f5f5f7; --card: #fff; --border: #d2d2d7; --text: #1d1d1f; --muted: #6e6e73;
  --accent: #007aff; --ok: #248a3d; --warn: #b25000; --bad: #d70015; --mine: #007aff; --other: #a1a1a6; --free: #e5e5ea; --row: #f2f2f5;
  --sys: #8e8e93; --down: #007aff; --up: #ff9500; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1c1e; --card: #2c2c2e; --border: #3a3a3c; --text: #f5f5f7; --muted: #a1a1a6; --accent: #0a84ff;
    --ok: #30d158; --warn: #ff9f0a; --bad: #ff453a; --mine: #0a84ff; --other: #636366; --free: #3a3a3c; --row: #343437;
    --sys: #8e8e93; --down: #0a84ff; --up: #ff9f0a; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px -apple-system, "PingFang TC", "Noto Sans TC", sans-serif; }
main { max-width: 1120px; margin: 32px auto 48px; padding: 0 24px; }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .card { margin-bottom: 0; min-width: 0; }
.grid + .card { margin-top: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }

/* 結論 */
.verdict { display: flex; align-items: center; gap: 16px; border-left: 6px solid var(--ok); }
.verdict .level { flex-shrink: 0; font-size: 20px; font-weight: 700; color: var(--ok); min-width: 92px; }
.verdict-text { margin: 0; line-height: 1.6; }
.verdict.lv1 { border-left-color: var(--warn); }
.verdict.lv1 .level { color: var(--warn); }
.verdict.lv2 { border-left-color: var(--bad); }
.verdict.lv2 .level { color: var(--bad); }

.big { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
.big.net { display: flex; gap: 16px; font-size: 24px; line-height: 38px; }
.big.net .down { color: var(--down); }
.big.net .up { color: var(--up); }
.big.net b { color: var(--text); font-weight: 700; }
/* 走勢圖（最近兩分鐘） */
.chart { width: 100%; height: 70px; margin: 10px 0 6px; display: block; background: color-mix(in srgb, var(--text) 3%, transparent); border-radius: 6px; }
.chart .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .area { stroke: none; }
.chart .mid { stroke: var(--border); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .mine.line { stroke: var(--mine); }
.chart .mine.area { fill: color-mix(in srgb, var(--mine) 16%, transparent); }
.chart .sys.line { stroke: var(--sys); stroke-width: 1.5; }
.chart .sys.area { fill: color-mix(in srgb, var(--sys) 18%, transparent); }
.chart .down.line { stroke: var(--down); }
.chart .down.area { fill: color-mix(in srgb, var(--down) 14%, transparent); }
.chart .up.line { stroke: var(--up); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.membar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--free); margin: 6px 0 8px; }
.membar span { display: block; height: 100%; }
.membar .mine, .legend .mine { background: var(--mine); }
.membar .other, .legend .other { background: var(--other); }
.membar .free, .legend .free { background: var(--free); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .sys { background: var(--sys); }
.legend .down { background: var(--down); }
.legend .up { background: var(--up); }
.legend .scale { margin-left: auto; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #fff; }
.pill.ok { background: var(--ok); }
.pill.warn { background: var(--warn); }
.pill.bad { background: var(--bad); }

.table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.table-head h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: transparent; color: var(--text); padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
table.procs { width: 100%; border-collapse: collapse; }
.procs th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 8px 8px; border-bottom: 1px solid var(--border); }
.procs td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.procs tr:last-child td { border-bottom: none; }
.procs tbody tr:hover td { background: var(--row); }
.procs .num { text-align: right; white-space: nowrap; width: 96px; font-variant-numeric: tabular-nums; }
.name { display: flex; align-items: flex-start; gap: 10px; }
.name .ico { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.name .ico img { width: 16px; height: 16px; }
.name .what { flex: 1; min-width: 0; }
.name .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
em.cur { color: var(--accent); border-color: var(--accent); }
ul.tabs { list-style: none; margin: 6px 0 0; padding: 0; }
ul.tabs li { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; }
ul.tabs li img { width: 14px; height: 14px; }
ul.tabs .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.link { border: none; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: 12.5px; padding: 0 2px; flex-shrink: 0; }
button.link:hover { text-decoration: underline; }
.hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; line-height: 1.6; }
