@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #172033;
  --muted: #55606f;
  --faint: #8a929f;
  --line: #dde2ea;
  --soft-line: #eef0f3;
  --field: #c9d1dd;
  --accent: #116149;
  --accent-dark: #0d4d3a;
  --accent-soft: #e7f0ec;
  --danger: #9d2f2f;
  --danger-dark: #872828;
  --warn-soft: #f7ede0;
  --warn: #a5641b;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 600;
}

h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 600;
}

h3 { font-size: 14.5px; margin: 0 0 6px; font-weight: 600; }
p { line-height: 1.6; margin: 0 0 12px; max-width: 680px; }

.hdr {
  align-items: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 28px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
}

.brand .mk {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  display: grid;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.nav a { color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--ink); font-weight: 600; }

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  border: 1px solid var(--field);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  padding: 8px 12px;
}

.mobile-menu summary::-webkit-details-marker { display: none; }

.mobile-menu nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .12);
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
}

.mobile-menu nav a {
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
  padding: 9px 10px;
}

.mobile-menu nav a.active,
.mobile-menu nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.wrap {
  margin: 0 auto;
  max-width: 1040px;
  padding: 40px 24px;
}

.admin-wrap {
  height: calc(100vh - 55px);
  height: calc(100dvh - 55px);
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono, code { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
}

.button:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: #fff; border: 1px solid var(--field); color: var(--ink); }
.button.secondary:hover { background: var(--bg); color: var(--ink); }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:hover { background: var(--danger-dark); }
.button.block { width: 100%; }
.button.small { font-size: 13px; min-height: 34px; padding: 6px 10px; }
.button svg { flex: none; }
.button:disabled { cursor: default; opacity: .45; }

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  max-width: 560px;
}

.compact-form {
  border-top: 1px solid var(--soft-line);
  margin-top: 16px;
  padding-top: 16px;
}

.inline-form {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 0;
  max-width: none;
}

