* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #f3f1ec; color: #1f1d1a;
  font: 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 520px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 14px 28px; }
h1 { margin: 20vh 0 6px; font-size: 32px; }
.top { display: flex; justify-content: space-between; align-items: baseline; }
.day { font-size: 21px; font-weight: 700; }
.clock { font-size: 21px; color: #6b665e; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
#pers { margin: 10px 0 12px; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: #8a847a; font-size: 14px; padding: 0; }
button.chip { border: 1px solid #d8d3c9; background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 15px; color: #1f1d1a; }
button.chip.on { background: #1f1d1a; color: #fff; border-color: #1f1d1a; }
.card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8a847a; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acts { display: flex; gap: 16px; text-transform: none; letter-spacing: 0; }
.special { background: #fff4c2; }
.item { font-size: 17px; padding: 5px 0; display: flex; gap: 10px; align-items: baseline; }
.item b { font-variant-numeric: tabular-nums; min-width: 44px; white-space: nowrap; }
.tag { font-size: 11px; background: rgba(0,0,0,.08); border-radius: 6px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.muted { color: #6b665e; font-size: 14px; margin: 0 0 6px; }
.tm { font-size: 14px; color: #6b665e; margin-top: 10px; border-top: 1px dashed #e3d38a; padding-top: 8px; }
.dir { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid #eee; }
.dir.first { border-top: 0; padding-top: 2px; }
.from { font-weight: 600; }
.via { font-size: 12px; color: #8a847a; }
.times { text-align: right; }
.t1 { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.in { font-size: 13px; color: #6b665e; }
.wx { display: flex; align-items: center; gap: 14px; }
.ico { font-size: 42px; line-height: 1; }
.big { font-size: 42px; font-weight: 700; line-height: 1; }
.hint { margin-top: 10px; font-size: 15px; background: #eef3fb; border-radius: 10px; padding: 8px 10px; }
.small { font-size: 12px; color: #a39d93; margin-top: 8px; }
.btn { background: #1f1d1a; color: #fff; border-radius: 10px; padding: 10px 18px; font-size: 15px; }
.btn2 { color: #1f1d1a; padding: 10px 12px; font-size: 15px; }
.row-btns { margin-top: 14px; display: flex; gap: 6px; }
.h { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, textarea { font: inherit; width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 9px; background: #fff; color: inherit; }
textarea { font: 13px ui-monospace, Consolas, monospace; }
code { font-size: 12px; }
.err { color: #b5562f; font-size: 14px; margin-top: 10px; min-height: 1px; }
.warn { background: #fde9e0; color: #8a3a1a; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #eee; font-size: 15px; }
.row small { display: block; color: #6b665e; font-size: 12px; }
.row .acts { gap: 14px; flex-shrink: 0; }
.row .acts button { white-space: nowrap; }
.tr { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.tr b { min-width: 30px; font-size: 15px; }
.foot { text-align: center; color: #8a847a; font-size: 13px; margin-top: 18px; }
#loginForm .btn { margin-top: 16px; width: 100%; }
