:root {
  --ink: #172018;
  --ink-soft: #344036;
  --forest: #2e4732;
  --forest-dark: #1d3022;
  --moss: #71815f;
  --lime: #d7f05d;
  --sand: #eee9dc;
  --paper: #f8f6ef;
  --white: #fffefa;
  --orange: #ef7b42;
  --red: #b84235;
  --line: #d8d6ca;
  --muted: #6e746d;
  --shadow: 0 18px 50px rgba(25, 36, 27, 0.12);
}

.public-theme {
  --public-radius: 3px;
  --public-hero-a: rgba(18, 31, 21, 0.98);
  --public-hero-b: rgba(35, 56, 39, 0.91);
  --public-orbit: rgba(215, 240, 93, 0.16);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.public-theme-forest {
  --ink: #172018;
  --ink-soft: #344036;
  --forest: #2e4732;
  --forest-dark: #1d3022;
  --moss: #71815f;
  --lime: #d7f05d;
  --sand: #eee9dc;
  --paper: #f8f6ef;
  --white: #fffefa;
  --orange: #ef7b42;
  --line: #d8d6ca;
  --muted: #6e746d;
}

.public-theme-woodland {
  --ink: #2b2118;
  --ink-soft: #4c3d31;
  --forest: #5a3d26;
  --forest-dark: #302017;
  --moss: #8a6e49;
  --lime: #f2c66d;
  --sand: #efe2ce;
  --paper: #fbf6ed;
  --white: #fffaf2;
  --orange: #c8652d;
  --line: #ddcdb8;
  --muted: #796b5c;
  --public-hero-a: rgba(48, 32, 23, 0.98);
  --public-hero-b: rgba(90, 61, 38, 0.92);
  --public-orbit: rgba(242, 198, 109, 0.2);
}

.public-theme-military {
  --ink: #1e241a;
  --ink-soft: #3f4735;
  --forest: #424b31;
  --forest-dark: #242a1d;
  --moss: #72785a;
  --lime: #d7c86f;
  --sand: #e3ddc7;
  --paper: #f3f0e5;
  --white: #fbf9f0;
  --orange: #bb6b35;
  --line: #cbc5ae;
  --muted: #686b5a;
  --public-hero-a: rgba(32, 38, 26, 0.99);
  --public-hero-b: rgba(67, 74, 49, 0.94);
  --public-orbit: rgba(215, 200, 111, 0.18);
  --public-radius: 0;
}

.public-theme-midnight {
  --ink: #10131a;
  --ink-soft: #343a48;
  --forest: #272d3d;
  --forest-dark: #10131d;
  --moss: #5f718a;
  --lime: #67e8f9;
  --sand: #e5e9f0;
  --paper: #f5f7fa;
  --white: #ffffff;
  --orange: #ff8a65;
  --line: #d5dbe5;
  --muted: #687083;
  --public-hero-a: rgba(12, 15, 25, 0.99);
  --public-hero-b: rgba(31, 39, 58, 0.95);
  --public-orbit: rgba(103, 232, 249, 0.2);
  --public-radius: 6px;
}

.public-theme-desert {
  --ink: #35271d;
  --ink-soft: #594335;
  --forest: #8a4f2a;
  --forest-dark: #4a281b;
  --moss: #a27351;
  --lime: #ffd166;
  --sand: #f2dfc4;
  --paper: #fff7ea;
  --white: #fffdf7;
  --orange: #e76f37;
  --line: #e2c9a9;
  --muted: #7f6857;
  --public-hero-a: rgba(67, 34, 22, 0.99);
  --public-hero-b: rgba(133, 75, 39, 0.93);
  --public-orbit: rgba(255, 209, 102, 0.22);
  --public-radius: 2px;
}

.public-theme-urban {
  --ink: #17191d;
  --ink-soft: #3c4048;
  --forest: #42454d;
  --forest-dark: #1f2228;
  --moss: #777d88;
  --lime: #ff5b57;
  --sand: #e8e8e5;
  --paper: #f7f7f4;
  --white: #ffffff;
  --orange: #ff7a45;
  --line: #d3d4d6;
  --muted: #6d7178;
  --public-hero-a: rgba(25, 27, 32, 0.99);
  --public-hero-b: rgba(61, 64, 72, 0.95);
  --public-orbit: rgba(255, 91, 87, 0.21);
  --public-radius: 0;
}

.public-theme-ocean {
  --ink: #102734;
  --ink-soft: #31515c;
  --forest: #1e5b6e;
  --forest-dark: #0d3545;
  --moss: #4d8792;
  --lime: #7be0d6;
  --sand: #dcefed;
  --paper: #f5fbfa;
  --white: #ffffff;
  --orange: #ff8f70;
  --line: #c9dfdf;
  --muted: #5f777d;
  --public-hero-a: rgba(10, 43, 57, 0.99);
  --public-hero-b: rgba(24, 89, 105, 0.94);
  --public-orbit: rgba(123, 224, 214, 0.22);
  --public-radius: 8px;
}

.public-theme-sunrise {
  --ink: #321d24;
  --ink-soft: #5b3945;
  --forest: #7b3047;
  --forest-dark: #481c2d;
  --moss: #a56575;
  --lime: #ffc857;
  --sand: #f2e0dc;
  --paper: #fff7f3;
  --white: #fffdfb;
  --orange: #f06c4f;
  --line: #e2cac7;
  --muted: #81646d;
  --public-hero-a: rgba(68, 24, 42, 0.99);
  --public-hero-b: rgba(124, 45, 68, 0.94);
  --public-orbit: rgba(255, 200, 87, 0.22);
  --public-radius: 5px;
}

.public-theme-clean {
  --ink: #14243b;
  --ink-soft: #3b506d;
  --forest: #2b5da9;
  --forest-dark: #173966;
  --moss: #6481aa;
  --lime: #5aa8ff;
  --sand: #eaf0f7;
  --paper: #ffffff;
  --white: #ffffff;
  --orange: #ff7f50;
  --line: #d8e1ed;
  --muted: #6d7c91;
  --public-hero-a: rgba(20, 50, 91, 0.98);
  --public-hero-b: rgba(42, 92, 165, 0.92);
  --public-orbit: rgba(142, 196, 255, 0.27);
  --public-radius: 12px;
}

.public-theme-sakura {
  --ink: #38222e;
  --ink-soft: #604354;
  --forest: #8f4867;
  --forest-dark: #53283e;
  --moss: #a16f82;
  --lime: #ffb8d2;
  --sand: #f5e3e9;
  --paper: #fff8fb;
  --white: #fffdfd;
  --orange: #e96f8f;
  --line: #e8d2da;
  --muted: #876b79;
  --public-hero-a: rgba(77, 34, 55, 0.98);
  --public-hero-b: rgba(143, 71, 102, 0.92);
  --public-orbit: rgba(255, 184, 210, 0.25);
  --public-radius: 14px;
}

.public-theme .hero {
  background:
    linear-gradient(110deg, var(--public-hero-a), var(--public-hero-b)),
    var(--forest-dark);
}

.public-theme .hero::before,
.public-theme .hero::after {
  border-color: var(--public-orbit);
}

.public-theme .button,
.public-theme input,
.public-theme select,
.public-theme textarea,
.public-theme .public-event-popover,
.public-theme .calendar-day {
  border-radius: var(--public-radius);
}

[data-page],
[data-controller],
teirei-calendar {
  display: block;
}

.platform-hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(70px, 10vw, 150px) clamp(24px, 6vw, 80px);
}

.platform-hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 18px 0 28px;
}

.platform-hero > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
  max-width: 650px;
}

.platform-actions,
.platform-console-page .compact-header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.platform-features {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 80px;
  max-width: 1180px;
  padding: 0 clamp(24px, 6vw, 80px);
}

.platform-features article {
  background: var(--white);
  min-height: 230px;
  padding: 34px;
}

.platform-features article > strong {
  color: var(--moss);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.platform-form-page .compact-header,
.platform-console-page .compact-header {
  min-height: 82px;
  padding: 16px clamp(20px, 5vw, 72px);
}

.platform-form-card,
.platform-console {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 50px auto 90px;
  max-width: 900px;
  padding: clamp(26px, 5vw, 56px);
}

.platform-form-card.narrow {
  max-width: 600px;
}

.platform-form-card h1,
.platform-console h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 12px 0;
}