.plain-form {
  margin-top: 0;
  max-width: none;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

label.inline {
  align-items: center;
  display: flex;
  font-weight: 500;
}

label.field,
.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field .opt {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
}

.hint {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}

input, select, textarea {
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  padding: 10px 12px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  outline: 2px solid #b3d3c8;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

legend { color: var(--muted); font-weight: 600; padding: 0 6px; }

code {
  background: #eef1f5;
  border-radius: 4px;
  padding: 2px 5px;
}

.portal-head {
  margin: 0 auto;
  max-width: 760px;
  padding: 58px 0 34px;
}

.portal-head h1 { font-size: 34px; }
.portal-head p { color: var(--muted); font-size: 16px; margin-bottom: 24px; max-width: 540px; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tri {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px auto 0;
  max-width: 900px;
}

.tri .c { padding: 20px; }
.tri .ic {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 7px;
  color: var(--accent);
  display: grid;
  height: 34px;
  justify-content: center;
  margin-bottom: 11px;
  width: 34px;
}
.tri p { color: var(--muted); font-size: 13px; margin: 0; }

.list-panel, .member-card { margin: 28px auto 0; max-width: 760px; }
.link-list { display: grid; gap: 10px; margin: 0; padding-left: 18px; }

.booking-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.option-row:hover {
  background: #f4faf7;
  border-color: var(--accent);
  color: var(--ink);
}

.option-row span:first-child {
  display: grid;
  gap: 3px;
}

.option-row small {
  color: var(--muted);
  font-size: 13px;
}

.bcard {
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
  padding: 0;
}

.bhead {
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 20px 24px;
}

.bhead .t { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.bhead .s {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
}
.bhead .s span { align-items: center; display: inline-flex; gap: 5px; }
.bhead .s svg, .tznote svg { color: var(--faint); }
.bhead .sep { color: var(--field); }

.date-filter {
  align-items: end;
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  margin: 0;
  max-width: none;
  padding: 15px 24px;
}

.booking-form { gap: 0; margin: 0; max-width: none; }

.btool {
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 15px 24px;
}

.btool h2 {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .05em;
  margin: 0;
  text-transform: uppercase;
}

.zeitbtn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  padding: 7px 11px;
}

.blist { padding: 2px 24px; }
.dgroup { border-bottom: 1px solid var(--soft-line); padding: 16px 0; }
.dgroup:last-child { border-bottom: 0; }
.dgroup .dl { font-size: 13.5px; font-weight: 600; margin-bottom: 11px; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill {
  align-items: center;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13.5px;
  font-weight: 500;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
}

.pill:hover, .pill:has(input:checked) {
  background: #f4faf7;
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.pill input { inline-size: 1px; opacity: 0; position: absolute; }
.pill small { color: var(--faint); font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; }

.booking-details {
  border-top: 1px solid var(--soft-line);
  display: grid;
  gap: 14px;
  padding: 22px 24px 24px;
}

.empty {
  color: var(--muted);
  padding: 22px 24px;
}

.tznote {
  align-items: center;
  border-top: 1px solid var(--soft-line);
  color: var(--faint);
  display: flex;
  font-size: 12px;
  gap: 7px;
  padding: 14px 24px;
}

.legal { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 0; }

.confirm {
  margin: 0 auto;
  max-width: 520px;
  padding: 38px 34px;
}

.badge {
  align-items: center;
  border-radius: 8px;
  display: grid;
  height: 50px;
  justify-content: center;
  margin-bottom: 18px;
  width: 50px;
}

.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--warn-soft); color: var(--warn); font-size: 24px; font-weight: 700; }

.kv {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 500;
  gap: 11px;
  margin: 18px 0;
  padding: 18px;
}

.kv .row {
  align-items: center;
  display: flex;
  gap: 11px;
}

.kv svg { color: var(--faint); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.adm {
  display: flex;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.side {
  background: #fff;
  border-right: 1px solid var(--line);
  flex: none;
  overflow-y: auto;
  padding: 16px 12px;
  width: 230px;
}

.side .snav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side .grp {
  margin-top: 20px;
}

.side .grp:first-child {
  margin-top: 8px;
}

.grp-h {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  margin-bottom: 7px;
  padding: 0 10px;
  text-transform: uppercase;
}

.grp-note {
  align-items: flex-start;
  color: var(--faint);
  display: flex;
  font-size: 11px;
  gap: 6px;
  line-height: 1.45;
  padding: 6px 10px 2px;
}

.side .snav a {
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 13.5px;
  font-weight: 500;
  gap: 10px;
  padding: 8px 10px;
}

.side .snav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.side .snav a:hover { color: var(--ink); }
.side .snav a.active:hover { color: var(--accent); }

.admbody {
  background: var(--bg);
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 26px 30px;
}

.admbody > .panel, .admbody article.panel { margin-bottom: 16px; }

.admin-title, .row-between, .pagehead, .sec {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pagehead {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.pagehead h1 { font-size: 24px; margin: 0; }
.pagehead .sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.sec { margin-bottom: 14px; }
.sec h2 { margin: 0; }
.sec .n { color: var(--faint); font-size: 12px; font-weight: 600; }

.admin-title form,
.row-between form,
.pagehead form { margin: 0; }

.grid2 {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 384px;
}

.grid2.narrow {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.stat { padding: 16px 18px; }
.stat .l {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.stat .v { font-size: 22px; font-weight: 600; }

.tbl {
  border-collapse: collapse;
  font-size: 13.5px;
  width: 100%;
}

.tbl th {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 0 14px 10px;
  text-align: left;
  text-transform: uppercase;
}

.tbl td {
  border-top: 1px solid var(--soft-line);
  font-weight: 500;
  padding: 12px 14px;
  vertical-align: top;
}

.chip {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  padding: 3px 9px;
}
.chip svg { height: 14px; width: 14px; }

.chip.green { background: var(--accent-soft); color: var(--accent); }
.chip.gray { background: var(--soft-line); color: var(--muted); }
.chip.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; }

.tag {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 600;
  gap: 6px;
  padding: 3px 9px;
}

.tag svg { height: 14px; width: 14px; }
.tag.on { background: var(--accent-soft); color: var(--accent); }
.tag.off { background: var(--soft-line); color: var(--muted); }

.item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.item .top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.item .meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 500;
  gap: 8px 16px;
}

.item .meta span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.item .meta svg { color: var(--faint); }

.linkbox {
  align-items: center;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 5px 5px 12px;
}

.linkbox .u {
  color: var(--muted);
  flex: 1;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  display: flex;
  flex-direction: column;
}

.status .r {
  align-items: center;
  border-top: 1px solid var(--soft-line);
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  padding: 11px 0;
}

.status .r:first-child { border-top: 0; }
.status .r .k { color: var(--muted); }
.status .r .v { color: var(--ink); font-weight: 600; margin-left: auto; }

.dot {
  border-radius: 50%;
  flex: none;
  height: 8px;
  width: 8px;
}

.dot.ok { background: var(--accent); }
.dot.off { background: var(--field); }
.dot.warn { background: var(--warn); }

.appt {
  display: flex;
  flex-direction: column;
}

.appt .a {
  align-items: baseline;
  border-top: 1px solid var(--soft-line);
  display: flex;
  gap: 18px;
  padding: 15px 0;
}

.appt .a:first-child { border-top: 0; }
.appt .when { font-size: 13.5px; font-weight: 600; min-width: 168px; }
.appt .when small { color: var(--faint); display: block; font-size: 11.5px; font-weight: 500; margin-top: 2px; }
.appt .who { font-size: 13.5px; font-weight: 600; }
.appt .what { color: var(--muted); font-size: 12.5px; margin-left: auto; text-align: right; }

.prev {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.prev .pt {
  border-bottom: 1px solid var(--soft-line);
  border-top: 3px solid var(--accent);
  padding: 13px 15px;
}

.prev .pt .t { font-size: 13px; font-weight: 600; }
.prev .pt .s { color: var(--faint); font-size: 11px; margin-top: 3px; }

.prev .pr {
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  font-size: 12px;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 15px;
}

.prev .pr:last-child { border-bottom: 0; }
.prev .pr b { font-weight: 600; }
.prev .pr small { color: var(--faint); display: block; margin-top: 2px; }
.prev .pr .go { color: var(--accent); flex: none; font-weight: 600; }

.caption,
.mini-note {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
  margin: 8px 0 0;
}

.banner {
  align-items: flex-start;
  background: var(--warn-soft);
  border: 1px solid #ecdcc5;
  border-radius: 8px;
  color: #6b4f22;
  display: flex;
  font-size: 13px;
  gap: 12px;
  line-height: 1.55;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.banner svg { color: var(--warn); flex: none; margin-top: 1px; }
.banner b { font-weight: 600; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.steps > div {
  color: var(--muted);
  display: flex;
  font-size: 12.5px;
  gap: 12px;
  line-height: 1.55;
}

.stepno {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.steps b { color: var(--ink); font-weight: 600; }

.frow {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.check {
  align-items: center;
  display: flex;
  font-size: 13.5px;
  font-weight: 500;
  gap: 9px;
}

.check input {
  accent-color: var(--accent);
  height: 16px;
  width: 16px;
}

.formfoot {
  border-top: 1px solid var(--soft-line);
  display: flex;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
}

.help {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.help summary {
  align-items: center;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  font-size: 12.5px;
  font-weight: 600;
  gap: 8px;
  list-style: none;
  padding: 13px 16px;
}

.help summary::-webkit-details-marker { display: none; }
.help .body { color: var(--muted); font-size: 12.5px; line-height: 1.6; padding: 0 16px 15px; }
.right { text-align: right; }

.login {
  margin: 50px auto;
  max-width: 368px;
  padding: 28px;
}

.employee-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.employee-head p { margin-bottom: 0; }

@media (max-width: 820px) {
  .tri, .stats, .grid2, .grid2.narrow, .frow { grid-template-columns: 1fr; }
  .admin-wrap { height: auto; overflow: visible; }
  .adm { display: block; }
  .side { border-bottom: 1px solid var(--line); border-right: 0; overflow: visible; width: auto; }
  .side > .grp { display: none; }
  .admin-mobile-menu { display: inline-block; }
  .admin-mobile-menu nav { left: 0; right: auto; }
  .admin-mobile-menu .grp { margin: 0 0 10px; }
  .admin-mobile-menu .grp:last-child { margin-bottom: 0; }
  .admin-mobile-menu .grp-note { display: none; }
  .admbody { overflow: visible; padding: 20px 16px; }
  .tbl { display: block; overflow-x: auto; }
}

@media (max-width: 640px) {
  .hdr {
    padding: 12px 16px;
  }

  .hdr > .nav { display: none; }
  .hdr > .mobile-menu { display: block; }
  .wrap { padding: 14px; }
  h1 { font-size: 23px; }
  .portal-head h1 { font-size: 30px; }
  .bhead, .date-filter, .btool, .blist, .booking-details, .tznote { padding-left: 16px; padding-right: 16px; }
  .date-filter { grid-template-columns: 1fr; }
  .confirm { padding: 28px 22px; }
  .admin-title, .row-between, .pagehead, .sec, .item .top, .appt .a { align-items: flex-start; flex-direction: column; }
  .employee-head { flex-direction: column; }
  .inline-form { align-items: stretch; display: grid; }
  .option-row { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .linkbox { align-items: stretch; flex-direction: column; }
  .linkbox .button { width: 100%; }
  .appt .when { min-width: 0; }
  .appt .what { margin-left: 0; text-align: left; }
  .pill { flex: 1 1 96px; justify-content: center; }
  .tbl th, .tbl td { white-space: nowrap; }
}
