.wrap.wide { max-width: 1100px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.admin-head .brand { font-weight: 700; font-size: 1.15rem; }
.admin-head .brand span { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-left: 6px; }
.admin-head nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.admin-head nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.admin-head nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.tabs a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.daynav { display: flex; gap: 6px; align-items: center; }
.daynav input { width: auto; }

.step h2 { font-size: 1.1rem; }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.row .grow { flex: 1 1 200px; }
.row .spacer { flex: 1; }
.inline-f { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.fields.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fields.four .span2 { grid-column: span 2; }
@media (max-width: 720px) { .fields.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fields.four { grid-template-columns: 1fr; } .fields.four .span2 { grid-column: auto; } }
.check.small { font-size: .82rem; }
.check.small input { width: 15px; height: 15px; margin-top: 2px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
table.bookings td.when { font-family: var(--mono); white-space: nowrap; }
table.bookings td.note { max-width: 260px; color: var(--muted); font-size: .9rem; }
table.bookings tr.st-cancelled td { opacity: .55; }
table.bookings tr.st-cancelled td.when strong { text-decoration: line-through; }
table.bookings tr.st-done td.when { color: var(--ok); }
.status-form { display: grid; gap: 6px; min-width: 150px; }
table.hours input[type=time] { min-width: 105px; }
table.hours input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

.tag { display: inline-block; font: 500 .75rem var(--mono); padding: 2px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.tag.warn { background: var(--err-soft); color: var(--warn); }
.muted { color: var(--muted); font-size: .9rem; }
.empty-state { color: var(--muted); padding: 18px; border: 1.5px dashed var(--line); border-radius: 8px; margin: 0; }
.step.inactive { opacity: .7; }
.step.add { border-style: dashed; }
.svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.delete-form { display: flex; gap: 10px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.closed-list { list-style: none; margin: 0; padding: 0; display: grid; }
.closed-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.narrow { max-width: 420px; }
details summary { cursor: pointer; }
code { font-family: var(--mono); font-size: .9em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .85rem; }
.warn-text { color: var(--warn); }
.howto { display: grid; gap: 6px; margin-top: 10px; max-width: 70ch; }
.howto h3 { font-size: 1rem; margin-top: 8px; }
.howto p { margin: 0; }
.inline-reset { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