.platform-form {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.platform-form label {
  display: grid;
  gap: 8px;
}

.platform-form label > span {
  font-size: 14px;
  font-weight: 800;
}

.platform-form input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
}

.slug-url-preview {
  color: var(--moss);
  overflow-wrap: anywhere;
}

.slug-url-preview strong {
  color: var(--ink);
}

.platform-result {
  background: var(--sand);
  margin-top: 30px;
  padding: 30px;
}

.platform-console {
  max-width: 1240px;
}

.table-scroll {
  margin-top: 32px;
  max-width: 100%;
  overflow: clip;
}

.tenant-table {
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.tenant-table th,
.tenant-table td {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  padding: 15px 12px;
  text-align: left;
  vertical-align: top;
}

.tenant-table small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.tenant-status {
  background: var(--sand);
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.tenant-status.active {
  background: #e2f3d8;
  color: #2d5a25;
}

.tenant-status.failed {
  background: #f8dddd;
  color: var(--red);
}

.tenant-status.cancelled {
  background: #f0dfdc;
  color: #8d3026;
}

.tenant-retry {
  margin-top: 10px;
  padding: 7px 12px;
}

.tenant-lifecycle-actions {
  min-width: 0;
}

.tenant-table :is(input, select, button, .button) {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  width: 100%;
}

@media (max-width: 760px) {
  .platform-features {
    grid-template-columns: 1fr;
  }

  .platform-page .site-header nav a:first-child {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-feature-settings: "palt";
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.compact-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(23, 32, 24, 0.1);
  height: 82px;
  padding: 0 clamp(24px, 5vw, 80px);
  position: relative;
  z-index: 5;
}

.site-header nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  border-bottom: 2px solid transparent;
  padding: 30px 0 27px;
}

.site-header nav a:hover {
  border-color: var(--forest);
}

.public-field-name {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  color: var(--lime);
  display: flex;
  font-size: 20px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  transform: skew(-7deg);
  width: 42px;
}

.brand > span:last-child {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.brand small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.hero {
  background:
    linear-gradient(110deg, rgba(18, 31, 21, 0.98), rgba(35, 56, 39, 0.91)),
    var(--forest-dark);
  color: white;
  min-height: 650px;
  overflow: hidden;
  position: relative;
}

.hero::before,
.hero::after {
  border: 1px solid rgba(215, 240, 93, 0.16);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.hero::before {
  height: 610px;
  right: -180px;
  top: -220px;
  width: 610px;
}

.hero::after {
  height: 430px;
  right: 30px;
  top: 20px;
  width: 430px;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  inset: 0;
  mask-image: linear-gradient(90deg, black, transparent 88%);
  position: absolute;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1240px;
  padding: 92px 40px 54px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--moss);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

.hero h1 {
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0;
}

.hero h1 span {
  color: var(--lime);
}

.hero-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.8;
  margin: 30px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button.primary {
  background: var(--lime);
  color: var(--ink);
}

.button.primary:hover {
  background: #e2f87a;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: white;
}

.button.dark {
  background: var(--ink);
  color: white;
}

.button.danger {
  background: transparent;
  border-color: #d8a59f;
  color: var(--red);
}

.button.wide {
  width: 100%;
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
}

.hero-facts {
  display: flex;
  gap: clamp(28px, 6vw, 74px);
  margin: 68px 0 0;
}

.hero-facts div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 16px;
}

.hero-facts dt {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-facts dd {
  font-size: 13px;
  font-weight: 700;
  margin: 7px 0 0;
}

.section {
  margin: 0 auto;
  max-width: 1240px;
  padding: 94px 40px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-heading h2,
.field-panel h2,
.public-content-block h2,
.admin-topbar h1,
.panel-heading h2 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0;
}

.public-page-hero .public-block-heading {
  max-width: 980px;
  white-space: pre-line;
}

.public-block-copy {
  white-space: pre-line;
}

.public-content-block > div {
  margin: 0 auto;
  max-width: 920px;
}

.public-content-block h2 {
  margin-bottom: 24px;
}

.public-content-block .public-block-copy {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
  margin: 0;
}

.public-notice-block > div {
  background: #f2f8d5;
  border-left: 6px solid #a8c32e;
  padding: clamp(26px, 5vw, 52px);
}

.public-notice-block h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.public-regulations-block {
  margin: 0 auto;
  max-width: 1120px;
}

.public-regulations-heading {
  margin-bottom: 24px;
}

.public-regulations-heading h2,
.public-regulations-heading p {
  margin: 0;
}

.public-regulations-toggle {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.public-regulations-toggle summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  padding: 22px 0;
}

.public-regulations-toggle summary::-webkit-details-marker {
  display: none;
}

.public-regulations-toggle-icon {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  margin-left: 16px;
  width: 32px;
}

.public-regulations-toggle-icon::before {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.public-regulations-toggle[open] .public-regulations-toggle-icon::before {
  content: "−";
}

.public-regulations-body {
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
}

.public-regulations-body p {
  color: var(--ink-soft);
  line-height: 2;
  margin: 0;
  white-space: pre-wrap;
}

.event-list {
  border-top: 1px solid var(--ink);
}

.event-card {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 92px minmax(0, 1fr) 190px;
  padding: 30px 0;
}

.event-date {
  align-items: center;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
  position: relative;
}

.event-date::before {
  background: var(--lime);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.event-date span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.event-date strong {
  font-size: 40px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.event-date small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.event-content {
  align-self: center;
}

.event-content h3 {
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 8px 0;
}

.event-content > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-row span {
  background: #e6eadc;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
}

.event-meta {
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  gap: 22px;
  margin-top: 14px;
}

.event-meta span::before {
  color: var(--moss);
  content: "■";
  font-size: 6px;
  margin-right: 7px;
  vertical-align: 2px;
}

.event-action {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.availability {
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 12px;
}

.availability.open {
  color: var(--forest);
}

.availability.few {
  color: var(--orange);
}

.availability.wait {
  color: var(--red);
}

.empty-panel {
  color: var(--muted);
  padding: 70px 0;
  text-align: center;
}

.public-calendar-shell {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.public-calendar-toolbar {
  align-items: center;
  background: var(--forest-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 20px;
}

.public-calendar-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.public-calendar-toolbar strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.public-calendar-toolbar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.public-calendar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.public-calendar-view-toggle {
  display: flex;
}

.public-calendar-controls {
  align-items: center;
  display: flex;
  gap: 6px;
}

.public-calendar-controls button,
.public-calendar-view-toggle button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
}

.public-calendar-view-toggle button + button {
  border-left: 0;
}

.public-calendar-controls button:hover,
.public-calendar-view-toggle button:hover,
.public-calendar-view-toggle button[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.public-calendar-scroll {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-inline: contain;
}

.public-month-calendar {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.public-calendar-weekdays,
.public-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.public-calendar-weekdays span {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 6px;
  text-align: center;
}

.public-calendar-weekdays span:last-child {
  border-right: 0;
}

.public-calendar-weekdays .sunday,
.public-calendar-day.sunday .public-calendar-day-number > span {
  color: var(--red);
}

.public-calendar-weekdays .saturday,
.public-calendar-day.saturday .public-calendar-day-number > span {
  color: #426b8d;
}

.public-calendar-day {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 9px;
}

.public-calendar-day:nth-child(7n) {
  border-right: 0;
}

.public-calendar-day.outside {
  background: #f0eee7;
}

.public-calendar-day.outside > * {
  opacity: 0.32;
}

.public-calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--lime);
}

.public-calendar-day-number {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 25px;
}

.public-calendar-day-number > span {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.public-calendar-day.today .public-calendar-day-number > span {
  background: var(--ink);
  border-radius: 50%;
  color: var(--lime);
}

.public-calendar-day-number small {
  color: var(--forest);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.public-calendar-events {
  display: grid;
  gap: 6px;
  margin-top: 5px;
}

.public-calendar-event {
  background: var(--forest);
  border: 0;
  border-left: 3px solid var(--lime);
  color: white;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 3px;
  padding: 8px;
  text-align: left;
  transition:
    transform 120ms ease,
    background 120ms ease;
  width: 100%;
}

.public-calendar-event:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.public-calendar-event.few {
  border-left-color: var(--orange);
}

.public-calendar-event.wait {
  background: #5d3d38;
  border-left-color: #f0a69e;
}

.public-calendar-event.closed {
  background: #555b55;
  border-left-color: #c4c8c2;
}

.public-calendar-event.cancelled {
  background: #6a302d;
  border-left-color: #ffaaa2;
}

.public-event-time {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.public-event-count {
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.public-event-mode,
.event-mode {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.public-event-popover > .public-event-mode {
  color: var(--forest);
  margin: 0 44px 5px 0;
}

.public-calendar-event strong {
  font-size: 14px;
  line-height: 1.45;
}

.public-event-price {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.public-event-status {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.public-calendar-agenda {
  display: none;
}

.public-calendar-shell[data-calendar-view="list"] .public-calendar-scroll {
  display: none;
}

.public-calendar-shell[data-calendar-view="list"] .public-calendar-agenda {
  display: grid;
}

.public-calendar-shell[data-calendar-view="list"] > .public-calendar-empty {
  display: none;
}

.public-calendar-agenda-event {
  align-items: stretch;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-columns: 68px minmax(0, 1fr) 28px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.public-calendar-agenda-event:last-child {
  border-bottom: 0;
}

.public-calendar-agenda-event:focus-visible {
  box-shadow: inset 0 0 0 3px var(--lime);
  outline: 0;
}

.public-calendar-agenda-date {
  align-items: center;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 8px;
}

.public-calendar-agenda-date strong {
  font-size: 16px;
  line-height: 1;
}

.public-calendar-agenda-date small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  margin-top: 5px;
}

.public-calendar-agenda-details {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 10px;
}

.public-calendar-agenda-details > span {
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
}

.public-calendar-agenda-details > strong {
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-calendar-agenda-details > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.public-calendar-agenda-event.few {
  box-shadow: inset 4px 0 0 var(--orange);
}

.public-calendar-agenda-event.wait,
.public-calendar-agenda-event.cancelled {
  box-shadow: inset 4px 0 0 var(--red);
}

.public-calendar-agenda-event.closed {
  box-shadow: inset 4px 0 0 var(--muted);
}

.public-calendar-agenda-arrow {
  align-items: center;
  color: var(--forest);
  display: flex;
  font-size: 24px;
  font-weight: 900;
  justify-content: center;
}

.public-calendar-agenda-empty {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  padding: 30px 18px;
  text-align: center;
}

.public-event-popover-layer {
  align-items: center;
  background: rgba(14, 22, 15, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.public-event-popover {
  background: var(--white);
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 7px;
  box-shadow: 0 26px 80px rgba(15, 25, 17, 0.32);
  max-height: calc(100vh - 40px);
  max-width: 430px;
  overflow-y: auto;
  padding: 31px 30px 28px 38px;
  position: relative;
  width: 100%;
}

.public-event-popover-accent {
  background: var(--lime);
  border-radius: 99px;
  height: 13px;
  left: 16px;
  position: absolute;
  top: 36px;
  width: 13px;
}

.public-event-popover-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 13px;
  top: 13px;
  width: 36px;
}

.public-event-popover-close:hover {
  background: var(--sand);
  color: var(--ink);
}

.public-event-popover-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 2px 45px 6px 0;
}

.public-event-popover h3 {
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.35;
  margin: 0 40px 14px 0;
}

.public-event-popover .tag-row {
  margin-bottom: 18px;
}

.public-event-popover-facts {
  background: var(--sand);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 15px 16px;
}

.public-event-popover-facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.public-event-popover-facts dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.public-event-popover-facts dd {
  font-size: 14px;
  font-weight: 900;
  margin: 5px 0 0;
}

.public-event-popover-facts dd small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 3px;
}

.public-event-field-memo {
  background: #f2f8d5;
  border-left: 4px solid #a8c32e;
  margin: -8px 0 22px;
  padding: 14px 16px;
}

.public-event-field-memo p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.public-participant-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.public-participant-heading strong {
  font-size: 14px;
}

.public-participant-heading span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.public-participant-list {
  max-height: 250px;
  min-height: 54px;
  overflow-y: auto;
}

.public-participant-list > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  padding: 17px 0;
  text-align: center;
}

.public-participant-list .public-participant-error {
  color: var(--red);
}

.public-participant-list ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-participant-list li {
  align-items: center;
  background: #f2f3ec;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 43px;
  padding: 6px 10px 6px 7px;
}

.public-participant-list li > strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-participant-list li > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.public-participant-avatar {
  align-items: center;
  background: var(--forest);
  border-radius: 50%;
  color: var(--lime);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.public-event-booking-link {
  margin-top: 20px;
}

.public-event-cancelled {
  background: #fff0ee;
  border-left: 4px solid var(--red);
  color: #6a302d;
  margin-top: 8px;
  padding: 15px 16px;
}

.public-event-cancelled p {
  font-size: 12px;
  line-height: 1.7;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.public-event-booking-closed {
  background: #eceae4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-top: 20px;
  padding: 15px;
  text-align: center;
}

.public-calendar-empty {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
  text-align: center;
}

.field-section {
  background: var(--sand);
  padding: 88px 40px;
}

.field-panel {
  display: grid;
  gap: 80px;
  grid-template-columns: 1.1fr 0.9fr;
  margin: 0 auto;
  max-width: 1160px;
}

.field-panel > div > p:last-child {
  color: var(--muted);
  line-height: 1.9;
  max-width: 620px;
}

.field-details {
  border-top: 1px solid var(--ink);
  margin: 0;
}

.field-details div {
  border-bottom: 1px solid #c8c5b9;
  display: grid;
  font-size: 13px;
  gap: 20px;
  grid-template-columns: 80px 1fr;
  padding: 20px 0;
}

.field-details dt {
  color: var(--muted);
  font-weight: 800;
}

.field-details dd {
  line-height: 1.7;
  margin: 0;
}

footer {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 130px;
  padding: 30px clamp(24px, 5vw, 80px);
}

footer p,
footer > a {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.footer-brand .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.5);
}

.public-site-footer {
  min-height: 88px;
}

.public-site-footer p {
  margin: 0;
}

.document-legal-links {
  align-items: center;
  background: #122019;
  display: flex;
  gap: 20px;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
}

.document-legal-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.document-legal-links a:hover {
  color: white;
}

.legal-page {
  background: #f3f2ec;
  min-height: 100vh;
  padding-bottom: 72px;
}

.legal-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-document {
  background: var(--white);
  border: 1px solid #e2dfd4;
  margin: 48px auto 0;
  max-width: 900px;
  padding: clamp(30px, 6vw, 72px);
}

.legal-document > header {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 38px;
  padding-bottom: 30px;
}

.legal-document h1 {
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.055em;
  margin: 8px 0 20px;
}

.legal-lead {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  max-width: 720px;
}

.legal-date {
  color: var(--muted);
  font-size: 11px;
  margin: 18px 0 0;
}

.legal-document section {
  border-bottom: 1px solid var(--line);
  padding: 4px 0 30px;
}

.legal-document section + section {
  margin-top: 30px;
}

.legal-document section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-document h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.legal-document ol,
.legal-document ul {
  margin: 0;
  padding-left: 1.5em;
}

.legal-document li + li {
  margin-top: 7px;
}

.legal-document a,
.legal-consent a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-operator-details {
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
}

.legal-operator-details div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 14px 0;
}

.legal-operator-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.legal-operator-details dd {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-consent {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 4px 0;
}

.reservation-regulations {
  background: color-mix(in srgb, var(--white) 92%, var(--lime));
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 20px 0;
  padding: 20px;
}

.reservation-regulations-heading {
  margin-bottom: 12px;
}

.reservation-regulations-heading h2,
.reservation-regulations-heading p {
  margin: 0;
}

.reservation-regulations > p {
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
}

.center-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  text-align: center;
}

.center-state h1 {
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.05em;
  margin: 8px 0;
}

.center-state p {
  color: var(--muted);
  margin: 12px 0 24px;
}

.loader {
  animation: rotate 0.9s linear infinite;
  border: 3px solid var(--line);
  border-right-color: var(--forest);
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.compact-header {
  border-bottom: 1px solid var(--line);
  height: 76px;
  padding: 0 clamp(22px, 5vw, 70px);
}

.text-link {
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.booking-page,
.manage-page {
  min-height: 100vh;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(480px, 1.22fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 76px);
}

.event-summary {
  background: var(--forest-dark);
  color: white;
  padding: 70px 58px;
}

.event-summary .eyebrow {
  color: var(--lime);
}

.event-summary .event-mode {
  border: 1px solid rgba(215, 240, 93, 0.45);
  display: inline-block;
  margin: 10px 0 14px;
  padding: 5px 8px;
}

.event-summary h1 {
  font-size: clamp(35px, 4vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin: 0 0 24px;
}

.summary-date {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--lime);
  font-size: 16px;
  font-weight: 800;
  padding: 18px 0;
}

.event-summary .tag-row {
  margin-top: 18px;
}

.event-summary dl {
  margin: 26px 0;
}

.event-summary dl div {
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 7px 0;
}

.event-summary dt {
  color: rgba(255, 255, 255, 0.52);
}

.event-summary dd {
  font-weight: 800;
  margin: 0;
}

.event-summary > p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.9;
}

.event-notes {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--lime);
  margin-top: 28px;
  padding: 18px 20px;
}

.event-notes strong {
  font-size: 12px;
}

.event-notes p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.7;
  margin: 7px 0 0;
}

.event-field-memo {
  background: var(--lime);
  color: var(--ink);
  margin-top: 28px;
  padding: 18px 20px;
}

.event-field-memo p {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.booking-form-panel {
  background: var(--white);
  padding: 64px clamp(30px, 6vw, 76px);
}

.booking-form-panel h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 0;
}

.form-intro {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 28px;
}

.booking-unavailable {
  background: #f4f1e8;
  border-left: 5px solid var(--orange);
  margin-top: 28px;
  padding: 24px;
}

.booking-unavailable strong {
  font-size: 18px;
}

.booking-unavailable p {
  color: var(--muted);
  line-height: 1.8;
  margin: 9px 0 0;
  white-space: pre-wrap;
}

.companion-name-fields {
  background: #f3f1e9;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.companion-name-fields > div:first-child {
  display: grid;
  gap: 4px;
}

.companion-name-fields > div:first-child strong {
  font-size: 13px;
}

.companion-name-fields > div:first-child small {
  color: var(--muted);
  font-size: 10px;
}

.reservation-static-text {
  background: #eef2eb;
  border-left: 4px solid var(--forest);
  color: #3e4a40;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  padding: 13px 15px;
  white-space: pre-wrap;
}

.booking-form-panel form,
.admin-form {
  display: grid;
  gap: 19px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
}

label > span,
.admin-form label > span {
  font-size: 12px;
  font-weight: 800;
}

label span b {
  color: var(--orange);
  font-size: 9px;
  margin-left: 5px;
}

input,
select,
textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 11px 13px;
  width: 100%;
}

textarea {
  line-height: 1.6;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(46, 71, 50, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: var(--muted);
  opacity: 0.72;
}

.check-label {
  align-items: center;
  display: flex;
  gap: 10px;
}

.honeypot-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.turnstile-field {
  min-height: 65px;
}

.check-label input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.check-label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.reservation-preference {
  background: #f4f3ec;
  border: 1px solid var(--line);
  cursor: pointer;
  margin-bottom: 8px;
  padding: 13px 14px;
}

.reservation-preference span {
  display: grid;
  gap: 3px;
}

.reservation-preference strong {
  color: var(--ink);
  font-size: 12px;
}

.reservation-preference small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.form-error,
.form-success {
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  padding: 13px 15px;
}

.form-error {
  background: #f8e5e2;
  color: #92382f;
}

.form-success {
  background: #e6efd9;
  color: var(--forest);
}

.action-feedback {
  flex-basis: 100%;
  width: 100%;
}

.admin-topbar-actions .action-feedback {
  max-width: 360px;
  text-align: left;
}

.reservation-row-actions .action-feedback,
.staff-action-stack .action-feedback,
.velocity-check-control .action-feedback {
  font-size: 9px;
  padding: 8px;
}

.staff-action-stack {
  display: grid;
  gap: 6px;
}

.complete-page {
  align-items: center;
  background:
    linear-gradient(rgba(23, 32, 24, 0.88), rgba(23, 32, 24, 0.96)),
    var(--forest);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 34px;
}

.complete-card {
  background: var(--white);
  box-shadow: var(--shadow);
  max-width: 600px;
  padding: clamp(36px, 7vw, 70px);
  text-align: center;
  width: 100%;
}

.complete-icon {
  align-items: center;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  font-size: 34px;
  font-weight: 900;
  height: 70px;
  justify-content: center;
  margin: 0 auto 25px;
  width: 70px;
}

.complete-card h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.055em;
  margin: 0 0 14px;
}

.complete-card > p:not(.eyebrow):not(.notice) {
  color: var(--muted);
  line-height: 1.8;
}

.reservation-code {
  background: var(--sand);
  display: grid;
  margin: 28px 0;
  padding: 18px;
}

.reservation-code span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.reservation-code strong {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 21px;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

.notice {
  background: #fff2d9;
  border-left: 3px solid #d99e34;
  color: #75591f;
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 14px;
  text-align: left;
}

.complete-card .text-link {
  display: inline-block;
  margin-top: 22px;
}

.manage-shell {
  display: grid;
  gap: 36px;
  grid-template-columns: 360px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1080px;
  padding: 64px 36px;
}

.manage-summary {
  align-self: start;
  background: var(--ink);
  color: white;
  padding: 36px;
  position: sticky;
  top: 20px;
}

.manage-summary h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 8px 0 16px;
}

.manage-date {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.manage-summary .reservation-code {
  background: rgba(255, 255, 255, 0.08);
}

.status-badge {
  border-radius: 99px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 9px;
}

.status-badge.confirmed {
  background: #dcecc7;
  color: #365329;
}

.status-badge.waitlisted {
  background: #ffebca;
  color: #81541d;
}

.status-badge.cancelled {
  background: #eee;
  color: #6d6d6d;
}

.manage-actions {
  display: flex;
  gap: 10px;
}

.admin-auth-page {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  min-height: 100vh;
}

.admin-auth-intro {
  background:
    linear-gradient(145deg, rgba(23, 32, 24, 0.98), rgba(46, 71, 50, 0.96)),
    var(--forest-dark);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  position: relative;
}

.admin-auth-intro::after {
  border: 1px solid rgba(215, 240, 93, 0.18);
  border-radius: 50%;
  content: "";
  height: 520px;
  position: absolute;
  right: -280px;
  top: 15%;
  width: 520px;
}

.admin-auth-brand {
  position: relative;
  z-index: 1;
}

.admin-auth-brand .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.admin-auth-brand small {
  color: rgba(255, 255, 255, 0.48);
}

.admin-auth-intro > div {
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.admin-auth-intro .eyebrow {
  color: var(--lime);
}

.admin-auth-intro h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.07em;
  line-height: 1.12;
  margin: 0 0 28px;
}

.admin-auth-intro > div > p:last-child {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  max-width: 430px;
}

.admin-auth-back {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.admin-auth-form-side {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 52px clamp(28px, 7vw, 110px);
}

.admin-auth-card {
  max-width: 520px;
  width: 100%;
}

.admin-auth-card h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.055em;
  margin: 0;
}

.admin-auth-lead {
  color: var(--muted);
  font-size: 14px;
  margin: 15px 0 34px;
}

.local-demo-credentials {
  background: var(--sand);
  border-left: 4px solid var(--forest);
  margin: 0 0 26px;
  padding: 18px 20px;
}

.local-demo-credentials > strong {
  display: block;
  margin: 5px 0 12px;
}

.local-demo-credentials dl,
.local-demo-credentials dl div {
  margin: 0;
}

.local-demo-credentials dl {
  display: grid;
  gap: 8px;
}

.local-demo-credentials dl div {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 1fr;
}

.local-demo-credentials dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.local-demo-credentials dd {
  margin: 0;
}

.local-demo-credentials code {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-auth-form input[readonly] {
  background: var(--sand);
  color: var(--ink-soft);
}

.admin-auth-form {
  display: grid;
  gap: 20px;
}

.admin-auth-form label {
  display: grid;
  gap: 8px;
}

.admin-auth-form label > span {
  font-size: 12px;
  font-weight: 900;
}

.admin-auth-form input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  min-height: 52px;
  padding: 13px 15px;
  width: 100%;
}

.admin-auth-form input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(46, 71, 50, 0.12);
  outline: 0;
}

.admin-auth-form label small {
  color: var(--muted);
  font-size: 11px;
}

.admin-auth-submit {
  justify-content: center;
  margin-top: 5px;
  min-height: 54px;
  width: 100%;
}

.admin-auth-switch {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  margin: 30px 0 0;
  padding-top: 22px;
  text-align: center;
}

.admin-auth-switch a {
  color: var(--forest);
  font-weight: 900;
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-auth-closed {
  background: var(--sand);
  border-left: 4px solid var(--forest);
  padding: 24px;
}

.admin-auth-closed p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 20px;
}

.admin-layout {
  background: #f3f2ec;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 30px 22px;
  position: sticky;
  top: 0;
}

.admin-brand .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.45);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 70px;
}

.admin-sidebar nav button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 14px 13px;
  text-align: left;
}

.admin-sidebar nav button span {
  color: rgba(215, 240, 93, 0.45);
  font-size: 9px;
  margin-right: 10px;
}

.admin-sidebar nav button.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-sidebar nav button.active span {
  color: var(--lime);
}

.admin-view-link {
  border: 1px solid rgba(215, 240, 93, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 800;
  margin-top: auto;
  padding: 13px;
  text-align: center;
}

.admin-view-link:hover {
  background: rgba(215, 240, 93, 0.12);
  color: white;
}

.admin-main {
  min-width: 0;
  padding: 42px clamp(28px, 4vw, 64px) 70px;
}

.admin-main .button.ghost {
  background: #f4f2eb;
  border-color: #c9c5b8;
  color: var(--ink-soft);
}

.admin-main .button.ghost:hover {
  background: #e7e3d8;
  border-color: #aaa594;
  color: var(--ink);
}

.admin-main .button.ghost:focus-visible {
  outline: 3px solid rgba(46, 71, 50, 0.25);
  outline-offset: 2px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

@media (max-width: 850px) {
  .admin-auth-page {
    display: block;
  }

  .admin-auth-intro {
    min-height: 270px;
    padding: 30px 26px;
  }

  .admin-auth-intro > div {
    margin: 46px 0 30px;
  }

  .admin-auth-intro h1 {
    font-size: 36px;
  }

  .admin-auth-intro > div > p:last-child {
    display: none;
  }

  .admin-auth-form-side {
    padding: 46px 24px 64px;
  }
}

.admin-topbar h1 {
  font-size: 38px;
}

.admin-status {
  color: var(--muted);
  font-size: 12px;
}

.admin-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.admin-columns.calendar-layout {
  grid-template-columns: minmax(680px, 1fr) 350px;
}

.admin-event-stack {
  display: grid;
  gap: 18px;
}

/* Grid items default to min-width:auto, which lets the embed snippet and the
   wide tables push the whole console sideways instead of scrolling in place. */
.admin-event-stack > * {
  min-width: 0;
}

.event-editor-panel {
  max-width: 920px;
  width: 100%;
}

.event-reservations-panel {
  width: 100%;
}

.selected-event-caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin: -8px 0 18px;
}

.open-private-attendance-panel {
  align-items: center;
  background: #f3f1e9;
  border-left: 4px solid var(--forest);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  padding: 22px;
}

.open-private-attendance-panel h3 {
  font-size: 20px;
  margin: 3px 0 7px;
}

.open-private-attendance-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

.open-private-attendance-panel .text-link {
  display: inline-block;
  margin-top: 10px;
}

.open-private-attendance-panel form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.open-private-attendance-panel label {
  display: grid;
  gap: 5px;
}

.open-private-attendance-panel label > span,
.open-private-attendance-panel label > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.open-private-attendance-panel input {
  background: white;
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
  min-height: 44px;
  padding: 8px 10px;
  width: 118px;
}

.open-private-attendance-panel .button {
  min-height: 44px;
}

.reservation-view-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
}

.reservation-view-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: -1px;
  padding: 10px 13px;
}

.reservation-view-tabs button.active {
  border-bottom-color: var(--forest);
  color: var(--forest);
}

.team-list-panel {
  display: grid;
  gap: 18px;
}

.team-settings-bar {
  align-items: end;
  background: #f3f1e9;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}

.team-settings-bar label {
  display: grid;
  gap: 5px;
}

.team-settings-bar label > span {
  font-size: 10px;
  font-weight: 900;
}

.team-settings-bar select,
.team-color-select {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 34px;
  padding: 5px 9px;
}

.team-row-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.team-color-select {
  border-left-width: 8px;
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.team-color-select.red {
  border-left-color: #c7473d;
}

.team-color-select.yellow {
  border-left-color: #e0bc28;
}

.team-color-select.blue {
  border-left-color: #3975ad;
}

.team-color-select.green {
  border-left-color: #4d8147;
}

.team-color-select.white,
.team-color-select.unassigned {
  border-left-color: #d8d6ca;
}

.team-color-select.black {
  border-left-color: #252a25;
}

.velocity-check-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.velocity-check-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
}

.velocity-check-state.checked {
  color: #39572b;
}

.velocity-check {
  background: #f3eee4;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 32px;
  padding: 5px 10px;
}

.velocity-check.checked {
  background: #e1ebd8;
  color: #39572b;
}

.checkin-label {
  color: #4d7a35;
  display: block;
  font-weight: 900;
  margin-top: 7px;
}

.checkin-pending {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.reservation-row-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.reservation-data-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.reservation-row-actions .report-download-button,
.reservation-data-actions .report-download-button {
  background: #f4f2eb;
  border-color: var(--line);
  color: var(--ink-soft);
  min-height: 34px;
  padding: 5px 12px;
}

.reservation-row-actions .report-download-button:hover,
.reservation-data-actions .report-download-button:hover {
  background: #e8e5dc;
  color: var(--ink);
}

.reservation-row-actions button,
.reservation-editor-close {
  background: #f4f2eb;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  font: 800 10px inherit;
  min-height: 30px;
  padding: 5px 8px;
}

.reservation-row-actions button.checked {
  background: #e1ebd8;
  color: #39572b;
}

.reservation-row-actions button.danger {
  background: #f8e5e2;
  color: #92382f;
}

.reservation-row-actions button.restore {
  background: #e4ebf4;
  color: #345775;
}

.admin-reservation-editor {
  background: #f7f5ee;
  border-top: 4px solid var(--forest);
  margin-top: 24px;
  padding: 24px;
}

.calendar-list-actions,
.reservation-list-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-reservation-editor h3 {
  font-size: 20px;
  margin: 0;
}

.event-message-panel summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.event-message-panel[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.selected-event-empty {
  background: #f5f3ec;
  color: var(--muted);
  font-size: 12px;
  padding: 38px 20px;
  text-align: center;
}

.admin-panel {
  background: var(--white);
  border: 1px solid #e2dfd4;
  padding: 28px;
}

.admin-panel.full,
.settings-panel {
  width: 100%;
}

.widget-embed-guide {
  background: #eef2eb;
  border-left: 4px solid var(--forest);
  padding: 16px 18px;
}

.widget-embed-guide summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.widget-embed-guide p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  margin: 12px 0 10px;
}

.widget-embed-guide pre {
  background: var(--forest);
  color: #f4f1e7;
  margin: 0;
  overflow-x: auto;
  padding: 13px 15px;
}

.widget-embed-guide code {
  font: 12px/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace;
}


.settings-stack {
  display: grid;
  gap: 24px;
  max-width: 820px;
  width: 100%;
}

.backup-stack {
  max-width: 900px;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.backup-steps {
  counter-reset: backup-step;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.backup-steps li {
  align-items: center;
  background: #f5f3ec;
  display: grid;
  gap: 3px 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px 16px;
}

.backup-steps li::before {
  align-items: center;
  background: var(--forest);
  border-radius: 50%;
  color: white;
  content: counter(backup-step);
  counter-increment: backup-step;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  grid-row: 1 / 3;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.backup-steps strong {
  font-size: 13px;
}

.backup-steps span {
  color: var(--muted);
  font-size: 11px;
}

.settings-panel {
  max-width: 820px;
}

.theme-picker {
  border: 0;
  margin: 6px 0 0;
  min-width: 0;
  padding: 0;
}

.theme-picker legend {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  padding: 0;
}

.theme-picker > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.theme-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-option {
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 10px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.theme-option:hover {
  border-color: var(--moss);
}

.theme-option:has(input:checked) {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(46, 71, 50, 0.12);
}

.theme-option:has(input:focus-visible) {
  outline: 3px solid rgba(239, 123, 66, 0.32);
  outline-offset: 2px;
}

.theme-option input {
  height: 1px;
  inset: 0 auto auto 0;
  min-height: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  width: 1px;
}

.theme-preview {
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  height: 46px;
  overflow: hidden;
}

.theme-preview i {
  display: block;
}

.theme-option-copy {
  display: grid;
  min-width: 0;
}

.theme-option-copy strong {
  font-size: 13px;
}

.theme-option-copy small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.account-help {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.panel-heading h2 {
  font-size: 26px;
}

.panel-heading > span {
  color: var(--muted);
  font-size: 11px;
}

.calendar-panel {
  min-width: 0;
}

.calendar-heading {
  align-items: flex-end;
  gap: 20px;
}

.calendar-toolbar-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-view-toggle {
  display: flex;
}

.calendar-controls {
  align-items: center;
  display: flex;
  gap: 7px;
}

.calendar-controls button,
.calendar-view-toggle button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
}

.calendar-view-toggle button + button {
  border-left: 0;
}

.calendar-controls button:hover,
.calendar-view-toggle button:hover,
.calendar-view-toggle button[aria-pressed="true"] {
  background: var(--sand);
}

.calendar-view-toggle button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.calendar-controls .calendar-today {
  margin-right: 4px;
}

.calendar-controls strong {
  font-size: 15px;
  min-width: 90px;
  text-align: center;
}

.calendar-scroll {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-inline: contain;
}

.month-calendar {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  background: #eeede6;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  padding: 8px 5px;
  text-align: center;
}

.calendar-weekdays .sunday,
.calendar-day.sunday .calendar-day-number > span {
  color: var(--red);
}

.calendar-weekdays .saturday,
.calendar-day.saturday .calendar-day-number > span {
  color: #426b8d;
}

.calendar-day {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 128px;
  padding: 8px;
}

.calendar-day.sunday,
.calendar-day.saturday {
  background: #fbfaf6;
}

.calendar-day.outside {
  background: #f2f1eb;
}

.calendar-day.outside .calendar-day-number,
.calendar-day.outside .calendar-events {
  opacity: 0.38;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--forest);
}

.calendar-day-number {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 22px;
}

.calendar-day-number > span {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.calendar-day.today .calendar-day-number > span {
  background: var(--forest);
  border-radius: 50%;
  color: white;
}

.calendar-day-number small {
  color: var(--forest);
  font-size: 8px;
  font-weight: 900;
}

.calendar-events {
  display: grid;
  gap: 5px;
  margin-top: 5px;
}

.calendar-event {
  background: #e7eddd;
  border: 0;
  border-left: 3px solid #63934e;
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 2px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 6px 6px 5px;
  position: relative;
  text-align: left;
  width: 100%;
}

.calendar-event:hover {
  background: #dce8d0;
}

.calendar-event[aria-pressed="true"],
.calendar-event:focus-visible {
  box-shadow: inset 0 0 0 2px var(--forest);
  outline: 0;
}

.calendar-event[aria-pressed="true"] {
  background: #dbe7cd;
}

.calendar-event.draft {
  background: #ecebea;
  border-left-color: #92958f;
}

.calendar-event.draft:hover {
  background: #e2e1df;
}

.calendar-event.cancelled {
  background: #f3dcda;
  border-left-color: #a54f48;
}

.calendar-event .status-dot {
  margin: 4px 1px 0 0;
}

.calendar-event strong {
  font-size: 9px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-count {
  color: var(--forest);
  font-size: 8px;
  font-weight: 900;
  grid-column: 2;
}

.calendar-event small {
  color: var(--muted);
  font-size: 8px;
  grid-column: 2;
  line-height: 1.3;
}

.calendar-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 9px;
  gap: 16px;
  margin-top: 12px;
}

.calendar-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.calendar-legend i {
  background: #63934e;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.calendar-legend i.draft {
  background: #92958f;
}

.calendar-legend i.cancelled,
.status-dot.cancelled {
  background: #a54f48;
}

.admin-calendar-agenda {
  display: none;
}

.calendar-panel[data-calendar-view="list"] .calendar-scroll {
  display: none;
}

.calendar-panel[data-calendar-view="list"] .admin-calendar-agenda {
  display: grid;
}

.admin-calendar-agenda-event {
  align-items: stretch;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid #63934e;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-columns: 64px minmax(0, 1fr) 26px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.admin-calendar-agenda-event:last-child {
  border-bottom: 0;
}

.admin-calendar-agenda-event.draft {
  border-left-color: #92958f;
}

.admin-calendar-agenda-event.cancelled {
  border-left-color: #a54f48;
}

.admin-calendar-agenda-event[aria-pressed="true"],
.admin-calendar-agenda-event:focus-visible {
  box-shadow: inset 0 0 0 2px var(--forest);
  outline: 0;
}

.admin-calendar-agenda-date {
  align-items: center;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 7px;
}

.admin-calendar-agenda-date strong {
  font-size: 15px;
  line-height: 1;
}

.admin-calendar-agenda-date small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  margin-top: 5px;
}

.admin-calendar-agenda-details {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 9px;
}

.admin-calendar-agenda-details > span {
  color: var(--forest);
  font-size: 9px;
  font-weight: 900;
}

.admin-calendar-agenda-details > strong {
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-calendar-agenda-details > small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-calendar-agenda-arrow {
  align-items: center;
  color: var(--forest);
  display: flex;
  font-size: 22px;
  font-weight: 900;
  justify-content: center;
}

.admin-calendar-agenda-empty {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  padding: 28px 16px;
  text-align: center;
}

.admin-event-list {
  display: grid;
}

.admin-event-list article {
  align-items: center;
  border-bottom: 1px solid #e9e6dc;
  display: grid;
  gap: 16px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 16px 0;
}

.admin-event-date {
  align-items: center;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  height: 58px;
  justify-content: center;
}

.admin-event-date strong {
  font-size: 24px;
  line-height: 1;
}

.admin-event-date span {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}

.admin-event-list h3 {
  display: inline;
  font-size: 13px;
  margin: 0;
}

.admin-event-list p {
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0 0;
}

.status-dot {
  background: #b2b2b2;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 7px;
  vertical-align: 2px;
  width: 6px;
}

.status-dot.published {
  background: #63934e;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--forest);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.admin-form {
  gap: 14px;
}

.event-editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.event-editor-actions .button {
  flex: 1;
}

.editor-cancel {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  background: #faf9f4;
  min-height: 42px;
}

.field-help {
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}

.settings-options {
  background: #f3f1e9;
  border: 1px solid var(--line);
  display: grid;
  gap: 15px;
  padding: 17px 18px;
}

.settings-options-heading {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.settings-options label {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.settings-options input {
  accent-color: var(--forest);
  margin-top: 2px;
  min-height: auto;
  width: auto;
}

.settings-options label > span {
  display: grid;
  gap: 4px;
}

.settings-options strong {
  font-size: 12px;
}

.settings-options small {
  color: var(--muted);
  font-size: 10px;
}

.event-age-rule {
  border: 1px solid var(--line);
  margin: 0;
  padding: 14px;
}

.event-age-rule legend {
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 7px;
}

.event-age-rule-options {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-age-rule-option {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 11px;
  min-height: 64px;
  padding: 11px 13px;
}

.event-age-rule-option:has(input:checked) {
  background: #edf2e7;
  border-color: var(--forest);
  box-shadow: inset 4px 0 0 var(--forest);
}

.event-age-rule-option input {
  flex: none;
  height: 18px;
  margin: 0;
  width: 18px;
}

.event-age-rule-option span {
  display: grid;
  gap: 3px;
}

.event-age-rule-option strong {
  color: var(--ink);
  font-size: 13px;
}

.event-age-rule-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.event-form-settings {
  background: #f3f2eb;
  border: 1px solid var(--line);
  margin: 0;
  padding: 18px;
}

.event-form-settings legend {
  font-size: 13px;
  font-weight: 900;
  padding: 0 6px;
}

.event-form-settings > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 9px 0 14px;
}

.event-form-custom-toggle {
  background: white;
  border: 1px solid var(--line);
  padding: 12px;
}

.event-form-field-list {
  display: grid;
  gap: 7px;
}

.event-form-field-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 11px;
}

.event-form-field-row > .check-label:first-child {
  flex: 1;
}

.event-form-field-row > small {
  color: var(--muted);
  font-size: 9px;
}

.event-form-required {
  flex: none;
}

.reservation-form-builder {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
}

.public-page-builder {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
}

.page-builder-canvas,
.page-builder-palette {
  background: #f8f7f2;
  border: 1px solid var(--line);
  min-width: 0;
  padding: 18px;
}

.page-builder-canvas {
  border-top: 4px solid var(--forest);
}

.page-builder-palette {
  align-self: start;
  background: #eeece3;
  border-top: 4px solid #989588;
}

.page-builder-list,
.page-builder-palette-list {
  display: grid;
  gap: 10px;
}

.page-builder-block {
  background: white;
  border: 1px solid var(--line);
  padding: 13px;
}

.page-builder-block > header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.page-builder-block > header > span:nth-child(2),
.page-builder-palette-item > span {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.page-builder-block strong,
.page-builder-palette-item strong {
  font-size: 12px;
}

.page-builder-block small,
.page-builder-palette-item small,
.page-builder-source {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.page-builder-order {
  align-items: center;
  background: var(--forest);
  color: white;
  display: inline-flex;
  flex: none;
  font-size: 10px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.page-builder-actions {
  align-items: center;
  display: flex;
  flex: none;
  gap: 4px;
}

.page-builder-actions button,
.page-builder-palette-item button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  min-height: 30px;
  padding: 4px 8px;
}

.page-builder-actions button:hover:not(:disabled),
.page-builder-palette-item button:hover:not(:disabled) {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.page-builder-actions button:disabled,
.page-builder-palette-item button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.page-builder-actions .remove {
  border-color: #c9a7a0;
  color: #8c3327;
}

.page-builder-required {
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
}

.page-builder-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
}

.page-builder-fields label {
  display: grid;
  gap: 5px;
}

.page-builder-fields label > span {
  font-size: 10px;
  font-weight: 800;
}

.page-builder-fields textarea {
  resize: vertical;
}

.page-builder-source {
  margin: 0;
}

.page-builder-palette-item {
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.page-builder-palette-item button {
  align-self: stretch;
  border-color: var(--forest);
  color: var(--forest);
}

.form-builder-canvas,
.form-builder-palette {
  background: #f8f7f2;
  border: 1px solid var(--line);
  min-width: 0;
  padding: 18px;
}

.form-builder-canvas {
  border-top: 4px solid var(--forest);
}

.form-builder-palette {
  background: #eeece3;
  border-top: 4px solid #989588;
}

.form-builder-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-builder-heading > div,
.form-builder-item-copy,
.form-builder-available > span {
  display: grid;
  gap: 3px;
}

.form-builder-heading strong {
  font-size: 16px;
}

.form-builder-heading small,
.form-builder-item-copy small,
.form-builder-available small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.form-builder-heading > span {
  background: var(--forest);
  color: white;
  font-size: 10px;
  padding: 5px 9px;
  white-space: nowrap;
}

.form-builder-list,
.form-builder-available-list {
  display: grid;
  gap: 8px;
}

.form-builder-item,
.form-builder-available {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  gap: 11px;
  min-height: 54px;
  padding: 10px 11px;
}

.form-builder-item.required {
  background: #e8eee9;
  border-color: #bdc9bf;
}

.form-builder-order {
  align-items: center;
  background: #e8e6dc;
  color: var(--muted);
  display: inline-flex;
  flex: none;
  font-size: 9px;
  height: 29px;
  justify-content: center;
  min-width: 34px;
  padding: 0 7px;
}

.form-builder-item.required .form-builder-order {
  background: var(--forest);
  color: white;
}

.form-builder-item.required > strong {
  flex: 1;
  font-size: 12px;
}

.form-builder-item.required > small {
  color: var(--forest);
  font-size: 9px;
  font-weight: 700;
}

.form-builder-item-copy {
  flex: 1;
  min-width: 0;
}

.form-builder-item-copy strong,
.form-builder-available strong {
  font-size: 12px;
}

.form-builder-actions {
  display: flex;
  flex: none;
  gap: 4px;
}

.form-builder-actions button,
.form-builder-available button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  min-height: 30px;
  padding: 4px 8px;
}

.form-builder-actions button:hover:not(:disabled),
.form-builder-available button:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.form-builder-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.form-builder-actions .remove {
  border-color: #c9a7a0;
  color: #8c3327;
}

.form-builder-available {
  align-items: flex-start;
  flex-direction: column;
}

.form-builder-available > span {
  width: 100%;
}

.form-builder-available button {
  align-self: stretch;
  border-color: var(--forest);
  color: var(--forest);
}

.form-builder-palette-actions {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr auto;
  width: 100%;
}

.form-builder-palette-actions .delete-definition {
  border-color: #c9a7a0;
  color: #8c3327;
}

.form-builder-empty {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 24px 0;
  text-align: center;
}

.custom-field-creator {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  margin-top: 18px;
  padding-top: 18px;
}

.custom-field-creator > strong {
  font-size: 14px;
}

.custom-field-creator > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: -6px;
}

.custom-field-creator label {
  gap: 5px;
}

.custom-field-creator label > span {
  color: var(--muted);
  font-size: 9px;
}

.custom-field-creator .custom-field-add {
  background: var(--forest);
  border: 1px solid var(--forest);
  color: white;
  cursor: pointer;
  min-height: 38px;
}

.custom-field-creator .custom-field-add:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.notification-panel {
  width: 100%;
}

.notification-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: -5px 0 20px;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-list details {
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.notification-list summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 13px 15px;
}

.notification-summary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-summary-copy strong {
  font-size: 12px;
  line-height: 1.5;
}

.notification-summary-copy > span {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-list summary > small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.notification-list .form-error {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.notification-status {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  padding: 5px 7px;
}

.notification-status.preview {
  background: #ece7d3;
  color: #625b34;
}

.notification-status.sent {
  background: #e1ebd8;
  color: #39572b;
}

.notification-status.failed {
  background: #f5dcda;
  color: #8b342e;
}

.notification-list pre {
  background: #f1efe7;
  border-top: 1px solid var(--line);
  font: 11px/1.75 "Yu Gothic", sans-serif;
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.admin-checks {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-checks-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-right: 4px;
}

.admin-checks label {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
}

.admin-checks input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.reservation-preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reservation-preference-tags small {
  background: #e6eadc;
  color: var(--forest);
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 5px;
}

.muted {
  color: var(--muted);
}

.table-wrap {
  max-width: 100%;
  overflow: clip;
}

table {
  border-collapse: collapse;
  font-size: 11px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  padding: 0 12px 12px;
  text-align: left;
}

td {
  border-top: 1px solid #e6e3d9;
  overflow-wrap: anywhere;
  padding: 15px 12px;
  vertical-align: top;
}

td strong,
td small {
  display: block;
}

td small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

td a {
  color: var(--forest);
  font-weight: 700;
}

td code {
  font-size: 9px;
  overflow-wrap: anywhere;
}

.table-wrap :is(input, select, button, .button) {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  width: 100%;
}

@media (max-width: 980px) {
  .event-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .event-action {
    align-items: center;
    flex-direction: row;
    grid-column: 2;
    justify-content: space-between;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .event-summary {
    padding: 52px clamp(26px, 7vw, 70px);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
  }

  .admin-sidebar nav {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 28px;
  }

  .admin-view-link {
    display: block;
    margin-top: 14px;
  }

  .admin-columns {
    grid-template-columns: 1fr;
  }

  .admin-columns.calendar-layout {
    grid-template-columns: 1fr;
  }

  .reservation-form-builder {
    grid-template-columns: 1fr;
  }

  .public-page-builder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 70px;
    padding: 0 20px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-inner {
    padding: 75px 24px 42px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 55px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-facts {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
  }

  .hero-facts div {
    padding-left: 9px;
  }

  .hero-facts dd {
    font-size: 10px;
  }

  .section {
    padding: 65px 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .public-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .public-calendar-toolbar > div:first-child span {
    display: none;
  }

  .public-calendar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-calendar-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-calendar-view-toggle button {
    height: 42px;
  }

  .public-calendar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    width: 100%;
  }

  .public-calendar-controls button {
    height: 42px;
  }

  .public-month-calendar {
    min-width: 0;
  }

  .public-calendar-scroll {
    overflow: visible;
  }

  .public-calendar-weekdays span {
    font-size: 10px;
    padding: 7px 2px;
  }

  .public-calendar-day {
    min-height: 94px;
    padding: 4px;
  }

  .public-calendar-day-number {
    min-height: 20px;
  }

  .public-calendar-day-number > span {
    font-size: 11px;
    height: 20px;
    width: 20px;
  }

  .public-calendar-day-number small {
    display: none;
  }

  .public-calendar-events {
    gap: 3px;
    margin-top: 3px;
  }

  .public-calendar-event {
    gap: 1px;
    padding: 4px 3px;
  }

  .public-calendar-event strong {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-event-time {
    font-size: 8px;
  }

  .public-event-count {
    font-size: 8px;
  }

  .public-calendar-event .public-event-mode,
  .public-calendar-event .public-event-price,
  .public-calendar-event .public-event-status {
    display: none;
  }

  .public-event-popover-layer {
    align-items: flex-end;
    padding: 0;
  }

  .public-event-popover {
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    max-height: 88vh;
    max-width: none;
    padding: 29px 22px 24px 31px;
  }

  .public-event-popover-accent {
    left: 12px;
    top: 35px;
  }

  .public-event-popover-facts {
    grid-template-columns: 1fr;
  }

  .public-event-popover-facts div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-left: 0;
    padding-top: 10px;
  }

  .event-card {
    gap: 16px;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 23px 0;
  }

  .event-date {
    min-height: 84px;
  }

  .event-date strong {
    font-size: 30px;
  }

  .event-content h3 {
    font-size: 18px;
  }

  .event-content > p,
  .event-meta span:nth-child(3) {
    display: none;
  }

  .event-meta {
    gap: 10px;
  }

  .event-action {
    grid-column: 1 / -1;
  }

  .event-action .button {
    flex: 1;
  }

  .field-section {
    padding: 65px 20px;
  }

  .field-panel {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .public-site-footer {
    align-items: flex-start;
  }

  .compact-header {
    padding: 0 18px;
  }

  .booking-form-panel {
    padding: 44px 22px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .manage-shell {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }

  .manage-summary {
    position: static;
  }

  .manage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sidebar {
    padding: 24px 18px 12px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }

  .admin-sidebar nav button {
    min-height: 44px;
    padding: 10px 8px;
    text-align: center;
  }

  .admin-main {
    padding: 28px 17px 60px;
  }

  .admin-topbar h1 {
    font-size: 29px;
    overflow-wrap: anywhere;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .admin-topbar .button {
    display: inline-flex;
  }

  .admin-panel {
    padding: 20px 16px;
  }

  .legal-page {
    padding-bottom: 32px;
  }

  .legal-document {
    border-left: 0;
    border-right: 0;
    margin-top: 20px;
    padding: 30px 20px;
  }

  .legal-document > header {
    margin-bottom: 30px;
  }

  .legal-operator-details div {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .panel-heading:not(.calendar-heading) {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .panel-heading h2 {
    font-size: 27px;
  }

  .event-editor-actions {
    flex-direction: column;
  }

  .event-editor-actions .button {
    width: 100%;
  }

  .backup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .backup-actions .button {
    justify-content: center;
    width: 100%;
  }

  .event-form-field-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .event-form-required {
    margin-left: 31px;
  }

  .reservation-view-tabs {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .reservation-view-tabs button {
    flex: none;
    min-height: 44px;
  }

  .open-private-attendance-panel,
  .team-settings-bar {
    align-items: stretch;
  }

  .open-private-attendance-panel form,
  .open-private-attendance-panel label,
  .open-private-attendance-panel input,
  .open-private-attendance-panel .button {
    width: 100%;
  }

  .form-builder-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .form-builder-item-copy {
    width: calc(100% - 50px);
  }

  .form-builder-actions {
    margin-left: 45px;
  }

  .page-builder-block > header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .page-builder-actions {
    margin-left: 40px;
  }

  .notification-list summary {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-list summary > small {
    grid-column: 1 / -1;
  }

  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-toolbar-actions {
    align-items: stretch;
    width: 100%;
  }

  .calendar-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-view-toggle button {
    min-height: 40px;
  }

  .calendar-controls {
    display: grid;
    grid-template-columns: auto 40px minmax(90px, 1fr) 40px;
    width: 100%;
  }

  .calendar-controls .calendar-today {
    margin-right: 0;
  }

  .calendar-controls > .button {
    grid-column: 1 / -1;
    min-height: 42px;
    width: 100%;
  }

  .month-calendar {
    min-width: 0;
  }

  .calendar-scroll {
    overflow: visible;
  }

  .calendar-panel[data-calendar-view="list"] .admin-calendar-agenda {
    border: 1px solid var(--line);
  }

  .calendar-day {
    min-height: 86px;
    padding: 4px;
  }

  .calendar-weekdays span {
    padding-inline: 2px;
  }

  .calendar-events {
    gap: 3px;
    margin-top: 3px;
  }

  .calendar-event {
    gap: 1px;
    padding: 4px 3px;
  }

  .calendar-event strong {
    font-size: 8px;
    white-space: nowrap;
  }

  .calendar-event small {
    display: none;
  }

  .calendar-event-count {
    font-size: 7px;
  }

  .calendar-event .status-dot {
    margin-top: 3px;
  }

  .table-wrap {
    max-width: 100%;
    overflow: clip;
  }

  .table-wrap table {
    font-size: 10px;
  }

  .table-wrap th {
    font-size: 8px;
    letter-spacing: 0.04em;
    padding: 0 7px 8px;
  }

  .table-wrap td {
    max-width: 150px;
    overflow-wrap: anywhere;
    padding: 10px 7px;
  }

  .reservation-row-actions {
    gap: 4px;
  }

  .reservation-data-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .reservation-data-actions .button {
    justify-content: center;
    text-align: center;
  }

  .reservation-data-actions .report-download-button {
    grid-column: 1 / -1;
  }

  .reservation-row-actions .report-download-button,
  .reservation-row-actions button {
    padding-inline: 6px;
  }

  .team-color-select {
    padding-inline: 6px;
  }

  .velocity-check-control {
    gap: 5px;
  }

  .velocity-check-state {
    min-width: 34px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 14px;
  }

  .hero-inner {
    padding-inline: 18px;
  }

  .section,
  .field-section {
    padding: 48px 14px;
  }

  .public-calendar-toolbar {
    padding: 14px;
  }

  .public-calendar-agenda-event {
    grid-template-columns: 60px minmax(0, 1fr) 22px;
  }

  .public-calendar-agenda-details {
    padding-inline: 8px;
  }

  .public-calendar-day {
    min-height: 76px;
    padding: 3px;
  }

  .public-calendar-event {
    border-left-width: 2px;
  }

  .public-calendar-event strong {
    display: -webkit-box;
    font-size: 8px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .public-event-count {
    font-size: 7px;
  }

  .public-event-popover {
    max-height: 100dvh;
  }

  .admin-main {
    padding-inline: 12px;
  }

  .admin-panel {
    padding: 18px 12px;
  }

  .admin-calendar-agenda-event {
    grid-template-columns: 58px minmax(0, 1fr) 22px;
  }

  .calendar-day {
    min-height: 72px;
    padding: 3px;
  }

  .calendar-event {
    border-left-width: 2px;
  }

  .calendar-event strong {
    display: -webkit-box;
    font-size: 8px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .calendar-event-count {
    font-size: 7px;
  }

  .table-wrap th {
    padding-inline: 5px;
  }

  .table-wrap td {
    max-width: 126px;
    padding: 8px 5px;
  }

  .reservation-row-actions .report-download-button,
  .reservation-row-actions button {
    font-size: 9px;
    min-height: 28px;
    padding: 4px;
  }

  .theme-option {
    gap: 8px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .form-builder-canvas,
  .form-builder-palette,
  .page-builder-canvas,
  .page-builder-palette,
  .admin-reservation-editor {
    padding: 14px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
