:root {
  --bg: #e7eef8;
  --card: #ffffff;
  --ink: #1b2740;
  --muted: #5c6d86;
  --line: #d9e3f0;
  --line-strong: #c3d0e2;
  --accent: #0e7490;
  --accent-dark: #0c5f78;
  --teal: #0f8f78;
  --blue: #2f6fed;
  --violet: #6d4cc4;
  --amber: #c47b12;
  --coral: #d4533a;
  --sand: #fff6e4;
  --sand-line: #f0d7a4;
  --sand-ink: #6a4a12;
  --ok-bg: #e5f7f1;
  --ok-ink: #0d6b52;
  --err-bg: #fdecea;
  --err-ink: #8d2f2a;
  --info-bg: #e8f1ff;
  --mine: #d9f5ee;
  --block: #fde0d6;
  --shadow: 0 10px 28px rgba(24, 49, 84, 0.08);
  --sans: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { font-size: 16px; min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(980px 420px at 110% -8%, rgba(109, 76, 196, 0.18), transparent 60%),
    radial-gradient(820px 380px at -12% -6%, rgba(14, 116, 144, 0.22), transparent 55%);
  background-repeat: no-repeat;
}
a { color: #0c5f86; }
a:hover { color: #083e58; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.45rem; letter-spacing: -0.02em; }
h1 { font-size: 1.75rem; }
.schedule-title { display: flex; align-items: center; gap: 8px; }
.schedule-title .icon-button { width: 30px; height: 30px; margin: 0; flex: none; }
.schedule-title .icon-button .icon { width: 16px; height: 16px; }
h2 { font-size: 1.15rem; }
p { margin: 0.4rem 0; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 5; }

.top {
  background: linear-gradient(100deg, #10243f 0%, #0e5874 52%, #0f766e 100%);
  color: #f3fbff;
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.22);
}
.top a { color: #f3fbff; text-decoration: none; }
.top-inner {
  max-width: 1298px;
  margin: 0 auto;
  padding: 12px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.brand { font-weight: 400; letter-spacing: -0.02em; font-size: 1.55rem; line-height: 1.2; }
.top-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.main-nav, .userbox { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.main-nav a, .userbox a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
}
.nav-icon, .main-nav .icon, .userbox .icon { width: 16px; height: 16px; flex: none; }
.main-nav a:hover, .userbox a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.main-nav a.active, .userbox a.active { background: #fff; color: #12324d; }
.main-nav a.active:hover, .userbox a.active:hover { background: #fff; color: #12324d; }
.userbox { font-size: 0.92rem; }

main {
  max-width: 1298px;
  margin: 0 auto;
  padding: 22px 20px 48px;
}


.page-hero {
  background: linear-gradient(115deg, #123a5f 0%, #0e7490 48%, #0f8f78 100%);
  color: #f4fbff;
  border-radius: 18px;
  padding: 22px 26px 20px;
  margin: 0 0 16px;
  box-shadow: 0 14px 32px rgba(18, 58, 95, 0.2);
}
.page-hero h1 { color: #fff; margin-bottom: 0.2rem; }
.page-hero p { color: #d7f3f6; margin: 0; max-width: 40rem; }
.page-hero .kicker { color: #b7f0e4; }

.card {
  background: var(--card);
  border: 1px solid rgba(195, 208, 226, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
  margin: 0 0 16px;
}
.card.tight { padding: 12px 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.stack { display: grid; gap: 16px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
}
.dash-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.admin-split > .card { margin-bottom: 0; }
.admin-editor {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.admin-editor.fits-page {
  position: static;
  max-height: none;
  overflow: visible;
}
body:has(.editor-modal) { overflow: hidden; }
body:has(.block-modal:not([hidden])) { overflow: hidden; }
.block-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(16, 36, 63, 0.46);
}
.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(16, 36, 63, 0.46);
}
.editor-dialog {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 22px 50px rgba(16, 36, 63, 0.35);
}
.subject-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.subject-row select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 440px;
}
.subject-row > button { flex: none; }
.editor-dialog.report-dialog {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.editor-dialog.report-dialog.report-list-dialog { max-width: 520px; }
.report-list-dialog td:last-child,
.report-list-dialog th:last-child {
  text-align: right;
  white-space: nowrap;
  width: 7rem;
}
.report-dialog > .editor-dialog-head {
  position: static;
  flex: none;
  margin: 0;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.report-dialog-body {
  overflow: auto;
  min-height: 0;
  padding: 14px 18px 18px;
}
.report-dialog-body > p:first-child { margin-top: 0; }
.report-bookings-title { margin-top: 18px; }
.report-project { margin-top: 18px; }
.report-project h3 { margin-bottom: 8px; }
.report-project h3:has(+ .report-project-meta) { margin-bottom: 0.15rem; }
.report-project-meta { margin: 0 0 8px; }
.report-project table.data tfoot td { font-weight: 700; background: #f4f7fb; }
.editor-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  margin: -16px -18px 8px;
  padding: 16px 18px 8px;
  background: #fff;
}
.block-modal .editor-dialog { padding-top: 0; }
.block-modal .editor-dialog-head {
  position: static;
  margin: 0 -18px 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.block-modal [data-block-summary] { margin-top: 0; }
.editor-dialog-head h2 { margin: 0; }
.editor-dialog-head .icon-button { text-decoration: none; flex: none; }
.editor-dialog input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
.editor-dialog select,
.editor-dialog textarea { max-width: none; width: 100%; }
.editor-dialog .flash { margin-top: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.stat:nth-child(2) { border-top-color: var(--blue); }
.stat:nth-child(3) { border-top-color: var(--violet); }
.stat:nth-child(4) { border-top-color: var(--coral); }
.stat:nth-child(5) { border-top-color: var(--amber); }
a.stat { display: block; color: inherit; text-decoration: none; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(18, 50, 84, 0.1); }
.stat b { display: block; font-size: 1.6rem; font-weight: 700; color: #12324d; }
.stat span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; }
.stat .icon { width: 15px; height: 15px; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.kicker {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.empty {
  background: #f6f9fd;
  border: 1px dashed #c5d3e6;
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
}

.flash, .status-banner, .error-list {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.flash.ok { background: var(--ok-bg); color: var(--ok-ink); border-left: 5px solid #1aaa78; }
.flash.error { background: var(--err-bg); color: var(--err-ink); border-left: 5px solid var(--coral); }
.flash.info { background: var(--info-bg); color: #1d3f86; border-left: 5px solid var(--blue); }
.flash-stack {
  position: fixed;
  z-index: 70;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.flash-toast {
  margin: 0;
  box-shadow: 0 12px 28px rgba(16, 36, 63, 0.2);
  animation: flash-fade 6.5s ease forwards;
}
.flash-toast.error,
.flash-toast.info { animation-duration: 9s; }
@keyframes flash-fade {
  0%, 82% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .flash-toast,
  .flash-toast.error,
  .flash-toast.info { animation-timing-function: step-end; }
}
.status-banner {
  background: linear-gradient(90deg, #fff4d8, #fff);
  color: var(--sand-ink);
  border: 1px solid var(--sand-line);
  border-left: 5px solid #e09a1a;
  border-radius: 8px;
  padding: 3px 8px;
  margin: 0 0 8px;
}

.error-list {
  background: var(--err-bg);
  color: var(--err-ink);
  border-left: 5px solid var(--coral);
}
.error-item {
  margin: 6px 0 0;
  padding: 6px 10px;
  background: #fff;
  border-radius: 8px;
}

label { display: block; margin: 12px 0 4px; font-size: 0.92rem; font-weight: 600; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"], input:not([type]), select, textarea {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(14, 116, 144, 0.22);
  border-color: var(--accent);
}
textarea { max-width: 640px; min-height: 88px; resize: vertical; }
select[multiple] { min-height: 160px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.inline label { margin: 0; }
.period-year { flex: 0 0 7.5rem; }
.period-year input[type="number"] { width: 100%; max-width: none; }
.period-preset-label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
}
.period-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.period-presets button[aria-pressed="true"] {
  background: #e5f6f2;
  border-color: #0e7490;
  color: #0e5874;
}
.checks { display: grid; gap: 6px; margin: 6px 0 10px; }
.inline-rate { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.inline-rate select, .inline-rate input { width: auto; margin: 0; }
.inline-rate input[type="number"] { width: 8rem; }
.inline-rate.billing-rate { margin: 8px 0 4px; }
.inline-rate.billing-rate select,
.inline-rate.billing-rate input[type="number"] {
  flex: none;
  height: 42px;
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 40px;
}
.inline-rate.billing-rate select { width: 9rem; }
.checks label, .choice { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.95rem; font-weight: 500; }
.checks input, .choice input { margin-top: 3px; }
.checks label.password-length { align-items: center; flex-wrap: wrap; }
.checks label.password-length input { margin-top: 0; }
.checks label.password-length input[type="number"] {
  width: 5.5rem;
  max-width: 5.5rem;
  margin: 0;
  padding: 6px 8px;
}
.swatch {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 2px 6px 0 0;
  border-radius: 50%;
  border: 1px solid rgba(27, 39, 64, 0.18);
}
.color-picker { display: grid; gap: 2px; }
.color-preview { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.color-preview .swatch { width: 36px; height: 36px; margin: 0; }
.color-preview span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.color-picker input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.color-hue, .color-strength {
  -webkit-appearance: none;
  appearance: none;
}
.color-hue::-webkit-slider-runnable-track,
.color-strength::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
}
.color-hue::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #f35d5d 0%, #f3d35d 16%, #8fd36a 33%, #5ddec8 50%, #6aa6f0 67%, #b07aef 84%, #f35d5d 100%);
}
.color-strength::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--strength-start, #d7f6ef), var(--strength-end, #1f9d86));
}
.color-hue::-webkit-slider-thumb,
.color-strength::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -2px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0e5874;
  box-shadow: 0 1px 3px rgba(16, 36, 63, 0.28);
}
.color-hue::-moz-range-track,
.color-strength::-moz-range-track {
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f35d5d 0%, #f3d35d 16%, #8fd36a 33%, #5ddec8 50%, #6aa6f0 67%, #b07aef 84%, #f35d5d 100%);
}
.color-strength::-moz-range-track {
  background: linear-gradient(90deg, var(--strength-start, #d7f6ef), var(--strength-end, #1f9d86));
}
.color-hue::-moz-range-thumb,
.color-strength::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0e5874;
}
.access-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.access-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.access-list li > span { min-width: 0; }
.access-list button { flex: none; }
.access-results {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.access-results[hidden] { display: none; }
.access-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
  padding: 8px 10px;
}
.access-results button:hover,
.access-results button:focus { background: #eef8fb; color: var(--ink); }
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
  padding: 8px 12px 12px;
  background: #f8fbff;
}
legend { padding: 0 6px; color: var(--accent-dark); font-weight: 700; }

button, .button {
  appearance: none;
  background: linear-gradient(180deg, #1593b3, #0e7490);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(14, 116, 144, 0.2);
}
button:hover, .button:hover { background: var(--accent-dark); color: #fff; }
button.secondary, .button.secondary {
  background: #fff;
  color: #0e5874;
  border: 1px solid #b7d4de;
  box-shadow: none;
}
button.secondary:hover, .button.secondary:hover { background: #eef8fb; color: #0e5874; }
button.danger { background: #c2413a; box-shadow: none; }
button.danger:hover { background: #9f322c; }
.back-link { margin: 0 0 14px; }
.back-link .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link .icon { width: 16px; height: 16px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.list-bar > p,
.list-bar form { margin: 0; }
.list-bar form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #5d7690;
}
.search-field .icon { width: 18px; height: 18px; flex: none; }
.list-bar input[type="search"],
.list-bar .search-field input[type="search"] {
  width: 18rem;
  max-width: 100%;
  margin: 0;
}
.list-bar .choice { align-items: center; }
.list-bar .choice input { margin-top: 0; }
table.data tr[hidden],
table.data[hidden],
[data-list-empty][hidden] { display: none; }

table.data, table.week { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 9px 10px;
  vertical-align: top;
  font-size: 0.94rem;
}
table.data th {
  color: #24506e;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #eef6fb;
}
table.data th:has(a.sort-link) { padding: 0; }
table.data th .sort-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
}
table.data th .sort-link:hover,
table.data th .sort-link:focus-visible { color: var(--accent-dark); }
table.data th .sort-link:focus-visible { outline: 2px solid #0e7490; outline-offset: -2px; }
table.data th[aria-sort="ascending"] .sort-link,
table.data th[aria-sort="descending"] .sort-link { color: var(--accent-dark); }
.sort-mark { font-size: 0.9em; line-height: 1; }
table.data tr:hover td { background: #f5fbff; }
table.data tbody tr.is-inactive td { background: #e9edf2; }
table.data tbody tr.is-inactive:hover td { background: #e1e6ed; }
table.data tr:last-child td { border-bottom: 0; }
table.linked tbody td:not(.row-action) { padding: 0; height: 100%; }
table.linked tbody td:not(.row-action) a {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
}
table.linked tbody td:not(.row-action) a:hover { color: inherit; }
table.linked tbody tr { cursor: pointer; }
table.linked tbody td.row-action { cursor: default; }
table.linked tbody td a:focus-visible { outline: 2px solid #0e7490; outline-offset: -2px; }
table.linked tbody tr.is-selected td { background: #d7f3ee; }
table.linked tbody tr.is-selected td:first-child { box-shadow: inset 4px 0 0 #0e7490; }
table.linked tbody tr.is-selected:hover td { background: #c9efe6; }
.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
}
.schedule-head span {
  color: #24506e;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #eef6fb;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.schedule-row { color: inherit; }
.schedule-row:hover { background: #f5fbff; }
.schedule-row > a,
.schedule-row .status-cell {
  min-width: 0;
  padding: 9px 10px;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.schedule-row > a:focus-visible,
.schedule-row .status-label:focus-visible { outline: 2px solid #0e7490; outline-offset: -2px; }
.schedule-index .schedule-row:last-child > a,
.schedule-index .schedule-row:last-child .status-cell { border-bottom: 0; }
.schedule-row .status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-row .status-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: inherit;
  text-decoration: none;
}
.schedule-row .status-cell .icon-button {
  width: 26px;
  height: 26px;
  margin: 0;
  flex: none;
}
.schedule-row .status-cell .icon-button .icon { width: 15px; height: 15px; }
.schedule-row .status-cell.has-status {
  background: #fff4d8;
  color: var(--sand-ink);
  box-shadow: inset 4px 0 0 #e09a1a;
}
.schedule-row .status-cell.is-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  box-shadow: inset 4px 0 0 #1aaa78;
}
.schedule-row:hover .status-cell.has-status { background: #fff4d8; color: var(--sand-ink); }
.schedule-row:hover .status-cell.is-ok { background: var(--ok-bg); color: var(--ok-ink); }

.week-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
table.week { min-width: 860px; table-layout: fixed; }
table.week th, table.week td { border: 1px solid #e4edf5; vertical-align: top; padding: 0; }
table.week th {
  background: #e5f4f8;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  padding: 8px 4px;
  color: #155066;
}
table.week th.time, table.week td.time {
  width: 64px;
  text-align: right;
  padding: 2px 6px;
  color: var(--muted);
  font-size: 0.75rem;
  background: #f7fbfe;
  font-weight: 600;
}
table.week th.today { background: #0e7490; color: #fff; }
table.week td.today { background: #f3fbfd; }
table.week td.slot { height: 34px; }
table.week td.stack { height: auto; min-height: 34px; }
table.week td.mine { background: var(--mine); }
table.week td.block { background: var(--block); }
a.open { display: block; min-height: 34px; }
a.open:hover, a.open:focus { background: #e7f6fb; }
.chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 100%;
  padding: 4px 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.25;
  overflow: hidden;
}
a.chip:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.chip strong { font-size: 0.78rem; }
.chip .cont { color: #3e5670; font-size: 0.7rem; }
.week-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; justify-content: flex-end; }
.week-nav .button {
  display: inline-flex;
  align-items: center;
  height: 30px;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: 8px;
  padding: 0 11px;
}
.week-nav .icon-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.week-nav .icon-button .icon { width: 16px; height: 16px; }
.overlay-picker { position: relative; flex: 0 0 auto; }
.week-nav .overlay-toggle {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin: 0;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.2;
  box-shadow: none;
}
.week-nav .overlay-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.week-nav .overlay-toggle.has-overlay { box-shadow: inset 0 -2px 0 #0e7490; }
.overlay-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(300px, calc(100vw - 16px));
  max-height: min(360px, calc(100vh - 120px));
  overflow: auto;
  padding: 8px;
  border: 1px solid #b7d4de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(18, 50, 77, 0.18);
}
.overlay-menu[hidden] { display: none; }
.overlay-note {
  margin: 2px 4px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.overlay-error {
  margin: 0 4px 8px;
  color: var(--err-ink);
  font-size: 0.78rem;
}
.overlay-error[hidden] { display: none; }
.overlay-group {
  margin: 8px 4px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.overlay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
}
.overlay-option:hover { background: #eef8fb; }
.overlay-option input { width: auto; margin: 0; flex: none; }
.overlay-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex: 0 0 16px;
  --overlay-soft: color-mix(in srgb, var(--overlay) 36%, #fff);
  background-color: var(--overlay-soft);
  box-shadow: inset 0 0 0 1px rgba(18, 50, 84, 0.28);
}
.overlay-swatch[hidden] { display: none; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #24506e;
}
.admin-tabs .icon { width: 15px; height: 15px; }
.admin-tabs a:hover { border-color: #8ec4d4; background: #f3fbfd; }
.admin-tabs a.active { background: linear-gradient(180deg, #1593b3, #0e7490); color: #fff; border-color: transparent; }

.bulletin {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 12px;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}
.bulletin.tone-blue { background: #eef4ff; }
.bulletin.tone-teal { background: #e8f8f4; }
.bulletin.tone-amber { background: #fff6e0; }
.bulletin-mark { border-radius: 999px; }
.tone-blue .bulletin-mark { background: var(--blue); }
.tone-teal .bulletin-mark { background: var(--teal); }
.tone-amber .bulletin-mark { background: #e0a100; }
.bulletin a { font-weight: 700; }
[data-repeat-until] { display: none; }
[data-repeat]:has(select[name="repeat"] option:checked:not([value=""])) [data-repeat-until] { display: block; }
.bulletin h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.quote-total { font-size: 1.45rem; font-weight: 700; color: #0e5874; margin-bottom: 4px; }
.segments { display: grid; gap: 0; }
.segment {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: 0.9rem;
}
.segment strong { color: #12324d; }
.conflict-box p { margin: 0.35rem 0; padding: 6px 8px; border-radius: 8px; background: #fff8f2; }
.conflict-box .hard { color: var(--err-ink); font-weight: 700; background: var(--err-bg); }
.conflict-box .clear { color: var(--ok-ink); background: var(--ok-bg); }
.tag, .badge {
  display: inline-block;
  background: #e7f0ff;
  color: #234e9b;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tag.warn { background: #fff1d6; color: #8a4b08; }
.badge.mine { background: #e5f7f2; color: #0e6b5c; }
.badge.assigned { background: #efe8ff; color: #5b3eaa; }

.slot-lines { display: grid; gap: 6px; margin: 0 0 12px; }
.slot-line {
  margin: 0;
  padding: 6px 12px;
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #e5f6f2;
  color: #0e5c50;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.booking-list { display: grid; gap: 10px; }
.booking-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #f3fbf8, #fff 28%);
}
.booking-card.is-assigned {
  border-left-color: var(--violet);
  background: linear-gradient(90deg, #f7f3ff, #fff 28%);
}
.booking-card:hover { border-color: #9ec9d6; box-shadow: 0 8px 18px rgba(18, 50, 84, 0.08); }
.when-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e5f6f2;
  color: #0e5c50;
  border-radius: 12px;
  padding: 8px 12px;
  line-height: 1.15;
}
.is-assigned .when-block { background: #efe8ff; color: #5b3eaa; }
.when-dow, .when-day { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.when-day { font-size: 0.82rem; white-space: nowrap; }
.when-date { font-size: 1rem; font-weight: 700; }
.when-time { font-size: 0.75rem; margin-top: 3px; white-space: nowrap; }
.booking-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booking-copy strong { font-size: 1rem; }
.booking-copy .meta { color: var(--muted); font-size: 0.88rem; }

.schedule-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.schedule-group h3 { font-size: 0.95rem; color: #24506e; }
.schedule-group .tile-grid { grid-template-columns: 1fr; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 96px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: #fff;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(18, 50, 84, 0.1); }
.tile strong { font-size: 0.98rem; }
.tile-status {
  margin-top: 6px;
  color: #6a4a12;
  background: #fff6e4;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.78rem;
  line-height: 1.35;
}
.tile-kind {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tile-rate { color: var(--muted); font-size: 0.85rem; margin-top: auto; }
.tile-mri { background: linear-gradient(180deg, #e5f8f4 0%, #fff 48%); }
.tile-equipment { background: linear-gradient(180deg, #d9e8ff 0%, #fff 48%); }
.tile-person { background: linear-gradient(180deg, #f1ecff 0%, #fff 48%); }
.tile-shared { background: linear-gradient(180deg, #fde8ef 0%, #fff 48%); }
.tile-mri .tile-kind { color: #0e6b5c; }
.tile-equipment .tile-kind { color: #1d4e89; }
.tile-person .tile-kind { color: #5b3eaa; }
.tile-shared .tile-kind { color: #9a3450; }

.login-wrap {
  max-width: 420px;
  margin: 48px auto;
  border: 1px solid #0e7490;
}
.login-alt {
  margin: 16px 0 0;
  text-align: center;
}

.cal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
}
.cal-range {
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #12324d;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  color: #0e5874;
  border: 1px solid #b7d4de;
  box-shadow: none;
}
.icon-button .icon { width: 18px; height: 18px; }
a.icon-button:hover, button.icon-button:hover { background: #eef8fb; color: #0e5874; }
.cal-tools { display: flex; align-items: center; gap: 8px; justify-self: start; }
.jump-day { display: flex; align-items: center; margin: 0; }
.jump-day input[type="date"] {
  width: auto;
  max-width: none;
  height: 30px;
  margin: 0;
  padding: 0 8px;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: 8px;
  border-color: #b7d4de;
}
.view-switch { display: flex; gap: 8px; align-items: center; }
.view-switch a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  text-decoration: none;
  color: #0e5874;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid #b7d4de;
}
.view-switch a:hover { background: #eef8fb; color: #0e5874; }
.view-switch a.active, .view-switch a.active:hover {
  background: linear-gradient(180deg, #1593b3, #0e7490);
  color: #fff;
  border-color: transparent;
}
.cal-scroll {
  max-height: calc(100dvh - 340px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cal { --hour: 52px; min-width: calc(76px + var(--days) * 120px); }
.cal-head, .cal-body { display: flex; }
.cal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #e7f6fb;
  border-bottom: 1px solid #d5e6ef;
}
.cal-gutter, .cal-times { flex: 0 0 76px; }
.cal-gutter {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #e7f6fb;
  color: #155066;
  font-size: 0.82rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}
.cal-dayhead {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #155066;
  font-weight: 400;
  font-size: 0.82rem;
  padding: 8px 4px;
  border-left: 1px solid #d5e6ef;
}
.cal-dayhead.today { background: #0e7490; color: #fff; }
button.cal-dayhead {
  appearance: none;
  display: block;
  margin: 0;
  border: 0;
  border-left: 1px solid #d5e6ef;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #155066;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
button.cal-dayhead:hover { background: rgba(14, 116, 144, 0.12); color: #155066; }
button.cal-dayhead.today,
button.cal-dayhead.today:hover { background: #0e7490; color: #fff; }
button.cal-dayhead.is-chosen,
button.cal-dayhead.is-armed { box-shadow: inset 0 -3px 0 #0e7490; }
button.cal-dayhead.today.is-chosen,
button.cal-dayhead.today.is-armed { box-shadow: inset 0 -3px 0 #fff; }
.cal-times { position: sticky; left: 0; z-index: 3; background: #f7fbfe; }
.cal-time {
  height: calc(var(--hour) * var(--slot) / 60);
  border-top: 1px solid #e7eef5;
  color: #5c6d86;
  font-size: 0.68rem;
  text-align: right;
  padding: 1px 6px 0 0;
  box-sizing: border-box;
}
.cal-time.minor { color: #8aa0b5; }
.cal-time.now { background: #0e7490; color: #fff; }
.cal-days { display: flex; flex: 1; position: relative; z-index: 1; }
.cal-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 2px;
  margin-top: -1px;
  background: #0e7490;
  box-shadow: 0 0 0 1px #fff;
  pointer-events: none;
}
.cal-now[hidden] { display: none; }
.cal-col { position: relative; flex: 1; border-left: 1px solid #e4edf5; min-width: 0; }
.cal-col.today { background: rgba(14, 116, 144, 0.04); }
.cal-slots { position: relative; z-index: 0; }
.cal-slot {
  display: block;
  height: calc(var(--hour) * var(--slot) / 60);
  border-top: 1px solid #eef3f8;
  box-sizing: border-box;
}
.cal-slot.hour { border-top-color: #d5e2ee; }
.cal-slot.off { background: rgba(170, 184, 199, 0.16); }
.cal-slot.now { background: rgba(14, 116, 144, 0.16); }
.cal-col.today .cal-slot.now { background: rgba(14, 116, 144, 0.22); }
.cal-slot.locked { cursor: default; }
button.cal-slot {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #eef3f8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-weight: 400;
  cursor: pointer;
}
button.cal-slot.hour { border-top-color: #d5e2ee; }
button.cal-slot.off { background: rgba(170, 184, 199, 0.16); }
button.cal-slot:hover { background: rgba(14, 116, 144, 0.12); color: inherit; }
a.cal-slot:hover { background: rgba(14, 116, 144, 0.12); }
a.cal-slot.now:hover { background: rgba(14, 116, 144, 0.28); }
.cal-event, .cal-pick {
  position: absolute;
  z-index: 2;
  overflow: visible;
  border-radius: 8px;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(18, 50, 84, 0.12);
}
.cal-event.booking, .cal-event.mine {
  font-size: 0.68rem;
  line-height: 1.08;
}
.cal-event-open {
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 1px 18px 0 5px;
  color: inherit;
  text-decoration: none;
}
.cal-event strong, .cal-event span { display: block; }
.cal-event.compact strong,
.cal-event.compact span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event .booking-flags,
.month-event .booking-flags {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 2px;
  max-width: calc(100% - 6px);
  pointer-events: none;
}
.cal-event .booking-flag,
.month-event .booking-flag {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0 4px;
  border-radius: 4px;
  background: #ffe500;
  color: #000;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 0 1px #111;
}
.cal-event.compact.has-flags .event-info { top: 0; width: 14px; height: 14px; }
.cal-event.compact.has-flags .event-info .icon { width: 12px; height: 12px; }
.cal-event.compact.has-flags .booking-flags { bottom: 0; right: 1px; }
.cal-event.compact.has-flags .booking-flag {
  padding: 0 3px;
  font-size: 8px;
  line-height: 1;
}
.cal-event.block {
  box-shadow: inset 3px 0 0 #d4533a;
  padding: 1px 4px 0;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.08;
}
.cal-event.block.day-block {
  padding-top: calc(var(--hour) * var(--work-start) / 60);
}
button.cal-event,
button.month-event {
  border: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
button.month-event { width: 100%; }
button.cal-event.block:hover,
button.month-event[data-remove-block]:hover { outline: 2px solid #d4533a; outline-offset: -2px; }
button.cal-event.rate {
  padding: 3px 5px;
  box-shadow: inset 3px 0 0 #c47b12;
}
button.cal-event.rate:hover {
  background: #f6e2a8;
  color: var(--ink);
  outline: 2px solid #8a6a12;
  outline-offset: -2px;
}
[data-rate-grid] .cal-picks { z-index: 3; }
.cal-event.mine { box-shadow: inset 3px 0 0 #0f8f78; }
mark.own-name {
  background: #ffe500;
  color: #111;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 700;
}
.cal-event.is-open, .month-event.is-open { outline: 2px solid #0e5874; outline-offset: 1px; }
.event-info {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  color: #12324d;
  cursor: pointer;
}
.event-info .icon { width: 13px; height: 13px; }
.event-info:hover, .event-info.active { background: #12324d; color: #fff; }
.detail-panel {
  position: fixed;
  z-index: 40;
  width: min(360px, calc(100vw - 16px));
  margin: 0;
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 12px 14px 6px;
  box-shadow: 0 18px 40px rgba(18, 50, 77, 0.28);
}
.detail-panel[hidden] { display: none; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.detail-head h2 { margin: 0; font-size: 1.05rem; }
.detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #b7d4de;
  border-radius: 8px;
  background: #fff;
  color: #0e5874;
  cursor: pointer;
}
.detail-close .icon { width: 16px; height: 16px; }
.detail-close:hover { background: #eef8fb; }
.detail-body p { margin: 0 0 7px; line-height: 1.3; }
.detail-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.detail-notes { white-space: pre-wrap; }
.cal-picks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cal-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cal-overlay-block {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 6px;
  padding: 1px 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #12324d;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 1px 0 #fff;
  --overlay-soft: color-mix(in srgb, var(--overlay) 36%, #fff);
  background-color: var(--overlay-soft);
  box-shadow: inset 3px 0 0 var(--overlay), inset 0 0 0 1px color-mix(in srgb, var(--overlay) 70%, transparent);
  pointer-events: none;
}
.overlay-pattern-0 { background-image: repeating-linear-gradient(45deg, var(--overlay) 0 1px, transparent 1px 5px); }
.overlay-pattern-1 { background-image: repeating-linear-gradient(-45deg, var(--overlay) 0 1px, transparent 1px 5px); }
.overlay-pattern-2 { background-image: repeating-linear-gradient(90deg, var(--overlay) 0 1px, transparent 1px 5px); }
.overlay-pattern-3 { background-image: repeating-linear-gradient(0deg, var(--overlay) 0 1px, transparent 1px 5px); }
.overlay-pattern-4 {
  background-image: radial-gradient(circle, var(--overlay) 0.7px, transparent 0.85px);
  background-size: 6px 6px;
}
.overlay-pattern-5 {
  background-image:
    repeating-linear-gradient(45deg, var(--overlay) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, var(--overlay) 0 1px, transparent 1px 6px);
}
.cal-overlay-block.is-day {
  padding-top: calc(var(--hour) * var(--work-start) / 60);
}
.cal-pick {
  left: 3px;
  right: 3px;
  padding: 3px 5px;
  pointer-events: auto;
  background: rgba(47, 111, 237, 0.28);
  border: 1px solid #2f6fed;
  color: #16315f;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.cal-pick.draft { pointer-events: none; background: rgba(14, 143, 120, 0.25); border-color: #0f8f78; }
.selection-bar {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #12324d;
  color: #f4fbff;
  box-shadow: 0 12px 28px rgba(18, 50, 77, 0.28);
}
.selection-bar[hidden], [data-status-prompt][hidden], [data-status-remove][hidden], [data-block-prompt][hidden], [data-block-repeat][hidden], [data-repeat-choice][hidden], [data-repeat-hard-note][hidden], [data-rate-prompt][hidden], [data-hourly-panel][hidden], [data-flat-note][hidden], [data-show-rate-grid][hidden], [data-required-tag][hidden] { display: none; }
.selection-bar p { margin: 0; flex: 1; min-width: 180px; }
[data-status-view] { display: flex; align-items: center; gap: 8px; }
.status-copy { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px 12px; }
.status-banner .icon-button { width: 26px; height: 26px; margin-top: 0; flex: none; }
.status-banner .icon-button .icon { width: 15px; height: 15px; }
.status-text { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; line-height: 1.25; }
.status-copy .small { flex: none; font-size: 0.75rem; white-space: nowrap; opacity: 0.8; }
.month-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.month-dow, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-dow div { background: #e7f6fb; color: #155066; font-size: 0.75rem; font-weight: 700; text-align: center; padding: 8px 4px; }
.month-cell { min-height: 108px; border-top: 1px solid #e4edf5; border-left: 1px solid #e4edf5; padding: 6px; }
.month-cell:nth-child(7n + 1) { border-left: 0; }
.month-cell.outside { background: #f6f8fb; color: #8aa0b5; }
.month-cell.today { background: #f3fbfd; }
.month-date { font-weight: 700; color: #0e5874; text-decoration: none; }
.month-cell.today .month-date { background: #0e7490; color: #fff; border-radius: 999px; padding: 0 7px; }
.month-event, .month-more {
  display: block;
  margin-top: 4px;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.month-event { position: relative; padding-right: 18px; }
.month-event.has-flags { padding-bottom: 16px; }
[data-flag-list] { display: grid; gap: 8px; margin: 0 0 8px; }
[data-add-flag][hidden] { display: none; }
div.month-event { white-space: normal; text-overflow: clip; }
.month-event a { display: block; min-width: 0; color: inherit; text-decoration: none; }
.month-event .month-when,
.month-event .month-meta {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.month-event .month-meta { white-space: normal; overflow: visible; text-overflow: clip; }
.month-more { color: #0e5874; font-weight: 700; background: transparent; }

@media (max-width: 860px) {
  .top-menu, .main-nav, .userbox { flex-wrap: wrap; }
  .status-copy { flex-wrap: wrap; }
  .split, .booking-layout, .dash-top, .schedule-groups, .cal-toolbar, .admin-split { grid-template-columns: 1fr; }
  .admin-editor { position: static; max-height: none; }
  .segment { grid-template-columns: 1fr 1fr; }
  .cal-toolbar { justify-items: center; }
  .week-nav { justify-content: center; }
  main { padding: 16px 12px 36px; }
  .list-bar form,
  .list-bar .search-field { flex: 1 1 100%; }
  .list-bar input[type="search"],
  .list-bar .search-field input[type="search"] { width: auto; flex: 1 1 auto; min-width: 0; max-width: none; }
  .page-hero { padding: 18px 16px; }
}

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-toc a { color: #0e5874; font-weight: 700; text-decoration: none; }
.help-toc a:hover { text-decoration: underline; }
.help-section { scroll-margin-top: 16px; }
.help-section h2 { margin-top: 0; }
.help-section li { margin: 0.25rem 0; }
.help-figure { margin: 14px 0 2px; }
.help-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d5e6ef;
  border-radius: 12px;
  background: #fff;
}
.help-figure figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
