:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --text: #24231f;
  --muted: #6e6a60;
  --line: #e4e6ea;
  --brand: #2f6f5e;
  --brand-dark: #245849;
  --accent: #c75b4a;
  --warn: #a85d18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #1f3f38;
  color: #fff;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar p {
  margin: 4px 0 0;
  color: #d8e5df;
}

.session-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-user {
  text-align: right;
  color: #d8e5df;
  font-size: 13px;
  line-height: 1.35;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto;
}

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

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-hero h2 {
  margin: 0;
}

.profile-hero p {
  margin: 4px 0 0;
  color: var(--muted);
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e8f1ed;
  color: var(--brand);
  font-size: 24px;
  font-weight: 750;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 22px;
  background: #1f3f38;
  color: #fff;
}

.home-hero h2 {
  margin: 8px 0 0;
  font-size: 26px;
}

.home-hero p {
  margin: 8px 0 0;
  color: #d8e5df;
}

.eyebrow {
  color: #bed6cc;
  font-size: 13px;
  font-weight: 700;
}

.home-badge {
  display: grid;
  gap: 4px;
  min-width: 120px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: left;
}

.home-badge:hover {
  background: rgba(255, 255, 255, 0.18);
}

.home-badge span {
  color: #bed6cc;
  font-size: 12px;
}

.home-badge strong {
  font-size: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quick-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  align-content: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 24px rgba(36, 35, 31, 0.05);
}

.quick-card:hover {
  background: #fbfaf7;
}

.quick-card strong {
  font-size: 18px;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
}

.narrow {
  max-width: 460px;
  margin: 52px auto;
}

.grid {
  display: grid;
  gap: 14px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

label.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  min-height: 18px;
  margin: 0 8px 0 0;
}

select[multiple] {
  min-height: 156px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  margin-top: 14px;
}

button:hover {
  background: var(--brand-dark);
}

