@font-face { font-family: Lora; src: url(/static/lora-regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lora; src: url(/static/lora-bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
:root { --ink: #1d1d1b; --grey: #595959; --rule: #bfbfbf; --line: #e5e2db; --gold: #b9af82; --paper: #f3f1ec; --warn: #8a2d2d; --good: #2f6b3a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Lora, Georgia, 'Times New Roman', serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1 { font-size: 24px; font-weight: 400; margin: 0 0 4px; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
p { margin: 0 0 12px; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 20px calc(60px + env(safe-area-inset-bottom, 0px)); }
.sub { color: var(--grey); }
.small { font-size: 14px; }
.good { color: var(--good); }
.r { text-align: right; }
.mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.error { color: var(--warn); margin: 10px 0; }
.notice { border-left: 3px solid var(--gold); padding: 8px 12px; background: var(--paper); margin: 12px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; line-height: 1.2; border-radius: 2px; cursor: pointer; text-decoration: none; -webkit-appearance: none; appearance: none; white-space: nowrap; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--rule); }
.btn.danger { background: #fff; color: var(--warn); border-color: var(--warn); }
.btn.danger.armed { background: var(--warn); color: #fff; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 15px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
label { display: block; font-size: 14px; color: var(--grey); margin: 0 0 12px; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input[type=email], select { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--rule); border-radius: 2px; background: #fff; -webkit-appearance: none; appearance: none; }
input[readonly] { color: var(--grey); font-size: 14px; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
label.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > * { flex: 1; min-width: 0; }
.row > .btn, .row > .link { flex: 0 0 auto; }
.row > .btn { margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.actions .btn { flex: 1 1 auto; }

.list { border-top: 1px solid var(--rule); }
.item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; }
button.item { cursor: pointer; }
.item-title { font-weight: 700; }
.item-sub { color: var(--grey); font-size: 14px; }
.item-sub.good { color: var(--good); }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pill { display: inline-block; font-size: 12px; line-height: 1; padding: 5px 8px; border: 1px solid var(--rule); border-radius: 2px; color: var(--grey); white-space: nowrap; }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.warn { border-color: var(--warn); color: var(--warn); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
table.tbl th { background: var(--gold); color: #fff; font-weight: 700; text-align: left; padding: 7px 8px; font-size: 13px; }
table.tbl th.r { text-align: right; }
table.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.tbl tr.total td { background: var(--gold); color: #fff; font-weight: 700; border-bottom: 0; }

.who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.who h1 { margin: 0; }
.card { border: 1px solid var(--rule); border-radius: 2px; padding: 18px; margin: 16px 0; }
.card.on { border-color: var(--ink); border-left: 4px solid var(--gold); }
.card h2 { font-size: 22px; margin-bottom: 2px; }

.topbar { border-bottom: 1px solid var(--line); padding: 12px 20px 0; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.topbar nav { display: flex; gap: 18px; margin-top: 10px; overflow-x: auto; white-space: nowrap; font-size: 15px; -webkit-overflow-scrolling: touch; }
.topbar nav a { text-decoration: none; color: var(--grey); padding: 6px 0 10px; border-bottom: 2px solid transparent; }
.topbar nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.badge { display: inline-block; min-width: 18px; padding: 2px 5px; font-size: 11px; line-height: 14px; text-align: center; background: var(--warn); color: #fff; border-radius: 9px; }
.head-row, .group-head, .weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-row h2, .group-head h2 { margin: 0; }
.head-row { margin-bottom: 12px; }
.group { margin-top: 24px; }
.group-head { padding-bottom: 8px; }
.weeknav { text-align: center; margin-bottom: 4px; }
dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 1px solid var(--ink); border-radius: 2px; padding: 20px; color: var(--ink); }
dialog::backdrop { background: rgba(29, 29, 27, .45); }
#map iframe { display: block; width: 100%; height: 220px; border: 1px solid var(--rule); margin-bottom: 6px; }
#map { margin-bottom: 12px; }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 2px; font-size: 15px; z-index: 10; }
.login-body { background: var(--paper); }
.login { max-width: 380px; margin: 0 auto; padding: 64px 24px; }
.mark { display: block; width: 180px; height: auto; margin-bottom: 28px; }
.login h1 { margin-bottom: 20px; }
