/* Sized for a 1024x600 7" screen read from arm's length. */
.theme-dark {
  --bg: #0e1116; --panel: #161b22; --text: #e6edf3; --muted: #7d8590;
  --line: #262c36; --ok: #3fb950; --bad: #f85149; --warn: #d29922; --accent: #58a6ff;
}
.theme-light {
  --bg: #f4f1ea; --panel: #ffffff; --text: #1b1f24; --muted: #5d6670;
  --line: #e2ddd2; --ok: #1a7f37; --bad: #cf222e; --warn: #9a6700; --accent: #0969da;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-family: "Roboto", "Droid Sans", Arial, sans-serif; overflow: hidden; -webkit-user-select: none; user-select: none; }
.grid {
  display: grid; height: 100vh; padding: 14px; grid-gap: 14px;
  grid-template-columns: 40% 1fr; grid-template-rows: 1fr 64px;
  grid-template-areas: "left right" "bar bar";
}
.left, .right { background: var(--panel); border-radius: 14px; padding: 16px 20px; overflow: hidden; }
.left { grid-area: left; }
.right { grid-area: right; }
.bar { grid-area: bar; display: flex; align-items: center; background: var(--panel); border-radius: 14px; padding: 0 12px; font-size: 22px; }
h2 { margin: 14px 0 8px; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.right h2 { margin-top: 0; }
.clock { font-size: 112px; line-height: 1; font-weight: 300; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.date { font-size: 24px; color: var(--muted); margin-top: 4px; }
.weather { display: flex; align-items: center; margin-top: 12px; }
.temp { font-size: 54px; font-weight: 300; margin-right: 14px; }
.wdesc { font-size: 21px; line-height: 1.3; }
.agenda .ev { display: flex; font-size: 20px; padding: 5px 0; border-top: 1px solid var(--line); }
.agenda .ev:first-child { border-top: 0; }
.evtime { flex: 0 0 132px; color: var(--accent); white-space: nowrap; }
.evtitle { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table { width: 100%; border-collapse: collapse; font-size: 23px; }
th { text-align: left; font-size: 14px; font-weight: 500; color: var(--muted); padding: 0 6px 6px; }
td { padding: 11px 6px; border-top: 1px solid var(--line); }
td.ms, td.vis, th:nth-child(3), th:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.name { white-space: nowrap; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); }
tr.down .dot { background: var(--bad); }
tr.down .name, tr.down .ms { color: var(--bad); font-weight: 600; }
.warn { color: var(--warn); font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 15px; margin-top: 8px; }
.live b { color: var(--accent); }
.stale { color: var(--warn); margin-left: 18px; font-size: 17px; }
.spacer { flex: 1; }
.btn { font: inherit; font-size: 20px; color: var(--text); background: transparent; border: 2px solid var(--line); border-radius: 10px; padding: 7px 16px; margin-left: 10px; }
.btn.running { border-color: var(--accent); color: var(--accent); }
.btn.done { border-color: var(--warn); color: var(--warn); }
