/* Design tokens ------------------------------------------------------- */
:root {
  --bg: #EDE7D8;
  --surface: #FFFFFF;
  --ink: #23291E;
  --muted: #6C6656;
  --line: #DAD2BC;
  --primary: #3A5A40;
  --primary-ink: #F4F1E6;
  --accent: #A8471F;
  --accent-soft: #F0DCC8;
  --ok: #3A5A40;
  --ok-soft: #DCE7DC;
  --warn: #A8471F;
  --warn-soft: #F3E3D3;

  --font-display: "Fraunces", Georgia, "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --row-height: 46px; /* must match ROW_HEIGHT in app.js */
  --gutter: 32px;
  --tap: 36px;        /* minimum control height; raised on touch screens */
}

* { box-sizing: border-box; }

/* The hidden attribute must win over component display rules (e.g. flex labels). */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

button, select, input {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout ---------------------------------------------------------------- */
#app, #hirer-app {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-bottom: max(56px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}

.brand h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
}

.brand-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.version-badge,
.env-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.version-badge {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  background: var(--ink);
  color: var(--primary-ink);
  letter-spacing: 0.02em;
}

.env-badge {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11.5px;
  border: 1px solid currentColor;
  color: var(--muted);
  background: var(--surface);
}
.env-badge[data-env="test"] { color: var(--warn); background: var(--warn-soft); }
.env-badge[data-env="live"] { color: var(--ok); background: var(--ok-soft); }

.tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Desktop: sidebar on the left, calendar on the right. */
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas:
    "rooms     calendar"
    "attention calendar"
    "summary   calendar"
    "invoices  calendar";
  grid-template-rows: auto auto auto 1fr;
  gap: 18px 24px;
  align-items: start;
}

.rooms-card    { grid-area: rooms; }
.calendar-panel { grid-area: calendar; }
.summary-card  { grid-area: summary; }
.invoices-card { grid-area: invoices; }
.attention-card { grid-area: attention; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  min-width: 0;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--ink);
}

/* Rooms ------------------------------------------------------------------ */
.room-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

.room-btn.active {
  background: var(--primary);
  color: var(--primary-ink);
}

.room-btn .rate {
  font-size: 12.5px;
  opacity: 0.75;
  white-space: nowrap;
}

