/* LWG Meeting Scheduler — brand tokens from localworksglobal.org (src/styles/tokens.css). */
:root {
  --c-white: #ffffff;
  --c-dark-teal: #053748;
  --c-teal: #147e9f;
  --c-sky: #bbe5f1;
  --c-sky-soft: #e8f5f9;
  --c-cream: #faf5e5;
  --c-gold: #b8922e;
  --c-gold-hover: #9c7a26;

  --ink: var(--c-dark-teal);
  --muted: #4c6873;
  --faint: #8aa0a8;
  --line: #dbe5e8;
  --line-strong: #c3d3d8;
  --bg: var(--c-cream);
  --surface: var(--c-white);
  --danger: #a33a2c;
  --danger-soft: #fbecea;
  --success: #2b7451;
  --success-soft: #e8f4ee;

  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(5, 55, 72, 0.06), 0 12px 32px -12px rgba(5, 55, 72, 0.18);
  --focus: 0 0 0 3px rgba(20, 126, 159, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
a { color: var(--c-teal); text-underline-offset: 2px; }
a:hover { color: var(--c-dark-teal); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Top bar and footer ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
}
.topbar .brand img { height: 46px; width: auto; display: block; }
.topbar .who { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.foot {
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 28px 16px 36px;
}
.foot a { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-body); letter-spacing: 0.03em; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; min-height: 46px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-gold); color: #fff; text-transform: uppercase; }
.btn-primary:hover { background: var(--c-gold-hover); color: #fff; }
.btn-dark { background: var(--c-dark-teal); color: #fff; }
.btn-dark:hover { background: #0a4a5f; color: #fff; }
.btn-outline { background: transparent; color: var(--c-teal); border-color: var(--c-teal); }
.btn-outline:hover { background: var(--c-sky-soft); color: var(--c-dark-teal); }
.btn-ghost { background: transparent; color: var(--muted); padding: 10px 14px; min-height: 0; }
.btn-ghost:hover { color: var(--ink); background: rgba(5, 55, 72, 0.05); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #862e23; color: #fff; }
.btn-sm { padding: 9px 16px; min-height: 36px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer; color: var(--c-teal);
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
}
.icon-btn:hover:not([disabled]) { background: var(--c-sky-soft); }
.icon-btn[disabled] { color: var(--line-strong); cursor: default; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Booking card ---------- */
.shell { padding: 8px clamp(12px, 3vw, 32px) 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.booking {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr;
  min-height: 600px; overflow: hidden;
}
.info { padding: 32px 30px; border-right: 1px solid var(--line); }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 16px; border: 3px solid var(--c-sky-soft); }
.host { margin: 0; font-weight: 600; color: var(--muted); font-size: 15px; }
.subtitle { margin: 2px 0 14px; color: var(--muted); font-size: 14px; }
.info h1 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 500; }
.facts li .icon { color: var(--faint); margin-top: 2px; }
.facts li.highlight { color: var(--c-dark-teal); font-weight: 600; }
.facts li.highlight .icon { color: var(--c-teal); }
.desc { color: var(--ink); margin: 0; white-space: pre-line; }
.current-time { background: var(--c-sky-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px; font-size: 14px; }
.current-time strong { display: block; font-size: 15px; }

.panel { padding: 32px clamp(20px, 3vw, 36px); min-width: 0; }
.panel h2 { font-size: 22px; margin-bottom: 20px; }

.picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.picker.has-day { grid-template-columns: minmax(0, 1fr) 230px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.cal-head .nav { display: flex; gap: 4px; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.weekdays { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.day {
  appearance: none; border: 0; cursor: pointer; position: relative;
  width: 100%; max-width: 46px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  font: 500 15px var(--font-body); background: transparent; color: var(--faint);
  display: grid; place-items: center;
}
.day[disabled] { cursor: default; }
.day.available { background: var(--c-sky-soft); color: var(--c-teal); font-weight: 700; }
.day.available:hover { background: var(--c-sky); color: var(--c-dark-teal); }
.day.selected, .day.selected:hover { background: var(--c-dark-teal); color: #fff; }
.day.today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.day.blank { visibility: hidden; }
.days.loading { opacity: .45; pointer-events: none; }

.tz-row { margin-top: 22px; }
.tz-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap .icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.select-wrap select { padding-left: 40px; }

.times h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.times-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.times-top h3 { margin: 0; }
.hourfmt { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.hourfmt button { appearance: none; border: 0; background: transparent; font: 600 12px var(--font-body); color: var(--muted); padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.hourfmt button[aria-pressed="true"] { background: var(--c-dark-teal); color: #fff; }
.slot-list { list-style: none; margin: 0; padding: 0 4px 4px 0; display: grid; gap: 8px; max-height: 430px; overflow-y: auto; }
.slot { display: flex; gap: 6px; }
.slot-btn {
  flex: 1; appearance: none; cursor: pointer; min-height: 48px; border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 126, 159, 0.55); background: #fff; color: var(--c-teal);
  font: 700 15px var(--font-body); transition: all .12s ease;
}
.slot-btn:hover { border-color: var(--c-teal); box-shadow: inset 0 0 0 1px var(--c-teal); }
.slot.selected .slot-btn { background: var(--muted); border-color: var(--muted); color: #fff; box-shadow: none; }
.slot .next-btn { flex: 1; border-radius: var(--radius-sm); min-height: 48px; padding: 0 10px; text-transform: none; letter-spacing: 0; }

.status { color: var(--muted); font-size: 14px; margin: 16px 0 0; min-height: 1.5em; }
.status.error { color: var(--danger); }
.empty-day { color: var(--muted); font-size: 14px; }
.skeleton { display: grid; gap: 8px; }
.skeleton span { height: 48px; border-radius: var(--radius-sm); background: linear-gradient(90deg, #eef3f5, #f7fafb, #eef3f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Forms ---------- */
.back { margin: -8px 0 12px -10px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; font: 400 16px var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; min-height: 46px; transition: border-color .12s ease, box-shadow .12s ease;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234c6873'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: var(--focus); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.form-error { color: var(--danger); font-weight: 500; margin: 14px 0 0; }
.details-form { max-width: 520px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-teal); flex: none; }

/* ---------- Confirmation / manage ---------- */
.narrow { max-width: 640px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 48px); text-align: center; }
.badge-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.badge-icon .icon { width: 30px; height: 30px; }
.badge-icon.ok { background: var(--success-soft); color: var(--success); }
.badge-icon.off { background: var(--danger-soft); color: var(--danger); }
.badge-icon.info { background: var(--c-sky-soft); color: var(--c-teal); }
.narrow h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 10px; }
.lead { color: var(--muted); margin: 0 auto 26px; max-width: 460px; }
.summary { text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 26px; }
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.summary .facts { margin: 0; }
.summary .facts li { color: var(--ink); }
.summary .facts a { font-weight: 600; word-break: break-all; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cancel-box { margin-top: 26px; text-align: left; }
.cancel-box summary { cursor: pointer; color: var(--danger); font-weight: 600; text-align: center; list-style: none; }
.cancel-box summary::-webkit-details-marker { display: none; }
.cancel-box[open] summary { margin-bottom: 14px; }
.cancel-box form { background: var(--danger-soft); padding: 18px; border-radius: var(--radius-sm); }

/* ---------- Flash messages ---------- */
.flashes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.flash.success { background: var(--success-soft); color: var(--success); }
.flash.error { background: var(--danger-soft); color: var(--danger); }

/* ---------- Admin ---------- */
.admin { max-width: 1120px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 32px) 24px; display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.admin-nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; text-decoration: none; }
.admin-nav a:hover { background: rgba(5, 55, 72, 0.05); color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--c-dark-teal); color: #fff; }
.admin-main { min-width: 0; }
.admin-main > h1 { font-size: clamp(28px, 3vw, 34px); margin: 4px 0 6px; }
.admin-main > .lead { margin: 0 0 22px; max-width: none; text-align: left; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px clamp(18px, 2.4vw, 28px); margin-bottom: 20px; }
.panel-card h2 { font-size: 21px; margin-bottom: 6px; }
.panel-card .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-family: var(--font-heading); font-size: 26px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on { background: var(--success-soft); color: var(--success); }
.pill.off { background: var(--danger-soft); color: var(--danger); }
.linkbox { display: flex; gap: 8px; align-items: stretch; }
.linkbox input { font-weight: 600; color: var(--c-teal); background: var(--c-sky-soft); border-color: transparent; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .muted, .muted { color: var(--muted); }
.table .small, .small { font-size: 13px; }
.table-wrap { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--c-sky-soft); color: var(--c-dark-teal); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; }
.empty { color: var(--muted); padding: 10px 0; }
.warn { background: #fff6e0; border: 1px solid #f0d58e; color: #6b4e00; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }

.week { display: grid; gap: 4px; }
.week-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.week-row:last-child { border-bottom: 0; }
.week-row .check { padding-top: 10px; }
.ranges { display: grid; gap: 8px; }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range input[type="time"] { width: 140px; }
.range .dash { color: var(--muted); }
.unavailable { color: var(--faint); padding-top: 10px; }
.override-list { display: grid; gap: 10px; margin-top: 14px; }
.override { display: grid; grid-template-columns: 180px 1fr auto; gap: 14px; align-items: start; background: var(--c-cream); border-radius: var(--radius-sm); padding: 12px 14px; }
.override .date { font-weight: 600; padding-top: 10px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 16px 0 6px; display: flex; gap: 12px; align-items: center; }
.cal-list { display: grid; gap: 10px; }
.cal-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cal-swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.login-card { max-width: 440px; margin: 40px auto; text-align: center; padding: 40px 32px; }
.login-card h1 { font-size: 30px; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .picker.has-day { grid-template-columns: 1fr; }
  .slot-list { max-height: none; }
}
@media (max-width: 820px) {
  .booking { grid-template-columns: 1fr; min-height: 0; }
  .info { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 22px; }
  .info .desc { font-size: 15px; }
  .panel { padding: 24px 20px; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .admin-nav a { white-space: nowrap; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr; gap: 6px; }
  .override { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar .brand img { height: 38px; }
  .shell { padding-left: 0; padding-right: 0; }
  .booking { border-radius: 0; border-left: 0; border-right: 0; }
  .day { font-size: 14px; }
  .range input[type="time"] { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.closed-state { padding: 40px 0; }
.fineprint.lg { font-size: 15px; }
.narrow-field { max-width: 320px; }
.plain-fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.plain-fieldset legend { margin-bottom: 10px; padding: 0; }
.stat .value.small { font-family: var(--font-body); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; margin-top: 10px; }
.ranges > .btn { justify-self: start; padding-left: 4px; }
.range .icon-btn { font-size: 22px; line-height: 1; color: var(--muted); }
.range .icon-btn:hover { color: var(--danger); background: var(--danger-soft); }
.hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.cal-item { align-items: flex-start; }
.cal-item .cal-swatch { margin-top: 6px; }
.btn-block { width: 100%; }
.login-h { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; margin: 22px 0 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 24px 0 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-form { text-align: left; }
.inline-form { display: inline; }
.actions-cell { text-align: right; }
.actions-cell .inline-form { display: inline-block; }
.table tr.muted td { color: var(--faint); }
.inline-form select { width: auto; min-width: 118px; min-height: 36px; padding: 6px 34px 6px 10px; font-size: 14px; }
.pill { white-space: nowrap; }
.slug-row { display: flex; align-items: center; gap: 6px; }
.slug-row .muted { white-space: nowrap; font-size: 15px; }
.avatar-initials { display: grid; place-items: center; background: var(--c-dark-teal); color: #fff; font: 500 26px var(--font-heading); }

/* ---------- Group meetings ---------- */
.status-bar { margin-top: 14px; }
.add-member { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.add-member .field { margin: 0; flex: 1 1 260px; }
.add-member .check { padding-bottom: 12px; }
.danger-zone { margin: 8px 0 24px; }
.grid-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.heat, .avail { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.heat th, .avail th { position: sticky; background: #fff; color: var(--muted); font-weight: 600; padding: 6px 8px; white-space: nowrap; z-index: 1; }
.heat thead th, .avail thead th { top: 0; text-align: center; border-bottom: 1px solid var(--line); }
.heat tbody th, .avail tbody th { left: 0; text-align: right; vertical-align: top; transform: translateY(-7px); }
.heat td, .avail td { min-width: 44px; height: 18px; border-right: 1px solid #edf2f4; border-bottom: 1px solid #edf2f4; }
.heat tr:nth-child(2n) td, .avail tr:nth-child(2n) td { border-bottom-color: var(--line); }
td.off { background: repeating-linear-gradient(45deg, #f6f8f9, #f6f8f9 4px, #fff 4px, #fff 8px); }
.heat-0 { background: #fff; }
.heat-1 { background: #e3f3f8; }
.heat-2 { background: #bbe5f1; }
.heat-3 { background: #6fb7cf; }
.heat-4 { background: #147e9f; }
.heat td.meets { box-shadow: inset 0 0 0 2px var(--c-gold); }
.heat td:focus { outline: 2px solid var(--c-dark-teal); outline-offset: -2px; }
.avail td.cell { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.avail td.cell:hover { background: var(--c-sky-soft); }
.avail td.cell.busy { background: repeating-linear-gradient(135deg, #fbecea, #fbecea 3px, #fff 3px, #fff 6px); }
.avail td.cell.on { background: var(--c-teal); }
.avail td.cell.on.busy { background: repeating-linear-gradient(135deg, var(--c-teal), var(--c-teal) 3px, #4d9db7 3px, #4d9db7 6px); }
.avail td.cell:focus { outline: 2px solid var(--c-dark-teal); outline-offset: -2px; }
.avail tr.night { display: none; }
.avail.show-all tr.night { display: table-row; }
.avail-tools { margin-bottom: 14px; }
.tz-form { display: flex; gap: 10px; align-items: center; }
.tz-form label { font-weight: 600; font-size: 14px; white-space: nowrap; }
.tz-form select { max-width: 260px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.sw-on { background: var(--c-teal); border-color: var(--c-teal); }
.sw-busy { background: repeating-linear-gradient(135deg, #f3c9c3, #f3c9c3 3px, #fff 3px, #fff 6px); }

.cf-turnstile { margin: 4px 0 14px; }
.alerts-check { margin: 4px 0 18px; }
/* Keep visually hidden labels inside scrolling boxes so they never widen the page. */
.table-wrap, .grid-scroll { position: relative; }
.touch-hint { display: none; margin: 0 0 10px; }
@media (max-width: 820px), (pointer: coarse) { .touch-hint { display: block; } }
.test-alert { margin: -6px 0 20px; }
