:root {
  --bg: #f4f5f2;
  --card: #fff;
  --ink: #1d232b;
  --sub: #6b7480;
  --line: #e3e6e1;
  --main: #1f3a5f;
  --ok: #2f7a4f;
  --warn: #b0451f;
  --info: #44607f;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; font-size: 16px; line-height: 1.5; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--main); color: #fff; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: .1em; }
.clock { flex: 1; text-align: right; font-variant-numeric: tabular-nums; opacity: .9; }
.icon-btn { background: none; border: 0; color: inherit; font-size: 20px; padding: 4px 8px; cursor: pointer; }
main { max-width: 640px; margin: 0 auto; padding: 12px 12px 40px; }
.card { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.card-h { font-size: 13px; color: var(--sub); font-weight: 600; margin-bottom: 6px; letter-spacing: .05em; }
.notes { padding: 10px 14px; }
.note { padding: 6px 0 6px 12px; border-left: 4px solid var(--info); margin: 4px 0; }
.note.ok { border-color: var(--ok); }
.note.warn { border-color: var(--warn); color: var(--warn); font-weight: 600; }
.here .place { font-size: 22px; font-weight: 700; }
.here .meta { color: var(--sub); font-size: 13px; }
.ev-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.ev-title { font-size: 18px; font-weight: 700; }
.ev-loc { color: var(--sub); font-size: 14px; }
.plan { margin-top: 10px; padding: 10px 12px; background: #eef2f6; border-radius: 10px; }
.plan .leave { font-size: 20px; font-weight: 700; }
.plan.late { background: #fbece6; }
.plan .steps { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.plan .steps li { padding: 2px 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .t { font-variant-numeric: tabular-nums; color: var(--sub); min-width: 48px; font-size: 14px; }
.list .x { flex: 1; }
.list .past { opacity: .45; }
.list .now { font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.btn { display: inline-block; border: 1px solid var(--main); color: var(--main); background: #fff; border-radius: 10px;
  padding: 8px 14px; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--main); color: #fff; }
.btn.big { display: block; width: 100%; padding: 14px; font-size: 17px; margin-top: 10px; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sub { color: var(--sub); font-size: 13px; }
.foot { text-align: center; color: var(--sub); font-size: 12px; margin-top: 16px; }
.login { max-width: 360px; margin: 30vh auto; text-align: center; }
dialog { border: 0; border-radius: 16px; width: min(560px, 94vw); max-height: 88vh; padding: 16px; }
dialog::backdrop { background: rgba(0,0,0,.35); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 18px; }
dialog h3 { font-size: 15px; margin: 18px 0 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.field { display: block; margin: 6px 0; }
.field input[type=number] { width: 70px; }
.field input[type=text] { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.check { display: block; margin: 6px 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(20,28,38,.92); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; max-width: 90vw; }
