@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --paper: #f5f8fb;
  --surface: #fff;
  --surface-soft: #f2f6fa;
  --ink: #203147;
  --muted: #627689;
  --accent: #2369ac;
  --accent-bright: #88bbef;
  --accent-ink: #245c91;
  --on-accent: #fff;
  --selection: #e3effb;
  --border: #dfe6ed;
  --form-border: #c6d4df;
  --rail: #172842;
  --rail-hover: #284765;
  --rail-ink: #eaf2f8;
  --success: #196343;
  --danger: #a03039;
  --err-bg: #fff3f3;
  --nav-width: 202px;
  --list-width: clamp(18rem, 37%, 26rem);
  color-scheme: light;
  font:
    16px/1.45 "DM Sans",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent-ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}
h2 {
  font-size: clamp(1.32rem, 2.4vw, 1.8rem);
}
h3 {
  font-size: 1.08rem;
  letter-spacing: -0.018em;
}
.muted,
.caption {
  color: var(--muted);
}
.caption {
  font-size: 0.88rem;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  vertical-align: middle;
}
.brand-logo {
  display: block;
  width: 11.5rem;
  max-width: 100%;
  height: auto;
}
.brand .on-dark,
:root[data-mode="dark"] .brand .on-light,
.mobile-home-brand,
.qr-label-logo {
  display: none;
}
:root[data-mode="dark"] .brand .on-dark {
  display: block;
}
.location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}
.location .icon {
  width: 16px;
  height: 16px;
}
.primary,
.secondary,
.plain,
.icon-btn,
.chip,
.danger {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 640;
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
}
.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  filter: brightness(0.92);
}
.secondary,
.icon-btn,
.chip {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--form-border);
}
.secondary:hover,
.chip:hover,
.icon-btn:hover {
  background: var(--surface-soft);
}
.plain {
  color: var(--accent-ink);
  background: transparent;
  padding-inline: 5px;
}
.plain:hover {
  text-decoration: underline;
}
.danger {
  color: var(--danger);
  border-color: var(--form-border);
  background: var(--surface);
}
.icon-btn {
  width: 42px;
  padding: 8px;
}
.icon-btn .icon {
  width: 19px;
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spaced {
  justify-content: space-between;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 630;
}
.field input,
.field select,
.search {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--form-border);
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 12px;
  width: 100%;
  min-width: 0;
  line-height: 1.2;
  font-size: 1rem;
  font-weight: 450;
}
.field input::placeholder {
  color: var(--muted);
}
.primary.full {
  width: 100%;
  min-height: 46px;
}
.error:not(:empty) {
  padding: 11px 13px;
  color: var(--danger);
  background: var(--err-bg);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-block: 4px;
}
.error:empty {
  display: none;
}
.loading {
  padding: 12vh 8vw;
}
.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.header {
  height: 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  gap: 16px;
}
.public {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}
.public .head-role {
  display: flex;
  align-items: center;
  gap: 17px;
}
.header .location {
  padding-left: 17px;
  border-left: 1px solid var(--form-border);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.lang select {
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  padding: 8px 2px;
  font-size: 0.9rem;
}
.public-wrap {
  max-width: 1140px;
  margin: auto;
  padding: clamp(44px, 8vh, 100px) 36px 36px;
  display: grid;
  grid-template-columns: minmax(265px, 420px) minmax(330px, 500px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(38px, 5vw, 88px);
}
.login {
  max-width: 408px;
}
.login h1 {
  line-height: 1.06;
  font-size: clamp(2.45rem, 4.4vw, 3.85rem);
  letter-spacing: -0.058em;
  margin-block: 14px;
}
.login .intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40ch;
}
.login .site-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 620;
  color: var(--accent-ink);
  font-size: 0.9rem;
}
.login .form {
  margin: 26px 0 18px;
  display: grid;
  gap: 13px;
}
.input-icon {
  position: relative;
}
.input-icon .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  width: 17px;
}
.input-icon input {
  padding-left: 43px;
  min-height: 49px;
}
.login .primary {
  min-height: 47px;
}
.login-tools {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.login-tools .plain {
  color: var(--muted);
  font-weight: 550;
}
.preview {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 45px -34px #1d355b55;
}
.preview-head {
  background: var(--rail);
  color: #fff;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.preview-head strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.preview-head small {
  color: #ccdeed;
}
.preview .plan {
  width: 100%;
  display: block;
  background-color: #eff5fa;
  background-image: radial-gradient(#ccdae7 1px, transparent 1px);
  background-size: 12px 12px;
}
.preview figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 14px 21px;
  border-top: 1px solid var(--border);
}
figure {
  margin: 0;
}
.return-note,
.info {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.return-note {
  margin-top: 16px;
  color: var(--accent-ink);
  background: var(--selection);
}
.info .icon,
.return-note .icon {
  margin-top: 2px;
  color: var(--accent-ink);
}
.info p {
  margin-top: 4px;
  font-size: 0.94rem;
}
.return-note p {
  font-size: 0.9rem;
}
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-width);
  background: var(--rail);
  color: var(--rail-ink);
  padding: calc(23px + env(safe-area-inset-top)) 12px
    calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.rail-brand {
  padding: 3px 12px 23px;
  border-bottom: 1px solid #ffffff28;
}
.rail .brand {
  width: 100%;
  max-width: 9.75rem;
}
.rail .brand-logo {
  width: 100%;
}
.rail-brand small {
  display: block;
  color: #c1d3e5;
  margin-top: 8px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button,
.rail .account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rail-ink);
  padding: 10px;
  min-height: 43px;
  font-size: 0.87rem;
  font-weight: 540;
  position: relative;
}
.nav button:hover,
.rail .account:hover,
.nav button[aria-current="page"],
.rail .account[aria-current="page"] {
  background: var(--rail-hover);
}
.mobile-work-areas { display: none; }
@media (max-width: 760px) {
  .mobile-work-areas {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .6rem max(14px, env(safe-area-inset-right)) .1rem max(14px, env(safe-area-inset-left));
  }
  .mobile-work-areas [aria-current="page"] {
    background: var(--selection);
    color: var(--accent-ink);
    border-color: var(--accent);
  }
}
.nav button[aria-current="page"]:before,
.rail .account[aria-current="page"]:before {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  height: 24px;
  background: var(--accent-bright);
  left: 0;
}
.rail-end {
  margin-top: auto;
  border-top: 1px solid #ffffff28;
  padding-top: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: var(--selection);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 720;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex: none;
}
.rail .avatar {
  background: var(--rail-hover);
  color: var(--rail-ink);
}
.shell-main {
  grid-column: 2;
  min-width: 0;
}
.shell-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px clamp(19px, 2.4vw, 40px);
  border-bottom: 1px solid var(--border);
}
.shell-head h1 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  margin-bottom: 6px;
}
.shell-head .account {
  display: none;
}
.body-area {
  padding: clamp(15px, 2.3vw, 34px);
}
.sign-workshop-frame {
  display: block;
  width: 100%;
  height: 75vh;
  border: 0;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
}
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
}
.card,
.detail {
  padding: clamp(18px, 2.4vw, 32px);
}
.card .row + .row,
.card h2 + .muted,
.card h2 + .stack {
  margin-top: 16px;
}
.list-detail {
  display: grid;
  grid-template-columns: var(--list-width) minmax(0, 1fr);
  gap: 18px;
}
.list-panel {
  padding: 18px;
}
.list-panel h2 {
  margin-bottom: 17px;
}
.list-panel .searchbox {
  position: relative;
  display: block;
}
.searchbox .icon {
  position: absolute;
  left: 12px;
  top: 13px;
  color: var(--muted);
  width: 17px;
}
.search {
  padding-left: 39px;
}
.resource-list {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}
.resource {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 71px;
  width: 100%;
  padding: 12px 10px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.resource.selected {
  border: 0;
  box-shadow: inset 3px 0 var(--accent);
  background: var(--selection);
  border-radius: 9px;
}
.resource:hover {
  background: var(--surface-soft);
}
.rs-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent-ink);
  flex: none;
}
.room-thumb {
  position: relative;
  overflow: hidden;
  width: clamp(3.75rem, 6vw, 4.5rem);
  height: auto;
  aspect-ratio: 4 / 3;
}
.room-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booking-summary {
  flex: 1 1 13rem;
  min-width: 0;
}
.resource strong {
  display: block;
}
.resource .caption {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
}
.detail {
  align-self: start;
}
.type {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ink);
  font-size: 0.92rem;
  font-weight: 640;
}
.detail h2 {
  margin: 10px 0;
}
.resource-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.5rem;
}
.resource-heading-text {
  flex: 1 1 11rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.resource-heading .room-shot {
  flex: 1 1 15rem;
  min-width: 0;
}
.room-shot img {
  display: block;
  width: 100%;
  height: clamp(8.75rem, 16vw, 14rem);
  object-fit: cover;
  border-radius: 10px;
}
.room-shot figcaption {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: end;
}
dialog:has(.room-gallery, .room-photo-view) {
  max-width: min(48rem, calc(100vw - 24px));
}
.room-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
  gap: 12px;
  max-height: calc(100dvh - 9rem);
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.room-photo-card {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
  overflow-wrap: anywhere;
}
.room-photo-card:hover strong {
  color: var(--accent-ink);
}
.room-photo-card .room-thumb {
  width: 100%;
}
@media (max-width: 420px) {
  .room-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.room-photo-view {
  display: grid;
  gap: 12px;
}
.room-photo-view .plain {
  justify-self: start;
}
.room-photo-view .room-shot img {
  height: auto;
  max-height: 62dvh;
  object-fit: contain;
}
.detail-form {
  display: grid;
  gap: 20px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.dates {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.actions .plain {
  margin-right: auto;
}
.mobile-back {
  display: none;
}
.record,
.person-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.record:last-child,
.person-row:last-child {
  border-bottom: 0;
}
.record h3 {
  font-size: 1rem;
}
.record .caption {
  margin-top: 3px;
}
.record button {
  min-height: 34px;
}
.person-row {
  flex-wrap: wrap;
}
.member-record .line-group,
.person-row .line-group {
  flex: 1 1 13rem;
  min-width: 0;
}
.member-record .line-group > div,
.person-row .line-group > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.member-record .avatar,
.person-row .avatar {
  position: relative;
  width: 40px;
  height: 40px;
}
.person-row .caption {
  margin-top: 2px;
}
.member-photo {
  position: absolute;
  inset: 0;
  background: var(--selection);
}
.empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  color: var(--muted);
}
.empty .icon {
  color: var(--accent-ink);
}
.current {
  color: var(--success);
  font-weight: 620;
}
.tabset {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}
.tabset button[aria-pressed="true"] {
  background: var(--selection);
  border-color: var(--accent-bright);
  color: var(--accent-ink);
}
.account-area {
  max-width: 760px;
}
.account-area h2 {
  margin-bottom: 12px;
}
.mobile-nav {
  display: none;
}
dialog {
  max-width: min(450px, calc(100vw - 24px));
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 65px #122a4536;
}
dialog::backdrop {
  background: #122a4569;
}
dialog .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
dialog .heading h2 {
  font-size: 1.45rem;
}
dialog .icon-btn {
  border: 0;
  background: var(--surface-soft);
  width: 36px;
  min-height: 36px;
}
dialog ol {
  padding-left: 23px;
}
dialog li {
  margin-block: 8px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  width: max-content;
  z-index: 8;
  background: var(--rail);
  color: var(--rail-ink);
  padding: 12px 18px;
  border-radius: 9px;
  box-shadow: 0 5px 16px #13273e33;
}
#qrImage {
  display: flex;
  justify-content: center;
}
#qrImage img {
  display: block;
  width: min(230px, 100%);
  height: auto;
  image-rendering: pixelated;
}
.scan-detail {
  max-width: 710px;
}
.scan-detail .actions {
  margin-top: 20px;
}
.actions.left {
  justify-content: flex-start;
}
.line-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.narrow {
  max-width: 840px;
}
.status-list {
  margin-top: 9px;
}
.mobile-only {
  display: none;
}
.key {
  font-size: 0.84rem;
  color: var(--muted);
}
@media (min-width: 1550px) {
  :root {
    --nav-width: 220px;
  }
}
@media (min-width: 761px) {
  /* Continue the rail onto the canvas exposed during Safari overscroll. */
  :root:has(.shell) {
    background: linear-gradient(to right, var(--rail) var(--nav-width), var(--paper) var(--nav-width));
  }
}
@media (min-width: 991px) and (max-width: 1200px) {
  :root {
    --nav-width: 162px;
  }
  .rail {
    padding-inline: 8px;
  }
  .nav button,
  .rail .account {
    font-size: 0.8rem;
    gap: 6px;
    padding-inline: 7px;
  }
}
@media (min-width: 761px) and (max-width: 990px) {
  :root {
    --nav-width: 66px;
  }
  .rail {
    align-items: center;
    padding-inline: 7px;
  }
  .rail-brand {
    padding: 6px 0 18px;
  }
  .rail-brand small,
  .nav span,
  .rail .account-label {
    display: none;
  }
  .rail .brand {
    width: 2.25rem;
  }
  .rail .nav button {
    justify-content: center;
  }
  .rail .account {
    padding: 5px;
    justify-content: center;
  }
  .public-wrap {
    gap: 30px;
    padding-inline: 26px;
  }
  .dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dates .field:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .header {
    height: 66px;
    padding: 0 17px;
  }
  .header .location,
  .preview {
    display: none;
  }
  .header .brand-logo {
    width: clamp(8rem, 40vw, 10rem);
  }
  .mobile-home-brand {
    display: block;
    margin-bottom: 6px;
  }
  .mobile-home-brand .brand {
    width: 7.25rem;
  }
  .public-wrap {
    display: block;
    padding: clamp(30px, 7.5vh, 64px) clamp(18px, 6vw, 44px) 30px;
  }
  .login {
    max-width: 440px;
    margin: 0 auto;
  }
  .login h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }
  .login .form {
    margin-top: 23px;
  }
  .shell {
    display: block;
    padding-bottom: calc(61px + env(safe-area-inset-bottom));
  }
  .rail {
    display: none;
  }
  .shell-head {
    padding: 15px 17px;
    align-items: center;
  }
  .shell-head h1 {
    font-size: 1.32rem;
    margin: 0;
  }
  .shell-head .location {
    font-size: 0.8rem;
    margin-top: 4px;
  }
  .shell-head .location .icon {
    width: 13px;
    height: 13px;
  }
  .shell-head .account {
    display: flex;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 4px;
  }
  .body-area {
    padding: 14px;
  }
  .home-grid,
  .list-detail {
    display: block;
  }
  .home-grid > .card + .card {
    margin-top: 12px;
  }
  .list-detail[data-detail="off"] .detail,
  .list-detail[data-detail="on"] .list-panel {
    display: none;
  }
  .mobile-back {
    display: inline-flex;
    margin-bottom: 6px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px 3px calc(3px + env(safe-area-inset-bottom));
    min-height: calc(55px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .mobile-nav button {
    display: grid;
    place-content: center;
    justify-items: center;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.2;
  }
  .mobile-nav button .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-nav button[aria-current="page"] {
    color: var(--accent-ink);
    font-weight: 700;
    background: var(--selection);
    border-radius: 7px;
  }
  .record {
    flex-wrap: wrap;
  }
  .card,
  .detail {
    padding: 17px;
  }
  .dates {
    grid-template-columns: 1fr 1fr;
  }
  .dates .field:first-child {
    grid-column: 1/-1;
  }
  .account-area .row > .secondary,
  .actions > button {
    min-height: 44px;
  }
  #notice:not(:empty) {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .mobile-only {
    display: inline-flex;
  }
  .home-grid h2 {
    font-size: 1.28rem;
  }
  .actions .plain {
    margin-right: 0;
  }
  .actions {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body:has(dialog[open]) #app,
  body:has(dialog[open]) #notice,
  dialog:has(.qr-label) .heading,
  dialog .icon-btn,
  dialog .actions {
    display: none;
  }
  dialog[open] {
    position: static;
    box-shadow: none;
    min-width: 300px;
  }
  dialog::backdrop {
    background: white;
  }
  dialog[open]:has(.qr-label) {
    background: white;
    color: #172842;
  }
  .qr-label .caption {
    color: #475970;
  }
  .qr-label-logo {
    display: block;
    width: 44mm;
    height: auto;
  }
}

/* Member and site settings use the same semantic colours as the booking views. */
:root[data-color="green"] {
  --accent: #176d4d;
}
:root[data-color="red"] {
  --accent: #a43843;
}
:root[data-color="insta"] {
  --accent: #99345e;
  --second-tone: #7347a2;
}
:root[data-color="music"] {
  --accent: #286034;
  --second-tone: #123d38;
}
:root[data-color="tt"] {
  --accent: #116873;
  --second-tone: #883858;
}
:root.custom-skin {
  --accent-ink: var(--accent);
  --rail: color-mix(in srgb, var(--accent) 40%, #101d26);
  --rail-hover: color-mix(in srgb, var(--accent) 60%, #293942);
  --accent-bright: color-mix(in srgb, var(--accent) 40%, #fff);
  --selection: color-mix(in srgb, var(--accent) 11%, #fff);
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --paper: #161c22;
  --surface: #202830;
  --surface-soft: #29333d;
  --ink: #edf2f6;
  --muted: #b3c0ca;
  --form-border: #697887;
  --border: #455361;
  --rail-ink: #edf2f6;
  --on-accent: #fff;
  --accent-ink: color-mix(in srgb, var(--accent) 25%, white);
  --selection: color-mix(in srgb, var(--accent) 30%, #202830);
  --success: #93d6ae;
  --danger: #ffabb0;
  --err-bg: #42292e;
}
.custom-skin .primary {
  background: var(--accent);
  color: var(--on-accent);
}
.custom-skin .primary:hover {
  background: color-mix(in srgb, var(--accent) 87%, black);
}
.custom-skin .header,
.custom-skin .shell-head {
  background: var(--paper);
}
.custom-skin .public {
  background: var(--paper);
}
:root:is([data-color="music"], [data-color="insta"], [data-color="tt"]) .rail {
  background: linear-gradient(
    165deg,
    var(--rail),
    color-mix(in srgb, var(--second-tone) 56%, #131f28)
  );
}
:root[data-mode="dark"] :focus-visible {
  outline-color: var(--accent-bright);
}
.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field,
.field-pair > *,
.dates > * {
  min-width: 0;
}
input[type="date"],
input[type="time"],
input[type="month"] {
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  appearance: none;
}
.avatar {
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
#picturePreview .avatar {
  width: 55px;
  height: 55px;
  font-size: 1.9rem;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
  margin: 0;
}
fieldset legend {
  font-weight: 630;
  padding-inline: 3px;
}
.picture-field .caption {
  margin-top: 11px;
}
.upload {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid var(--form-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.upload:focus-within {
  outline: 3px solid var(--accent-ink);
}
.motifs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.motifs button {
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--form-border);
  background: var(--surface);
  min-height: 45px;
}
.motifs img {
  display: block;
  width: min(100%, 3.5rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}
.motifs button[aria-pressed="true"] {
  border: 2px solid var(--accent);
  background: var(--selection);
}
.permission-list {
  display: grid;
  gap: 5px;
  max-height: 225px;
  overflow: auto;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  min-height: 33px;
}
.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.admin-area {
  max-width: 1000px;
}
.monitor-view-row {
  min-height: 44px;
  padding-block: 3px;
}
.monitor-view-row + .monitor-view-row {
  border-top: 1px solid var(--border);
}
.monitor-order-button {
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
}
.mobile-admin {
  display: none;
}
.hidden-nav {
  display: none !important;
}
li,
fieldset,
.body-area,
.list-panel,
.detail,
.admin-area,
.account-area,
.record > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .mobile-admin {
    display: inline-flex;
  }
  .mobile-admin .icon {
    display: none;
  }
}
@media (max-width: 400px) {
  .field-pair {
    grid-template-columns: 1fr;
  }
  .motifs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.filter-dates {
  margin-top: 12px;
  margin-bottom: 10px;
}
.filter-dates summary {
  cursor: pointer;
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-weight: 600;
}
#filterPeriod {
  margin-block: 12px;
}
#filterPeriod .dates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#filterPeriod .field:first-child {
  grid-column: 1/-1;
}

.feature-filter {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.feature-filter legend {
  padding: 0;
  margin-bottom: 8px;
}
.feature-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-options .chip {
  max-width: 100%;
  justify-content: flex-start;
  min-height: 2.25rem;
  padding: 5px 10px;
  gap: 5px;
  font-size: 0.875rem;
  text-align: start;
}
.feature-options .chip .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  border: 1px solid var(--form-border);
  border-radius: 3px;
  stroke: transparent;
}
.feature-options .chip[aria-pressed="true"] {
  background: var(--selection);
  border-color: var(--accent-bright);
  color: var(--accent-ink);
}
.feature-options .chip[aria-pressed="true"] .icon {
  background: var(--accent);
  border-color: var(--accent);
  stroke: var(--on-accent);
}
.feature-filter .plain {
  margin-top: 3px;
  padding-inline: 0;
}
.equipment .feature-options {
  margin-top: 8px;
}
@media (pointer: coarse) {
  .feature-options .chip {
    min-height: 2.75rem;
  }
}
.equipment p {
  margin-top: 6px;
}

.pass-balance {
  color: var(--accent-ink);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pass-receipt {
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--accent);
}
.pass-receipt button {
  margin-top: .4rem;
}
.pass-row .row {
  flex-wrap: wrap;
}