/* Summary ---------------------------------------------------------------- */
.summary-list { margin: 0; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.summary-row:last-child { border-bottom: none; }
.summary-row dt { color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Invoices --------------------------------------------------------------- */
.invoices-card { max-height: 460px; overflow-y: auto; }

.invoice-list { display: flex; flex-direction: column; gap: 8px; }

.invoice-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.invoice-title { font-weight: 600; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.invoice-amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.invoice-meta {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
/* The status on the left, the buttons together on the right (wrapping
   under it when the card is narrow). */
.invoice-actions .status-pill { margin-right: auto; }

.status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-paid { background: var(--ok-soft); color: var(--ok); }
.status-unpaid { background: var(--warn-soft); color: var(--warn); }
.status-cancelled { background: #EAEAEA; color: #8A8A8A; }

.mark-paid-btn {
  font-size: 12.5px;
  padding: 5px 10px;
}

/* Calendar panel ---------------------------------------------------------- */
.calendar-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  min-width: 0;
}

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

.calendar-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0;
}

.muted { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }

.week-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.week-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.week-label {
  font-size: 13.5px;
  color: var(--muted);
  min-width: 130px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Day strip (phone day view) ------------------------------------------- */
.day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 0 7px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.day-chip .dow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.day-chip .dom { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.day-chip.is-today .dom { color: var(--accent); }

.day-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.day-chip.active .dow,
.day-chip.active .dom { color: var(--primary-ink); }

.day-chip.has-bookings::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.day-chip.active.has-bookings::after { background: var(--primary-ink); }

/* Buttons ---------------------------------------------------------- */
.btn {
  min-height: var(--tap);
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-icon {
  min-width: var(--tap);
  padding-left: 0;
  padding-right: 0;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
}

select {
  min-height: var(--tap);
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  background: var(--surface);
  color: var(--ink);
  max-width: 100%;
}

/* Hover effects only where a real pointer can hover (not on touch,
   where :hover "sticks" after a tap). */
@media (hover: hover) {
  .room-btn:not(.active):hover,
  .btn-ghost:hover { background: var(--bg); }
  .btn-primary:hover { filter: brightness(1.08); }
  .day-col:hover { background-color: rgba(58, 90, 64, 0.035); }
  .booking-block:hover { filter: brightness(1.1); }
}

/* Week grid ---------------------------------------------------------- */
.week-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.week-grid {
  display: grid;
  /* columns are set inline by app.js (7 days, or 1 on phones) */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.grid-corner {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.day-head {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
  background: var(--bg);
}

.day-head .dow { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.day-head .dom { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.day-head.is-today .dom { color: var(--accent); }

.hour-label {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 2px 6px 0 0;
  height: var(--row-height);
  font-variant-numeric: tabular-nums;
}

.day-col {
  position: relative;
  border-right: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(var(--row-height) - 1px),
    var(--line) calc(var(--row-height) - 1px),
    var(--line) var(--row-height)
  );
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(58, 90, 64, 0.08);
}

.booking-block {
  position: absolute;
  left: 3px;
  right: 3px;
  background: var(--room, var(--primary));
  color: var(--room-ink, var(--primary-ink));
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11.5px;
  line-height: 1.3;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.booking-block .bb-title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-block .bb-time { opacity: 0.85; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Colour shows the room, so state is shown with marks instead:
   stripes = not yet confirmed (awaiting approval or deposit),
   £ in the corner = hire fee still outstanding. */
.booking-block.unconfirmed {
  background-image: repeating-linear-gradient(135deg,
    rgba(255, 255, 255, 0.26) 0 5px, transparent 5px 11px);
}
.booking-block.balance-due::after {
  content: "£";
  position: absolute;
  top: 3px;
  right: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.booking-block.balance-due .bb-title { padding-right: 14px; }

/* Room colour swatches (room list, Manage hall) */
.room-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.room-swatch {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.room-btn.active .room-swatch { box-shadow: 0 0 0 1.5px var(--primary-ink); }
.room-swatches { display: inline-flex; gap: 2px; }
.item-title .room-swatch { display: inline-block; margin-right: 8px; vertical-align: -1px; }
#form-dialog input[type=color] { width: 72px; height: 40px; padding: 2px; cursor: pointer; }
.room-swatches .room-swatch { width: 6px; border-radius: 2px; }

.week-grid.is-day .booking-block { font-size: 13px; padding: 6px 10px; }

/* Dialogs ---------------------------------------------------------- */
dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(35, 41, 30, 0.45);
}

#booking-form,
.details-body {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#booking-form h2,
.details-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

#booking-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
}

#booking-form input, #booking-form select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 14px;
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  background: var(--surface);
}

.optional { color: var(--muted); font-weight: 400; }

.field-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.form-error {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13px;
  margin: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.details-list { margin: 0; }
.details-list > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.details-list > div:last-child { border-bottom: none; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; overflow-wrap: anywhere; }

/* User menu (booking app header) ------------------------------------------ */
.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.user-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
.user-menu a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Sign-in, invite and platform admin pages ---------------------------------- */
.auth-page { min-height: 100vh; min-height: 100dvh; }

.auth-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 16px 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 26px; }

.auth-card { padding: 24px 22px; }
.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 6px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.auth-form input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 15px;
  min-height: var(--tap);
  width: 100%;
  background: var(--surface);
}
.auth-form input[readonly] { background: var(--bg); }
.field-hint { font-size: 12px; color: var(--muted); font-weight: 400; }

.btn-block { width: 100%; justify-content: center; margin-top: 4px; }

.hall-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 12px; }
.hall-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.hall-btn .hall-role {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hall-btn:disabled { opacity: 0.6; }
.hall-btn.is-pending { cursor: default; font-weight: 500; }

/* "Continue with Google" and friends, above the email form. */
.provider-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.provider-btn svg { width: 18px; height: 18px; flex: none; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.auth-note { font-size: 13px; margin: 14px 0 0; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.auth-form .field-hint { margin: -4px 0 0; }

.auth-footer { text-align: center; margin-top: 18px; }

.platform-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--primary-ink);
  vertical-align: middle;
}

.platform-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
}

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 10px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; }
.data-table a { color: var(--primary); }

.dialog-form { padding: 22px 24px 20px; margin: 0; }
.dialog-form h2 { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 20px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 13px; }
.copy-details { margin-top: 12px; font-size: 14px; }
.copy-details summary { cursor: pointer; color: var(--muted); }
.copy-details[open] summary { margin-bottom: 6px; }

@media (hover: hover) {
  .hall-btn:hover:not(:disabled) { border-color: var(--primary); }
}

/* Manage hall ---------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: var(--tap);
}
.tabs a.active { color: var(--ink); border-bottom-color: var(--primary); font-weight: 600; }

.tab-panel > .card + .card { margin-top: 16px; }

.notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 500;
}
.notice[data-kind="error"] { background: var(--warn-soft); color: var(--warn); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.card-head .card-title { margin: 0; }

.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
}
.stack-form input, .stack-form select, .stack-form textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  min-height: var(--tap);
  width: 100%;
  background: var(--surface);
}
.stack-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; }
.fd-heading { font-size: 13px; font-weight: 600; margin: 6px 0 -4px; color: var(--ink); }
#form-dialog { width: min(520px, calc(100vw - 24px)); }

.item-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.item-main { min-width: 0; flex: 1; }
.item-title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-desc { font-size: 13.5px; margin-top: 2px; }
.item-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.item-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.item-actions .btn, .data-table .btn { padding: 5px 10px; font-size: 13px; }
.is-archived { opacity: 0.6; }
.code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.export-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.line-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--muted); margin-left: 6px; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #EAEAEA;
  color: #6A6A6A;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.btn-danger { color: var(--warn); }

.group-heading { font-family: var(--font-display); font-size: 16px; margin: 18px 0 0; }
.room-group:first-child .group-heading { margin-top: 8px; }

.data-table select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  min-height: 34px;
  background: var(--surface);
}

/* Booking form: hirer type, extras and price */
.extras-list { display: flex; flex-direction: column; gap: 6px; }
.extra-option { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 400 !important; }
.extra-option input { width: auto !important; min-height: 0 !important; }
.price-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.price-box .price-line { display: flex; justify-content: space-between; gap: 10px; }
.price-box .price-total { display: flex; justify-content: space-between; font-weight: 700; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.invoice-lines { margin-top: 6px; font-size: 13px; }
.invoice-lines .price-line { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .item { flex-direction: column; align-items: stretch; }
  .item-actions { justify-content: flex-start; }
}

/* Touch screens: bigger tap targets, no iOS zoom-on-focus ---------------- */
@media (pointer: coarse) {
  :root { --tap: 44px; }
  #booking-form input, #booking-form select, .auth-form input { font-size: 16px; }
  .mark-paid-btn { font-size: 13.5px; padding: 8px 14px; }
}

/* Tablet / small laptop: stack, calendar first, summary + invoices side by side */
@media (max-width: 1099px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "rooms     rooms"
      "attention attention"
      "calendar  calendar"
      "summary   invoices";
    grid-template-rows: auto;
  }

  .room-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .room-btn {
    width: auto;
    border-color: var(--line);
    border-radius: 999px;
    padding: 6px 14px;
  }
  .room-btn.active { border-color: var(--primary); }

  .invoices-card { max-height: none; }
}

/* Phone ------------------------------------------------------------------ */
@media (max-width: 640px) {
  :root { --gutter: 14px; }
  html, body { font-size: 14.5px; }

  #app, #hirer-app { padding-top: 16px; }

  .topbar { margin-bottom: 16px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { font-size: 24px; }
  .brand h1 { font-size: 22px; }
  .tagline { font-size: 12.5px; }

  .topbar-controls { width: 100%; flex-wrap: wrap; }
  .topbar-controls select { flex: 1; min-width: 0; }
  .user-menu { width: 100%; }
  .user-name { flex: 1; max-width: none; }
  #reset-data { padding: 7px 12px; font-size: 13px; }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "rooms"
      "attention"
      "calendar"
      "summary"
      "invoices";
    gap: 12px;
  }

  /* Rooms: one horizontally scrolling row of chips, no card chrome */
  .rooms-card { background: none; border: none; padding: 0; }
  .rooms-card .card-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .room-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .room-list::-webkit-scrollbar { display: none; }
  .room-btn { flex: 0 0 auto; background: var(--surface); }

  .card { padding: 14px 14px 16px; }
  .calendar-panel { padding: 14px 12px 14px; }
  .calendar-header { margin-bottom: 12px; }
  .calendar-header h2 { font-size: 19px; }

  .week-nav { width: 100%; }
  .week-step { flex: 1; justify-content: space-between; }
  .week-label { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }

  /* "New booking" becomes a floating action button, always within thumb reach */
  #app { padding-bottom: max(96px, calc(80px + env(safe-area-inset-bottom))); }
  #new-booking {
    position: fixed;
    z-index: 10;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(35, 41, 30, 0.28);
  }

  .hour-label { font-size: 10.5px; padding-right: 4px; }

  /* Dialogs become bottom sheets */
  dialog {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    max-height: 92dvh;
  }
  #booking-form,
  .details-body {
    padding: 18px 16px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field-date { grid-column: 1 / -1; }
  .dialog-actions .btn { flex: 1; }
}

.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.plain-fieldset legend { font-size: 13px; color: var(--muted); font-weight: 500; padding: 0; margin-bottom: 6px; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.stack-form label.check-option {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 400;
  font-size: 14px;
}
.stack-form label.check-option input { width: auto; min-height: 0; }
.action-fields label.check-option { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 400; font-size: 14px; }
.action-fields label.check-option input { width: auto; min-height: 0; }
.action-fields .r-public-hint { margin: -8px 0 0; }

.badge-warn { background: var(--warn-soft); color: var(--warn); }
.btn-danger-solid { background: var(--warn) !important; border-color: var(--warn) !important; color: #fff !important; }

/* Hall branding (brand.js) */
.brand-mark.has-logo { display: inline-flex; }
.brand-logo { height: 44px; width: auto; max-width: 120px; object-fit: contain; display: block; border-radius: 6px; }
.auth-brand .brand-logo { height: 52px; max-width: 160px; }
@media (max-width: 640px) { .brand-logo { height: 36px; max-width: 90px; } }
.logo-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-preview img { height: 64px; max-width: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.colour-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.colour-row input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.branding-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 500; margin: 6px 0 0; }
.branding-form label.btn { cursor: pointer; }
.branding-form input[type=file]:focus-visible + * , .branding-form label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-brand:has(.has-logo) { flex-direction: column; text-align: center; gap: 12px; }
.auth-brand:has(.has-logo) .auth-brand-name { font-size: 22px; line-height: 1.25; }

/* Booking workflow ------------------------------------------------------------- */
/* Status pills: hire fee (status-*), security deposit (deposit-*), approval and overall state. */
.deposit-unpaid, .approval-pending, .state-unconfirmed { background: var(--warn-soft); color: var(--warn); }
.deposit-paid { background: #E3E9F2; color: #2F4F7A; }
.deposit-returned, .approval-approved, .state-confirmed { background: var(--ok-soft); color: var(--ok); }
.deposit-cancelled, .approval-declined, .state-cancelled { background: #EAEAEA; color: #6A6A6A; }
.state-stage { background: var(--bg); color: var(--ink); }

.status-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }

.workflow { display: flex; flex-direction: column; gap: 10px; }
.wf-section { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.wf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wf-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.wf-amount { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.wf-meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.wf-payment { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; overflow-wrap: anywhere; }
.wf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wf-actions .btn { padding: 6px 12px; font-size: 13.5px; }
.details-list dd .room-swatch { display: inline-block; vertical-align: -1px; margin-right: 4px; }
.price-box .price-deposit { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* Needs attention card */
.attention-card { border-color: var(--warn); }
.attention-list { display: flex; flex-direction: column; gap: 12px; }
.attention-group h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.attention-group .count { background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.attention-group .muted { margin: 0 0 6px; font-size: 12.5px; }
.attention-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; margin-top: 6px; cursor: pointer; color: var(--ink); font: inherit;
  min-height: var(--tap);
}
.attention-item:first-of-type { margin-top: 0; }
.ai-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ai-title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-meta { color: var(--muted); font-size: 12px; }
.ai-amount { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .attention-item:hover { background: var(--bg); } }

/* Invoice titles open the booking */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Action dialog (record payment, return deposit, decline) */
.action-form { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.action-form h2 { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.action-form .muted { margin: 0; }
.action-fields { display: flex; flex-direction: column; gap: 12px; }
.action-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.action-fields input, .action-fields select, .action-fields textarea {
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; color: var(--ink);
  font: inherit; font-size: 14px; width: 100%; min-height: var(--tap); background: var(--surface);
}
@media (max-width: 640px) {
  .action-form { padding: 18px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* Calendar key (under the grid) */
.calendar-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.key-item { display: inline-flex; align-items: center; gap: 6px; }
.key-swatch { width: 18px; height: 12px; border-radius: 3px; background: var(--muted); }
.key-swatch.striped {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0 3px, transparent 3px 6px);
}
.key-due {
  width: 15px; height: 15px; border-radius: 50%; background: var(--surface); color: var(--ink);
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* Booking history (staff details and hirer pages) */
.history { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history > li { border-left: 2px solid var(--line); padding-left: 10px; font-size: 13px; }
.history ul li { border: 0; padding: 0; }
.history ul { margin: 2px 0 0; padding-left: 18px; color: var(--ink); }
.h-meta { color: var(--muted); font-size: 12px; margin-top: 1px; }
.wf-warn { color: var(--warn); font-weight: 500; }

/* Hirer pages */
#hirer-app { max-width: 920px; }

/* Hirers' availability calendar (shares the staff week grid). */
.room-list.as-chips { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.room-list.as-chips .room-btn { width: auto; border-color: var(--line); border-radius: 999px; padding: 6px 14px; }
.day-col.is-static, .booking-block.is-static { cursor: default; }
@media (hover: hover) {
  .booking-block.is-static:hover { filter: none; }
}
/* Other people's bookings are quieter than your own, which are outlined. */
.booking-block.is-other { opacity: 0.72; box-shadow: none; }
.booking-block.is-private .bb-title { font-style: italic; }
.booking-block.is-own { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); z-index: 1; }
.key-swatch.key-own { background: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
.my-booking.is-highlighted { box-shadow: 0 0 0 3px var(--primary); transition: box-shadow 0.2s; }
.hirer-layout { display: flex; flex-direction: column; gap: 18px; }
.my-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.my-booking { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.my-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.my-top h3 { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.my-top .status-line { margin: 0; }
.my-when { margin: 6px 0 0; font-size: 14px; }
.my-when .room-swatch { display: inline-block; vertical-align: -1px; margin-right: 4px; }
.my-money { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.my-history { margin-top: 10px; font-size: 13px; }
.my-history summary, .past-wrap summary { cursor: pointer; color: var(--muted); font-weight: 500; }
.past-wrap { margin-top: 16px; }
.busy-note { margin: 0; font-size: 13px; color: var(--muted); }
.action-fields .field-row label { display: flex; flex-direction: column; gap: 5px; }
.action-fields .extra-option { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.action-fields .extra-option input { width: auto; min-height: 0; }

.impersonation-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px;
}
.impersonation-banner .btn { background: var(--surface); }
.support-banner { background: #E3E9F2; color: #2F4F7A; border-color: #2F4F7A; }

/* Manage hall: permissions grid and hirers list */
.perm-table td:first-child { min-width: 200px; }
.perm-table input[type=checkbox] { width: 18px; height: 18px; min-height: 0; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }

/* Repeating bookings (repeat.js) ---------------------------------------- */
.repeat-field { display: flex; flex-direction: column; gap: 10px; }
.repeat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.repeat-row select, .repeat-row input { width: auto; min-height: 38px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.repeat-row .r-count { width: 70px; }
.repeat-days { display: flex; flex-wrap: wrap; gap: 6px; }
.day-toggle { position: relative; display: inline-flex; flex-direction: row; }
.day-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-toggle span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; background: var(--surface); }
.day-toggle input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.day-toggle input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.r-preview { margin: 0; font-size: 13px; color: var(--ink); }
.r-taken { color: var(--warn); }
.scope-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.scope-box .wf-meta { margin: 0; }
.scope-field { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.scope-field select { width: auto; }
.series-note { color: var(--muted); }
.flash { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 560px); padding: 10px 16px; border-radius: 9px; background: var(--ink); color: var(--surface); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.series-dates { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.series-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.series-date > span:first-child { min-width: 170px; }
.series-date-actions { margin-left: auto; display: flex; gap: 6px; }
.btn.btn-small { min-height: 32px; padding: 4px 10px; font-size: 13px; }

/* A Manage card the member's role can't change (manage.js applyRights). */
.card.locked > :not(.card-title):not(.card-head):not(.lock-note) { opacity: 0.6; }
.lock-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 0.9rem; }

/* The trial step on the sign-in page. */
.trial-points { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.trial-points li { margin: 4px 0; }
/* A trial hall's banner (support-banner.js), with its "See it as" menu. */
.trial-banner { background: #FFF4D6; color: #6B4E00; border-color: #E0C060; }
.trial-banner a { color: inherit; }
.trial-view-as { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.trial-view-as select { min-height: 0; padding: 4px 8px; width: auto; }
.trial-tools { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pre-wrap { white-space: pre-wrap; }
/* Manage → Import */
.import-steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.import-steps li { margin: 4px 0; }
.import-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.import-files input[type=file] { padding: 6px 0; border: 0; min-height: 0; }
.import-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.import-count { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.import-count strong { display: block; font-size: 1.3rem; }
.import-list { margin: 6px 0 14px; padding-left: 20px; }
.import-list li { margin: 3px 0; }
.import-spaces td, .import-spaces th { padding: 6px 8px; }
.hirer-search { max-width: 420px; margin: 0 0 6px; }

/* The booking form's rooms dropdown (a checkbox per room). */
.room-picker { position: relative; }
.room-picker > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface); min-height: 42px;
}
.room-picker > summary::-webkit-details-marker { display: none; }
.room-picker > summary::after { content: '▾'; color: var(--muted); }
.room-picker[open] > summary::after { content: '▴'; }
.room-picker > summary:focus-visible { outline: 2px solid var(--accent, #3a5a40); outline-offset: 2px; }
.room-picker-list {
  display: grid; gap: 2px; margin-top: 4px; padding: 6px 10px; max-height: 240px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.room-picker-list .check-option { padding: 6px 0; }
#booking-form .field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
#booking-form .room-picker > summary { color: var(--ink); font-size: 14px; font-weight: 400; border-radius: 7px; min-height: var(--tap); }
#booking-form .room-picker-list label { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 400; font-size: 14px; }
#booking-form .room-picker-list input { width: auto; min-height: 0; padding: 0; }
.action-fields .field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.action-fields .room-picker > summary { color: var(--ink); font-size: 14px; font-weight: 400; min-height: var(--tap); }
.action-fields .room-picker-list label { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 400; font-size: 14px; }
.action-fields .room-picker-list input { width: auto; min-height: 0; padding: 0; }
.account-form { margin: 0 0 12px; max-width: 460px; }
#account-card .dialog-actions { justify-content: flex-start; }
.field-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

/* Days the hall is closed (calendar.js) */
.day-col.is-closed { background: repeating-linear-gradient(135deg, var(--closed-a, rgba(127,127,127,.10)) 0 8px, transparent 8px 16px); }
.closed-shade { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: center; padding-top: 6px; }
.closed-shade span { font-size: 12px; font-weight: 600; color: var(--muted, #666); background: var(--surface, #fff); border-radius: 4px; padding: 1px 6px; height: fit-content; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-head.is-closed .dow::after { content: ' · closed'; font-weight: 400; }
.closures-list { list-style: none; padding: 0; margin: 8px 0; }
.closures-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.closed-note { margin: 0; padding: 8px 10px; border-radius: var(--radius, 6px); background: var(--warn-soft); color: var(--ink); font-size: 14px; }
