:root {
  --bg: #0b1020;
  --bg-2: #131a32;
  --fg: #e7ecf7;
  --muted: #8892b0;
  --accent: #4cc38a;
  --warn: #f5a623;
  --danger: #ff5470;
  --radius: 14px;
  --gap: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
main {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
section { background: var(--bg-2); border-radius: var(--radius); padding: 16px; }
#recommendation h1 { margin: 0 0 6px 0; font-size: 28px; line-height: 1.1; }
#recommendation p { margin: 0; font-size: 17px; color: var(--fg); line-height: 1.4; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cell { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.val { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
#tonight, #tomorrow { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
#tonight span:last-child, #tomorrow span:last-child { font-weight: 600; }
#flags ul { margin: 4px 0 0; padding-left: 18px; color: var(--warn); }
footer { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; color: var(--muted); font-size: 13px; }
button { background: var(--accent); color: #04140a; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
button:active { transform: scale(0.97); }

/* action color cues */
.action-CLOCK_IN_SOON #action { color: var(--accent); }
.action-KEEP_DRIVING #action { color: var(--fg); }
.action-DOT_BREAK_DUE #action,
.action-WINDOW_CLOSING #action { color: var(--warn); }
.action-TAKE_BREAK_NOW #action,
.action-WEEK_COMPLETE #action { color: var(--accent); }
.action-HEAD_TO_HOTEL #action { color: var(--accent); }
.action-RESET_IN_PROGRESS #action { color: var(--muted); }
