:root {
  color-scheme: light dark;
  --accent: #0047ab;
  --accent-hover: #003a8c;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --on-accent: #fff;
  --brand: #0047ab;
  --on-brand: #fff;
  --page-bg: #e8edf6;
  --tint: #d9e3f3;
  --surface: #fff;
  --text: #0d1b2a;
  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --border: color-mix(in srgb, #23406e 24%, transparent);
  --hover: color-mix(in srgb, var(--accent) 6%, transparent);
  --success: #15803d;
  --danger: #c62828;
  --danger-soft: color-mix(in srgb, var(--danger) 10%, transparent);
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --raised: 4px 4px 0 var(--text);
  --dot: color-mix(in srgb, var(--text) 10%, transparent);
  --skeleton: color-mix(in srgb, var(--text) 9%, transparent);
  --panel-pad: 1.5rem;
  --page: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4d8fea;
    --accent-hover: #6ea4ef;
    --on-accent: #08111f;
    --page-bg: #0a1120;
    --tint: #13213a;
    --surface: #111a2c;
    --text: #e6ecf5;
    --border: color-mix(in srgb, #9db4dc 24%, transparent);
    --success: #4ade80;
    --danger: #f87171;
    --raised: 4px 4px 0 rgb(0 0 0 / 0.9);
  }
}

body {
  margin: 0;
  background-color: var(--page-bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.25px);
  background-size: 18px 18px;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}

a {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

.panel {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--panel-pad) 1rem;
}
.panel.wide {
  max-width: 64rem;
}
.panel.venue-panel {
  max-width: 52rem;
}
@media (min-width: 768px) {
  :root {
    --panel-pad: 2.5rem;
  }
  .panel {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1280px) {
  .panel {
    padding-inline: 2rem;
  }
}

.page-head {
  margin: calc(-1 * var(--panel-pad)) 0 1.5rem;
  padding: var(--panel-pad) 0 1.25rem;
  background: var(--tint);
  box-shadow: 0 0 0 100vmax var(--tint);
  clip-path: inset(0 -100vmax);
}
.page-head:has(.tabs) {
  padding-bottom: 0;
}
.page-head .tabs {
  margin-bottom: 0;
  border-bottom: 0;
}
.page-head > :last-child {
  margin-bottom: 0;
}
.page-head.hero {
  padding-block: calc(var(--panel-pad) + 1rem) 2rem;
}
.page-head.hero h2 {
  font-size: 2.1rem;
}

.panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.panel h3 {
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.hint {
  margin: 0 0 1rem;
  color: var(--muted);
}

button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
button:hover:enabled {
  border-color: color-mix(in srgb, var(--text) 60%, transparent);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
button.primary:hover:enabled {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
button.danger {
  color: var(--danger);
}
button.danger:hover:enabled {
  border-color: var(--danger);
}
button.icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  line-height: 1;
}
button.close {
  position: relative;
  font-size: 0;
}
button.close::before,
button.close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
button.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

input,
select {
  box-sizing: border-box;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
input[type="search"] {
  appearance: none;
}
input[type="checkbox"] {
  height: auto;
  padding: 0;
  accent-color: var(--accent);
}
input[type="color"] {
  padding: 0.25rem;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.panel > button {
  display: block;
  width: 100%;
}

.provider {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.provider:hover {
  border-color: var(--text);
  box-shadow: var(--raised);
  transform: translate(-2px, -2px);
}

.error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: var(--radius);
  background: var(--danger-soft);
}

pre {
  overflow: auto;
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.details dt,
.details dd {
  margin: 0;
  padding: 0.75rem 1rem;
}
.details dt {
  color: var(--muted);
}
.details dd {
  overflow-wrap: anywhere;
}
.details dt:nth-of-type(n + 2),
.details dd:nth-of-type(n + 2) {
  border-top: 1px solid var(--border);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.panel.wide .form {
  max-width: 28rem;
}
.form h4 {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.panel > section + .actions {
  margin-top: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.field span {
  font-size: 0.875rem;
  font-weight: 500;
}
.field small {
  color: var(--muted);
}

.list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.list:empty {
  display: none;
}
.list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 1rem 1.25rem;
}
.list li + li {
  border-top: 1px solid var(--border);
}
.list .head {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
  gap: 1rem;
}
.list .role {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: capitalize;
}
.list .review {
  margin-left: 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}
.review-notice {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.review-notice p {
  margin: 0;
}
.review-notice .actions {
  margin-top: 0.5rem;
}
.list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.list button,
.hours-exception button,
.reservation-card button {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.list button {
  margin-top: 0.5rem;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--brand);
  color: var(--on-brand);
}
.navbar a,
.navbar button {
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--on-brand) 78%, transparent);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.navbar a:hover,
.navbar button:hover:enabled {
  background: none;
  color: var(--on-brand);
}
.navbar a:focus-visible,
.navbar button:focus-visible {
  outline-color: var(--on-brand);
}
.navbar .brand {
  margin-right: 0.5rem;
  color: var(--on-brand);
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.navbar .brand:hover {
  color: var(--on-brand);
}
.navbar button {
  margin-left: auto;
}
.navbar-links {
  display: contents;
}
.navbar .navbar-menu {
  display: none;
}
@media (max-width: 640px) {
  .navbar .navbar-menu {
    position: relative;
    display: inline-grid;
    font-size: 1.25rem;
  }
  .navbar-menu .badge {
    position: absolute;
    top: -2px;
    right: -10px;
    margin: 0;
  }
  .navbar-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0 0.25rem;
  }
  .navbar.open .navbar-links {
    display: flex;
  }
  .navbar-links > button {
    margin-left: 0;
  }
}

.badge {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: top;
}

.tabs {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}
.tabs a {
  margin-bottom: -1px;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.tabs a:hover {
  color: var(--text);
}
.tabs a[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.floor-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}
.floor-tablist {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.floor-tab {
  display: flex;
  flex: none;
  align-items: center;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted);
}
.floor-tab.active {
  border-color: var(--border);
  border-bottom-color: var(--surface);
  background: var(--surface);
  color: var(--text);
}
.floor-tab.wrap {
  flex: 0 1 auto;
  min-width: 0;
}
.floor-tab:hover {
  background: var(--hover);
}
.floor-tab.active:hover {
  background: var(--surface);
}
.floor-tab button {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}
.floor-tab:has(.floor-tab-close) .floor-tab-name {
  padding-right: 0.25rem;
}
.floor-tab .floor-tab-close {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.25rem;
  padding: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  line-height: 1;
}
.floor-tab .floor-tab-close:hover:enabled {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
}
.floor-tab.wrap .floor-tab-name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.floor-tab.changed .floor-tab-name::after {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.floor-add,
.floor-more {
  margin-bottom: -1px;
  padding: 0.5rem 1rem;
  border-color: transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.floor-add:hover:enabled,
.floor-more:hover:enabled {
  border-color: transparent;
  background: var(--hover);
  color: var(--text);
}
.floor-add {
  padding-inline: 0.75rem;
}
.floor-more {
  margin-left: auto;
}
.floor-tabs + .field {
  margin: 0 0 1rem;
}
.floor-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid var(--text);
  box-shadow: var(--raised);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.floor-menu button {
  display: block;
  width: 100%;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
}
.floor-menu button:hover,
.floor-menu button:focus-visible {
  background: var(--hover);
}

.stage {
  margin: 0 0 1rem;
}
.layout-side {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.layout-side > .resource-slot {
  padding: 1rem;
}
.resource-panel {
  position: relative;
  display: grid;
  grid-template-areas: "title title" "hint hint" "name name" "bookable delete";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.resource-panel.idle {
  grid-template-areas: "title" "hint";
  grid-template-columns: minmax(0, 1fr);
}
.resource-panel.area {
  grid-template-areas: "title title" "kind kind" "label label" ". delete";
}
.resource-panel.area.outside {
  grid-template-areas: "title title" "kind kind" ". delete";
}
.resource-panel h3 {
  grid-area: title;
  margin: 0;
  padding-right: 2rem;
  font-size: 1rem;
}
.resource-panel .hint {
  grid-area: hint;
  margin: 0;
  font-size: 0.875rem;
}
.resource-panel :is(.panel-name, .panel-kind, .panel-label) {
  height: 2.25rem;
  min-width: 0;
}
.resource-panel .panel-name {
  grid-area: name;
}
.resource-panel .panel-kind {
  grid-area: kind;
}
.resource-panel .panel-label {
  grid-area: label;
}
.resource-panel .check {
  grid-area: bookable;
  margin: 0;
}
.resource-panel .danger {
  grid-area: delete;
  justify-self: end;
}
.resource-panel .close {
  position: absolute;
  top: -0.25rem;
  right: 0;
}
.resource-panel button {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}
.resource-panel button.close {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-color: transparent;
  background: none;
  color: var(--muted);
}
.resource-panel button.close:hover {
  color: var(--text);
}
.resource-panel.idle > :is(.close, input, select, .check, .danger),
.resource-panel:not(.idle) > .hint,
.resource-panel:not(.area) > :is(.panel-kind, .panel-label),
.resource-panel.area > :is(.panel-name, .check),
.resource-panel.area.outside > .panel-label {
  display: none;
}
.floor-footer:not(:empty) {
  margin: 1rem 0;
}
@media (max-width: 767px) {
  .resource-slot {
    display: contents;
  }
  .resource-panel.idle {
    display: none;
  }
  .resource-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    grid-template-areas: "name bookable delete close";
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .resource-panel.area {
    grid-template-areas: "kind label delete close";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  }
  .resource-panel.area.outside {
    grid-template-areas: "kind delete close";
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .resource-panel h3 {
    display: none;
  }
  .resource-panel button.close {
    position: static;
    grid-area: close;
    width: 2.25rem;
    height: 2.25rem;
    border-color: var(--border);
    color: inherit;
  }
  .layout:has(.resource-panel:not(.idle)) {
    padding-bottom: 4.5rem;
  }
}
.stage + .form {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.canvas {
  display: block;
  width: 100%;
  height: auto;
}
@media (hover: hover) {
  .canvas .pickable:hover > rect {
    stroke-opacity: 0.5;
  }
}
.plan-floor {
  fill: color-mix(in srgb, var(--accent) 5%, var(--surface));
  stroke: var(--border);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.plan-edge {
  stroke: var(--border);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.plan-cut {
  fill: transparent;
  stroke: var(--muted);
  stroke-width: 1px;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.plan-cut.selected {
  stroke: var(--text);
  stroke-width: 2px;
}

.empty {
  margin: 1rem 0;
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.panel.wide > section,
.layout > :not(.layout-side),
.layout-side > *,
.hours-section {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.panel.wide > section {
  margin: 1rem 0;
}
.panel.wide > section > :first-child,
.layout > * > :first-child,
.layout-side > * > :first-child,
.hours-section > :first-child {
  margin-top: 0;
}
.panel.wide > section > :last-child,
.layout > * > :last-child,
.layout-side > * > :last-child,
.hours-section > :last-child {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: stretch;
  }
  .layout-side {
    display: flex;
    flex-direction: column;
    contain: size;
  }
  .layout-side > .sidebar {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
}

.sidebar .list .head {
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}

.thumb {
  height: 1.25rem;
  width: auto;
  border-radius: 0;
}
.sidebar .list .thumb {
  width: 3.5rem;
  height: 2rem;
  object-fit: contain;
}
.sidebar .list .head.draggable {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.drag-ghost {
  position: fixed;
  z-index: 1000;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  pointer-events: none;
}
body.dragging,
body.dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.hours-layout {
  display: grid;
  gap: 2.5rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: 2.5rem repeat(48, minmax(0, 1fr));
  row-gap: 3px;
  margin-bottom: 0.75rem;
  user-select: none;
}
.hours-grid.editable {
  touch-action: none;
  cursor: crosshair;
}
.hours-head {
  grid-column: span 4;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.hours-label {
  align-self: center;
  font-size: 0.75rem;
}
.hours-cell {
  height: 1.75rem;
  background: var(--hover);
}
.hours-cell.hour {
  box-shadow: inset 1px 0 var(--border);
}
.hours-cell.open {
  background: var(--accent);
}
.hours-label.ghost,
.hours-cell.ghost {
  opacity: 0.45;
}

.hours-exceptions {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hours-exception {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.hours-exception button {
  width: auto;
}
.hours-section > .hint,
.hours-section > .error {
  margin-top: 1rem;
}

.venue-search input[type="search"] {
  width: 100%;
  height: 3rem;
  padding-inline: 1rem;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
}
.chip:hover:enabled {
  border-color: var(--accent);
}
.chip[aria-pressed="true"],
.chip[aria-pressed="true"]:hover:enabled {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.venue-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.venue-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.venue-card:hover {
  border-color: var(--text);
  box-shadow: var(--raised);
  transform: translate(-2px, -2px);
}
.venue-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.venue-card-head strong {
  font-size: 1.05rem;
}
.venue-card .hint {
  margin: 0;
}

.status {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.status.open {
  color: var(--accent);
  font-weight: 500;
}

.venue-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}
.activity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.public-hours {
  display: grid;
  margin-bottom: 1rem;
}
.public-hours-day {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

dialog.booking {
  width: min(28rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid var(--text);
  box-shadow: var(--raised);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}
dialog.booking::backdrop {
  background: rgb(10 15 25 / 0.55);
}
.booking-body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.booking-body h3,
.booking-body p {
  margin: 0;
}
.booking-body h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
}
.slots > p {
  grid-column: 1 / -1;
}
.slot {
  width: auto;
  padding: 0.5rem;
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.slot:hover:enabled {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.slot.chosen,
.slot.chosen:hover:enabled {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.booking-actions {
  display: flex;
  gap: 0.75rem;
}

.reservation {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.reservation[hidden] {
  display: none;
}
.notice {
  margin: 0 0 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.reservation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.reservation-item .edit {
  padding: 0;
  border: none;
  background: none;
  font-weight: inherit;
  text-align: left;
}
.reservation-item .edit:hover {
  background: none;
  color: var(--accent);
  text-decoration: underline;
}

.schedule-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.reservation-list {
  display: grid;
  gap: 0.75rem;
}
.reservation-list h3 {
  margin: 0.5rem 0 0;
}
.reservation-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.reservation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.reservation-line {
  font-variant-numeric: tabular-nums;
}
.reservation-date {
  font-weight: 600;
}
.reservation-line + .reservation-date {
  margin-top: 0.25rem;
}
.reservation-card button {
  width: auto;
  justify-self: start;
}

.schedule-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}
.schedule-bar .schedule-picker {
  margin: 0;
}
.view-toggle {
  display: flex;
}
.admin-tools {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.view-toggle button + button {
  margin-left: -1px;
}
.view-toggle button[aria-pressed="true"],
.view-toggle button[aria-pressed="true"]:hover:enabled {
  position: relative;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.calendar {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.calendar-grid {
  display: grid;
}
.calendar-corner,
.calendar-floor,
.calendar-resource {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.calendar-corner {
  left: 0;
  z-index: 4;
  border-right: 1px solid var(--border);
}
.calendar-floor {
  box-sizing: border-box;
  height: 32px;
  padding: 0 0.75rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 31px;
  text-transform: uppercase;
}
.calendar-resource {
  box-sizing: border-box;
  height: 40px;
  padding: 0 0.75rem;
  overflow: hidden;
  border-left: 1px solid var(--border);
  font-weight: 600;
  line-height: 39px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-grid.grouped .calendar-resource {
  top: 32px;
}
.calendar-axis {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.calendar-axis span {
  position: absolute;
  right: 0.5rem;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.calendar-lane {
  position: relative;
  border-left: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--border) 0 1px,
    transparent 1px var(--hour)
  );
}
.calendar-closed {
  position: absolute;
  inset-inline: 0;
  background: repeating-linear-gradient(
    45deg,
    var(--hover) 0 6px,
    transparent 6px 12px
  );
}
.calendar-now {
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  border-top: 2px solid var(--danger);
}
.calendar-card {
  position: absolute;
  inset-inline: 4px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, var(--surface));
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left;
}
.calendar-card:hover:enabled {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 24%, var(--surface));
}
.calendar-card strong {
  max-width: 100%;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-card span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.calendar-ghost,
.calendar-draft {
  position: absolute;
  inset-inline: 4px;
  z-index: 2;
  box-sizing: border-box;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}
.calendar-draft {
  border-width: 2px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}
.staff-booking .reservation-item select {
  width: 7rem;
  margin-left: auto;
}
.staff-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.staff-line label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.staff-line select {
  width: auto;
}
.staff-line label.grow {
  flex: 1 1 13rem;
}
.staff-line label.grow input {
  flex: 1;
  width: auto;
  min-width: 0;
}
.calendar-card.request {
  border-left-style: dashed;
  background: color-mix(in srgb, var(--tone) 6%, var(--surface));
  opacity: 0.7;
}
.calendar-card.request strong {
  font-style: italic;
}
.calendar-card.compact {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0;
  white-space: nowrap;
}
.calendar-card.compact span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tone-0 {
  --tone: var(--accent);
}
.tone-1 {
  --tone: #0f9d8a;
}
.tone-2 {
  --tone: #7c3aed;
}
.tone-3 {
  --tone: #d97706;
}
.tone-4 {
  --tone: #db2777;
}
.tone-5 {
  --tone: #65a30d;
}

.skeleton-bar,
.skeleton-block {
  display: block;
  background: var(--skeleton);
  animation: skeleton 1.6s ease-in-out infinite;
}
.skeleton-bar {
  height: 0.85rem;
}
.skeleton-stack {
  display: grid;
  gap: 0.75rem;
}
.skeleton-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.list .skeleton-row {
  gap: 0.5rem;
}
.skeleton-tabs {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0 1.75rem;
}
.panel > .skeleton-bar {
  margin-bottom: 0.5rem;
}
.panel.wide > section .skeleton-bar + .skeleton-bar,
.hours-section .skeleton-bar + .skeleton-bar {
  margin-top: 0.5rem;
}
.hours-section .skeleton-bar + .skeleton-block,
.panel.wide > section .skeleton-bar + .skeleton-block {
  margin-top: 1rem;
}
@keyframes skeleton {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-bar,
  .skeleton-block {
    animation: none;
  }
}

.venue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
  color: var(--muted);
}
.venue-meta .status {
  font-size: inherit;
}
.venue-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  object-fit: cover;
}
.venue-photo.empty {
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--muted);
}
.venue-layout {
  display: grid;
  gap: 1.5rem;
}
.venue-layout .venue-hours {
  margin: 0;
}
.venue-map {
  display: block;
  width: 100%;
  height: 11rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (min-width: 1024px) {
  .venue-layout {
    grid-template-columns: minmax(0, 1fr) fit-content(24rem);
  }
  .venue-info {
    display: flex;
    flex-direction: column;
  }
  .venue-info .actions {
    align-self: flex-start;
  }
  .venue-map {
    flex: 1 0 11rem;
    height: auto;
  }
  .venue-layout .venue-hours {
    display: flex;
    flex-direction: column;
  }
  .venue-layout .venue-hours > section:last-child {
    flex: 1;
  }
}
.booking {
  max-width: min(100%, calc(max(15rem, 100dvh - 20rem) * var(--plan-ratio)));
  margin-inline: auto;
}
.venue-banner img {
  display: block;
  width: 100%;
  height: clamp(12rem, 32vw, 22rem);
  object-fit: cover;
}
.venue-description {
  margin: 0 0 1.5rem;
  white-space: pre-line;
}
.venue-card-photo {
  display: block;
  width: calc(100% + 2.5rem);
  aspect-ratio: 16 / 9;
  margin: -1rem -1.25rem 0;
  object-fit: cover;
}
.profile-layout {
  display: grid;
  gap: 2rem;
  max-width: var(--page);
}
.profile-form {
  display: grid;
  gap: 1rem;
}
.profile-form textarea {
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  resize: vertical;
}
.profile-form textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.profile-photo .venue-photo {
  max-width: 32rem;
}
.venue-hours {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
@media (min-width: 768px) {
  .venue-hours {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    align-items: start;
  }
}
.venue-hours > section {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.venue-hours > section > :first-child {
  margin-top: 0;
}
.venue-hours > section > :last-child {
  margin-bottom: 0;
}