button.ghost {
  color: var(--brand);
  background: #e8f1ed;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  border-radius: 6px;
  padding: 10px 14px;
  background: #e8f1ed;
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.topbar .button-link {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.qr-page {
  display: grid;
  min-height: 100vh;
  align-items: center;
}

.qr-card {
  text-align: center;
}

.qr-box {
  width: min(340px, 100%);
  margin: 16px auto;
}

.qr-box svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-url {
  overflow-wrap: anywhere;
  font-weight: 650;
}

.qr-url a {
  color: var(--brand);
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-tools button {
  margin-top: 0;
}

.filterbar {
  align-items: end;
  margin-bottom: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.segmented button {
  margin: 0;
  color: var(--text);
  background: transparent;
}

.segmented button.active {
  color: #fff;
  background: var(--brand);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tabs button,
.subtabs button {
  margin: 0;
  color: var(--text);
  background: #e9e5dc;
}

.tabs button.active,
.subtabs button.active {
  color: #fff;
  background: var(--brand);
}

.subtabs button[data-admin-panel="adminQueuePanel"]::after {
  content: attr(data-queue-count);
  display: none;
  min-width: 20px;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--warn);
  color: #fff;
  font-size: 12px;
}

.subtabs button.has-queue::after {
  display: inline-flex;
  justify-content: center;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.hidden {
  display: none !important;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  border: 1px solid #e2c47c;
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #fff8e8;
  color: #6e4612;
}

.capacity {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  background: #fbfaf7;
}

.capacity.full {
  border-left-color: var(--warn);
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 35, 31, 0.05);
}

.item h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.item p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.65;
}

.subpanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
  background: #fbfaf7;
}

.subpanel h3 {
  margin-top: 0;
}

.capacity-calendar-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.capacity-calendar-header h3 {
  margin-bottom: 0;
}

.capacity-calendar-controls {
  display: flex;
  align-items: end;
  gap: 8px;
}

.capacity-calendar-controls button {
  margin-top: 0;
  white-space: nowrap;
}

.capacity-calendar-controls label {
  min-width: 150px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dff1e8;
}

.legend-dot.busy {
  background: #ffe3a3;
}

.legend-dot.full {
  background: #f7dedb;
}

.legend-dot.paused {
  background: #dad7cf;
}

.capacity-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.calendar-day {
  display: grid;
  min-height: 96px;
  align-content: start;
  gap: 4px;
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid #7aa894;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.calendar-day:hover {
  background: #f7fbf8;
}

.calendar-day.empty {
  border: 0;
  background: transparent;
}

.calendar-day.busy {
  border-left-color: #d19a22;
  background: #fff9e8;
}

.calendar-day.full {
  border-left-color: #bf4e42;
  background: #fff1ef;
}

.calendar-day.paused {
  border-left-color: #918b7e;
  background: #f0eee8;
}

.calendar-day.selected {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.calendar-date {
  font-size: 12px;
  color: var(--muted);
}

.calendar-day strong {
  font-size: 15px;
}

.calendar-day small,
.calendar-queue {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.companion-card {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.compact {
  margin-top: 12px;
}

.compact .item {
  padding: 10px 12px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.item-details {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.item-details a {
  color: var(--brand);
  font-weight: 650;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 63, 56, 0.32);
}

.modal-panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(36, 35, 31, 0.18);
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-header {
  margin-bottom: 14px;
}

.modal-header h3 {
  margin: 0;
}

.modal-header button,
.modal-actions button {
  margin-top: 0;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.detail-modal-panel {
  width: min(840px, 100%);
}

.detail-sections {
  display: grid;
  gap: 12px;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf7;
}

.detail-section h4 {
  margin: 0 0 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #eee8dc;
}

.detail-row:first-of-type {
  border-top: 0;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 550;
}

.detail-row a {
  color: var(--brand);
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e9e5dc;
  font-size: 12px;
}

.status.queued {
  background: #fff0d6;
  color: #824b12;
}

.status.approved,
.status.confirmed,
.status.completed {
  background: #dff1e8;
  color: #1e604c;
}

.status.rejected,
.status.expired,
.status.cancelled {
  background: #f7dedb;
  color: #8c2d23;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: none;
  padding: 10px 14px;
  border-radius: 6px;
  background: #23221f;
  color: #fff;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
    background: #f5f6f8;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: rgba(245, 246, 248, 0.94);
    color: var(--text);
    backdrop-filter: blur(10px);
  }

  .topbar h1 {
    font-size: 19px;
  }

  .topbar p {
    display: none;
  }

  .session-box {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .current-user {
    display: none;
  }

  .topbar .button-link {
    min-height: 34px;
    padding: 7px 11px;
    background: #fff;
    color: var(--brand);
    box-shadow: 0 4px 14px rgba(36, 35, 31, 0.08);
  }

  .topbar button.ghost {
    min-height: 34px;
    margin-top: 0;
    padding: 7px 11px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(36, 35, 31, 0.08);
  }

  main {
    width: 100%;
    margin: 0;
    padding: 12px 12px 0;
  }

  .narrow {
    max-width: none;
    margin: 18px 0;
  }

  .panel {
    border: 0;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(36, 35, 31, 0.06);
  }

  .home-hero {
    grid-template-columns: 1fr;
    align-items: start;
    border-radius: 10px;
    padding: 18px;
  }

  .home-hero h2 {
    font-size: 24px;
  }

  .home-badge {
    min-width: 0;
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-card {
    min-height: 112px;
    border: 0;
    border-radius: 10px;
    padding: 16px;
  }

  #purchase {
    padding-bottom: 28px;
  }

  #appView {
    display: block;
  }

  .tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 0;
    min-height: 66px;
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(36, 35, 31, 0.08);
    backdrop-filter: blur(10px);
  }

  .tabs button {
    display: grid;
    gap: 2px;
    justify-items: center;
    min-width: 0;
    min-height: 54px;
    padding: 4px 0;
    border-radius: 8px;
    color: #7c7f86;
    background: transparent;
    font-size: 12px;
  }

  .tabs button::before {
    content: "";
    width: 24px;
    height: 24px;
    background: #111;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 24px 24px;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 24px 24px;
  }

  .tabs button[data-tab="home"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 10.7 12 4l8 6.7V21h-5v-6H9v6H4V10.7Zm2 .9V19h1v-6h10v6h1v-7.4l-6-5-6 5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 10.7 12 4l8 6.7V21h-5v-6H9v6H4V10.7Zm2 .9V19h1v-6h10v6h1v-7.4l-6-5-6 5Z'/%3E%3C/svg%3E");
  }

  .tabs button[data-tab="profile"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5Zm0-4a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm-5.5 8c.7-1.1 2.8-2 5.5-2s4.8.9 5.5 2h-11Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5Zm0-4a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm-5.5 8c.7-1.1 2.8-2 5.5-2s4.8.9 5.5 2h-11Z'/%3E%3C/svg%3E");
  }

  .tabs button[data-tab="visit"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 8H6v10h12V10ZM6 8h12V7H6v1Zm2 4h3v3H8v-3Zm5 0h3v3h-3v-3Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 8H6v10h12V10ZM6 8h12V7H6v1Zm2 4h3v3H8v-3Zm5 0h3v3h-3v-3Z'/%3E%3C/svg%3E");
  }

  .tabs button[data-tab="purchase"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h14v18H5V3Zm2 2v14h10V5H7Zm2 3h6v2H9V8Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h14v18H5V3Zm2 2v14h10V5H7Zm2 3h6v2H9V8Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E");
  }

  .tabs button[data-tab="records"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5h14v2H5V5Zm0 6h14v2H5v-2Zm0 6h14v2H5v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5h14v2H5V5Zm0 6h14v2H5v-2Zm0 6h14v2H5v-2Z'/%3E%3C/svg%3E");
  }

  .tabs button[data-tab="notifications"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.3-1.5H9.7A2.5 2.5 0 0 0 12 22Zm7-5-2-2V9a5 5 0 0 0-4-4.9V2h-2v2.1A5 5 0 0 0 7 9v6l-2 2v1h14v-1Zm-3.8-1H8.8l.2-.2V9a3 3 0 1 1 6 0v6.8l.2.2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.3-1.5H9.7A2.5 2.5 0 0 0 12 22Zm7-5-2-2V9a5 5 0 0 0-4-4.9V2h-2v2.1A5 5 0 0 0 7 9v6l-2 2v1h14v-1Zm-3.8-1H8.8l.2-.2V9a3 3 0 1 1 6 0v6.8l.2.2Z'/%3E%3C/svg%3E");
  }

  .tabs button[data-tab="admin"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3Zm0 2.1L18 6.4V11c0 3.8-2.4 7.2-6 8.8C8.4 18.2 6 14.8 6 11V6.4l6-2.3Zm-1 4.9h2v4h-2V9Zm0 6h2v2h-2v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3Zm0 2.1L18 6.4V11c0 3.8-2.4 7.2-6 8.8C8.4 18.2 6 14.8 6 11V6.4l6-2.3Zm-1 4.9h2v4h-2V9Zm0 6h2v2h-2v-2Z'/%3E%3C/svg%3E");
  }

  .tabs button.active {
    color: var(--brand);
    background: transparent;
  }

  .tabs button.active::before {
    background: var(--brand);
  }

  #toast {
    top: calc(14px + env(safe-area-inset-top));
    bottom: auto;
    z-index: 30;
    max-width: calc(100% - 40px);
    border-radius: 999px;
    padding: 9px 14px;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(36, 35, 31, 0.22);
  }

  .profile-hero {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 8px 0 14px;
  }

  .avatar {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .three {
    grid-template-columns: 1fr;
  }

  .four {
    grid-template-columns: 1fr;
  }

  label {
    font-size: 15px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    border-radius: 8px;
    background: #fbfbfc;
  }

  button,
  .button-link {
    min-height: 44px;
    border-radius: 8px;
  }

  .segmented {
    border-radius: 10px;
  }

  .notice,
  .capacity,
  .subpanel,
  .detail-section {
    border-radius: 10px;
  }

  .list {
    gap: 12px;
  }

  .item {
    border: 0;
    border-radius: 10px;
    padding: 16px;
  }

  .item h4 {
    align-items: flex-start;
    font-size: 18px;
  }

  .item .status {
    flex: 0 0 auto;
  }

  .item button {
    margin-right: 8px;
  }

  .admin-tools,
  .subtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-tools > *,
  .subtabs button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .filterbar {
    align-items: stretch;
  }

  .capacity-calendar-header,
  .capacity-calendar-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .capacity-calendar-controls label {
    min-width: 0;
  }

  .capacity-calendar {
    gap: 4px;
  }

  .calendar-day {
    min-height: 78px;
    padding: 6px;
  }

  .calendar-day small {
    display: none;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
