/* Owner admin. Neutral, phone-first, big tap targets. */
:root { --bg: #f4f4f2; --card: #fff; --ink: #16181a; --muted: #5d6267; --line: #dfdfda; --brand: #1d3d33; --ok: #15603a; --okbg: #e3f3e8; --err: #b42318; --errbg: #fdecea; --warnbg: #fff4d6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1 { font-size: 1.5rem; margin: 1rem 0; } h2 { font-size: 1.15rem; margin: 0 0 0.25rem; }
a { color: var(--brand); }
.in { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding-bottom: 0; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; margin: 0 auto; padding: 0 12px 8px; max-width: 760px; scrollbar-width: none; }
nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 0.95rem; }
nav a[aria-current] { background: var(--ink); color: #fff; }
.mode { margin: 0; background: #ffe9a8; color: #4a3500; text-align: center; font-size: 0.85rem; padding: 6px 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.muted { color: var(--muted); } .small { font-size: 0.875rem; } .mt { margin-top: 24px; }
.stack { display: grid; gap: 8px; margin-bottom: 16px; }
.stack h2 { margin-top: 4px; }
label { font-weight: 600; font-size: 0.95rem; }
label.row { display: flex; gap: 8px; align-items: center; font-weight: 500; }
input, select, textarea { font: inherit; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; }
button, .btnlink { font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.ghost, .btnlink { background: #fff; color: var(--ink); border-color: var(--line); }
button.danger { background: #fff; color: var(--err); border-color: #f0b6b0; }
button.small { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair label { display: block; margin-bottom: 4px; }
.flash { background: var(--okbg); color: var(--ok); border-radius: 10px; padding: 10px 14px; margin-top: 16px; }
.flash.err { background: var(--errbg); color: var(--err); }
.warn { background: var(--warnbg); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.right { text-align: right; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eceae4; color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--okbg); color: var(--ok); }
.dayhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dayhead h1 { font-size: 1.25rem; text-align: center; }
.week { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week a { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); font-size: 0.8rem; }
.week a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.week strong { font-size: 1.05rem; } .week em { font-style: normal; font-size: 0.75rem; min-height: 1em; }
.booking { padding: 0; }
.booking summary { list-style: none; display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; cursor: pointer; }
.booking summary::-webkit-details-marker { display: none; }
.booking .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.booking .who span { display: block; color: var(--muted); font-size: 0.9rem; }
.booking .st { font-size: 0.8rem; color: var(--muted); }
.booking.cancelled .who strong, .booking.cancelled .time { text-decoration: line-through; color: var(--muted); }
.booking .more { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.booking dl { display: grid; grid-template-columns: 6rem 1fr; gap: 4px 8px; margin: 12px 0; font-size: 0.95rem; }
.booking dt { color: var(--muted); } .booking dd { margin: 0; } .err { color: var(--err); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline { display: flex; gap: 8px; }
.inline input { width: auto; }
fieldset.svc { display: grid; gap: 6px; margin: 0; }
fieldset.svc legend { font-weight: 700; padding: 0 4px; }
.sticky-save { position: sticky; bottom: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats span { display: block; color: var(--muted); font-size: 0.85rem; } .stats strong { font-size: 1.25rem; }
.conn { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.conn p { margin: 2px 0 6px; }
.btncol { display: grid; gap: 6px; min-width: 9rem; }
.hrow { display: grid; grid-template-columns: 6.5rem 1fr auto 1fr; gap: 8px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 480px) { .conn { flex-direction: column; } .btncol { width: 100%; } .stats strong { font-size: 1.05rem; } }
